Compiler::Parser::AST
Get blessed object of Compiler::Parser::AST. This method requires $tokens from Compiler::Lexer::tokenize.
Get root node from AST. $ast is created by Compiler::Parser::parse.
Find node from 'node' or 'kind' or 'type' or 'data' parameter.
Walk AST. This method requires anonymous subroutine as argument. Subroutine's first argument is instance inherited Compiler::Parser::Node.
Walk AST. This method must be exported by 'use Compiler::Parser::AST qw/walk/;' $_ is instance inherited Compiler::Parser::Node.
Remove nodes from 'node' or 'kind' or 'type' or 'data' parameter.
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.