2 ms·
I really like Douglas Crockford's Pratt parser which is similar. It doesn't compile down to JS but it's trivial to go from the AST to JS either manually or usin
by aaron-lebo 10y ago
I really like Douglas Crockford's Pratt parser which is similar. It doesn't compile down to JS but it's trivial to go from the AST to JS either manually or using something like escodegen.
Very elegant and easily extensible.
http://javascript.crockford.com/tdop/index.html http://javascript.crockford.com/tdop/index.html