How to view/debug/browse the AST #1173
-
I am a complete newbie to this, so apologies if it is a silly question. Is there some easy way to view the resulting AST from parsing one of my test files for debug purpose? I believe it would be helpful for me to see if Feel free to also suggest alternative ways of debugging. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi there, @BjAlvestad, Just to clarify, I'm not part of the Langium team, so please don't answer as the only choice; you could create your own playground. |
Beta Was this translation helpful? Give feedback.
-
The Playground is the quickest way to show parsed ASTs. To inspect ASTs right from your language server / app, use the JsonSerializer service. For example, you can write the result to a file and inspect the content with an editor or other tool. |
Beta Was this translation helpful? Give feedback.
The Playground is the quickest way to show parsed ASTs.
To inspect ASTs right from your language server / app, use the JsonSerializer service. For example, you can write the result to a file and inspect the content with an editor or other tool.