Lexy: A parser combinator library for C++17
4 days ago
- #Parser
- #DSL
- #C++
- Lexy is a parser combinator library for C++17 and onwards.
- Allows writing parsers using a convenient C++ DSL.
- Provides full control similar to handwritten parsers without manual work.
- No implicit backtracking or lookahead; user-specified conditions.
- Supports manual parsing integration and tracing for debugging.
- Easily integrated with pure C++ DSL and minimal standard library dependencies.
- Designed for text with Unicode support and automatic whitespace skipping.
- Features for programming languages like keyword parsing and error recovery.
- Supports binary input parsing with bytes, bits, and blobs.
- Comparison with other parsers like Boost.Spirit and PEGTL.
- Compilation times and error messages discussed.
- Benchmarks available for performance comparison.
- Documentation and tutorials available at lexy.foonathan.net.