Skip to content
This repository has been archived by the owner on Nov 1, 2019. It is now read-only.

iafisher/tiny-interpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 

Repository files navigation

A tiny interpreter for a simple programming language. Includes a parser, bytecode compiler, and virtual machine, as well as a full test suite, with no dependencies other than Python 3 and the Python standard library.

>>> let x = 32
>>> x
32
>>> x + 10
42
>>> fn add(x, y) = x + y
>>> add(x, 10)
42
>>> if true then 42 else 666 end
42

The entire interpreter is contained in a single executable Python file, tiny.py.

About

A tiny bytecode interpreter in Python

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages