Skip to contents
  • narg_new() instantiates a new narg node.

  • narg_type() checks if the node is a narg node.

  • narg_<child>_get() returns the <child> node of narg.

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

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

Usage

narg_new(ast, name, op, expr)

narg_type(ast, node)

narg_name_get(ast, node)

narg_name_rep(ast, node, name)

narg_name_set(ast, node, name)

narg_op_get(ast, node)

narg_op_rep(ast, node, op)

narg_op_set(ast, node, op)

narg_expr_get(ast, node)

narg_expr_rep(ast, node, expr)

narg_expr_set(ast, node, expr)

Arguments

ast

AST object

name

name node

op

op node

expr

expr node

node

narg node