NAME
Compiler::Lexer - Lexical Analyzer for Perl5
VERSION
This document describes Compiler::Lexer version 0.01.
SYNOPSIS
use Compiler::Lexer; use Data::Dumper;
my $filename = $ARGV[0]; open my $fh, '<', $filename; my $script = do { local $/; <$fh> };
my $lexer = Compiler::Lexer->new($filename); my $tokens = $lexer->tokenize($script); print Dumper $$tokens;
my $modules = $lexer->get_used_modules($script); print Dumper $$modules;
AUTHOR
Masaaki Goshima (goccy) <goccy54(at)cpan.org>
LICENSE AND COPYRIGHT
Copyright (c) 2013, Masaaki Goshima (goccy). All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.