aboutsummaryrefslogtreecommitdiff
path: root/ast.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-07-04 16:23:05 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-07-04 16:23:05 -0400
commit9d9fe12987bc8e7c3266ec320d04a97a37c3fb1b (patch)
tree8a79d864f60d81f08a0776b6f85dbab242ecc89a /ast.h
parentd073c10137a1aa8a3d3f5e3a71b22cbb4725b47c (diff)
Add `!!` statement for printing text
Diffstat (limited to 'ast.h')
-rw-r--r--ast.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/ast.h b/ast.h
index 64e88610..f58e8595 100644
--- a/ast.h
+++ b/ast.h
@@ -99,7 +99,7 @@ typedef enum {
Unknown = 0,
Nil, Bool, Var,
Int, Num,
- TextLiteral, TextJoin,
+ TextLiteral, TextJoin, PrintStatement,
Declare, Assign,
BinaryOp, UpdateAssign,
Length, Not, Negative, HeapAllocate, StackReference,
@@ -152,6 +152,9 @@ struct ast_s {
ast_list_t *children;
} TextJoin;
struct {
+ ast_list_t *to_print;
+ } PrintStatement;
+ struct {
ast_t *var;
ast_t *value;
} Declare;