Yield of a (sub)parse tree in Rascal -


how can obtain yield of (sub)parse tree in rascal, i.e., text associated subtree? ex., during visit encounter declaration (with java/m3) , want text of declaration. have tried "unparse", gives "does not match of declared (overloaded) signature patterns :unparse(tree)", guess works top sort/starting symbol.

one of simplest solutions using string template , inserting subtree in -- assuming subtree d:

"<d>" 

this automatically unparse d. more sophisticated pretty printing missing on our todo list.


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -