Skip to content

From parser to interpreter

Intro

Together with Federico Tomassetti from Strumenta, we see parsers in action.

After an overview of the types of problems that Language Engineering applications solve, we see how in most cases it is preferable to start from an Abstract Syntax Tree (using Pylasu) rather than from the Parse Tree provided by ANTLR. Subsequently, we learn how to write a real interpreter, following the example code that has been prepared.

Federico is the founder of Strumenta, specializing in linguistic engineering services for the creation of DSLs, programming languages, editors, compilers, interpreters, debuggers, and simulators.

Material

📚 Repository:

Github

📚 Slides:

➡️ https://github.com/PythonBiellaGroup/ANTLR/blob/main/slides/ANTLR-02.pdf

📚 Pylasu

➡️ https://github.com/Strumenta/pylasu

📚 Docs on Pylasu

➡️ https://starlasu.strumenta.com/

📚 Strumenta community

➡️ https://strumenta.community/

📚 ANTLR Mega Tutorial

➡️ https://tomassetti.me/antlr-mega-tutorial/

Meetup video