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

iafisher/tiny-interpreter

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

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