reco
yieldparser
Our great sponsors
reco | yieldparser | |
---|---|---|
5 | 1 | |
16 | 69 | |
- | - | |
0.0 | 7.3 | |
about 3 years ago | 3 months ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
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.
reco
-
Regular Expression COmpiler - Compile a regex ahead of time to code
It seems a little weird to me that they start out targeting JS, though. Look at one of the sample generated files -- it has a little comment at the top that has the tiny regex it was generated from. I'd be shocked if that's actually faster -- that's a lot for v8 to parse and optimize, and you're hoping it'll parse/optimize it into better code than it would parsing/optimizing a tiny regex?
- Reco - Compile regular expressions to code
yieldparser
-
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?
REXS - A language for writing regular expressions.
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.
compile-time-regular-expressions - Compile Time Regular Expression in C++
pattern-grab - 🤛🏻 Regular Expression Data Grabber
instaparse
Revice - High-level regex transpiler and regex doc lib generator
parser - String parser combinators
regcode - 🔷 Create regular expressions easily with code
parser-combinators - Parser combinators.
UltimateRegexResource - 📝 The ultimate collection of regex syntax and resources to power up your programming!
three-pass-compiler - Solution to the Three Pass Compiler kata on CodeWars, parsing and manipulating a very simple AST