Skip to contents
  • binop_new() instantiates a new binop node.

  • binop_type() checks if the node is a binop node.

  • binop_<child>_get() returns the <child> node of binop.

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

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

Usage

binop_new(ast, lexpr, op, rexpr)

binop_type(ast, node)

binop_lexpr_get(ast, node)

binop_lexpr_rep(ast, node, lexpr)

binop_lexpr_set(ast, node, lexpr)

binop_op_get(ast, node)

binop_op_rep(ast, node, op)

binop_op_set(ast, node, op)

binop_rexpr_get(ast, node)

binop_rexpr_rep(ast, node, rexpr)

binop_rexpr_set(ast, node, rexpr)

Arguments

ast

AST object

lexpr

lexpr node

op

op node

rexpr

rexpr node

node

binop node