Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 445 Bytes

README.md

File metadata and controls

12 lines (10 loc) · 445 Bytes

JetBrains-Interpreter

Interpreter of a simple toy language with the following grammar I created for my internship application at JetBrains

expr ::= expr op expr | (expr) | var | { expr, expr } | number |
map(expr, var -> expr) | reduce(expr, expr, var var -> expr)
op ::= + | - | * | / | ^
stmt ::= var identifier = expr | out expr | print “string”
program ::= stmt | program stmt

Screenshot of the Interpreter