Source file generation from parsed tree #4216
Unanswered
NilsBaumgartner1994
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Maybe i oversee something but in some threads its mentioned, that it is super easy to print the parsed CST back to a source file.
My purpose is to parse a source file, manipulate the resulting CST and the convert the CST back to a source file. I am trying to do this for a Java Grammar in JavaScript/TypeScript. Maybe someone has a nice method which i totally missed.
Currently this is my code parsing a simple Java "file":
Beta Was this translation helpful? Give feedback.
All reactions