class ANTLR3::Error::MismatchedToken
- type
- used by
-
lexers and parsers
- occurs when
-
The recognizer expected to match a symbol
x
at the current input position, but it saw a different symboly
instead.
Attributes
expecting[R]
Public Class Methods
new( expecting, input )
click to toggle source
Calls superclass method
ANTLR3::Error::RecognitionError::new
# File lib/antlr3/error.rb, line 220 def initialize( expecting, input ) @expecting = expecting super( input ) end
Public Instance Methods
message()
click to toggle source
# File lib/antlr3/error.rb, line 225 def message "%s: %p %p" % [ self.class, unexpected_type, @expecting.inspect ] end