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).
Last modified: 2013/05/21 08:03
*