Class: Antlr4::Runtime::ProxyErrorListener
- Inherits:
-
Object
- Object
- Antlr4::Runtime::ProxyErrorListener
- Defined in:
- lib/antlr4/runtime/proxy_error_listener.rb
Instance Method Summary collapse
-
#initialize(delegates) ⇒ ProxyErrorListener
constructor
A new instance of ProxyErrorListener.
- #report_ambiguity(recognizer, dfa, start_index, stop_index, exact, ambig_alts, configs) ⇒ Object
- #report_attempting_full_context(recognizer, dfa, start_index, stop_index, conflicting_alts, configs) ⇒ Object
- #report_context_sensitivity(recognizer, dfa, start_index, stop_index, prediction, configs) ⇒ Object
- #syntax_error(recognizer, offending_symbol, line, char_position_in_line, msg, e) ⇒ Object
Constructor Details
#initialize(delegates) ⇒ ProxyErrorListener
Returns a new instance of ProxyErrorListener.
3 4 5 6 7 |
# File 'lib/antlr4/runtime/proxy_error_listener.rb', line 3 def initialize(delegates) raise StandardError, 'delegates is nil' if delegates.nil? @delegates = delegates end |
Instance Method Details
#report_ambiguity(recognizer, dfa, start_index, stop_index, exact, ambig_alts, configs) ⇒ Object
15 16 17 18 19 |
# File 'lib/antlr4/runtime/proxy_error_listener.rb', line 15 def report_ambiguity(recognizer, dfa, start_index, stop_index, exact, ambig_alts, configs) @delegates.each do |listener| listener.report_ambiguity(recognizer, dfa, start_index, stop_index, exact, ambig_alts, configs) end end |
#report_attempting_full_context(recognizer, dfa, start_index, stop_index, conflicting_alts, configs) ⇒ Object
21 22 23 24 25 |
# File 'lib/antlr4/runtime/proxy_error_listener.rb', line 21 def report_attempting_full_context(recognizer, dfa, start_index, stop_index, conflicting_alts, configs) @delegates.each do |listener| listener.report_attempting_full_context(recognizer, dfa, start_index, stop_index, conflicting_alts, configs) end end |
#report_context_sensitivity(recognizer, dfa, start_index, stop_index, prediction, configs) ⇒ Object
27 28 29 30 31 |
# File 'lib/antlr4/runtime/proxy_error_listener.rb', line 27 def report_context_sensitivity(recognizer, dfa, start_index, stop_index, prediction, configs) @delegates.each do |listener| listener.report_context_sensitivity(recognizer, dfa, start_index, stop_index, prediction, configs) end end |
#syntax_error(recognizer, offending_symbol, line, char_position_in_line, msg, e) ⇒ Object
9 10 11 12 13 |
# File 'lib/antlr4/runtime/proxy_error_listener.rb', line 9 def syntax_error(recognizer, offending_symbol, line, char_position_in_line, msg, e) @delegates.each do |listener| listener.syntax_error(recognizer, offending_symbol, line, char_position_in_line, msg, e) end end |