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!
- Host: GitHub
- URL: https://github.com/coditva/yaccing
- Owner: coditva
- Created: 2018-03-16T15:21:08.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-17T18:04:47.000Z (about 7 years ago)
- Last Synced: 2024-12-28T22:24:49.463Z (5 months ago)
- Topics: bibtexparser, bison, grammar-parser, lex, yacc
- Language: Yacc
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- 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