From eabff011ea552a4fecc13de129e0a205b77bc289 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 18 Feb 2024 01:27:25 -0500 Subject: Add in '#' operator for length --- ast.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ast.h') 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; -- cgit v1.2.3