Closed NeoVG closed 5 days ago
Currently there is no standard way to convert a Lark tree into a dict/list/json, and so I don't know what the reverse would look like.
But I believe you could write a custom function in a few lines. Let me know if you need advice on that.
Sorry for the late response.
Hello everybody.
Is there a canonical way to implement something like a transformer, but in reverse? Basically something where I can feed a
dict
orlist
into and get aTree
back, which I then can feed intoReconstructor().reconstruct()
to generate text.Thanks in advance!