Skip to content

Commit

Permalink
Speedup of Scanless interface: t+
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffrey Kegler committed Feb 2, 2013
1 parent 0cddeb0 commit 3283840
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions r2/lib/Marpa/R2/Scanless.pm
Expand Up @@ -2657,17 +2657,7 @@ sub Marpa::R2::Scanless::R::read {
$stream->pos_set($lexeme_start);
} ## end if ($please_start_lex_recce)

if ( not defined eval { $lex_event_count = $thin_self->read(); 1 }
)
{
my $problem_symbol = $stream->symbol_id();
my $symbol_desc =
$problem_symbol < 0
? q{}
: 'Problem was with symbol '
. $lex_tracer->symbol_name($problem_symbol);
die "Exception in stream read(): $EVAL_ERROR\n", $symbol_desc;
} ## end if ( not defined eval { $lex_event_count = $thin_self...})
$lex_event_count = $thin_self->read();

if ($lex_event_count < -1) {
$problem_code = ($lex_event_count == -2 ? -2 : -7);
Expand Down

0 comments on commit 3283840

Please sign in to comment.