Method: ANTLR3::Recognizer#display_recognition_error

Defined in:
lib/antlr3/recognizers.rb

#display_recognition_error(e = $!) ⇒ Object

error reporting hook for presenting the information The default implementation builds appropriate error message text using error_header and error_message, and calls emit_error_message to write the error message out to some source



424
425
426
427
428
# File 'lib/antlr3/recognizers.rb', line 424

def display_recognition_error( e = $! )
  header = error_header( e )
  message = error_message( e )
  emit_error_message( "#{ header } #{ message }" )
end