Skip to contents
  • chr_new() instantiates a new chr node.

  • chr_type() checks if the node is a chr node.

  • chr_<child>_get() returns the <child> node of chr.

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

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

Usage

chr_type(ast, node)

chr_syn_get(ast, node)

chr_val_get(ast, node)

chr_gap_get(ast, node)

chr_gap_rep(ast, node, gap)

chr_gap_set(ast, node, gap)

chr_loc_get(ast, node)

Arguments

ast

AST object

node

chr node

gap

gap node