mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* 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
53 lines
1.0 KiB
TypeScript
53 lines
1.0 KiB
TypeScript
import { Recognizer } from './Recognizer';
|
|
import { Token } from './Token';
|
|
import { RecognitionException } from './error/Errors';
|
|
|
|
export class Lexer extends Recognizer {
|
|
inputStream: any;
|
|
sourceName: any;
|
|
type: any;
|
|
line: any;
|
|
column: any;
|
|
text: string;
|
|
|
|
reset(): void;
|
|
|
|
nextToken(): Token;
|
|
|
|
skip(): void;
|
|
|
|
more(): void;
|
|
|
|
pushMode(mode: any): void;
|
|
|
|
popMode(): any;
|
|
|
|
emitToken(): void;
|
|
|
|
emit(): Token;
|
|
|
|
emitEOF(): Token;
|
|
|
|
charIndex(): number;
|
|
|
|
getAllTokens(): Token[];
|
|
|
|
notifyListeners(e: RecognitionException): void;
|
|
|
|
getErrorDisplay(s: string): string;
|
|
|
|
getErrorDisplayForChar(c: string): string;
|
|
|
|
getCharErrorDisplay(c: string): string;
|
|
|
|
recover(re: RecognitionException): void;
|
|
|
|
static readonly DEFAULT_MODE: number;
|
|
static readonly MORE: number;
|
|
static readonly SKIP: number;
|
|
static readonly DEFAULT_TOKEN_CHANNEL: any;
|
|
static readonly HIDDEN: any;
|
|
static readonly MIN_CHAR_VALUE: number;
|
|
static readonly MAX_CHAR_VALUE: number;
|
|
}
|