31

Creating Your Own Programming Language – Laurence Tratt [video]

Coincidentally just saw this video a few days ago.

Interesting approach, to use RPN for expressions, including for the condition in the while statement.

I could understand most of the logic of the interpreter, except for the part about how the while statement is implemented.

I understood the part up to where he scans downward line by line looking for the "end" token that closes the while block. It is the part just after that, where he scans upward, which I could not understand clearly.