Parametrized recursive descent parser in JS
Show HN: Parametrized recursive descent parser in JS
Parametrized recursive descent parser in JS is a business in show hn launch.
Profile
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. :DSomeone 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
Its activity falls under show hn launch; the profile below is assembled from public directory data.
Its current recorded stage is Show HN launch.
| Sector | Show HN launch |
|---|---|
| Stage | Show HN launch |
Website: megous.com/dl/parser/tests/index.html
Browse related
Create a free account