Compiler::Parser::Node::Branch
Compiler::Parser::Node::Branch isa Compiler::Parser::Node
Branch node has two pointers of 'left' and 'right'. Also, this node has 'next' pointer to access next statement's node. This node includes token kind of 'Operator', 'Assign' and 'Comma'.
____________________________________ _____________ | | next | | | Branch(Operator,Assign,Comma) |----->| | |____________________________________| |_____________| | | left | | right v v
e.g.) 1 + 2 + 3; ...
| __________|__________ _________ | | next | | | Add(+) |----->| ..... | |_____________________| |_________| | | left | | right _______v_______ __v__ | | | | | Add(+) | | 3 | |_______________| |_____| | | left | | right __v__ __v__ | | | | | 1 | | 2 | |_____| |_____|
[Compiler::Parser::Node](http://search.cpan.org/perldoc?Compiler::Parser::Node)
Masaaki Goshima (goccy) <goccy54@gmail.com>
Copyright (C) Masaaki Goshima (goccy).
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Compiler::Parser, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Compiler::Parser
CPAN shell
perl -MCPAN -e shell install Compiler::Parser
For more information on module installation, please visit the detailed CPAN module installation guide.