Skip to contents
  • dpar_new() instantiates a new dpar node.

  • dpar_type() checks if the node is a dpar node.

  • dpar_<child>_get() returns the <child> node of dpar.

  • dpar_<child>_set() sets the new <child> and deletes the old <child>.

  • dpar_<child>_rep() sets the new <child> and returns the old <child>.

Usage

dpar_new(ast, name, op, expr)

dpar_type(ast, node)

dpar_name_get(ast, node)

dpar_name_rep(ast, node, name)

dpar_name_set(ast, node, name)

dpar_op_get(ast, node)

dpar_op_rep(ast, node, op)

dpar_op_set(ast, node, op)

dpar_expr_get(ast, node)

dpar_expr_rep(ast, node, expr)

dpar_expr_set(ast, node, expr)

Arguments

ast

AST object

name

name node

op

op node

expr

expr node

node

dpar node