[HN Gopher] Show HN: Matcheroni, a tiny C++20 header library for...
___________________________________________________________________
Show HN: Matcheroni, a tiny C++20 header library for building
lexers/parsers
Howdy HN, as part of my ongoing programming language experiments
I've ended up creating my own C++20 lexing and parsing library of
sorts. Matcheroni is an alternative to parser generators and
regular expressions that uses trees of C++ templates to implement
highly customizable lexers and parsers that have minimal impact on
build times or binary sizes, while still remaining comparable in
performance to Boost regular expressions. The repo includes two
example projects - a simple regex parser in ~300 heavily documented
lines of code, and a much larger but not quite finished C99 lexer
and parser. All feedback appreciated!
Author : aappleby
Score : 12 points
Date : 2023-07-06 22:02 UTC (1 days ago)
(HTM) web link (github.com)
(TXT) w3m dump (github.com)
| stargrazer wrote:
| You may want to compare this against boost/spirit. I use Spirit
| extensively for my own Domain Specific Language parsing
| requirements.
| hoytech wrote:
| Very cool, and I like the name!
|
| I'd be interested in reading about how Matcheroni compares with
| PEGTL and Lexy.
|
| https://github.com/taocpp/PEGTL https://lexy.foonathan.net/
___________________________________________________________________
(page generated 2023-07-07 23:00 UTC)