Edit

Share via


ParseErrorListener class

Expression parser error listener.

Properties

Instance

Methods

syntaxError<T>(Recognizer<T, any>, T, number, number, string, RecognitionException | undefined)

Throws a syntax error based on the current context.

Property Details

Instance

static Instance: ParseErrorListener = new ParseErrorListener()

Property Value

Method Details

syntaxError<T>(Recognizer<T, any>, T, number, number, string, RecognitionException | undefined)

Throws a syntax error based on the current context.

function syntaxError<T>(_recognizer: Recognizer<T, any>, _offendingSymbol: T, line: number, charPositionInLine: number, _msg: string, _e: RecognitionException | undefined)

Parameters

_recognizer

Recognizer<T, any>

An Antlr4 runtime recognizer.

_offendingSymbol

T

The token violating the lexer rules.

line

number

The line number where the error occurred.

charPositionInLine

number

The position of character in the line where the error occurred.

_msg

string

The error message.

_e

RecognitionException | undefined

The RecognitionException.