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
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
$ make
$ ./bibtex_parser < testcases.txt
$ # or
$ make test
Utkarsh Maheshwari