Salvation::Service::View::Stack::Parser - Salvation::Service::View::Stack parser
my %args = ( events => { before_stack => sub{ ... }, after_stack => sub{ ... }, before_node => sub{ ... }, after_node => sub{ ... }, before_frame => sub{ ... }, after_frame => sub{ ... }, before_frame_list => sub{ ... }, after_frame_list => sub{ ... }, before_frame_single => sub{ ... }, after_frame_single => sub{ ... }, raw => sub{ ... } } ); Salvation::Service::View::Stack -> parse( $stack, \%args ) ;
Scalar::Util
Carp::Assert
Salvation::Service::View::Stack -> parse( $stack, \%args );
Parses a $stack which should be a Salvation::Service::View::Stack object instance and produces an output you want it to produce.
$stack
%args can contain event handlers, as shown at SYNOPSIS.
%args
Event handler should be CodeRef. The only argument to event handler is $node which is the object which is the subject of current event.
$node
Events are:
Occurs when the parser is about to dive into Salvation::Service::View::Stack object instance.
Occurs when the parser is about to leave Salvation::Service::View::Stack object instance.
Occurs when the parser has already dove into Salvation::Service::View::Stack object instance and just met an object to be parsed.
Occurs when the parser has already dove into Salvation::Service::View::Stack object instance and finished parsing an object.
Occurs when the parser has already dove into Salvation::Service::View::Stack object instance and just met a Salvation::Service::View::Stack::Frame-derived object instance.
Occurs when the parser has already dove into Salvation::Service::View::Stack object instance and finished parsing a Salvation::Service::View::Stack::Frame-derived object instance.
Occurs when the parser has already dove into Salvation::Service::View::Stack object instance and just met a Salvation::Service::View::Stack::Frame-derived object instance which is_list call returns true.
is_list
Occurs when the parser has already dove into Salvation::Service::View::Stack object instance and finished parsing a Salvation::Service::View::Stack::Frame-derived object instance which is_list call returns true.
Occurs when the parser has already dove into Salvation::Service::View::Stack object instance and just met a Salvation::Service::View::Stack::Frame-derived object instance which is_list call returns false.
Occurs when the parser has already dove into Salvation::Service::View::Stack object instance and finished parsing a Salvation::Service::View::Stack::Frame-derived object instance which is_list call returns false.
Occurs when the parser has already dove into Salvation::Service::View::Stack object instance and just met a raw frame content.
Each %args key and each event handler is optional.
To install Salvation, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Salvation
CPAN shell
perl -MCPAN -e shell install Salvation
For more information on module installation, please visit the detailed CPAN module installation guide.