antlr4util

package
v1.3.3-beta5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorListener

type ErrorListener struct {
	*antlr.DefaultErrorListener
	// contains filtered or unexported fields
}

error listener for lexer and parser

func NewErrorListener

func NewErrorListener() *ErrorListener

func (*ErrorListener) GetErrors

func (el *ErrorListener) GetErrors() []string

func (*ErrorListener) SyntaxError

func (el *ErrorListener) SyntaxError(recognizer antlr.Recognizer, offendingSymbol interface{}, line, column int, msg string, e antlr.RecognitionException)

type LegacyErrorListener

type LegacyErrorListener struct {
	*antlr.DefaultErrorListener
	// contains filtered or unexported fields
}

error listener for lexer and parser

func NewLegacyErrorListener

func NewLegacyErrorListener() *LegacyErrorListener

func (*LegacyErrorListener) GetErrors

func (el *LegacyErrorListener) GetErrors() []string

func (*LegacyErrorListener) SyntaxError

func (el *LegacyErrorListener) SyntaxError(recognizer antlr.Recognizer, offendingSymbol interface{}, line, column int, msg string, e antlr.RecognitionException)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL