6 ms·
You can check my WIP language for an example. The following is the repository where every component (lexer, parser, compiler, running-time library) is in its ow
by arcatek 14y ago
You can check my WIP language for an example. The following is the repository where every component (lexer, parser, compiler, running-time library) is in its own module.
https://github.com/castel/libcastel https://github.com/castel/libcastel
According to my experience on this language, I would recommand you ragel and lemon over flex and bison. They are very, very easy to bundle into a C++ application, without messing too much with the global symbol namespace.
A nice example is the Castel lexer, which is actually a preprocessed C++ source file : https://github.com/castel/libcastel/blob/master/parse/sources/lex/Lexer.rl https://github.com/castel/libcastel/blob/master/parse/source...
- super_mario 14y agoThanks for pointing this out. I will definitely check them out.