Exception: InputMismatchException

Inherits:
RecognitionException show all
Defined in:
lib/antlr4/error.rb

Overview

when the current input does not match the expected token.

Instance Attribute Summary

Attributes inherited from RecognitionException

#ctx, #deadEndConfigs, #input, #offendingState, #offendingToken, #recognizer, #startToken

Instance Method Summary collapse

Methods inherited from RecognitionException

#getExpectedTokens, #initialize

Constructor Details

This class inherits a constructor from RecognitionException

Instance Method Details

#initiailze(recognizer) ⇒ Object



111
112
113
114
# File 'lib/antlr4/error.rb', line 111

def initiailze(recognizer)
    super(nil, recognizer, recognizer.getInputStream(), recognizer.ctx)
    @offendingToken = recognizer.getCurrentToken()
end