Pa

Parametrized recursive descent parser in JS

Hacker News

Parametrized recursive descent parser in JS

I wrote an abstract recursive descent parser in JS which accepts an array of terminal (in regexp form, or as a list of string literals) and a list of non-terminal definitions and returns the function that will parse the text. The parser "generator" has just 125 lines of code and it is an extremely lightweight solution to quickly produce purpose made languages in the browser without need for any tooling. Together with `` template strings to write your custom made language code in, it makes for a lot of fun in JS. :D Someone asked for the code in the recent thread about parsers. You need to search for it a bit though. CTRL+U :) https://megous.com/dl/parser/tests/index.html

Share card

Actual performance

2points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Strong signals: para · Missing: supports, reddit linkedin, podcasting
61%61% 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 NewsMay not resonate with HN audience · Strong signals: io · Missing: https docs, excited, just released
47%47% 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 HuntUnlikely to reach the leaderboard · Strong signals: code · Missing: mac, agents, macos
45%45% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
44%44% predicted probability of success on AppSumo, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Strong signals: para · Missing: mobile apps, ios, personal
27%27% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Strong signals: arr · Missing: mrr, revenue, profit
13%13% 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
2%2% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

He
Header-only, extensible C++17 argument parser50%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Header-only, extensible C++17 argument parser

Hacker News21
Pq
Pq, a unixy generic protobuf parser31%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Pq, a unixy generic protobuf parser

Hacker News6
JM
JMeter JTL Parser in Go42%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

JMeter JTL Parser in Go

Hacker News1
St
Strongly-Typed Parser Combinators for Dart44%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Strongly-Typed Parser Combinators for Dart

Hacker News1
Ye
Yet Another Argument Parser for C++42%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Yet Another Argument Parser for C++

Hacker News1
NB
NBT/Anvil Parser in Emojicode42%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

NBT/Anvil Parser in Emojicode

Hacker News1
Sp
Sparser – A Multilanguage Parser63%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Sparser – A Multilanguage Parser

Hacker News65
Py
PyIng – Ingredient parser63%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

PyIng – Ingredient parser

Hacker News107
Na
Naja-Verilog – Structural Verilog Parser29%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Naja-Verilog – Structural Verilog Parser

Hacker News17
Cr
Cron::Parser59%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Cron::Parser

Hacker News1