antlr4ts
Version:
ANTLR 4 runtime for JavaScript written in Typescript
30 lines (29 loc) • 1.08 kB
TypeScript
/*!
* Copyright 2016 The ANTLR Project. All rights reserved.
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
*/
import { ANTLRErrorListener } from "./ANTLRErrorListener";
import { RecognitionException } from "./RecognitionException";
import { Recognizer } from "./Recognizer";
/**
*
* @author Sam Harwell
*/
export declare class ConsoleErrorListener implements ANTLRErrorListener<any> {
/**
* Provides a default instance of {@link ConsoleErrorListener}.
*/
static readonly INSTANCE: ConsoleErrorListener;
/**
* {@inheritDoc}
*
* This implementation prints messages to {@link System#err} containing the
* values of `line`, `charPositionInLine`, and `msg` using
* the following format.
*
* <pre>
* line *line*:*charPositionInLine* *msg*
* </pre>
*/
syntaxError<T>(recognizer: Recognizer<T, any>, offendingSymbol: T, line: number, charPositionInLine: number, msg: string, e: RecognitionException | undefined): void;
}