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

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

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