Modifying AST using MPS Follow
I came to know about MPS that, using MPS we can edit AST directly using Projectional Editor, a great tool. What my doubt is, can we modify AST programmatically using MPS? Or is there any API or Tool using with we can modify AST?
Please sign in to leave a comment.
Yes, you have full programmatic access to the AST inside MPS. You either use a dedicated "smodel" language, or the underlying Java API.
- https://confluence.jetbrains.com/display/MPSD20172/SModel+language
- https://confluence.jetbrains.com/display/MPSD20172/Open+API+-+accessing+models+from+code
Vaclav