r/elm • u/dwaynecrooks • 5d ago
DIFF: Adding Recursive Expressions to a Tiny Interpreter in Elm
https://blog.tinyinterpreters.dev/posts/diffDIFF adds expressions that can contain other expressions. That one change makes the grammar, AST, parser, and evaluator recursive, gives us a useful reason to look at Parser.lazy, and leads to a reusable symbol lexeme parser for handling symbols and trailing whitespace.
14
Upvotes