Matcheroni, a tiny C++20 header library for building lexers/parsers
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!
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Correct prediction on native model
Similar products
Trkl, a tiny observables library, 383 bytes
Picomatch – A tiny C library for evaluating regular expressions
A stab at building my own string diffing library
Serialize++ – Tiny Data Serialization Library for C++
Bruh – A tiny Functional-Reactive library for the web
A tiny and fast reactive observables library via functions
Fastfile – A tiny library for iterating files repeatedly
D2D Wrapper – Tiny Direct2D wrapper written in C++20
Tiny event emitter library for Java
MicroObservables - a tiny js observables library