Skip to contents
  • cond_new() instantiates a new cond node.

  • cond_type() checks if the node is a cond node.

  • cond_<child>_get() returns the <child> node of cond.

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

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

Usage

cond_new(ast, lbkt, expr, rbkt)

cond_type(ast, node)

cond_lbkt_get(ast, node)

cond_lbkt_rep(ast, node, lbkt)

cond_lbkt_set(ast, node, lbkt)

cond_expr_get(ast, node)

cond_expr_rep(ast, node, expr)

cond_expr_set(ast, node, expr)

cond_rbkt_get(ast, node)

cond_rbkt_rep(ast, node, rbkt)

cond_rbkt_set(ast, node, rbkt)

Arguments

ast

AST object

lbkt

lbkt node

expr

expr node

rbkt

rbkt node

node

cond node