Tag: parser combinators
All the articles with the tag "parser combinators".
Simplifying Whitespace with Lexeme Parsers in Elm
Learn how lexeme parsers simplify whitespace handling in elm/parser by consuming trailing whitespace and keeping parsers close to the grammar.
Why Recursive Elm Parsers Need Parser.lazy
Learn why recursive Elm parsers create cyclic definitions, how Parser.lazy breaks the cycle, and when recursive parsers do and don't need it.
DIFF: Adding Recursive Expressions to a Tiny Interpreter in Elm
Add recursive difference expressions to a tiny Elm interpreter and see how recursion shapes the grammar, AST, parser with lazy, and evaluator.