aboutsummaryrefslogtreecommitdiff
path: root/ast.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-12-18 14:44:37 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-12-18 14:44:37 -0500
commitc6c7cc727290663e50b8a4d28e92214fa805ca95 (patch)
treea4f77690d44fedd445178a701969101030790a06 /ast.h
parentaa262344712be27afc02441a309ddde03fa2bec9 (diff)
Revert "Deprecate "&" for stack references"
This reverts commit 41c0ea851a542bcd7d54b8c5c06d70e1e00095e1.
Diffstat (limited to 'ast.h')
-rw-r--r--ast.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/ast.h b/ast.h
index 82d4de03..56876665 100644
--- a/ast.h
+++ b/ast.h
@@ -99,7 +99,7 @@ struct type_ast_s {
} VarTypeAST;
struct {
type_ast_t *pointed;
- bool is_view:1;
+ bool is_stack:1;
} PointerTypeAST;
struct {
type_ast_t *item;
@@ -128,7 +128,7 @@ typedef enum {
TextLiteral, TextJoin, PrintStatement,
Declare, Assign,
BinaryOp, UpdateAssign,
- Not, Negative, HeapAllocate,
+ Not, Negative, HeapAllocate, StackReference,
Min, Max,
Array, Channel, Set, Table, TableEntry, Comprehension,
FunctionDef, Lambda,
@@ -194,7 +194,7 @@ struct ast_s {
} BinaryOp, UpdateAssign;
struct {
ast_t *value;
- } Not, Negative, HeapAllocate;
+ } Not, Negative, HeapAllocate, StackReference;
struct {
ast_t *lhs, *rhs, *key;
} Min, Max;