Skip to contents
  • sym_new() instantiates a new sym node.

  • sym_type() checks if the node is a sym node.

  • sym_<child>_get() returns the <child> node of sym.

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

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

Usage

sym_type(ast, node)

sym_syn_get(ast, node)

sym_val_get(ast, node)

sym_gap_get(ast, node)

sym_gap_rep(ast, node, gap)

sym_gap_set(ast, node, gap)

sym_loc_get(ast, node)

Arguments

ast

AST object

node

sym node

gap

gap node