Kurdeks / jbcc

C compiler written in cpp
4 stars 0 forks source link

Research lexer generator tools #2

Open jkurdek opened 1 month ago

jkurdek commented 1 month ago

Do initial research on lexers generators. Initially look at https://github.com/westes/flex

jkurdek commented 1 month ago

We can use either flex or skip the lexing altogether (#3). Should we want to use flex we can use the following ruleset to generate the lexer: https://www.quut.com/c/ANSI-C-grammar-l-2011.html. I would opt for using both flex and bison.