Lines Matching refs:ANTLR
1 package ANTLR::Runtime::BaseRecognizer;
6 use ANTLR::Runtime::RecognizerSharedState;
7 use ANTLR::Runtime::Token;
8 use ANTLR::Runtime::UnwantedTokenException;
9 use ANTLR::Runtime::MissingTokenException;
10 use ANTLR::Runtime::MismatchedTokenException;
24 Readonly my $DEFAULT_TOKEN_CHANNEL => ANTLR::Runtime::Token->DEFAULT_CHANNEL;
27 Readonly my $HIDDEN => ANTLR::Runtime::Token->HIDDEN_CHANNEL;
41 default => sub { ANTLR::Runtime::RecognizerSharedState->new() },
107 if ($follow->member(ANTLR::Runtime::Token->EOR_TOKEN_TYPE)) {
111 $follow->remove(ANTLR::Runtime::Token->EOR_TOKEN_TYPE);
115 if ($follow->member($input->LA(1)) || $follow->member(ANTLR::Runtime::Token->EOR_TOKEN_TYPE)) {
127 ANTLR::Runtime::UnwantedTokenException->new({
133 ANTLR::Runtime::MissingTokenException->new({
139 ANTLR::Runtime::MismatchedTokenException->new({
178 if ($e->get_expecting == ANTLR::Runtime::Token->EOF) {
188 if ($e->get_expecting == ANTLR::Runtime::Token->EOF) {
238 if ($t->get_type() == ANTLR::Runtime::Token->EOF) {
309 my $follow_set = ANTLR::Runtime::BitSet->new();
313 if ($exact && $local_follow_set->member(ANTLR::Runtime::Token->EOR_TOKEN_TYPE)) {
327 my $ex = ANTLR::Runtime::UnwantedTokenException->new({
348 my $ex = ANTLR::Runtime::MissingTokenException({
357 ANTLR::Runtime::MismatchedTokenException->new({
373 expected_token_type => ANTLR::Runtime::Token->INVALID_TOKEN_TYPE,
388 if ($follow->member(ANTLR::Runtime::Token->EOR_TOKEN_TYPE)) {
391 $follow->remove(ANTLR::Runtime::Token->EOR_TOKEN_TYPE);
425 while ($ttype != ANTLR::Runtime::Token->EOF && !$set->member($ttype)) {
433 while ($ttype != ANTLR::Runtime::Token->EOF && $ttype != $token_type) {