Skip to content
/ mini Public
forked from keleshev/mini

Mini: Interpreter and a programming language implemented in Python

License

Notifications You must be signed in to change notification settings

iansparks/mini

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mini: Compiler and a programming language implemented in Python

Inspired by the screencast by Vladimir Keleshev :

How to write an interpreter in Python.

and the source for his Mini interpreter in github :

https://github.com/keleshev/mini

This version implements the same language but uses the Python AST module to generate an AST and compile it into a Python code object. This can then be used to evaluate expressions.

Since Python makes the distinction between statements and expressions I provide a compile(source) method and an eval(source) method. See the tests (which I converted to Unittest).

It uses:

About

Mini: Interpreter and a programming language implemented in Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%