Back to Browse

Let's Write an Interpreter (in 168 Lines of Python)

11.2K views
Jan 7, 2022
17:19

I explain the inner workings of a computer language interpreter that features code blocks, error messages, comments, integer and string variables, math expressions, if-else, while-break, print, input, and subroutine calls. I build on the fantastic work by Jack W. Crenshaw. The interpreter only uses low-level Python. "Let's Build a Compiler" by Jack W. Crenshaw: https://compilers.iecc.com/crenshaw/ Minimal UART CPU System on GitHub: https://github.com/slu4coder/Minimal-UART-CPU-System https://github.com/slu4coder/Minimal-UART-CPU-System/tree/main/Min%20Language Minimal User Manual and Reference: https://docs.google.com/document/d/1c2ZHtLd1BBAwcBAjBZZJmCA3AXpbpv80dlAtsMYpuF4/edit?usp=sharing

Download

1 formats

Video Formats

360pmp426.3 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Let's Write an Interpreter (in 168 Lines of Python) | NatokHD