Skip to content

Stop yacking, start yaccing with parser generators!

Notifications You must be signed in to change notification settings

coditva/Yaccing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published