package util

import "github.com/substrait-io/substrait-go/v3/types/parser/util"

Index

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

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)

type VisitErrorListener

type VisitErrorListener interface {
	ReportVisitError(ctx antlr.ParserRuleContext, err error)
	ReportPanicError(err error)
	ErrorCount() int
	GetErrors() []string
}

Source Files

error_listener.go

Version
v3.9.1 (latest)
Published
Apr 7, 2025
Platform
linux/amd64
Imports
2 packages
Last checked
9 hours ago

Tools for package owners.