Re:Show HN: A self-hosted js compiler in 1k loc
by aaron-lebo on Friday February 10, 2017 @02:05PM
(#13617945)
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