Original author(s) | Robert Corbett |
---|---|
Developer(s) | The GNU Project |
Initial release | June 1985[1] |
Stable release | 3.8.2[2]
/ 25 September 2021 |
Repository | |
Written in | C and m4 |
Operating system | Unix-like |
Type | Parser generator |
License | GPL |
Website | www |
GNU Bison, commonly known as Bison, is a parser generator that is part of the GNU Project. Bison reads a specification in Bison syntax (described as "machine-readable BNF"[3]), warns about any parsing ambiguities, and generates a parser that reads sequences of tokens and decides whether the sequence conforms to the syntax specified by the grammar.
The generated parsers are portable: they do not require any specific compilers. Bison by default generates LALR(1) parsers but it can also generate canonical LR, IELR(1) and GLR parsers.[4]
In POSIX mode, Bison is compatible with Yacc, but also has several extensions over this earlier program, including
Flex, an automatic lexical analyser, is often used with Bison, to tokenise input data and provide Bison with tokens.[5]
Bison was originally written by Robert Corbett in 1985.[1] Later, in 1989, Robert Corbett released another parser generator named Berkeley Yacc. Bison was made Yacc-compatible by Richard Stallman.[6]
Bison is free software and is available under the GNU General Public License, with an exception (discussed below) allowing its generated code to be used without triggering the copyleft requirements of the licence.