Bison is an actively used grammar language created in 1985. GNU bison, commonly known as Bison, is a parser generator that is part of the GNU Project. Bison reads a specification of a context-free language, warns about any parsing ambiguities, and generates a parser (either in C, C++, or Java) which reads sequences of tokens and decides whether the sequence conforms to the syntax specified by the grammar. Bison by default generates LALR parsers but can also create GLR parsers. Read more on Wikipedia...
- Bison ranks in the top 10% of languages
- the Bison website
- the Bison wikipedia page
- Bison first appeared in 1985
- file extensions for Bison include bison
- See also: c, m4, java, yacc, ruby, php, go, bash, lilypond, postgresql, mysql, octave
- I have 58 facts about Bison. what would you like to know? email me and let me know how I can help.
Example code from Wikipedia:
# Makefile FILES = Lexer.c Parser.c Expression.c main.c CC = g++ CFLAGS = -g -ansi test: $(FILES) $(CC) $(CFLAGS) $(FILES) -o test Lexer.c: Lexer.l flex Lexer.l Parser.c: Parser.y Lexer.c bison Parser.y clean: rm -f *.o *~ Lexer.c Lexer.h Parser.c Parser.h test
Last updated December 4th, 2019