Tag Archive: Parsing

How to write a DSL (in Python with Lark)

The first time I used Logo, it felt like magic. I could type a short sequence of simple commands, and draw beautifully complex shapes on the screen. In this tutorial, I will show you how to parse and interpret a Logo-like language in just 70... View Article

2 Comments

Python Parsing Ep. II: Antlr Issues

Continuing that post. Before I go on, I wish to make 2 corrections to the code provided in the last post: I think that the grammar for COMMENT is incorrect (in the original too). It requires comments to always end with a new-line. I changed... View Article

Reply