SDA SE Wiki

Software Engineering for Smart Data Analytics & Smart Data Analytics for Software Engineering

User Tools

Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
research:jtransformer:api:meta:meta-model:ast_sub_tree [2011/02/15 15:19]
Günter Kniesel
research:jtransformer:api:meta:meta-model:ast_sub_tree [2018/05/09 01:59] (current)
Line 1: Line 1:
 +{{page>​languageMetamodelHeader&​fullpage&​nofooter}}
  
 + -> [[..:​..:​notation|Notation used in the following]]
 +
 +**ast_sub_tree**(?​Language,​ ?​ArgumentName) is nondet
 +  * In all nodes of the AST of language arg1, the argument with
 +    name arg2 refers to a subtree of the respective AST node. 
 +    For instance, in the Java AST arguments named ''​ref''​ are references.:​
 +<Code lang-prolog> ​
 +    ast_sub_tree('​Java',​ expr). ​
 +    ast_sub_tree('​Java',​ args).
 +</​Code>​
 +  * In particular, the ''​expr''​ argument used above in the definition of ''​callT''​ denotes
 +    the child expression that represents the message receiver and the ''​args''​ argument
 +    denotes the list of identities of the expressions representing message arguments.  ​
 +  * The ''​ast_sub_tree/​2''​ declarations allow language-independent ​
 +    top down traversal of an AST. Language independent bottom up traversals are supported ​
 +    by the convention that the second argument of every AST
 +    node has the name ''​parent''​ and refers to the parent node.
 +   
research/jtransformer/api/meta/meta-model/ast_sub_tree.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2019