Sha256: bfd8de90a42b132715fb8da306c2cc36f9dc2384b492ab18615476a34c5d93b5
Contents?: true
Size: 717 Bytes
Versions: 5
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
5 entries across 5 versions & 1 rubygems