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: 19 days ago
JSON representation
Stop yacking, start yaccing with parser generators!
- Host: GitHub
- URL: https://github.com/coditva/yaccing
- Owner: coditva
- Created: 2018-03-16T15:21:08.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-17T18:04:47.000Z (almost 8 years ago)
- Last Synced: 2025-05-20T10:45:13.786Z (9 months ago)
- Topics: bibtexparser, bison, grammar-parser, lex, yacc
- Language: Yacc
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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