pattern-grab
yieldparser
pattern-grab | yieldparser | |
---|---|---|
2 | 1 | |
7 | 69 | |
- | - | |
0.0 | 7.3 | |
over 1 year 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.
pattern-grab
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?
ts-pattern - 🎨 The exhaustive Pattern Matching library for TypeScript, with smart type inference.
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.
jackett-rss-processor - Small service to fetch torrent files from Jackett supplied RSS feeds every 5 minutes based on your regex patterns.
instaparse
REXS - A language for writing regular expressions.
parser - String parser combinators
regex-vis - 🎨 Regex visualizer & editor
reco - Regular Expression COmpiler - Compile a regex ahead of time to code
parser-combinators - Parser combinators.
Revice - High-level regex transpiler and regex doc lib generator
three-pass-compiler - Solution to the Three Pass Compiler kata on CodeWars, parsing and manipulating a very simple AST