GNU bison

From Wikipedia, the free encyclopedia

GNU bison is a free parser generator computer program written for the GNU project, and available for virtually all common operating systems. It is mostly compatible with Yacc, and offers several improvements over the earlier program. It is commonly used in conjunction with flex, but lexical analysers can also be hand-written or produced by some other automated method.

Bison converts a grammar description for a "Look Ahead Left-to-Right" (LALR) context-free grammar into a C, C++ or Java program which can parse that grammar. It can also produce "Generalized Left-to-Right" (GLR) parsers for ambiguous grammars; in this mode, the parser will simulate multiple LALR automata running in parallel when a conflict occurs.

[edit] External links