Skip to content

jiefisher/TinyInterpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TinyInterpreter

A simple Interpreter in python, which can excuted codes line by line.

You can write rule like this (test.gl):

def func(x){
    x = x+1;
    b = 8;
    return x+1;
}
a = func(100);
d = func(200);
c = a*d;

Run python3 main.py to use.

Implement

Todo List

  • Basic OP: +, -, *, /, Parentheses
  • ASSIGN OP: =
  • Control Flow
    • function
    • if
  • Array

About

A simple Interpreter in python

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages