Replies: 2 comments
-
Not easily as Rhai's AST does not contain all the contextual information required to reconstruct a source text. Mainly this has to do with the That's why the compression feature uses token manipulation instead of writing out and AST as text. |
Beta Was this translation helpful? Give feedback.
0 replies
-
If you're willing to be only about 80% of the way there, then it is not difficult to write. You just have to be careful about parentheses. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Not exactly the best title, I know.
Is it possible to take an AST and turn it back into Source? Not the exact formatting or anything like that, just turn it back into the source code. I have an experiment where I'm modifying the AST and want to show it back to the user.
Beta Was this translation helpful? Give feedback.
All reactions