I realized that parse-tree-il uses source-properties to fill the location slots in the tree-il AST elements, while unparse-tree-il doesn't set source-properties on the resulting list values.
This patch preserves the source-properties in the unparse-tree-il transformation so it should now be possible to translate back and forth. Holger Peters (1): Preserve source properties in unparse-tree-il module/language/tree-il.scm | 75 +++++++++++++++++++++---------------- 1 file changed, 42 insertions(+), 33 deletions(-) -- 2.28.0