SDA SE Wiki

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

User Tools

Site Tools


ast_node_template_for_id(+Id, ?Lang, ?Template) is det

  • If arg1 is the id of an AST node then it belongs to the language arg2

its structure is given by the template arg3. If nodetype is the

  node type of arg1, then the template returned in arg3 is a term 
  whose structure corresponds to ''ast_node_term(nodetype, Lang, Template)'',
  but already has arg1 as its identity.    
* Example: If ''10001'' is the identity of a node of type ''classDefT'' then ''ast_node_template_for_id(10001,'Java',Template)'' unifies ''Template'' with ''classDefT(10001,B,C,D)''. 
research/jtransformer/api/meta/queries/ast_node_template_for_id.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2025