Re: Examples in Lex & Yacc

"Dr Douglas J. Chappell" <>
9 Jan 1997 21:58:37 -0500

          From comp.compilers

Related articles
Examples in Lex & Yacc (Benoist PINCON) (1997-01-03)
Re: Examples in Lex & Yacc (1997-01-04)
Re: Examples in Lex & Yacc (Dr Douglas J. Chappell) (1997-01-09)
| List of all articles for this month |

From: "Dr Douglas J. Chappell" <>
Newsgroups: comp.compilers
Date: 9 Jan 1997 21:58:37 -0500
Organization: Compilers Central
References: 97-01-023
Keywords: translator, yacc, lex 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

2. The source code to the interpreter example (hoc) from Kernighan &
Pike's book "The Unix Programming Environment" is available from Also available at this site
is the source to awk (which includes a grammar in yacc)

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
This book is not only a good starting point but also a good reference.


| Dr Doug Chappell |
| Department of Biochemistry |
| The University of Sydney, 2006 |
| Phone: 61-2-9351-2511 |
| Facsimile: 61-2-9351-4726 |
| Email:|

Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.