Documentation
¶
Index ¶
- func TransformPanicToError(err *error, input, ctxStr string, errorListener VisitErrorListener)
- type SimpleErrorListener
- func (l *SimpleErrorListener) ErrorCount() int
- func (l *SimpleErrorListener) GetErrors() []string
- func (l *SimpleErrorListener) ReportAmbiguity(recognizer antlr.Parser, dfa *antlr.DFA, startIndex, stopIndex int, exact bool, ...)
- func (l *SimpleErrorListener) ReportAttemptingFullContext(recognizer antlr.Parser, dfa *antlr.DFA, startIndex, stopIndex int, ...)
- func (l *SimpleErrorListener) ReportContextSensitivity(recognizer antlr.Parser, dfa *antlr.DFA, startIndex, stopIndex, prediction int, ...)
- func (l *SimpleErrorListener) ReportPanicError(err error)
- func (l *SimpleErrorListener) ReportVisitError(ctx antlr.ParserRuleContext, err error)
- func (l *SimpleErrorListener) SyntaxError(recognizer antlr.Recognizer, offendingSymbol interface{}, line, column int, ...)
- type VisitErrorListener
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TransformPanicToError ¶
func TransformPanicToError(err *error, input, ctxStr string, errorListener VisitErrorListener)
Types ¶
type SimpleErrorListener ¶
type SimpleErrorListener struct {
// contains filtered or unexported fields
}
func NewSimpleErrorListener ¶
func NewSimpleErrorListener() *SimpleErrorListener
func (*SimpleErrorListener) ErrorCount ¶
func (l *SimpleErrorListener) ErrorCount() int
func (*SimpleErrorListener) GetErrors ¶
func (l *SimpleErrorListener) GetErrors() []string
func (*SimpleErrorListener) ReportAmbiguity ¶
func (l *SimpleErrorListener) ReportAmbiguity(recognizer antlr.Parser, dfa *antlr.DFA, startIndex, stopIndex int, exact bool, ambigAlts *antlr.BitSet, configs *antlr.ATNConfigSet)
func (*SimpleErrorListener) ReportAttemptingFullContext ¶
func (l *SimpleErrorListener) ReportAttemptingFullContext(recognizer antlr.Parser, dfa *antlr.DFA, startIndex, stopIndex int, conflictingAlts *antlr.BitSet, configs *antlr.ATNConfigSet)
func (*SimpleErrorListener) ReportContextSensitivity ¶
func (l *SimpleErrorListener) ReportContextSensitivity(recognizer antlr.Parser, dfa *antlr.DFA, startIndex, stopIndex, prediction int, configs *antlr.ATNConfigSet)
func (*SimpleErrorListener) ReportPanicError ¶ added in v3.6.0
func (l *SimpleErrorListener) ReportPanicError(err error)
func (*SimpleErrorListener) ReportVisitError ¶
func (l *SimpleErrorListener) ReportVisitError(ctx antlr.ParserRuleContext, err error)
func (*SimpleErrorListener) SyntaxError ¶
func (l *SimpleErrorListener) SyntaxError(recognizer antlr.Recognizer, offendingSymbol interface{}, line, column int, msg string, e antlr.RecognitionException)
Click to show internal directories.
Click to hide internal directories.