Documentation
¶
Index ¶
- type ErrorListener
- func (e *ErrorListener) ReportAmbiguity(recognizer antlr.Parser, dfa *antlr.DFA, startIndex int, stopIndex int, ...)
- func (e *ErrorListener) ReportAttemptingFullContext(recognizer antlr.Parser, dfa *antlr.DFA, startIndex int, stopIndex int, ...)
- func (e *ErrorListener) ReportContextSensitivity(recognizer antlr.Parser, dfa *antlr.DFA, startIndex int, stopIndex int, ...)
- func (el *ErrorListener) SyntaxError(recognizer antlr.Recognizer, offendingSymbol interface{}, line int, column int, ...)
- type RuntimeError
- type SyntaxError
- type SyntaxErrors
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorListener ¶
type ErrorListener struct { SyntaxErrors SyntaxErrors HasSyntaxError bool }
func NewErrorListener ¶
func NewErrorListener() *ErrorListener
func (*ErrorListener) ReportAmbiguity ¶
func (e *ErrorListener) ReportAmbiguity(recognizer antlr.Parser, dfa *antlr.DFA, startIndex int, stopIndex int, exact bool, ambigAlts *antlr.BitSet, configs *antlr.ATNConfigSet)
ReportAmbiguity implements antlr.ErrorListener.
func (*ErrorListener) ReportAttemptingFullContext ¶
func (e *ErrorListener) ReportAttemptingFullContext(recognizer antlr.Parser, dfa *antlr.DFA, startIndex int, stopIndex int, conflictingAlts *antlr.BitSet, configs *antlr.ATNConfigSet)
ReportAttemptingFullContext implements antlr.ErrorListener.
func (*ErrorListener) ReportContextSensitivity ¶
func (e *ErrorListener) ReportContextSensitivity(recognizer antlr.Parser, dfa *antlr.DFA, startIndex int, stopIndex int, prediction int, configs *antlr.ATNConfigSet)
ReportContextSensitivity implements antlr.ErrorListener.
func (*ErrorListener) SyntaxError ¶
func (el *ErrorListener) SyntaxError(recognizer antlr.Recognizer, offendingSymbol interface{}, line int, column int, msg string, e antlr.RecognitionException)
SyntaxError implements antlr.ErrorListener.
type RuntimeError ¶
type RuntimeError struct { StartLine int EndLine int StartColumn int EndColumn int // contains filtered or unexported fields }
func NewRuntimeError ¶
func NewRuntimeError(ctx antlr.ParserRuleContext, cause error) *RuntimeError
func (*RuntimeError) Unwrap ¶
func (r *RuntimeError) Unwrap() error
type SyntaxError ¶
func NewSyntaxError ¶
func NewSyntaxError(line, col int, msg string) *SyntaxError
type SyntaxErrors ¶
type SyntaxErrors []*SyntaxError
Click to show internal directories.
Click to hide internal directories.