CTPG, new 1.3.7 version with couple of cool new features including:
- context parsing
- skip newline option
- 'construct' functor helper
- cleaned up CI and cmake build system
Also you can financially support me now if you like what I do:
https://t.co/UtCZxoOlMi
@lefticus@beached_whale I've heard of somthing like ctpg, on some c++ podcast :)
Seriously, there is a ready for use constexpr json parser in the examples. I'm notsure what you mean by API compatibility.
Hi everyone.
Thanks to https://t.co/AQsj54pyAx now we can pass external context to the parser.
See for yourself:
https://t.co/BEZqYhHlhA
https://t.co/7XVQG600YH
#ctpg
Hi everyone.
Thanks to https://t.co/AQsj54pyAx now we can pass external context to the parser.
See for yourself:
https://t.co/BEZqYhHlhA
https://t.co/7XVQG600YH
#ctpg
Episode 332 of CppCast is live! In this episode @robwirving and @lefticus are joined by @winter_dev to talk about his #Cplusplus Compile Time Parser Generator! Listen Now! https://t.co/WXFSMy3jS2
By popular demand I created a proper cmake build system for Compile Time Parser Generator.
So far gcc and clang are supported.
It should also be possible to use CTPG in other projects using cmake.
https://t.co/QqVWAocBuW
#ctpg
New major version of my Compile-Time Parser Generator is here:
https://t.co/QqVWAocBuW
Now with a shiny new error recovery feature:
https://t.co/VyM6iOvP7k
Cheers!
@foonathan This may interest you:
https://t.co/QqVWAocBuW
Compile time parser generator. It generates LR(1) parser from a c++ code in compile time.
Lexical analyzer supports regex'es and converts them to a FSM.
Anyone interrested, please take a look at a simplified HTML parser example in CTPG.
https://t.co/0JKAW2HF2o
The fact that the parser is defined entirely in c++ allows interesting tricks, like auto generating terminals and rules.
@CharlesOfria Verbose mode is set in parse_options.
Diagnostic output is done through write_diag_str on the parser (last chapter in the readme). Diagnostic output is a detailed description of all possible parser and lexer states.