Handling ParseError in DSL using RascalMPL
In rascal, when my DSL has a parse error, how can I be able to detail what likely caused the syntax/parse error, since the ParseError
exception just wraps the location of the issue in the file? Any resource will be valuable, Thanks.
Ambiguity issues with 0.11.2 version of the vscode extension
Ever since I updated the vscode extension of rascal to version 0.11.2, I have been getting ambiguity warnings and errors when I try to test my syntax. I downgraded back to 0.11.1 and it works as it used to. I even tried it with other previous versions of the extension and they work like they should. What could be the cause?
Querying TypePal TModel in Rascal (code generation)
Is there a way to Query the typepal’s tmodel to facilitate code generation? How does that look like?
Making Rascal AST visible in DSL
I am working on adding macros to my DSL. I want to know if it’s possible to make the Rascal AST of my DSL accessible at the DSL layer so I can reference the AST directly. For example: