Class: Antlr4::Runtime::ConsoleErrorListener

Inherits:
BaseErrorListener show all
Includes:
Singleton
Defined in:
lib/antlr4/runtime/console_error_listener.rb

Instance Method Summary collapse

Methods inherited from BaseErrorListener

#report_ambiguity, #report_attempting_full_context, #report_context_sensitivity, #syntax_error

Methods inherited from ANTLRErrorListener

#report_ambiguity, #report_attempting_full_context, #report_context_sensitivity, #syntax_error

Instance Method Details

#syntaxError(_recognizer, _offending_symbol, line, char_position_in_line, msg, _e) ⇒ Object


6
7
8
# File 'lib/antlr4/runtime/console_error_listener.rb', line 6

def syntaxError(_recognizer, _offending_symbol, line, char_position_in_line, msg, _e)
  STDERR.puts 'line ' << line.to_s << ':' << char_position_in_line.to_s << ' ' << msg.to_s << ''
end