UNPKG

@maniascript/api

Version:

Maniascript API generator

85 lines (84 loc) 4.82 kB
import * as antlr from "antlr4ng"; import { Token } from "antlr4ng"; export class DocCommentLexer extends antlr.Lexer { static DOC_START = 1; static DOC_END = 2; static COMMAND_BRIEF = 3; static COMMAND_PARAM = 4; static WHITESPACE = 5; static NEWLINE = 6; static STAR = 7; static COLON = 8; static TEXT_CONTENT = 9; static UNKNOWN = 10; static channelNames = [ "DEFAULT_TOKEN_CHANNEL", "HIDDEN" ]; static literalNames = [ null, "'/*!'", "'*/'", "'\\brief'", "'\\param'", null, null, "'*'", "':'" ]; static symbolicNames = [ null, "DOC_START", "DOC_END", "COMMAND_BRIEF", "COMMAND_PARAM", "WHITESPACE", "NEWLINE", "STAR", "COLON", "TEXT_CONTENT", "UNKNOWN" ]; static modeNames = [ "DEFAULT_MODE", ]; static ruleNames = [ "DOC_START", "DOC_END", "COMMAND_BRIEF", "COMMAND_PARAM", "WHITESPACE", "NEWLINE", "STAR", "COLON", "TEXT_CONTENT", "UNKNOWN", "FRAGMENT_WHITESPACE", "FRAGMENT_NEWLINE", ]; constructor(input) { super(input); this.interpreter = new antlr.LexerATNSimulator(this, DocCommentLexer._ATN, DocCommentLexer.decisionsToDFA, new antlr.PredictionContextCache()); } get grammarFileName() { return "DocCommentLexer.g4"; } get literalNames() { return DocCommentLexer.literalNames; } get symbolicNames() { return DocCommentLexer.symbolicNames; } get ruleNames() { return DocCommentLexer.ruleNames; } get serializedATN() { return DocCommentLexer._serializedATN; } get channelNames() { return DocCommentLexer.channelNames; } get modeNames() { return DocCommentLexer.modeNames; } static _serializedATN = [ 4, 0, 10, 71, 6, -1, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 2, 10, 7, 10, 2, 11, 7, 11, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 4, 4, 4, 48, 8, 4, 11, 4, 12, 4, 49, 1, 5, 1, 5, 1, 6, 1, 6, 1, 7, 1, 7, 1, 8, 4, 8, 59, 8, 8, 11, 8, 12, 8, 60, 1, 9, 1, 9, 1, 10, 1, 10, 1, 11, 1, 11, 1, 11, 3, 11, 70, 8, 11, 0, 0, 12, 1, 1, 3, 2, 5, 3, 7, 4, 9, 5, 11, 6, 13, 7, 15, 8, 17, 9, 19, 10, 21, 0, 23, 0, 1, 0, 3, 14, 0, 9, 13, 32, 32, 42, 42, 58, 58, 133, 133, 160, 160, 5760, 5760, 6158, 6158, 8192, 8198, 8200, 8202, 8232, 8233, 8239, 8239, 8287, 8287, 12288, 12288, 11, 0, 9, 9, 11, 12, 32, 32, 160, 160, 5760, 5760, 6158, 6158, 8192, 8198, 8200, 8202, 8239, 8239, 8287, 8287, 12288, 12288, 4, 0, 10, 10, 13, 13, 133, 133, 8232, 8233, 71, 0, 1, 1, 0, 0, 0, 0, 3, 1, 0, 0, 0, 0, 5, 1, 0, 0, 0, 0, 7, 1, 0, 0, 0, 0, 9, 1, 0, 0, 0, 0, 11, 1, 0, 0, 0, 0, 13, 1, 0, 0, 0, 0, 15, 1, 0, 0, 0, 0, 17, 1, 0, 0, 0, 0, 19, 1, 0, 0, 0, 1, 25, 1, 0, 0, 0, 3, 29, 1, 0, 0, 0, 5, 32, 1, 0, 0, 0, 7, 39, 1, 0, 0, 0, 9, 47, 1, 0, 0, 0, 11, 51, 1, 0, 0, 0, 13, 53, 1, 0, 0, 0, 15, 55, 1, 0, 0, 0, 17, 58, 1, 0, 0, 0, 19, 62, 1, 0, 0, 0, 21, 64, 1, 0, 0, 0, 23, 69, 1, 0, 0, 0, 25, 26, 5, 47, 0, 0, 26, 27, 5, 42, 0, 0, 27, 28, 5, 33, 0, 0, 28, 2, 1, 0, 0, 0, 29, 30, 5, 42, 0, 0, 30, 31, 5, 47, 0, 0, 31, 4, 1, 0, 0, 0, 32, 33, 5, 92, 0, 0, 33, 34, 5, 98, 0, 0, 34, 35, 5, 114, 0, 0, 35, 36, 5, 105, 0, 0, 36, 37, 5, 101, 0, 0, 37, 38, 5, 102, 0, 0, 38, 6, 1, 0, 0, 0, 39, 40, 5, 92, 0, 0, 40, 41, 5, 112, 0, 0, 41, 42, 5, 97, 0, 0, 42, 43, 5, 114, 0, 0, 43, 44, 5, 97, 0, 0, 44, 45, 5, 109, 0, 0, 45, 8, 1, 0, 0, 0, 46, 48, 3, 21, 10, 0, 47, 46, 1, 0, 0, 0, 48, 49, 1, 0, 0, 0, 49, 47, 1, 0, 0, 0, 49, 50, 1, 0, 0, 0, 50, 10, 1, 0, 0, 0, 51, 52, 3, 23, 11, 0, 52, 12, 1, 0, 0, 0, 53, 54, 5, 42, 0, 0, 54, 14, 1, 0, 0, 0, 55, 56, 5, 58, 0, 0, 56, 16, 1, 0, 0, 0, 57, 59, 8, 0, 0, 0, 58, 57, 1, 0, 0, 0, 59, 60, 1, 0, 0, 0, 60, 58, 1, 0, 0, 0, 60, 61, 1, 0, 0, 0, 61, 18, 1, 0, 0, 0, 62, 63, 9, 0, 0, 0, 63, 20, 1, 0, 0, 0, 64, 65, 7, 1, 0, 0, 65, 22, 1, 0, 0, 0, 66, 67, 5, 13, 0, 0, 67, 70, 5, 10, 0, 0, 68, 70, 7, 2, 0, 0, 69, 66, 1, 0, 0, 0, 69, 68, 1, 0, 0, 0, 70, 24, 1, 0, 0, 0, 4, 0, 49, 60, 69, 0 ]; static __ATN; static get _ATN() { if (!DocCommentLexer.__ATN) { DocCommentLexer.__ATN = new antlr.ATNDeserializer().deserialize(DocCommentLexer._serializedATN); } return DocCommentLexer.__ATN; } static vocabulary = new antlr.Vocabulary(DocCommentLexer.literalNames, DocCommentLexer.symbolicNames, []); get vocabulary() { return DocCommentLexer.vocabulary; } static decisionsToDFA = DocCommentLexer._ATN.decisionToState.map((ds, index) => new antlr.DFA(ds, index)); }