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.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ast.c') 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)) -- cgit v1.2.3