5 ms·
Are there any books or resources that teach how you would go about using flex, bison and llvm together to create something more substantial. I would find this i
by super_mario 14y ago
Are there any books or resources that teach how you would go about using flex, bison and llvm together to create something more substantial. I would find this incredibly useful.
- arcatek 14y agoYou 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.