AST View
Is it possible to view AST of a source code in MPS.
eg
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World");
}
}
Then it will show the AST.
One more doubt is if the above one is possible in which file it will save in workspace
Please sign in to leave a comment.
Rahul, if I understood you correctly, here's an explanation: "Viewing" the AST is pretty simple as the source code you see in the editor is not text, but a projection of the AST. You can use the node explorer to view the ASTs structure (hit alt+F12). The Fast Track to MPS is a good starting point for learning more about MPS and its idea.