three-pass-compiler
Solution to the Three Pass Compiler kata on CodeWars, parsing and manipulating a very simple AST (by DylanSp)
yieldparser
Parse using JavaScript generator functions — it’s like components but for parsing! (by JavaScriptRegenerated)
three-pass-compiler | yieldparser | |
---|---|---|
1 | 1 | |
0 | 69 | |
- | - | |
0.0 | 7.3 | |
about 6 years ago | 3 months ago | |
Haskell | TypeScript | |
- | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
three-pass-compiler
Posts with mentions or reviews of three-pass-compiler.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-08-19.
yieldparser
Posts with mentions or reviews of yieldparser.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-08-19.
-
Casual Parsing in JavaScript
I’ve found generator functions work great for parsers. You yield the tokens you expect to be next. The token could be a string, a regular expression to be matched, or another generator function.
The library is open source here, contributions welcome: https://github.com/RoyalIcing/yieldparser
Generator functions have great support in modern browsers (not IE) and Node.js.
For example here’s a simple v4 IP address parser:
import { parse, mustEnd } from 'yieldparser';
function* Digit() {
What are some alternatives?
When comparing three-pass-compiler and yieldparser you can also consider the following projects:
parser - String parser combinators
hyperformula - HyperFormula is an open-source headless spreadsheet for business web apps. It comes with over 400 formulas, CRUD operations, undo-redo, clipboard support, and sorting. Built in TypeScript, supported by the Handsontable Team.
parser-combinators - Parser combinators.
pattern-grab - 🤛🏻 Regular Expression Data Grabber
instaparse
reco - Regular Expression COmpiler - Compile a regex ahead of time to code