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.

Podden och tillhörande omslagsbild på den här sidan tillhör Marianne Bellotti. Innehållet i podden är skapat av Marianne Bellotti och inte av, eller tillsammans med, Poddtoppen.

Marianne Writes a Programming Language

From Parse Tree to Evaluator (featuring Sarah Withee)

00:00