summary refs log tree commit diff
path: root/src/parser.zig
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2025-01-08 23:49:27 +0100
committerBaitinq <manuelpalenzuelamerino@gmail.com>2025-01-08 23:49:27 +0100
commitdfa9ef4a951c4d498893a80728aa84734bf33775 (patch)
tree9adafce2199b1407f4a82e3a85b6270bb150cb43 /src/parser.zig
parentMisc: Dont crash REPL if parsing fails (diff)
downloadinterpreter-dfa9ef4a951c4d498893a80728aa84734bf33775.tar.gz
interpreter-dfa9ef4a951c4d498893a80728aa84734bf33775.tar.bz2
interpreter-dfa9ef4a951c4d498893a80728aa84734bf33775.zip
Evaluator: Implement first version of evaluator that handles print statements
Diffstat (limited to 'src/parser.zig')
-rw-r--r--src/parser.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.zig b/src/parser.zig
index 52a34b5..0db089f 100644
--- a/src/parser.zig
+++ b/src/parser.zig
@@ -24,7 +24,7 @@ pub const Node = union(NodeType) { PROGRAM: struct {
     expression: *Node,
 }, PRINT_STATEMENT: struct {
     expression: *Node,
-}, EXPRESSION: union {
+}, EXPRESSION: union(enum) {
     NUMBER: struct {
         value: i64,
     },