Learning Yacc/Bison
Stop yacking, start yaccing!
This is an example parser for BibTeX, made for the Compilers Construction course at BITS Goa. An accompanying blog post can be found here
What is what
parse.y : define the grammar
lex.l : token definitions
types.h : datatypes for the parser
util.c/util.h : utility functions
y.tab.c/y.tab.h : yacc generated grammar parser
lex.yy.c : lex generated token parser
How to
$ make
$ ./bibtex_parser < testcases.txt
$ # or
$ make test
Author
Utkarsh Maheshwari