Closed jkurdek closed 1 hour ago
Parsing with bison:
Using existing parse.y could be a good idea. With the once you posted we do not need to use separate lexer as bison will do the job of the both of them.
Alternatively we can use both flex and bison. Those two should do the job: https://www.quut.com/c/ANSI-C-grammar-y-2011.html https://www.quut.com/c/ANSI-C-grammar-l-2011.html
Do initial research on parser generators. Look at https://www.gnu.org/software/bison/