class ANTLR3::Error::MismatchedSet

error

MismatchedSet

used by

all recognizers

occurs when

A recognizer expects the current input symbol to be a member of a set of possible symbol values, but the current symbol does not match.

Attributes

expecting[RW]

Public Class Methods

new( expecting, input ) click to toggle source
Calls superclass method ANTLR3::Error::RecognitionError::new
# File lib/antlr3/error.rb, line 350
def initialize( expecting, input )
  super( input )
  @expecting = expecting
end

Public Instance Methods

message() click to toggle source
# File lib/antlr3/error.rb, line 355
def message
  "%s: %p not in %p" %
    [ self.class, unexpected_type, @expecting ]
end