diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-03-17 14:46:36 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-03-17 14:46:36 -0400 |
| commit | 993284153011006a1164b4b1f6bb1522e5131cb0 (patch) | |
| tree | b34793189363b6b314d2e69f2c7b1ea6249576c2 /ast.c | |
| parent | 5c2bb00bafa4ad6e004f171687b9f21a824695c6 (diff) | |
Improve comprehensions for both arrays and tables
Diffstat (limited to 'ast.c')
| -rw-r--r-- | ast.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -116,6 +116,8 @@ CORD ast_to_cord(ast_t *ast) ast_to_cord(data.fallback), ast_to_cord(data.default_value), ast_list_to_cord(data.entries)) T(TableEntry, "(%r => %r)", ast_to_cord(data.key), ast_to_cord(data.value)) + T(Comprehension, "(expr=%r, key=%r, value=%r, iter=%r, filter=%r)", ast_to_cord(data.expr), + ast_to_cord(data.key), ast_to_cord(data.value), ast_to_cord(data.iter), ast_to_cord(data.filter)) T(FunctionDef, "(name=%r, args=%r, ret=%r, body=%r)", ast_to_cord(data.name), arg_list_to_cord(data.args), type_ast_to_cord(data.ret_type), ast_to_cord(data.body)) T(Lambda, "(args=%r, body=%r)", arg_list_to_cord(data.args), ast_to_cord(data.body)) |
