Pistachio::Tokenizer - provides iterator(), which turns source code text into a Pistachio::Token iterator
version 0.01
use Pistachio::Tokenizer; my $tokenizer = Pistachio::Tokenizer->new('Perl5'); my $scalar_ref = \"use strict; ...;"; my $it = $tokenizer->iterator($scalar_ref); while (my $token = $it->()) { print $token->type, ': ', $token->value, "\n"; }
Joel Dalley <joeldalley@gmail.com>
This software is copyright (c) 2013 by Joel Dalley.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Pistachio, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Pistachio
CPAN shell
perl -MCPAN -e shell install Pistachio
For more information on module installation, please visit the detailed CPAN module installation guide.