Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

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

README.md

Small_step_interpreter

An interpreter that evaluates a small language written in python syntax.

Valid Syntax

  • exp if test else orelse - If Expression
  • (lambda param: body)(arg) - Function Expression
  • lambda param: body - Lambda Expression
  • R - Number
  • True/ False - Boolean
  • var = expr - Assign

Expr:

  • Expr if Expr else Expr
  • lambda: arg Expr (Expr)
  • Token
  • lambda: arg Expr
  • Numerical Expr
  • Constant

Def

  • Assign

Token A token is a sequence of characters.

Constant

  • True
  • False

Numerical Expr

  • num
  • Numerical Expr OP Numerical Expr

OP

  • /

Values:

  • Bool
  • Num
  • Lambda

About

No description, website, or topics provided.

Resources

Releases

No releases published

Packages

No packages published

Languages