aboutsummaryrefslogtreecommitdiff
path: root/ast.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-02-18 01:27:25 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-02-18 01:27:25 -0500
commiteabff011ea552a4fecc13de129e0a205b77bc289 (patch)
tree21fd0c14e9d7dcadab6d3e3339193476eb850793 /ast.h
parent733ebfd234906aac08a66e6c2ebe7ed2a0c4d375 (diff)
Add in '#' operator for length
Diffstat (limited to 'ast.h')
-rw-r--r--ast.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ast.h b/ast.h
index ab88aec5..4db7b38a 100644
--- a/ast.h
+++ b/ast.h
@@ -88,7 +88,7 @@ typedef enum {
StringLiteral, StringJoin,
Declare, Assign,
BinaryOp, UpdateAssign,
- Not, Negative, HeapAllocate, StackReference,
+ Length, Not, Negative, HeapAllocate, StackReference,
Min, Max,
Array, Table, TableEntry,
FunctionDef, Lambda,
@@ -150,7 +150,7 @@ struct ast_s {
} BinaryOp, UpdateAssign;
struct {
ast_t *value;
- } Not, Negative, HeapAllocate, StackReference;
+ } Length, Not, Negative, HeapAllocate, StackReference;
struct {
ast_t *lhs, *rhs, *key;
} Min, Max;