An open API service indexing awesome lists of open source software.

https://github.com/coditva/yaccing

Stop yacking, start yaccing with parser generators!
https://github.com/coditva/yaccing

bibtexparser bison grammar-parser lex yacc

Last synced: 4 months ago
JSON representation

Stop yacking, start yaccing with parser generators!

Awesome Lists containing this project

README

        

## 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](https://utkarshme.github.io/blog/milking-the-yacc/)

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

### Author
Utkarsh Maheshwari