Compile Time Parser Generator

After nearly 2 years of trial and error I proudly announce the first release of my beloved child.

A compile time parser generator library.
https://github.com/peter-winter/ctpg

Features include:

  • Header only, c++17 compiler required
  • BNF-like grammar syntax using c++ operator overloading
  • Regular expressions for terminal symbols
  • Custom code execution using functors on rule reductions
  • Generated parser is a constexpr object with LR(1) parser
    and finite state machine lexer
  • The generated parser can run in compile time
  • and some more

Enjoy

(see the readme on github page for details)

Leave a Comment