Noeud « Next »: , Noeud « Previous »: Valgrind, Noeud « Up »: Tools



5.6 Flex & Bison

We use Bison 1.875c which is able to produce a C++ parser. This Bison is unpublished, as the maintainers still have issues to fix. Nevertheless, it is usable, and perfectly functional for Tiger. It is installed in ~akim/bin, under the name bison. Be aware that Bison 1.875 produces buggy C++ parsers.

If you don't use this Bison, you will be in trouble. If you are willing to work at home, use bison-1.875a.tar.bz2.

The original papers on Lex and Yacc are:

Johnson, Stephen C. [1975].
Yacc: Yet Another Compiler Compiler. Computing Science Technical Report No. 32, Bell Laboratories, Murray hill, New Jersey.
Lesk, M. E. and E. Schmidt [1975].
Lex: A Lexical Analyzer Generator. Computing Science Technical Report No. 39, Bell Laboratories, Murray Hill, New Jersey.

These introductory guides can help beginners:

Thomas Niemann.
A Compact Guide to Lex & Yacc.

An introduction to Lex and Yacc.

Collective Work
Programming with GNU Software.

Contains information about Autoconf, Automake, Gperf, Flex, Bison, and GCC.

The Bison documentation, and the Flex documentation are available for browsing.