UNPKG

antlr-ng

Version:

Next generation ANTLR Tool

104 lines (103 loc) 3.79 kB
import * as antlr from "antlr4ng"; import { LexerAdaptor } from "../misc/LexerAdaptor.js"; export declare class ANTLRv4Lexer extends LexerAdaptor { static readonly ACTION = 4; static readonly ARG_ACTION = 5; static readonly ARG_OR_CHARSET = 6; static readonly ASSIGN = 7; static readonly RULE_REF = 8; static readonly SEMPRED = 9; static readonly STRING_LITERAL = 10; static readonly TOKEN_REF = 11; static readonly UNICODE_ESC = 12; static readonly UNICODE_EXTENDED_ESC = 13; static readonly WS = 14; static readonly ALT = 15; static readonly BLOCK = 16; static readonly CLOSURE = 17; static readonly ELEMENT_OPTIONS = 18; static readonly EPSILON = 19; static readonly LEXER_ACTION_CALL = 20; static readonly LEXER_ALT_ACTION = 21; static readonly OPTIONAL = 22; static readonly POSITIVE_CLOSURE = 23; static readonly RULE = 24; static readonly RULEMODIFIERS = 25; static readonly RULES = 26; static readonly SET = 27; static readonly WILDCARD = 28; static readonly DOC_COMMENT = 29; static readonly BLOCK_COMMENT = 30; static readonly LINE_COMMENT = 31; static readonly INT = 32; static readonly UNTERMINATED_STRING_LITERAL = 33; static readonly BEGIN_ARGUMENT = 34; static readonly OPTIONS = 35; static readonly TOKENS = 36; static readonly CHANNELS = 37; static readonly IMPORT = 38; static readonly FRAGMENT = 39; static readonly LEXER = 40; static readonly PARSER = 41; static readonly GRAMMAR = 42; static readonly PROTECTED = 43; static readonly PUBLIC = 44; static readonly PRIVATE = 45; static readonly RETURNS = 46; static readonly LOCALS = 47; static readonly THROWS = 48; static readonly CATCH = 49; static readonly FINALLY = 50; static readonly MODE = 51; static readonly COLON = 52; static readonly COLONCOLON = 53; static readonly COMMA = 54; static readonly SEMI = 55; static readonly LPAREN = 56; static readonly RPAREN = 57; static readonly RBRACE = 58; static readonly RARROW = 59; static readonly LT = 60; static readonly GT = 61; static readonly QUESTION = 62; static readonly STAR = 63; static readonly PLUS_ASSIGN = 64; static readonly PLUS = 65; static readonly OR = 66; static readonly DOLLAR = 67; static readonly RANGE = 68; static readonly DOT = 69; static readonly AT = 70; static readonly POUND = 71; static readonly NOT = 72; static readonly ID = 73; static readonly END_ARGUMENT = 74; static readonly UNTERMINATED_ARGUMENT = 75; static readonly ARGUMENT_CONTENT = 76; static readonly LEXER_CHAR_SET = 77; static readonly UNTERMINATED_CHAR_SET = 78; static readonly Argument = 1; static readonly LexerCharSet = 2; static readonly channelNames: string[]; static readonly literalNames: (string | null)[]; static readonly symbolicNames: (string | null)[]; static readonly modeNames: string[]; static readonly ruleNames: string[]; constructor(input: antlr.CharStream); get grammarFileName(): string; get literalNames(): (string | null)[]; get symbolicNames(): (string | null)[]; get ruleNames(): string[]; get serializedATN(): number[]; get channelNames(): string[]; get modeNames(): string[]; action(localContext: antlr.ParserRuleContext | null, ruleIndex: number, actionIndex: number): void; private BEGIN_ARGUMENT_action; private END_ARGUMENT_action; static readonly _serializedATN: number[]; private static __ATN; static get _ATN(): antlr.ATN; private static readonly vocabulary; get vocabulary(): antlr.Vocabulary; private static readonly decisionsToDFA; }