Exception: Antlr4::Runtime::RecognitionException
- Inherits:
-
StandardError
- Object
- StandardError
- Antlr4::Runtime::RecognitionException
- Defined in:
- lib/antlr4/runtime/recognition_exception.rb
Direct Known Subclasses
FailedPredicateException, InputMismatchException, NoViableAltException
Instance Attribute Summary collapse
-
#context ⇒ Object
Returns the value of attribute context.
-
#input ⇒ Object
Returns the value of attribute input.
-
#offending_state ⇒ Object
Returns the value of attribute offending_state.
-
#offending_token ⇒ Object
Returns the value of attribute offending_token.
-
#recognizer ⇒ Object
Returns the value of attribute recognizer.
Instance Method Summary collapse
Instance Attribute Details
#context ⇒ Object
Returns the value of attribute context.
4 5 6 |
# File 'lib/antlr4/runtime/recognition_exception.rb', line 4 def context @context end |
#input ⇒ Object
Returns the value of attribute input.
7 8 9 |
# File 'lib/antlr4/runtime/recognition_exception.rb', line 7 def input @input end |
#offending_state ⇒ Object
Returns the value of attribute offending_state.
6 7 8 |
# File 'lib/antlr4/runtime/recognition_exception.rb', line 6 def offending_state @offending_state end |
#offending_token ⇒ Object
Returns the value of attribute offending_token.
5 6 7 |
# File 'lib/antlr4/runtime/recognition_exception.rb', line 5 def offending_token @offending_token end |
#recognizer ⇒ Object
Returns the value of attribute recognizer.
3 4 5 |
# File 'lib/antlr4/runtime/recognition_exception.rb', line 3 def recognizer @recognizer end |
Instance Method Details
#expected_tokens ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/antlr4/runtime/recognition_exception.rb', line 9 def expected_tokens unless @recognizer.nil? return @recognizer._interp.atn.expected_tokens(@offending_state, @context) end nil end |