DEV Community

Marianne Writes a Programming Language

From Parse Tree to Evaluator (featuring Sarah Withee)

A parser generator like ANTLR won't handle evaluating programs written in your new language. You need to write the code for that yourself. Marianne explains how to build an AST from a parse tree, create an evaluation loop, and how esolangs (esoteric programming languages) make for great learning tools.

Episode source