diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-02-10 15:23:06 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-02-10 15:23:06 -0500 |
| commit | 4e545c67985299dabc2a061160e126068d43541e (patch) | |
| tree | f3b57ff6abd221894f01a4b6b85c068197b83254 /ast.c | |
| parent | 930c09f46d1e249fc889e8f1179046a48c1eaf32 (diff) | |
Better string parsing.
Diffstat (limited to 'ast.c')
| -rw-r--r-- | ast.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -92,8 +92,7 @@ CORD ast_to_cord(ast_t *ast) T(Char, "(\x1b[35m'%c'\x1b[m)", data.c) T(StringLiteral, "\x1b[35m\"%s\"\x1b[m", data.str) T(StringJoin, "(%r)", ast_list_to_cord(data.children)) - T(Interp, "(%r)", ast_to_cord(data.value)) - T(Declare, "(var=%s, value=%s)", ast_to_cord(data.var), ast_to_cord(data.value)) + T(Declare, "(var=%s, value=%r)", ast_to_cord(data.var), ast_to_cord(data.value)) 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)) |
