Ma

Matcheroni, a tiny C++20 header library for building lexers/parsers

Hacker News

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 card

Actual performance

96points
12comments
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Strong signals: para · Missing: supports, reddit linkedin, podcasting
76%76% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Hacker NewsStrong engagement from HN community · Strong signals: io · Missing: https docs, excited, just released
66%66% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
Product HuntOn track for Day 1 leaderboard · Strong signals: tiny, code · Missing: mac, agents, macos
51%51% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Strong signals: para · Missing: mobile apps, ios, personal
50%50% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
41%41% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
20%20% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
1%1% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Tr
Trkl, a tiny observables library, 383 bytes63%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Trkl, a tiny observables library, 383 bytes

Hacker News2
Pi
Picomatch – A tiny C library for evaluating regular expressions56%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Picomatch – A tiny C library for evaluating regular expressions

Hacker News4
A
A stab at building my own string diffing library76%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A stab at building my own string diffing library

Hacker News29
Se
Serialize++ – Tiny Data Serialization Library for C++48%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Serialize++ – Tiny Data Serialization Library for C++

Hacker News37
Br
Bruh – A tiny Functional-Reactive library for the web62%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Bruh – A tiny Functional-Reactive library for the web

Hacker News2
A
A tiny and fast reactive observables library via functions61%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A tiny and fast reactive observables library via functions

Hacker News72
Fa
Fastfile – A tiny library for iterating files repeatedly54%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Fastfile – A tiny library for iterating files repeatedly

Hacker News3
D2
D2D Wrapper – Tiny Direct2D wrapper written in C++2050%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

D2D Wrapper – Tiny Direct2D wrapper written in C++20

Hacker News2
Ti
Tiny event emitter library for Java36%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Tiny event emitter library for Java

Hacker News2
Mi
MicroObservables - a tiny js observables library58%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

MicroObservables - a tiny js observables library

Hacker News2