Simple question: in Rascal how does one access annotations of descendants of a node? GetTraversalContextNodes() returns upstream nodes -- "myContext[-1]" doesn't work. getChildren() returns a list of children, but the list is a list of values. The Name@Annotation syntax requires that "Name" be a node. What magic do you do on "Name" to get it to refer to a node?
相关问题
- Rascal: what does the bool collectBindings in crea
- Extracting class dependencies from Eclipse project
- Rascal ambiguity not resolved by disambiguation ru
- Accessing downstream annotations of a node in Rasc
- Is this reserve declaration hard to understand or
相关文章
- 导出流氓项目JAR文件(Export a Rascal project to a JAR file)
- 从REPL外运行一个流氓程序(Running a Rascal program from outsi
- 是否有可能运行在命令行无赖程序?(Is it possible to run rascal prog
- 请问流氓Java方法AST还包含用于调用带有参数的超超()体现在哪里?(Does Rascal Ja
- 如何防止rascal_builder从每一个运行保存在Eclipse IDE(How to prev
- Accessing downstream annotations of a node in Rasc
- Is this reserve declaration hard to understand or
- Export a Rascal project to a JAR file
If you just want the children that are themselves nodes, you could use code like the following:
This would get back all the children, filtering out any that are not of type
node
.