How to Write a Domain-Specific Language (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 lines of code… Read more

Similar

Type-Casting in Python

This quick tutorial will guide on how to change data from one type to another in python. Variables in python have data types just as many other languages. There may be times when you will want to specify or change the data type of a particular variable. (more…)

Read more »