Skip to contents
  • blk_new() instantiates a new blk node.

  • blk_type() checks if the node is a blk node.

  • blk_<child>_get() returns the <child> node of blk.

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

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

Usage

blk_new(ast, lbkt, exprs, rbkt)

blk_type(ast, node)

blk_lbkt_get(ast, node)

blk_lbkt_rep(ast, node, lbkt)

blk_lbkt_set(ast, node, lbkt)

blk_exprs_get(ast, node)

blk_exprs_rep(ast, node, exprs)

blk_exprs_set(ast, node, exprs)

blk_rbkt_get(ast, node)

blk_rbkt_rep(ast, node, rbkt)

blk_rbkt_set(ast, node, rbkt)

Arguments

ast

AST object

lbkt

lbkt node

exprs

exprs node

rbkt

rbkt node

node

blk node