https://github.com/johannst/flex-bison-cpp-playground
A playground for some flex/bison experiments in cpp
https://github.com/johannst/flex-bison-cpp-playground
ast bison bison-flex cpp example flex gnu lalr lex lexer lexer-parser parser playground yacc
Last synced: 11 months ago
JSON representation
A playground for some flex/bison experiments in cpp
- Host: GitHub
- URL: https://github.com/johannst/flex-bison-cpp-playground
- Owner: johannst
- License: mit
- Created: 2018-11-29T19:35:30.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-11-18T19:54:10.000Z (about 6 years ago)
- Last Synced: 2025-01-22T01:36:32.929Z (about 1 year ago)
- Topics: ast, bison, bison-flex, cpp, example, flex, gnu, lalr, lex, lexer, lexer-parser, parser, playground, yacc
- Language: Yacc
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## [`flex(1)`][flex] and [`bison(1)`][bison] playground
The purpose of this repository is self-education of `flex` and `bison`.
It contains different exercises:
1. [bare lexer](./01_bare_lexer): a lexer skeleton to tokenize a char stream
2. [simple parser](./02_simple_parser): simple lexer + parser to evaluate add/sub expressions
3. [appa parser](./03_appa_parser): lexer + parser for the language `APPA` invented for this exercise
### License
This project is licensed under [MIT](./LICENSE) license.
[flex]: https://www.gnu.org/software/flex
[bison]: https://www.gnu.org/software/bison