Affix-Infix2Postfix
view release on metacpan or search on metacpan
Infix2Postfix.pm view on Meta::CPAN
sub translate {
my $self=shift;
my $str=shift;
my (@matches,@errors,@res);
@matches=$self->tokenize($str);
@errors=$self->verify(@matches);
if (@errors) {
$self->{ERRSTR}='Bad tokens: '.join(' ',@matches[@errors]);
return undef;
}
@res=$self->elist(@matches);
return @res;
}
sub elist {
my $self=shift;
my (@poss,$i,$cop); # possible breaks
( run in 1.491 second using v1.01-cache-2.11-cpan-d80b1682f3f )