NAME

Perl6::PVIP::Node - Node object

DESCRIPTION

This is a node representation in Perl6::PVIP.

METHODS

$node->type()

This method returns the method type in PVIP_NODE_* constants.

$node->name()

String representation of the type from the node.

$node->value() : Str|Int|Number|ArrayRef[Perl6::PVIP::Node]

This method returns the value, the node has.

$node->as_sexp(): Str

This method converts the node as S-Expression.

$node->category() : Int

This method returns the category of the node. It's one of the following

PVIP_CATEGORY_INT
PVIP_CATEGORY_NUMBER
PVIP_CATEGORY_STRING
PVIP_CATEGORY_CHILDREN
PVIP_CATEGORY_UNKNOWN