Sha256: 4add41466946a478e6d119f2f55674a40eb64478779050519f252a6c3d6f728b
Contents?: true
Size: 717 Bytes
Versions: 3
Compression:
Stored size: 717 Bytes
Contents
require 'antlr4/runtime/parse_cancellation_exception' module Modl::Parser class ThrowingErrorListener include Singleton def syntax_error(_recognizer, _offending_symbol, _line, _char_position_in_line, _msg, _e) raise Antlr4::Runtime::ParseCancellationException, 'line' + _line.to_s + ':' + _char_position_in_line.to_s + ' ' + _msg.to_s end def report_ambiguity(_recognizer, _dfa, _start_index, _stop_index, _exact, _ambig_ilts, _configs) end def report_attempting_full_context(_recognizer, _dfa, _start_index, _stop_index, _conflicting_alts, _configs) end def report_context_sensitivity(_recognizer, _dfa, _start_index, _stop_index, _prediction, _configs) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
modl-0.3.2 | lib/modl/parser/throwing_error_listener.rb |
modl-0.3.1 | lib/modl/parser/throwing_error_listener.rb |
modl-0.3.0 | lib/modl/parser/throwing_error_listener.rb |