Compiler::Parser::Node::ForeachStmt
Compiler::Parser::Node::ForeachStmt isa Compiler::Parser::Node
This node is created to represent foreach statement. ForeachStmt node has three pointers of 'cond', 'itr' and 'true_stmt'. Also, this node has 'next' pointer to access next statement's node.
_____________________________________ _____________ | | next | | | ForeachStmt |----->| | |_____________________________________| |_____________| | | | cond | itr | true_stmt | v v v
e.g.) foreach my $itr (@array) { $itr++ }
| _______________________|________________________ _____________ | | next | | | ForeachStmt(foreach) |----->| | |________________________________________________| |_____________| | | | cond | itr | true_stmt | ____v____ ____v____ ____v____ | | | | | | | ++ | | $itr | | ++ | |_________| |_________| |_________| | | expr | expr | ____v____ ____v____ | | | | | @array | | $itr | |_________| |_________|
[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.