Exception: ANTLR3::Error::MismatchedNotSet

Inherits:
MismatchedSet show all
Defined in:
lib/antlr3/error.rb

Overview

error

MismatchedNotSet

used by

all recognizers

occurs when

A recognizer expected to match symbol that is not in some set of symbols but failed.

Constant Summary

Constant Summary

Constants included from Constants

Constants::BUILT_IN_TOKEN_NAMES, Constants::DEFAULT, Constants::DOWN, Constants::EOF, Constants::EOF_TOKEN, Constants::EOR_TOKEN_TYPE, Constants::HIDDEN, Constants::INVALID_TOKEN, Constants::INVALID_TOKEN_TYPE, Constants::MEMO_RULE_FAILED, Constants::MEMO_RULE_UNKNOWN, Constants::MIN_TOKEN_TYPE, Constants::SKIP_TOKEN, Constants::UP

Instance Attribute Summary

Attributes inherited from MismatchedSet

#expecting

Attributes inherited from RecognitionError

#column, #index, #input, #line, #source_name, #symbol, #token

Instance Method Summary (collapse)

Methods inherited from MismatchedSet

#initialize

Methods inherited from RecognitionError

#approximate_line_info?, #initialize, #location, #unexpected_type

Constructor Details

This class inherits a constructor from ANTLR3::Error::MismatchedSet

Instance Method Details

- (Object) message



372
373
374
375
# File 'lib/antlr3/error.rb', line 372

def message
  '%s: %p != %p' %
    [ self.class, unexpected_type, @expecting ]
end