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: | "Dr Douglas J. Chappell" <D.CHAPPELL@biochem.usyd.edu.au> |
Newsgroups: | comp.compilers |
Date: | 9 Jan 1997 21:58:37 -0500 |
Organization: | Compilers Central |
References: | 97-01-023 |
Keywords: | translator, yacc, lex |
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 ?
1. For an intro to lex & yacc try
http://www.ee.ic.ac.uk/course/advanced/intro.html.
2. The source code to the interpreter example (hoc) from Kernighan &
Pike's book "The Unix Programming Environment" is available from
http://cm.bell-labs.com/who/bwk/hoc.sh. Also available at this site
is the source to awk (which includes a grammar in yacc)
http://cm.bell-labs.com/who/bwk/awk.sh.
3. Also the nutshell book lex & yacc By John Levine, Tony Mason &
Doug Brown 2nd Edition October 1992 1-56592-000-7 contains a fully
worked example of a syntax checker?? for sql & you can get the source
from ftp://ftp.ora.com/pub/examples/nutshell/lexyacc/progs.tar.Z.
This book is not only a good starting point but also a good reference.
Doug
|---------------------------------------|
| Dr Doug Chappell |
| Department of Biochemistry |
| The University of Sydney, 2006 |
| NSW AUSTRALIA |
| Phone: 61-2-9351-2511 |
| Facsimile: 61-2-9351-4726 |
| Email: D.Chappell@biochem.usyd.edu.au|
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.