aboutsummaryrefslogtreecommitdiff
path: root/ast.c
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.c
parent733ebfd234906aac08a66e6c2ebe7ed2a0c4d375 (diff)
Add in '#' operator for length
Diffstat (limited to 'ast.c')
-rw-r--r--ast.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ast.c b/ast.c
index 37ce837b..753066cf 100644
--- a/ast.c
+++ b/ast.c
@@ -94,6 +94,7 @@ CORD ast_to_cord(ast_t *ast)
T(Assign, "(targets=%r, values=%r)", ast_list_to_cord(data.targets), ast_list_to_cord(data.values))
T(BinaryOp, "(%r, %s, %r)", ast_to_cord(data.lhs), OP_NAMES[data.op], ast_to_cord(data.rhs))
T(UpdateAssign, "(%r, %s, %r)", ast_to_cord(data.lhs), OP_NAMES[data.op], ast_to_cord(data.rhs))
+ T(Length, "(%r)", ast_to_cord(data.value))
T(Negative, "(%r)", ast_to_cord(data.value))
T(Not, "(%r)", ast_to_cord(data.value))
T(HeapAllocate, "(%r)", ast_to_cord(data.value))