diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-07-04 16:23:05 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-07-04 16:23:05 -0400 |
| commit | 9d9fe12987bc8e7c3266ec320d04a97a37c3fb1b (patch) | |
| tree | 8a79d864f60d81f08a0776b6f85dbab242ecc89a /ast.h | |
| parent | d073c10137a1aa8a3d3f5e3a71b22cbb4725b47c (diff) | |
Add `!!` statement for printing text
Diffstat (limited to 'ast.h')
| -rw-r--r-- | ast.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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; |
