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:
Jose Luis Montañes Ojados
2026-02-16 02:08:54 +01:00
parent e2896fac5b
commit 01740d4892
4 changed files with 116 additions and 24 deletions

View File

@@ -1 +1 @@
x = 1
x = 1

4
projects/sum.j Normal file
View File

@@ -0,0 +1,4 @@
x = 10
y = 5
z = x + y
print z