3 ms·
PEG.js is definitely fun to prototype ideas in the browser. My new love is Parsec [1] + doctest [2]. You start building simple little parsers, and build on to
by munro 12y ago
PEG.js is definitely fun to prototype ideas in the browser.
My new love is Parsec [1] + doctest [2]. You start building simple little parsers, and build on top of them, plus inline testing makes it easy to write the parsers correctly. Also Haskell's algebraic datatypes and pattern matching make it nice to build and work with the AST. <3
[1] https://wiki.haskell.org/Parsec https://wiki.haskell.org/Parsec
[2] https://hackage.haskell.org/package/doctest https://hackage.haskell.org/package/doctest