Related articles |
---|
Examples in Lex & Yacc benoitpincon@magic.fr (Benoist PINCON) (1997-01-03) |
Re: Examples in Lex & Yacc peach@storm.ca (1997-01-04) |
Re: Examples in Lex & Yacc D.CHAPPELL@biochem.usyd.edu.au (Dr Douglas J. Chappell) (1997-01-09) |
From: | peach@storm.ca (Peach Microsystems) |
Newsgroups: | comp.compilers |
Date: | 4 Jan 1997 20:50:24 -0500 |
Organization: | Peach Microsystems, Ottawa |
References: | 97-01-023 |
Keywords: | lex, yacc |
pincon_benoist@mail.dotcom.fr wrote:
>I have to make a basic-like translator to C, but i miss of
>good examples.
>
>Anyone knows where to find some ?
Kernighan & Pike "The Unix Programming Environment" has an example
that starts as a + - * / calculator and goes through several versions,
adding variables & functions & perhaps arrays & . . . until it's a
reasonable little language. An appendix gives source for all versions.
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.