UNPKG

@maniascript/parser

Version:
150 lines (149 loc) 6.5 kB
import * as antlr from "antlr4ng"; import { ManiaScriptBaseLexer } from './ManiaScriptBaseLexer.js'; export declare class ManiaScriptLexer extends ManiaScriptBaseLexer { static readonly CLASS = 1; static readonly SINGLE_LINE_COMMENT = 2; static readonly MULTI_LINES_COMMENT = 3; static readonly KEYWORD_ASSERT = 4; static readonly KEYWORD_AS = 5; static readonly KEYWORD_BREAK = 6; static readonly KEYWORD_CASE = 7; static readonly KEYWORD_CAST = 8; static readonly KEYWORD_CONTINUE = 9; static readonly KEYWORD_DECLARE = 10; static readonly KEYWORD_LET = 11; static readonly KEYWORD_DEFAULT = 12; static readonly KEYWORD_DUMPTYPE = 13; static readonly KEYWORD_DUMP = 14; static readonly KEYWORD_ELSE = 15; static readonly KEYWORD_FOREACH = 16; static readonly KEYWORD_FOR = 17; static readonly KEYWORD_IF = 18; static readonly KEYWORD_IN = 19; static readonly KEYWORD_IS = 20; static readonly KEYWORD_LOG = 21; static readonly KEYWORD_MAIN = 22; static readonly KEYWORD_MEANWHILE = 23; static readonly KEYWORD_RETURN = 24; static readonly KEYWORD_REVERSE = 25; static readonly KEYWORD_SLEEP = 26; static readonly KEYWORD_SWITCHTYPE = 27; static readonly KEYWORD_SWITCH = 28; static readonly KEYWORD_TUNINGEND = 29; static readonly KEYWORD_TUNINGMARK = 30; static readonly KEYWORD_TUNINGSTART = 31; static readonly KEYWORD_WAIT = 32; static readonly KEYWORD_WHILE = 33; static readonly KEYWORD_YIELD = 34; static readonly KEYWORD_NOW = 35; static readonly KEYWORD_THIS = 36; static readonly LABEL_PLUS = 37; static readonly LABEL_MINUS = 38; static readonly LABEL_STAR = 39; static readonly OPERATOR_ASSIGN = 40; static readonly OPERATOR_SEMICOLON = 41; static readonly OPERATOR_PLUS = 42; static readonly OPERATOR_MINUS = 43; static readonly OPERATOR_MULTIPLY = 44; static readonly OPERATOR_DIVIDE = 45; static readonly OPERATOR_MODULO = 46; static readonly OPERATOR_OPEN_TEXT_TRIPLE = 47; static readonly OPERATOR_CLOSE_INTERPOLATION = 48; static readonly OPERATOR_OPEN_INTERPOLATION_ERROR = 49; static readonly OPERATOR_CLOSE_INTERPOLATION_ERROR = 50; static readonly OPERATOR_OPEN_TEXT_SINGLE = 51; static readonly OPERATOR_OPEN_PAREN = 52; static readonly OPERATOR_CLOSE_PAREN = 53; static readonly OPERATOR_OPEN_BRACKET = 54; static readonly OPERATOR_CLOSE_BRACKET = 55; static readonly OPERATOR_OPEN_BRACE = 56; static readonly OPERATOR_CLOSE_BRACE = 57; static readonly OPERATOR_CONCAT = 58; static readonly OPERATOR_COMMA = 59; static readonly OPERATOR_DOUBLECOLON = 60; static readonly OPERATOR_COLON = 61; static readonly OPERATOR_DOT = 62; static readonly OPERATOR_NOT = 63; static readonly OPERATOR_LESSTHAN = 64; static readonly OPERATOR_MORETHAN = 65; static readonly OPERATOR_LESSTHANEQUAL = 66; static readonly OPERATOR_MORETHANEQUAL = 67; static readonly OPERATOR_EQUAL = 68; static readonly OPERATOR_NOTEQUAL = 69; static readonly OPERATOR_AND = 70; static readonly OPERATOR_OR = 71; static readonly OPERATOR_MULTIPLYASSIGN = 72; static readonly OPERATOR_DIVIDEASSIGN = 73; static readonly OPERATOR_PLUSASSIGN = 74; static readonly OPERATOR_MINUSASSIGN = 75; static readonly OPERATOR_MODULOASSIGN = 76; static readonly OPERATOR_ARROWASSIGN = 77; static readonly OPERATOR_CONCATASSIGN = 78; static readonly OPERATOR_TEXTTRANSLATE = 79; static readonly OPERATOR_ARROW = 80; static readonly TYPE_BOOLEAN = 81; static readonly TYPE_IDENT = 82; static readonly TYPE_INT2 = 83; static readonly TYPE_INT3 = 84; static readonly TYPE_INTEGER = 85; static readonly TYPE_REAL = 86; static readonly TYPE_TEXT = 87; static readonly TYPE_VEC2 = 88; static readonly TYPE_VEC3 = 89; static readonly TYPE_VOID = 90; static readonly STORAGESPECIFIER_CLOUD = 91; static readonly STORAGESPECIFIER_METADATA = 92; static readonly STORAGESPECIFIER_NETREAD = 93; static readonly STORAGESPECIFIER_NETWRITE = 94; static readonly STORAGESPECIFIER_PERSISTENT = 95; static readonly LITERAL_REAL = 96; static readonly LITERAL_INTEGER = 97; static readonly LITERAL_BOOLEAN = 98; static readonly LITERAL_NULL = 99; static readonly LITERAL_NULLID = 100; static readonly DIRECTIVE_REQUIRE_CONTEXT = 101; static readonly DIRECTIVE_EXTENDS = 102; static readonly DIRECTIVE_INCLUDE = 103; static readonly DIRECTIVE_SETTING = 104; static readonly DIRECTIVE_COMMAND = 105; static readonly DIRECTIVE_STRUCT = 106; static readonly DIRECTIVE_CONST = 107; static readonly IDENTIFIER = 108; static readonly WHITESPACES = 109; static readonly LINE_TERMINATOR = 110; static readonly UNKNOWN = 111; static readonly OPERATOR_CLOSE_TEXT_TRIPLE = 112; static readonly OPERATOR_OPEN_INTERPOLATION = 113; static readonly PART_TEXT_TRIPLE = 114; static readonly PART_TEXT_TRIPLE_QUOTE = 115; static readonly PART_TEXT_TRIPLE_BRACE = 116; static readonly OPERATOR_CLOSE_TEXT_SINGLE = 117; static readonly PART_TEXT_SINGLE = 118; static readonly MODE_TEXT_TRIPLE = 1; static readonly MODE_TEXT_SINGLE = 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 OPERATOR_CLOSE_INTERPOLATION_action; private IDENTIFIER_action; private OPERATOR_OPEN_INTERPOLATION_action; sempred(localContext: antlr.ParserRuleContext | null, ruleIndex: number, predIndex: number): boolean; private OPERATOR_CLOSE_INTERPOLATION_sempred; static readonly _serializedATN: number[]; private static __ATN; static get _ATN(): antlr.ATN; private static readonly vocabulary; get vocabulary(): antlr.Vocabulary; private static readonly decisionsToDFA; }