diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-03-15 14:22:11 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-03-15 14:22:11 -0400 |
| commit | f51acef40e8297d7bd41b774413aa8331ca946ed (patch) | |
| tree | 56aa02541d60beb3ece496fed2c11afd3ae942f3 /ast.c | |
| parent | 7a2653501310825e02d99d51fb4b9f1aacc75214 (diff) | |
Overhaul of Path so it uses root and array of components instead of
stringly typed
Diffstat (limited to 'ast.c')
| -rw-r--r-- | ast.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -108,6 +108,7 @@ CORD ast_to_xml(ast_t *ast) T(Num, "<Num>%g</Num>", data.n) T(TextLiteral, "%r", xml_escape(data.cord)) T(TextJoin, "<Text%r>%r</Text>", data.lang ? CORD_all(" lang=\"", data.lang, "\"") : CORD_EMPTY, ast_list_to_xml(data.children)) + T(Path, "<Path>%s</Path>", data.path) T(Declare, "<Declare var=\"%r\">%r</Declare>", ast_to_xml(data.var), ast_to_xml(data.value)) T(Assign, "<Assign><targets>%r</targets><values>%r</values></Assign>", ast_list_to_xml(data.targets), ast_list_to_xml(data.values)) T(BinaryOp, "<BinaryOp op=\"%r\">%r %r</BinaryOp>", xml_escape(OP_NAMES[data.op]), ast_to_xml(data.lhs), ast_to_xml(data.rhs)) |
