DefinitelyTyped/types/antlr4/Recognizer.d.ts
Marlon Chatman 877ced9c4b Add Antlr4 Definitions/Types (#27120)
* Add antlr4 definitions/types

* Update the tsconfig.json for the antlr4 types

* Update the tsconfig.json for the antlr4 types. Use files instead of includes.

* Remove antlr4-test.ts to antlr4-tests.ts, for the antlr4 types

* Remove the c-parser.ts, for the antlr4 types. As this is not allowed in the antlr4-test.ts

* Fix antlr4 types test lint failure

* Update the linting and the tslint.json

* Update the tslint.json, for antlr4 types
2018-07-13 12:46:40 -07:00

30 lines
746 B
TypeScript

import { ErrorListener, ProxyErrorListener } from './error/ErrorListener';
import { Token } from './Token';
import { ParserRuleContext } from './ParserRuleContext';
export class Recognizer {
state: number;
checkVersion(toolVersion: number): void;
addErrorListener(listener: ErrorListener): void;
removeErrorListeners(): void;
getTokenTypeMap(): any;
getRuleIndexMap(): any;
getTokenType(tokenName: string): any;
getErrorHeader(e: any): string;
getTokenErrorDisplay(t: Token): string;
getErrorListenerDispatch(): ProxyErrorListener;
sempred(localCtx: ParserRuleContext, ruleIndex: number, actionIndex: number): boolean;
precpred(localCtx: ParserRuleContext, precedence: any): boolean;
}