aboutsummaryrefslogtreecommitdiff
path: root/ast.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-03-15 14:22:11 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-03-15 14:22:11 -0400
commitf51acef40e8297d7bd41b774413aa8331ca946ed (patch)
tree56aa02541d60beb3ece496fed2c11afd3ae942f3 /ast.h
parent7a2653501310825e02d99d51fb4b9f1aacc75214 (diff)
Overhaul of Path so it uses root and array of components instead of
stringly typed
Diffstat (limited to 'ast.h')
-rw-r--r--ast.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ast.h b/ast.h
index 76485a28..0b8e7865 100644
--- a/ast.h
+++ b/ast.h
@@ -124,6 +124,7 @@ typedef enum {
None, Bool, Var,
Int, Num,
TextLiteral, TextJoin, PrintStatement,
+ Path,
Declare, Assign,
BinaryOp, UpdateAssign,
Not, Negative, HeapAllocate, StackReference, Mutexed, Holding,
@@ -176,6 +177,9 @@ struct ast_s {
ast_list_t *children;
} TextJoin;
struct {
+ const char *path;
+ } Path;
+ struct {
ast_list_t *to_print;
} PrintStatement;
struct {