diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2025-01-08 23:49:27 +0100 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2025-01-08 23:49:27 +0100 |
commit | dfa9ef4a951c4d498893a80728aa84734bf33775 (patch) | |
tree | 9adafce2199b1407f4a82e3a85b6270bb150cb43 /src/parser.zig | |
parent | Misc: Dont crash REPL if parsing fails (diff) | |
download | interpreter-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.zig | 2 |
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, }, |