63 lines
3.1 KiB
HTML
63 lines
3.1 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
|
|
<TITLE>Lex and YACC primer/HOWTO: Further reading</TITLE>
|
|
<LINK HREF="Lex-YACC-HOWTO-9.html" REL=next>
|
|
<LINK HREF="Lex-YACC-HOWTO-7.html" REL=previous>
|
|
<LINK HREF="Lex-YACC-HOWTO.html#toc8" REL=contents>
|
|
</HEAD>
|
|
<BODY>
|
|
<A HREF="Lex-YACC-HOWTO-9.html">Next</A>
|
|
<A HREF="Lex-YACC-HOWTO-7.html">Previous</A>
|
|
<A HREF="Lex-YACC-HOWTO.html#toc8">Contents</A>
|
|
<HR>
|
|
<H2><A NAME="s8">8. Further reading</A></H2>
|
|
|
|
<P>GNU YACC (Bison) comes with a very nice info-file (.info) which documents
|
|
the YACC syntax very well. It mentions Lex only once, but otherwise it's
|
|
very good. You can read .info files with Emacs or with the very nice
|
|
tool 'pinfo'. It is also available on the GNU site:
|
|
<A HREF="http://www.gnu.org/manual/bison/">BISON Manual</A>.
|
|
<P>Flex comes with a good manpage which is very useful if you already
|
|
have a rough understanding of what Flex does. The
|
|
<A HREF="http://www.gnu.org/manual/flex/">Flex Manual</A> is also
|
|
available online.
|
|
<P>After this introduction to Lex and YACC, you may find that you need more
|
|
information. I haven't read any of these books yet, but they sound good:
|
|
<DL>
|
|
<DT><B>Bison-The Yacc-Compatible Parser Generator</B><DD><P>By Charles Donnelly and Richard Stallman. An
|
|
<A HREF="http://www.amazon.com/exec/obidos/ASIN/0595100325/qid=989165194/sr=1-2/ref=sc_b_3/002-7737249-1404015">Amazon</A>
|
|
user found it useful.
|
|
<P>
|
|
<DT><B>Lex & Yacc</B><DD><P>By John R. Levine, Tony Mason and Doug Brown. Considered to be the standard
|
|
work on this subject, although a bit dated. Reviews over at
|
|
<A HREF="http://www.amazon.com/exec/obidos/ASIN/1565920007/ref=sim_books/002-7737249-1404015">Amazon</A>.
|
|
<DT><B>Compilers : Principles, Techniques, and Tools</B><DD><P>By Alfred V. Aho, Ravi Sethi, Jeffrey D. Ullman. The 'Dragon Book'. From
|
|
1985 and they just keep printing it. Considered the standard work on
|
|
constructing compilers.
|
|
<A HREF="http://www.amazon.com/exec/obidos/ASIN/0201100886/ref=sim_books/002-7737249-1404015">Amazon</A></DL>
|
|
<P>
|
|
<P>Thomas Niemann wrote a document discussing how to write compilers and
|
|
calculators with Lex & YACC. You can find it
|
|
<A HREF="http://epaperpress.com/y_man.html">here</A>.
|
|
<P>The moderated usenet newsgroup comp.compilers can also be very useful but
|
|
please keep in mind that the people there are not a dedicated parser
|
|
helpdesk! Before posting, read their interesting
|
|
<A HREF="http://compilers.iecc.com/">page</A> and especially the
|
|
<A HREF="http://compilers.iecc.com/faq.txt">FAQ</A>.
|
|
<P>Lex - A Lexical Analyzer Generator by M. E. Lesk and E. Schmidt is one of
|
|
the original reference papers. It can be found
|
|
<A HREF="http://www.cs.utexas.edu/users/novak/lexpaper.htm">here</A>.
|
|
<P>Yacc: Yet Another Compiler-Compiler by Stephen C. Johnson is one of the
|
|
original reference papers for YACC. It can be found
|
|
<A HREF="http://www.cs.utexas.edu/users/novak/yaccpaper.htm">here</A>.
|
|
It contains useful hints on style.
|
|
<P>
|
|
<HR>
|
|
<A HREF="Lex-YACC-HOWTO-9.html">Next</A>
|
|
<A HREF="Lex-YACC-HOWTO-7.html">Previous</A>
|
|
<A HREF="Lex-YACC-HOWTO.html#toc8">Contents</A>
|
|
</BODY>
|
|
</HTML>
|