class ANTLR3::Error::MismatchedRange
- error
- used by
-
all recognizers
- occurs when
-
A recognizer expected to match an input symbol (either a character value or an integer token type value) that falls into a range of possible values, but instead it saw a symbol that falls outside the expected range.
Attributes
max[RW]
min[RW]
Public Class Methods
new( min, max, input )
click to toggle source
Calls superclass method
ANTLR3::Error::RecognitionError::new
# File lib/antlr3/error.rb, line 326 def initialize( min, max, input ) @min = min @max = max super( input ) end
Public Instance Methods
message()
click to toggle source
# File lib/antlr3/error.rb, line 332 def message "%s: %p not in %p..%p" % [ self.class, unexpected_type, @min, @max ] end