Skip to contents
  • cpx_new() instantiates a new cpx node.

  • cpx_type() checks if the node is a cpx node.

  • cpx_<child>_get() returns the <child> node of cpx.

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

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

Usage

cpx_type(ast, node)

cpx_syn_get(ast, node)

cpx_val_get(ast, node)

cpx_gap_get(ast, node)

cpx_gap_rep(ast, node, gap)

cpx_gap_set(ast, node, gap)

cpx_loc_get(ast, node)

Arguments

ast

AST object

node

cpx node

gap

gap node