UNPKG

antlr-ng

Version:

Next generation ANTLR Tool

129 lines (128 loc) 4.73 kB
import * as antlr from "antlr4ng"; import { LexerAdaptor } from "../misc/LexerAdaptor.js"; export declare class ANTLRv4Lexer extends LexerAdaptor { static readonly ACTION = 4; static readonly ACTION_CHAR_LITERAL = 5; static readonly ACTION_ESC = 6; static readonly ACTION_STRING_LITERAL = 7; static readonly ARG_ACTION = 8; static readonly ARG_OR_CHARSET = 9; static readonly ASSIGN = 10; static readonly AT = 11; static readonly CATCH = 12; static readonly CHANNELS = 13; static readonly COLON = 14; static readonly COLONCOLON = 15; static readonly COMMA = 16; static readonly UNUSED = 17; static readonly DOC_COMMENT = 18; static readonly DOLLAR = 19; static readonly DOT = 20; static readonly ERRCHAR = 21; static readonly ESC_SEQ = 22; static readonly FINALLY = 23; static readonly FRAGMENT = 24; static readonly GRAMMAR = 25; static readonly GT = 26; static readonly HEX_DIGIT = 27; static readonly ID = 28; static readonly IMPORT = 29; static readonly INT = 30; static readonly LEXER = 31; static readonly LEXER_CHAR_SET = 32; static readonly LOCALS = 33; static readonly LPAREN = 34; static readonly LT = 35; static readonly MODE = 36; static readonly NESTED_ACTION = 37; static readonly NLCHARS = 38; static readonly NOT = 39; static readonly NameChar = 40; static readonly NameStartChar = 41; static readonly OPTIONS = 42; static readonly OR = 43; static readonly PARSER = 44; static readonly PLUS = 45; static readonly PLUS_ASSIGN = 46; static readonly POUND = 47; static readonly QUESTION = 48; static readonly RANGE = 49; static readonly RARROW = 50; static readonly RBRACE = 51; static readonly RETURNS = 52; static readonly RPAREN = 53; static readonly RULE_REF = 54; static readonly SEMI = 55; static readonly SEMPRED = 56; static readonly SRC = 57; static readonly STAR = 58; static readonly STRING_LITERAL = 59; static readonly THROWS = 60; static readonly UNUSED2 = 61; static readonly TOKEN_REF = 62; static readonly UNICODE_ESC = 63; static readonly UNICODE_EXTENDED_ESC = 64; static readonly UnicodeBOM = 65; static readonly WS = 66; static readonly WSCHARS = 67; static readonly WSNLCHARS = 68; static readonly ALT = 69; static readonly BLOCK = 70; static readonly CLOSURE = 71; static readonly COMBINED = 72; static readonly ELEMENT_OPTIONS = 73; static readonly EPSILON = 74; static readonly LEXER_ACTION_CALL = 75; static readonly LEXER_ALT_ACTION = 76; static readonly OPTIONAL = 77; static readonly POSITIVE_CLOSURE = 78; static readonly RULE = 79; static readonly RULEMODIFIERS = 80; static readonly RULES = 81; static readonly SET = 82; static readonly WILDCARD = 83; static readonly BLOCK_COMMENT = 84; static readonly LINE_COMMENT = 85; static readonly UNTERMINATED_STRING_LITERAL = 86; static readonly BEGIN_ARGUMENT = 87; static readonly BEGIN_ACTION = 88; static readonly TOKENS = 89; static readonly LBRACE = 90; static readonly END_ARGUMENT = 91; static readonly UNTERMINATED_ARGUMENT = 92; static readonly ARGUMENT_CONTENT = 93; static readonly END_ACTION = 94; static readonly UNTERMINATED_ACTION = 95; static readonly ACTION_CONTENT = 96; static readonly UNTERMINATED_CHAR_SET = 97; static readonly PRIVATE = 98; static readonly PROTECTED = 99; static readonly PUBLIC = 100; static readonly PREDICATE_OPTIONS = 101; static readonly Argument = 1; static readonly TargetLanguageAction = 2; static readonly LexerCharSet = 3; 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; private END_ACTION_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; }