coditva / Yaccing

Stop yacking, start yaccing with parser generators!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Stop yacking, start yaccing with parser generators!


Languages

Language:Yacc 58.1%Language:C 22.7%Language:Makefile 10.4%Language:Lex 8.8%