Add evaluator with environment and file-based execution
Implements recursive AST evaluator with variable environment, reads .j files from command line args, and executes programs end-to-end (lexer -> parser -> eval).
This commit is contained in:
4
projects/sum.j
Normal file
4
projects/sum.j
Normal file
@@ -0,0 +1,4 @@
|
||||
x = 10
|
||||
y = 5
|
||||
z = x + y
|
||||
print z
|
||||
Reference in New Issue
Block a user