bitmark-grammar
Version:
1,677 lines (1,636 loc) • 369 kB
text/typescript
// Generated from ./antlr/sequenceParser.g4 by ANTLR 4.9.0-SNAPSHOT
import { ATN } from "antlr4ts/atn/ATN";
import { ATNDeserializer } from "antlr4ts/atn/ATNDeserializer";
import { FailedPredicateException } from "antlr4ts/FailedPredicateException";
import { NotNull } from "antlr4ts/Decorators";
import { NoViableAltException } from "antlr4ts/NoViableAltException";
import { Override } from "antlr4ts/Decorators";
import { Parser } from "antlr4ts/Parser";
import { ParserRuleContext } from "antlr4ts/ParserRuleContext";
import { ParserATNSimulator } from "antlr4ts/atn/ParserATNSimulator";
import { ParseTreeListener } from "antlr4ts/tree/ParseTreeListener";
import { ParseTreeVisitor } from "antlr4ts/tree/ParseTreeVisitor";
import { RecognitionException } from "antlr4ts/RecognitionException";
import { RuleContext } from "antlr4ts/RuleContext";
//import { RuleVersion } from "antlr4ts/RuleVersion";
import { TerminalNode } from "antlr4ts/tree/TerminalNode";
import { Token } from "antlr4ts/Token";
import { TokenStream } from "antlr4ts/TokenStream";
import { Vocabulary } from "antlr4ts/Vocabulary";
import { VocabularyImpl } from "antlr4ts/VocabularyImpl";
import * as Utils from "antlr4ts/misc/Utils";
import { sequenceParserListener } from "./sequenceParserListener";
export class sequenceParser extends Parser {
public static readonly OPDOT = 1;
public static readonly S = 2;
public static readonly BitSequence = 3;
public static readonly BitMenu3Course = 4;
public static readonly OPDOLL = 5;
public static readonly OPBUL = 6;
public static readonly OPESC = 7;
public static readonly OPRANGLES = 8;
public static readonly OPRANGLEL = 9;
public static readonly OPDANGLE = 10;
public static readonly OPU = 11;
public static readonly OPB = 12;
public static readonly OPQ = 13;
public static readonly OPA = 14;
public static readonly OPP = 15;
public static readonly OPM = 16;
public static readonly OPS = 17;
public static readonly OPR = 18;
public static readonly OPC = 19;
public static readonly OPITEM = 20;
public static readonly OPLEAD = 21;
public static readonly OPPAGENUMBER = 22;
public static readonly OPMARGINNUMBER = 23;
public static readonly OPHASH = 24;
public static readonly CL = 25;
public static readonly COLON = 26;
public static readonly AMP = 27;
public static readonly DBLCOLON = 28;
public static readonly PLUS = 29;
public static readonly DotAt = 30;
public static readonly Greater = 31;
public static readonly Less = 32;
public static readonly RightAngle = 33;
public static readonly RightArrow = 34;
public static readonly Dot = 35;
public static readonly DBLEQ = 36;
public static readonly DMM = 37;
public static readonly HSPL = 38;
public static readonly SSPL = 39;
public static readonly SSPL2 = 40;
public static readonly COMMENT = 41;
public static readonly DCANY = 42;
public static readonly Image_type = 43;
public static readonly Audio_type = 44;
public static readonly Video_type = 45;
public static readonly ArticleText = 46;
public static readonly NOTCL = 47;
public static readonly NUMERIC = 48;
public static readonly STRING = 49;
public static readonly NL = 50;
public static readonly NOTBITMARK = 51;
public static readonly ELIPSIS = 52;
public static readonly SENTENCE = 53;
public static readonly BARSTRING = 54;
public static readonly OPAT = 55;
public static readonly AtProgress = 56;
public static readonly AtReference = 57;
public static readonly AtWidth = 58;
public static readonly AtHeight = 59;
public static readonly AtProgressPoints = 60;
public static readonly AtShortanswer = 61;
public static readonly AtLonganswer = 62;
public static readonly AtExampleWithStr = 63;
public static readonly AtExamplecol = 64;
public static readonly AtExamplecl = 65;
public static readonly AtSampleSolution = 66;
public static readonly AtPartialAnswerS = 67;
public static readonly AtPartialAnswer = 68;
public static readonly AtLabeltrue = 69;
public static readonly AtLabelfalse = 70;
public static readonly AtPoints = 71;
public static readonly AtSrc = 72;
public static readonly AtPartner = 73;
public static readonly OPATALT = 74;
public static readonly OPAMARK = 75;
public static readonly ShowInIndex = 76;
public static readonly OpAtCaption = 77;
public static readonly OpAtLicense = 78;
public static readonly OpAtCopyright = 79;
public static readonly OpAtSearch = 80;
public static readonly OpAtIsTracked = 81;
public static readonly OpAtIsInfoOnly = 82;
public static readonly AtDate = 83;
public static readonly Http = 84;
public static readonly Https = 85;
public static readonly AmpAudio = 86;
public static readonly AmpImage = 87;
public static readonly AmpImageZoom = 88;
public static readonly AmpVideo = 89;
public static readonly AmpArticle = 90;
public static readonly AmpDocument = 91;
public static readonly AmpApp = 92;
public static readonly AmpWebsite = 93;
public static readonly AmpStillImageFilm = 94;
public static readonly AmpPdf = 95;
public static readonly OpAmpAudio = 96;
public static readonly OpAmpImage = 97;
public static readonly OpAmpImageZoom = 98;
public static readonly OpAmpVideo = 99;
public static readonly OpAmpArticle = 100;
public static readonly OpAmpArticleAtt = 101;
public static readonly OpAmpDocument = 102;
public static readonly OpAmpApp = 103;
public static readonly OpAmpWebsite = 104;
public static readonly OpAmpStillImageFilm = 105;
public static readonly BracEnclose = 106;
public static readonly AmpAudioLink = 107;
public static readonly AmpImageLink = 108;
public static readonly AmpVideoLink = 109;
public static readonly AmpArticleLink = 110;
public static readonly AmpDocumentLink = 111;
public static readonly AmpDocumentDownload = 112;
public static readonly AmpAppLink = 113;
public static readonly AmpWebsiteLink = 114;
public static readonly AmpStillImageFilmLink = 115;
public static readonly OpAmpAudioLink = 116;
public static readonly OpAmpImageLink = 117;
public static readonly OpAmpVideoLink = 118;
public static readonly OpAmpArticleLink = 119;
public static readonly OpAmpDocumentLink = 120;
public static readonly OpAmpDocumentDownload = 121;
public static readonly OpAmpAppLink = 122;
public static readonly OpAmpWebsiteLink = 123;
public static readonly OpAmpStillImageFilmLink = 124;
public static readonly AmpImageEmbed = 125;
public static readonly AmpVideoEmbed = 126;
public static readonly AmpAudioEmbed = 127;
public static readonly AmpDocumentEmbed = 128;
public static readonly AmpStillImageFilmEmbed = 129;
public static readonly OpAmpImageEmbed = 130;
public static readonly OpAmpVideoEmbed = 131;
public static readonly OpAmpAudioEmbed = 132;
public static readonly OpAmpDocumentEmbed = 133;
public static readonly OpAmpStillImageFilmEmbed = 134;
public static readonly BitmarkMinus = 135;
public static readonly BitmarkPlus = 136;
public static readonly ColonText = 137;
public static readonly ColonJson = 138;
public static readonly Prosemirror = 139;
public static readonly Placeholder = 140;
public static readonly BASIC = 141;
public static readonly JPG = 142;
public static readonly PNG = 143;
public static readonly GIF = 144;
public static readonly SVG = 145;
public static readonly MP2 = 146;
public static readonly MP3 = 147;
public static readonly MP4 = 148;
public static readonly FLV = 149;
public static readonly WMV = 150;
public static readonly MPEG = 151;
public static readonly MPG = 152;
public static readonly TEL = 153;
public static readonly DotArticleAtt = 154;
public static readonly STAR = 155;
public static readonly URL = 156;
public static readonly LIST_LINE = 157;
public static readonly ENCLBARS = 158;
public static readonly RULE_bitmark = 0;
public static readonly RULE_bitmark_ = 1;
public static readonly RULE_bit = 2;
public static readonly RULE_sequence = 3;
public static readonly RULE_seqstr = 4;
public static readonly RULE_minusminus = 5;
public static readonly RULE_menu_3_course = 6;
public static readonly RULE_menu_list = 7;
public static readonly RULE_hspl_slot = 8;
public static readonly RULE_menu_text = 9;
public static readonly RULE_melem = 10;
public static readonly RULE_mtex = 11;
public static readonly RULE_footer = 12;
public static readonly RULE_bitElem = 13;
public static readonly RULE_gap = 14;
public static readonly RULE_single_gap = 15;
public static readonly RULE_choice_plus = 16;
public static readonly RULE_choice_minus = 17;
public static readonly RULE_choice_star = 18;
public static readonly RULE_resource = 19;
public static readonly RULE_bullet_item = 20;
public static readonly RULE_atpoint = 21;
public static readonly RULE_format = 22;
public static readonly RULE_resource_format = 23;
public static readonly RULE_resource_format_extra = 24;
public static readonly RULE_format2 = 25;
public static readonly RULE_image_format = 26;
public static readonly RULE_video_format = 27;
public static readonly RULE_article_format = 28;
public static readonly RULE_document_format = 29;
public static readonly RULE_app_format = 30;
public static readonly RULE_website_format = 31;
public static readonly RULE_stillimagefilm_format = 32;
public static readonly RULE_op_article_format = 33;
public static readonly RULE_op_document_format = 34;
public static readonly RULE_op_app_format = 35;
public static readonly RULE_op_website_format = 36;
public static readonly RULE_op_video_format = 37;
public static readonly RULE_op_stillimagefilm_format = 38;
public static readonly RULE_articlebit = 39;
public static readonly RULE_documentbit = 40;
public static readonly RULE_websitebit = 41;
public static readonly RULE_appbit = 42;
public static readonly RULE_stillimagefilmbit = 43;
public static readonly RULE_stillimg_one = 44;
public static readonly RULE_videobit = 45;
public static readonly RULE_video_one = 46;
public static readonly RULE_imagebit = 47;
public static readonly RULE_image_one = 48;
public static readonly RULE_op_image_format = 49;
public static readonly RULE_image_chained = 50;
public static readonly RULE_image_chained4match = 51;
public static readonly RULE_audiobit = 52;
public static readonly RULE_audio_one = 53;
public static readonly RULE_audio_format = 54;
public static readonly RULE_op_audio_format = 55;
public static readonly RULE_resource_chained = 56;
public static readonly RULE_telephone = 57;
public static readonly RULE_url = 58;
public static readonly RULE_item = 59;
public static readonly RULE_lead = 60;
public static readonly RULE_angleref = 61;
public static readonly RULE_example = 62;
public static readonly RULE_bracketed_text = 63;
public static readonly RULE_reference = 64;
public static readonly RULE_progress = 65;
public static readonly RULE_dateprop = 66;
public static readonly RULE_dateprop_chained = 67;
public static readonly RULE_instruction = 68;
public static readonly RULE_hint = 69;
public static readonly RULE_title = 70;
public static readonly RULE_bool_label = 71;
public static readonly RULE_progress_points = 72;
public static readonly RULE_istracked = 73;
public static readonly RULE_isinfoonly = 74;
public static readonly RULE_atdef = 75;
public static readonly RULE_atdef_ = 76;
public static readonly RULE_dollarans = 77;
public static readonly RULE_anchor = 78;
public static readonly RULE_dcolon = 79;
public static readonly RULE_s_and_w = 80;
public static readonly RULE_dclines = 81;
public static readonly RULE_clnsp = 82;
public static readonly RULE_sspl = 83;
public static readonly RULE_words = 84;
public static readonly RULE_sp = 85;
// tslint:disable:no-trailing-whitespace
public static readonly ruleNames: string[] = [
"bitmark", "bitmark_", "bit", "sequence", "seqstr", "minusminus", "menu_3_course",
"menu_list", "hspl_slot", "menu_text", "melem", "mtex", "footer", "bitElem",
"gap", "single_gap", "choice_plus", "choice_minus", "choice_star", "resource",
"bullet_item", "atpoint", "format", "resource_format", "resource_format_extra",
"format2", "image_format", "video_format", "article_format", "document_format",
"app_format", "website_format", "stillimagefilm_format", "op_article_format",
"op_document_format", "op_app_format", "op_website_format", "op_video_format",
"op_stillimagefilm_format", "articlebit", "documentbit", "websitebit",
"appbit", "stillimagefilmbit", "stillimg_one", "videobit", "video_one",
"imagebit", "image_one", "op_image_format", "image_chained", "image_chained4match",
"audiobit", "audio_one", "audio_format", "op_audio_format", "resource_chained",
"telephone", "url", "item", "lead", "angleref", "example", "bracketed_text",
"reference", "progress", "dateprop", "dateprop_chained", "instruction",
"hint", "title", "bool_label", "progress_points", "istracked", "isinfoonly",
"atdef", "atdef_", "dollarans", "anchor", "dcolon", "s_and_w", "dclines",
"clnsp", "sspl", "words", "sp",
];
private static readonly _LITERAL_NAMES: Array<string | undefined> = [
undefined, "'[.'", undefined, undefined, undefined, undefined, undefined,
undefined, undefined, undefined, undefined, undefined, undefined, undefined,
undefined, undefined, undefined, undefined, undefined, undefined, undefined,
undefined, undefined, undefined, "'[#'", "']'", "':'", "'&'", "'::'",
"'+'", "'.@'", "'>'", "'<'", "'\u25BA'", "'\u2192'", "'.'", "'=='", undefined,
undefined, undefined, undefined, undefined, undefined, undefined, undefined,
undefined, undefined, undefined, undefined, undefined, undefined, undefined,
undefined, undefined, undefined, "'[@'", undefined, undefined, undefined,
undefined, undefined, undefined, undefined, undefined, undefined, undefined,
undefined, undefined, undefined, undefined, undefined, undefined, undefined,
undefined, undefined, undefined, undefined, undefined, undefined, undefined,
undefined, undefined, undefined, undefined, "'http://'", "'https://'",
"'&audio'", "'&image'", "'&image-zoom'", "'&video'", "'&article'", "'&document'",
"'&app'", "'&website'", "'&still-image-film'", "'&pdf'", undefined, undefined,
undefined, undefined, undefined, undefined, undefined, undefined, undefined,
undefined, undefined, "'&audio-link'", "'&image-link'", "'&video-link'",
"'&article-link'", "'&document-link'", "'&document-download'", "'&app-link'",
"'&website-link'", "'&still-image-film-link'", undefined, undefined, undefined,
undefined, undefined, undefined, undefined, undefined, undefined, "'&image-embed'",
"'&video-embed'", "'&daudio-embed'", "'&document-embed'", "'&still-image-film-embed'",
undefined, undefined, undefined, undefined, undefined, "':bitmark--'",
"':bitmark++'", "':text'", "':json'", "':prosemirror'", "':placeholder'",
"':basic'", "':jpg'", "':png'", "':gif'", "':svg'", "':mp2'", "':mp3'",
"':mp4'", "':flv'", "':wmv'", "':mpeg'", "':mpg'", "'tel:'", "'.article-attachment'",
"'*'",
];
private static readonly _SYMBOLIC_NAMES: Array<string | undefined> = [
undefined, "OPDOT", "S", "BitSequence", "BitMenu3Course", "OPDOLL", "OPBUL",
"OPESC", "OPRANGLES", "OPRANGLEL", "OPDANGLE", "OPU", "OPB", "OPQ", "OPA",
"OPP", "OPM", "OPS", "OPR", "OPC", "OPITEM", "OPLEAD", "OPPAGENUMBER",
"OPMARGINNUMBER", "OPHASH", "CL", "COLON", "AMP", "DBLCOLON", "PLUS",
"DotAt", "Greater", "Less", "RightAngle", "RightArrow", "Dot", "DBLEQ",
"DMM", "HSPL", "SSPL", "SSPL2", "COMMENT", "DCANY", "Image_type", "Audio_type",
"Video_type", "ArticleText", "NOTCL", "NUMERIC", "STRING", "NL", "NOTBITMARK",
"ELIPSIS", "SENTENCE", "BARSTRING", "OPAT", "AtProgress", "AtReference",
"AtWidth", "AtHeight", "AtProgressPoints", "AtShortanswer", "AtLonganswer",
"AtExampleWithStr", "AtExamplecol", "AtExamplecl", "AtSampleSolution",
"AtPartialAnswerS", "AtPartialAnswer", "AtLabeltrue", "AtLabelfalse",
"AtPoints", "AtSrc", "AtPartner", "OPATALT", "OPAMARK", "ShowInIndex",
"OpAtCaption", "OpAtLicense", "OpAtCopyright", "OpAtSearch", "OpAtIsTracked",
"OpAtIsInfoOnly", "AtDate", "Http", "Https", "AmpAudio", "AmpImage", "AmpImageZoom",
"AmpVideo", "AmpArticle", "AmpDocument", "AmpApp", "AmpWebsite", "AmpStillImageFilm",
"AmpPdf", "OpAmpAudio", "OpAmpImage", "OpAmpImageZoom", "OpAmpVideo",
"OpAmpArticle", "OpAmpArticleAtt", "OpAmpDocument", "OpAmpApp", "OpAmpWebsite",
"OpAmpStillImageFilm", "BracEnclose", "AmpAudioLink", "AmpImageLink",
"AmpVideoLink", "AmpArticleLink", "AmpDocumentLink", "AmpDocumentDownload",
"AmpAppLink", "AmpWebsiteLink", "AmpStillImageFilmLink", "OpAmpAudioLink",
"OpAmpImageLink", "OpAmpVideoLink", "OpAmpArticleLink", "OpAmpDocumentLink",
"OpAmpDocumentDownload", "OpAmpAppLink", "OpAmpWebsiteLink", "OpAmpStillImageFilmLink",
"AmpImageEmbed", "AmpVideoEmbed", "AmpAudioEmbed", "AmpDocumentEmbed",
"AmpStillImageFilmEmbed", "OpAmpImageEmbed", "OpAmpVideoEmbed", "OpAmpAudioEmbed",
"OpAmpDocumentEmbed", "OpAmpStillImageFilmEmbed", "BitmarkMinus", "BitmarkPlus",
"ColonText", "ColonJson", "Prosemirror", "Placeholder", "BASIC", "JPG",
"PNG", "GIF", "SVG", "MP2", "MP3", "MP4", "FLV", "WMV", "MPEG", "MPG",
"TEL", "DotArticleAtt", "STAR", "URL", "LIST_LINE", "ENCLBARS",
];
public static readonly VOCABULARY: Vocabulary = new VocabularyImpl(sequenceParser._LITERAL_NAMES, sequenceParser._SYMBOLIC_NAMES, []);
// @Override
// @NotNull
public get vocabulary(): Vocabulary {
return sequenceParser.VOCABULARY;
}
// tslint:enable:no-trailing-whitespace
// @Override
public get grammarFileName(): string { return "sequenceParser.g4"; }
// @Override
public get ruleNames(): string[] { return sequenceParser.ruleNames; }
// @Override
public get serializedATN(): string { return sequenceParser._serializedATN; }
protected createFailedPredicateException(predicate?: string, message?: string): FailedPredicateException {
return new FailedPredicateException(this, predicate, message);
}
constructor(input: TokenStream) {
super(input);
this._interp = new ParserATNSimulator(sequenceParser._ATN, this);
}
// @RuleVersion(0)
public bitmark(): BitmarkContext {
let _localctx: BitmarkContext = new BitmarkContext(this._ctx, this.state);
this.enterRule(_localctx, 0, sequenceParser.RULE_bitmark);
let _la: number;
try {
let _alt: number;
this.enterOuterAlt(_localctx, 1);
{
this.state = 185;
this._errHandler.sync(this);
_la = this._input.LA(1);
do {
{
{
this.state = 172;
this.bitmark_();
this.state = 182;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 1, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 176;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === sequenceParser.S) {
{
{
this.state = 173;
this.match(sequenceParser.S);
}
}
this.state = 178;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
this.state = 179;
this.match(sequenceParser.NL);
}
}
}
this.state = 184;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 1, this._ctx);
}
}
}
this.state = 187;
this._errHandler.sync(this);
_la = this._input.LA(1);
} while (_la === sequenceParser.BitSequence || _la === sequenceParser.BitMenu3Course);
this.state = 192;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === sequenceParser.NL) {
{
{
this.state = 189;
this.match(sequenceParser.NL);
}
}
this.state = 194;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
this.state = 195;
this.match(sequenceParser.EOF);
}
}
catch (re) {
if (re instanceof RecognitionException) {
_localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
} else {
throw re;
}
}
finally {
this.exitRule();
}
return _localctx;
}
// @RuleVersion(0)
public bitmark_(): Bitmark_Context {
let _localctx: Bitmark_Context = new Bitmark_Context(this._ctx, this.state);
this.enterRule(_localctx, 2, sequenceParser.RULE_bitmark_);
try {
this.enterOuterAlt(_localctx, 1);
{
this.state = 197;
this.bit();
}
}
catch (re) {
if (re instanceof RecognitionException) {
_localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
} else {
throw re;
}
}
finally {
this.exitRule();
}
return _localctx;
}
// @RuleVersion(0)
public bit(): BitContext {
let _localctx: BitContext = new BitContext(this._ctx, this.state);
this.enterRule(_localctx, 4, sequenceParser.RULE_bit);
try {
this.state = 201;
this._errHandler.sync(this);
switch (this._input.LA(1)) {
case sequenceParser.BitSequence:
this.enterOuterAlt(_localctx, 1);
{
this.state = 199;
this.sequence();
}
break;
case sequenceParser.BitMenu3Course:
this.enterOuterAlt(_localctx, 2);
{
this.state = 200;
this.menu_3_course();
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (re) {
if (re instanceof RecognitionException) {
_localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
} else {
throw re;
}
}
finally {
this.exitRule();
}
return _localctx;
}
// @RuleVersion(0)
public sequence(): SequenceContext {
let _localctx: SequenceContext = new SequenceContext(this._ctx, this.state);
this.enterRule(_localctx, 6, sequenceParser.RULE_sequence);
let _la: number;
try {
let _alt: number;
this.state = 268;
this._errHandler.sync(this);
switch ( this.interpreter.adaptivePredict(this._input, 15, this._ctx) ) {
case 1:
this.enterOuterAlt(_localctx, 1);
{
this.state = 203;
this.match(sequenceParser.BitSequence);
this.state = 204;
this.format();
this.state = 205;
this.match(sequenceParser.CL);
this.state = 215;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 6, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 209;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === sequenceParser.NL) {
{
{
this.state = 206;
this.match(sequenceParser.NL);
}
}
this.state = 211;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
this.state = 212;
this.bitElem();
}
}
}
this.state = 217;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 6, this._ctx);
}
}
break;
case 2:
this.enterOuterAlt(_localctx, 2);
{
this.state = 218;
this.match(sequenceParser.BitSequence);
this.state = 219;
this.format();
this.state = 220;
this.match(sequenceParser.CL);
this.state = 230;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 8, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 224;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === sequenceParser.NL) {
{
{
this.state = 221;
this.match(sequenceParser.NL);
}
}
this.state = 226;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
this.state = 227;
this.bitElem();
}
}
}
this.state = 232;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 8, this._ctx);
}
this.state = 236;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === sequenceParser.NL) {
{
{
this.state = 233;
this.match(sequenceParser.NL);
}
}
this.state = 238;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
this.state = 239;
this.match(sequenceParser.HSPL);
this.state = 245;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 10, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 240;
this.seqstr();
this.state = 241;
this.minusminus();
}
}
}
this.state = 247;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 10, this._ctx);
}
this.state = 248;
this.seqstr();
this.state = 249;
this.match(sequenceParser.HSPL);
this.state = 251;
this._errHandler.sync(this);
switch ( this.interpreter.adaptivePredict(this._input, 11, this._ctx) ) {
case 1:
{
this.state = 250;
this.footer();
}
break;
}
this.state = 266;
this._errHandler.sync(this);
switch ( this.interpreter.adaptivePredict(this._input, 14, this._ctx) ) {
case 1:
{
this.state = 253;
this.resource();
this.state = 263;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 13, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 257;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === sequenceParser.NL) {
{
{
this.state = 254;
this.match(sequenceParser.NL);
}
}
this.state = 259;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
this.state = 260;
this.resource();
}
}
}
this.state = 265;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 13, this._ctx);
}
}
break;
}
}
break;
}
}
catch (re) {
if (re instanceof RecognitionException) {
_localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
} else {
throw re;
}
}
finally {
this.exitRule();
}
return _localctx;
}
// @RuleVersion(0)
public seqstr(): SeqstrContext {
let _localctx: SeqstrContext = new SeqstrContext(this._ctx, this.state);
this.enterRule(_localctx, 8, sequenceParser.RULE_seqstr);
let _la: number;
try {
let _alt: number;
this.enterOuterAlt(_localctx, 1);
{
this.state = 276;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 17, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 270;
this.bitElem();
this.state = 272;
this._errHandler.sync(this);
_la = this._input.LA(1);
if (_la === sequenceParser.NL) {
{
this.state = 271;
this.match(sequenceParser.NL);
}
}
}
}
}
this.state = 278;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 17, this._ctx);
}
this.state = 279;
this.s_and_w();
}
}
catch (re) {
if (re instanceof RecognitionException) {
_localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
} else {
throw re;
}
}
finally {
this.exitRule();
}
return _localctx;
}
// @RuleVersion(0)
public minusminus(): MinusminusContext {
let _localctx: MinusminusContext = new MinusminusContext(this._ctx, this.state);
this.enterRule(_localctx, 10, sequenceParser.RULE_minusminus);
try {
this.enterOuterAlt(_localctx, 1);
{
this.state = 281;
this.match(sequenceParser.DMM);
}
}
catch (re) {
if (re instanceof RecognitionException) {
_localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
} else {
throw re;
}
}
finally {
this.exitRule();
}
return _localctx;
}
// @RuleVersion(0)
public menu_3_course(): Menu_3_courseContext {
let _localctx: Menu_3_courseContext = new Menu_3_courseContext(this._ctx, this.state);
this.enterRule(_localctx, 12, sequenceParser.RULE_menu_3_course);
let _la: number;
try {
let _alt: number;
this.enterOuterAlt(_localctx, 1);
{
this.state = 283;
this.match(sequenceParser.BitMenu3Course);
this.state = 284;
this.format();
this.state = 285;
this.match(sequenceParser.CL);
this.state = 295;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 19, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 289;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === sequenceParser.NL) {
{
{
this.state = 286;
this.match(sequenceParser.NL);
}
}
this.state = 291;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
this.state = 292;
this.bitElem();
}
}
}
this.state = 297;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 19, this._ctx);
}
this.state = 301;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === sequenceParser.NL) {
{
{
this.state = 298;
this.match(sequenceParser.NL);
}
}
this.state = 303;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
this.state = 304;
this.menu_list();
this.state = 306;
this._errHandler.sync(this);
switch ( this.interpreter.adaptivePredict(this._input, 21, this._ctx) ) {
case 1:
{
this.state = 305;
this.footer();
}
break;
}
this.state = 321;
this._errHandler.sync(this);
switch ( this.interpreter.adaptivePredict(this._input, 24, this._ctx) ) {
case 1:
{
this.state = 308;
this.resource();
this.state = 318;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 23, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 312;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === sequenceParser.NL) {
{
{
this.state = 309;
this.match(sequenceParser.NL);
}
}
this.state = 314;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
this.state = 315;
this.resource();
}
}
}
this.state = 320;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 23, this._ctx);
}
}
break;
}
}
}
catch (re) {
if (re instanceof RecognitionException) {
_localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
} else {
throw re;
}
}
finally {
this.exitRule();
}
return _localctx;
}
// @RuleVersion(0)
public menu_list(): Menu_listContext {
let _localctx: Menu_listContext = new Menu_listContext(this._ctx, this.state);
this.enterRule(_localctx, 14, sequenceParser.RULE_menu_list);
try {
let _alt: number;
this.enterOuterAlt(_localctx, 1);
{
this.state = 323;
this.hspl_slot();
this.state = 324;
this.menu_text();
this.state = 329;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 25, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 325;
this.match(sequenceParser.HSPL);
this.state = 326;
this.menu_text();
}
}
}
this.state = 331;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 25, this._ctx);
}
this.state = 332;
this.match(sequenceParser.HSPL);
}
}
catch (re) {
if (re instanceof RecognitionException) {
_localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
} else {
throw re;
}
}
finally {
this.exitRule();
}
return _localctx;
}
// @RuleVersion(0)
public hspl_slot(): Hspl_slotContext {
let _localctx: Hspl_slotContext = new Hspl_slotContext(this._ctx, this.state);
this.enterRule(_localctx, 16, sequenceParser.RULE_hspl_slot);
try {
this.enterOuterAlt(_localctx, 1);
{
this.state = 334;
this.match(sequenceParser.HSPL);
}
}
catch (re) {
if (re instanceof RecognitionException) {
_localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
} else {
throw re;
}
}
finally {
this.exitRule();
}
return _localctx;
}
// @RuleVersion(0)
public menu_text(): Menu_textContext {
let _localctx: Menu_textContext = new Menu_textContext(this._ctx, this.state);
this.enterRule(_localctx, 18, sequenceParser.RULE_menu_text);
try {
this.state = 338;
this._errHandler.sync(this);
switch (this._input.LA(1)) {
case sequenceParser.S:
case sequenceParser.OPB:
case sequenceParser.OPQ:
case sequenceParser.OPA:
case sequenceParser.OPS:
case sequenceParser.COLON:
case sequenceParser.AMP:
case sequenceParser.Greater:
case sequenceParser.Less:
case sequenceParser.RightAngle:
case sequenceParser.RightArrow:
case sequenceParser.DBLEQ:
case sequenceParser.NUMERIC:
case sequenceParser.STRING:
case sequenceParser.NOTBITMARK:
case sequenceParser.ELIPSIS:
case sequenceParser.SENTENCE:
case sequenceParser.BARSTRING:
case sequenceParser.AtExampleWithStr:
case sequenceParser.AtExamplecol:
case sequenceParser.AtExamplecl:
case sequenceParser.AtSampleSolution:
case sequenceParser.OpAtCopyright:
case sequenceParser.AmpAudio:
case sequenceParser.AmpImage:
case sequenceParser.AmpVideo:
case sequenceParser.AmpArticle:
case sequenceParser.AmpDocument:
case sequenceParser.AmpApp:
case sequenceParser.AmpWebsite:
case sequenceParser.AmpAudioLink:
case sequenceParser.AmpImageLink:
case sequenceParser.AmpArticleLink:
case sequenceParser.AmpDocumentLink:
case sequenceParser.BitmarkMinus:
case sequenceParser.BitmarkPlus:
case sequenceParser.URL:
case sequenceParser.LIST_LINE:
this.enterOuterAlt(_localctx, 1);
{
this.state = 336;
this.melem();
}
break;
case sequenceParser.HSPL:
this.enterOuterAlt(_localctx, 2);
// tslint:disable-next-line:no-empty
{
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (re) {
if (re instanceof RecognitionException) {
_localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
} else {
throw re;
}
}
finally {
this.exitRule();
}
return _localctx;
}
// @RuleVersion(0)
public melem(): MelemContext {
let _localctx: MelemContext = new MelemContext(this._ctx, this.state);
this.enterRule(_localctx, 20, sequenceParser.RULE_melem);
let _la: number;
try {
this.enterOuterAlt(_localctx, 1);
{
this.state = 340;
this.mtex();
this.state = 344;
this._errHandler.sync(this);
_la = this._input.LA(1);
while ((((_la) & ~0x1F) === 0 && ((1 << _la) & ((1 << sequenceParser.S) | (1 << sequenceParser.OPB) | (1 << sequenceParser.OPQ) | (1 << sequenceParser.OPA) | (1 << sequenceParser.OPS) | (1 << sequenceParser.COLON) | (1 << sequenceParser.AMP) | (1 << sequenceParser.Greater))) !== 0) || ((((_la - 32)) & ~0x1F) === 0 && ((1 << (_la - 32)) & ((1 << (sequenceParser.Less - 32)) | (1 << (sequenceParser.RightAngle - 32)) | (1 << (sequenceParser.RightArrow - 32)) | (1 << (sequenceParser.DBLEQ - 32)) | (1 << (sequenceParser.NUMERIC - 32)) | (1 << (sequenceParser.STRING - 32)) | (1 << (sequenceParser.NOTBITMARK - 32)) | (1 << (sequenceParser.ELIPSIS - 32)) | (1 << (sequenceParser.SENTENCE - 32)) | (1 << (sequenceParser.BARSTRING - 32)) | (1 << (sequenceParser.AtExampleWithStr - 32)))) !== 0) || ((((_la - 64)) & ~0x1F) === 0 && ((1 << (_la - 64)) & ((1 << (sequenceParser.AtExamplecol - 64)) | (1 << (sequenceParser.AtExamplecl - 64)) | (1 << (sequenceParser.AtSampleSolution - 64)) | (1 << (sequenceParser.OpAtCopyright - 64)) | (1 << (sequenceParser.AmpAudio - 64)) | (1 << (sequenceParser.AmpImage - 64)) | (1 << (sequenceParser.AmpVideo - 64)) | (1 << (sequenceParser.AmpArticle - 64)) | (1 << (sequenceParser.AmpDocument - 64)) | (1 << (sequenceParser.AmpApp - 64)) | (1 << (sequenceParser.AmpWebsite - 64)))) !== 0) || ((((_la - 107)) & ~0x1F) === 0 && ((1 << (_la - 107)) & ((1 << (sequenceParser.AmpAudioLink - 107)) | (1 << (sequenceParser.AmpImageLink - 107)) | (1 << (sequenceParser.AmpArticleLink - 107)) | (1 << (sequenceParser.AmpDocumentLink - 107)) | (1 << (sequenceParser.BitmarkMinus - 107)) | (1 << (sequenceParser.BitmarkPlus - 107)))) !== 0) || _la === sequenceParser.URL || _la === sequenceParser.LIST_LINE) {
{
{
this.state = 341;
this.mtex();
}
}
this.state = 346;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
}
}
catch (re) {
if (re instanceof RecognitionException) {
_localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
} else {
throw re;
}
}
finally {
this.exitRule();
}
return _localctx;
}
// @RuleVersion(0)
public mtex(): MtexContext {
let _localctx: MtexContext = new MtexContext(this._ctx, this.state);
this.enterRule(_localctx, 22, sequenceParser.RULE_mtex);
let _la: number;
try {
this.state = 366;
this._errHandler.sync(this);
switch (this._input.LA(1)) {
case sequenceParser.S:
case sequenceParser.OPS:
case sequenceParser.COLON:
case sequenceParser.AMP:
case sequenceParser.Greater:
case sequenceParser.Less:
case sequenceParser.RightAngle:
case sequenceParser.RightArrow:
case sequenceParser.DBLEQ:
case sequenceParser.NUMERIC:
case sequenceParser.STRING:
case sequenceParser.NOTBITMARK:
case sequenceParser.ELIPSIS:
case sequenceParser.SENTENCE:
case sequenceParser.BARSTRING:
case sequenceParser.AmpAudio:
case sequenceParser.AmpImage:
case sequenceParser.AmpVideo:
case sequenceParser.AmpArticle:
case sequenceParser.AmpDocument:
case sequenceParser.AmpApp:
case sequenceParser.AmpWebsite:
case sequenceParser.AmpAudioLink:
case sequenceParser.AmpImageLink:
case sequenceParser.AmpArticleLink:
case sequenceParser.AmpDocumentLink:
case sequenceParser.BitmarkMinus:
case sequenceParser.BitmarkPlus:
case sequenceParser.URL:
case sequenceParser.LIST_LINE:
this.enterOuterAlt(_localctx, 1);
{
this.state = 347;
this.s_and_w();
this.state = 351;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === sequenceParser.NL) {
{
{
this.state = 348;
this.match(sequenceParser.NL);
}
}
this.state = 353;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
}
break;
case sequenceParser.OPB:
case sequenceParser.OPQ:
case sequenceParser.OPA:
case sequenceParser.AtExampleWithStr:
case sequenceParser.AtExamplecol:
case sequenceParser.AtExamplecl:
case sequenceParser.AtSampleSolution:
case sequenceParser.OpAtCopyright:
this.enterOuterAlt(_localctx, 2);
{
this.state = 358;
this._errHandler.sync(this);
switch (this._input.LA(1)) {
case sequenceParser.OPB:
{
this.state = 354;
this.instruction();
}
break;
case sequenceParser.OPA:
case sequenceParser.AtSampleSolution:
case sequenceParser.OpAtCopyright:
{
this.state = 355;
this.atdef();
}
break;
case sequenceParser.OPQ:
{
this.state = 356;
this.hint();
}
break;
case sequenceParser.AtExampleWithStr:
case sequenceParser.AtExamplecol:
case sequenceParser.AtExamplecl:
{
this.state = 357;
this.example();
}
break;
default:
throw new NoViableAltException(this);
}
this.state = 363;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === sequenceParser.NL) {
{
{
this.state = 360;
this.match(sequenceParser.NL);
}
}
this.state = 365;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (re) {
if (re instanceof RecognitionException) {
_localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
} else {
throw re;
}
}
finally {
this.exitRule();
}
return _localctx;
}
// @RuleVersion(0)
public footer(): FooterContext {
let _localctx: FooterContext = new FooterContext(this._ctx, this.state);
this.enterRule(_localctx, 24, sequenceParser.RULE_footer);
let _la: number;
try {
let _alt: number;
this.enterOuterAlt(_localctx, 1);
{
this.state = 375;
this._errHandler.sync(this);
_alt = 1;
do {
switch (_alt) {
case 1:
{
{
this.state = 371;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === sequenceParser.NL) {
{
{
this.state = 368;
this.match(sequenceParser.NL);
}
}
this.state = 373;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
this.state = 374;
this.s_and_w();
}
}
break;
default:
throw new NoViableAltException(this);
}
this.state = 377;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 33, this._ctx);
} while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER);
this.state = 380;
this._errHandler.sync(this);
_alt = 1;
do {
switch (_alt) {
case 1:
{
{
this.state = 379;
this.match(sequenceParser.NL);
}
}
break;
default:
throw new NoViableAltException(this);
}
this.state = 382;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 34, this._ctx);
} while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER);
}
}
catch (re) {
if (re instanceof RecognitionException) {
_localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
} else {
throw re;
}
}
finally {
this.exitRule();
}
return _localctx;
}
// @RuleVersion(0)
public bitElem(): BitElemContext {
let _localctx: BitElemContext = new BitElemContext(this._ctx, this.state);
this.enterRule(_localctx, 26, sequenceParser.RULE_bitElem);
try {
this.state = 410;
this._errHandler.sync(this);
switch ( this.interpreter.adaptivePredict(this._input, 35, this._ctx) ) {
case 1:
this.enterOuterAlt(_localctx, 1);
{
this.state = 384;
this.match(sequenceParser.LIST_LINE);
}
break;
case 2:
this.enterOuterAlt(_localctx, 2);
{
this.state = 385;
this.match(sequenceParser.NOTBITMARK);
}
break;
case 3:
this.enterOuterAlt(_localctx, 3);
{
this.state = 386;
this.dclines();
}
break;
case 4:
this.enterOuterAlt(_localctx, 4);
{
this.state = 387;
this.gap();
}
break;
case 5:
this.enterOuterAlt(_localctx, 5);
{
this.state = 388;
this.atdef();
}
break;
case 6:
this.enterOuterAlt(_localctx, 6);
{
this.state = 389;
this.reference();
}
break;
case 7:
this.enterOuterAlt(_localctx, 7);
{
this.state = 390;
this.dollarans();
}
break;
case 8:
this.enterOuterAlt(_localctx, 8);
{
this.state = 391;
this.item();
}
break;
case 9:
this.enterOuterAlt(_localctx, 9);
{
this.state = 392;
this.title();
}
break;
case 10:
this.enterOuterAlt(_localctx, 10);
{
this.state = 393;
this.instruction();
}
break;
case 11:
this.enterOuterAlt(_localctx, 11);
{
this.state = 394;
this.hint();
}
break;
case 12:
this.enterOuterAlt(_localctx, 12);
{
this.state = 395;
this.s_and_w();
}
break;
case 13:
this.enterOuterAlt(_localctx, 13);
{
this.state = 396;
this.example();
}
break;
case 14:
this.enterOuterAlt(_localctx, 14);
{
this.state = 397;
this.bool_label();
}
break;
case 15:
this.enterOuterAlt(_localctx, 15);
{
this.state = 398;
this.imagebit();
}
break;
case 16:
this.enterOuterAlt(_localctx, 16);
{
this.state = 399;
this.audiobit();
}
break;
case 17:
this.enterOuterAlt(_localctx, 17);
{
this.state = 400;
this.videobit();
}
break;
case 18:
this.enterOuterAlt(_localctx, 18);
{
this.state = 401;
this.articlebit();
}
break;
case 19:
this.enterOuterAlt(_localctx, 19);
{
this.state = 402;
this.documentbit();
}
break;
case 20:
this.enterOuterAlt(_localctx, 20);
{
this.state = 403;
this.appbit();
}
break;
case 21:
this.enterOuterAlt(_localctx, 21);
{
this.state = 404;
this.websitebit();
}
break;
case 22:
this.enterOuterAlt(_localctx, 22);
{
this.state = 405;
this.stillimagefilmbit();
}
break;
case 23:
this.enterOuterAlt(_localctx, 23);
{
this.state = 406;
this.angleref();
}
break;
case 24:
this.enterOuterAlt(_localctx, 24);
{
this.state = 407;
this.anchor();
}
break;
case 25:
this.enterOuterAlt(_localctx, 25);
{
this.state = 408;
this.bracketed_text();
}
break;
case 26:
this.enterOuterAlt(_localctx, 26);
{
this.state = 409;
this.sp();
}
break;
}
}
catch (re) {
if (re instanceof RecognitionException) {
_localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
} else {
throw re;
}
}
finally {
this.exitRule();
}
return _localctx;
}
// @RuleVersion(0)
public gap(): GapContext {
let _localctx: GapContext = new GapContext(this._ctx, this.state);
this.enterRule(_localctx, 28, sequenceParser.RULE_gap);
try {
let _alt: number;
this.enterOuterAlt(_localctx, 1);
{
this.state = 412;
this.single_gap();
this.state = 420;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 37, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
this.state = 418;
this._errHandler.sync(this);
switch (this._input.LA(1)) {
case sequenceParser.OPU:
{
this.state = 413;
this.single_gap();
}
break;
case sequenceParser.OPB:
{
this.state = 414;
this.instruction();
}
break;
case sequenceParser.OPQ:
{
this.state = 415;
this.hint();
}
break;
case sequenceParser.OPC:
case sequenceParser.OPITEM:
{
this.state = 416;
this.item();
}
break;
case sequenceParser.AtExampleWithStr:
case sequenceParser.AtExamplecol:
case sequenceParser.AtExamplecl:
{
this.state = 417;
this.example();
}
break;
default:
throw new NoViableAltException(this);
}
}
}
this.state = 422;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 37, this._ctx);
}
}
}
catch (re) {
if (re instanceof RecognitionException) {
_localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
} else {
throw re;
}
}
finally {
this.exitRule();
}
return _localctx;
}
// @RuleVersion(0)
public single_gap(): Single_gapContext {
let _localctx: Single_gapContext = new Single_gapContext(this._ctx, this.state);
this.enterRule(_localctx, 30, sequenceParser.RULE_single_gap);
let _la: number;
try {
this.enterOuterAlt(_localctx, 1);
{
this.state = 423;
this.match(sequenceParser.OPU);
this.state = 427;
this._errHandler.sync(this);
switch ( this.interpreter.adaptivePredict(this._input, 38, this._ctx) ) {
case 1:
{
this.state = 424;
this.match(sequenceParser.NUMERIC);
}
break;
case 2:
{
this.state = 425;
this.match(sequenceParser.STRING);
}
break;
case 3:
// tslint:disable-next-line:no-empty
{
}
break;
}
this.state = 432;
this._errHandler.sync(this);
_la = this._input.LA(1);
while ((((_la) & ~0x1F) === 0 && ((1 << _la) & ((1 << sequenceParser.S) | (1 << sequenceParser.OPS) | (1 << sequenceParser.COLON) | (1 << sequenceParser.AMP) | (1 << sequenceParser.Greater))) !== 0) || ((((_la - 32)) & ~0x1F) === 0 && ((1 << (_la - 32)) & ((1 << (sequenceParser.Less - 32)) | (1 << (sequenceParser.RightAngle - 32)) | (1 << (sequenceParser.RightArrow - 32)) | (1 << (sequenceParser.DBLEQ - 32)) | (1 << (sequenceParser.NUMERIC - 32)) | (1 << (sequenceParser.STRING - 32)) | (1 << (sequenceParser.NOTBITMARK - 32)) | (1 << (sequenceParser.ELIPSIS - 32)) | (1 << (sequenceParser.SENTENCE - 32)) | (1 << (sequenceParser.BARSTRING - 32)))) !== 0) || ((((_la - 86)) & ~0x1F) === 0 && ((1 << (_la - 86)) & ((1 << (sequenceParser.AmpAudio - 86)) | (1 << (sequenceParser.AmpImage - 86)) | (1 << (sequenceParser.AmpVideo - 86)) | (1 << (sequenceParser.AmpArticle - 86)) | (1 << (sequenceParser.AmpDoc