| 1 | package Perl::Lexer; | ||
| 2 | 3 | ▶ | use 5.010000; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 3 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 3 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 3 | ▶ | use B; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 3 | our $VERSION = "0.38"; | |
| 8 | |||
| 9 | 3 | ▶ | use parent qw(Exporter); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 3 | our @EXPORT = qw( | |
| 12 | TOKENTYPE_NONE | ||
| 13 | TOKENTYPE_IVAL | ||
| 14 | TOKENTYPE_OPNUM | ||
| 15 | TOKENTYPE_PVAL | ||
| 16 | TOKENTYPE_OPVAL | ||
| 17 | ); | ||
| 18 | |||
| 19 | 3 | ▶ | use Perl::Lexer::Token; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 20 | |||
| 21 | 3 | ▶ | use XSLoader; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 22 | 3 | XSLoader::load(__PACKAGE__, $VERSION); | |
| 23 | |||
| 24 | 4 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||
| 25 | 4 | my $class = shift; | |
| 26 | 4 | bless {}, $class; | |
| 27 | } | ||
| 28 | |||
| 29 | 4 | ▶ | sub scan_string { |
|
Subroutine
scan_string: called CC=1 SCAR=0.2
Pod
documented
| |||
| 30 | 4 | my ($self, $str) = @_; | |
| 31 | 4 | open my $fh, '<', \$str; | |
| 32 | 0 | $self->scan_fh($fh); | |
| 33 | } | ||
| 34 | |||
| 35 | 3 | 4649; | |
| 36 | __END__ | ||