bitmark-grammar
Version:
1,620 lines (1,580 loc) • 397 kB
text/typescript
// Generated from ./antlr/interviewParser.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 { interviewParserListener } from "./interviewParserListener";
export class interviewParser extends Parser {
public static readonly OPDOT = 1;
public static readonly S = 2;
public static readonly BitInterview = 3;
public static readonly BitInterviewinstgrp = 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 DBLEQ = 35;
public static readonly OR = 36;
public static readonly HSPL = 37;
public static readonly HSPL2 = 38;
public static readonly SSPL = 39;
public static readonly SSPL2 = 40;
public static readonly BULLET = 41;
public static readonly COMMENT = 42;
public static readonly DCANY = 43;
public static readonly Image_type = 44;
public static readonly Audio_type = 45;
public static readonly Video_type = 46;
public static readonly ArticleText = 47;
public static readonly NOTCL = 48;
public static readonly NUMERIC = 49;
public static readonly STRING = 50;
public static readonly NL = 51;
public static readonly NOTBITMARK = 52;
public static readonly ELIPSIS = 53;
public static readonly SENTENCE = 54;
public static readonly BARSTRING = 55;
public static readonly OPAT = 56;
public static readonly AtProgress = 57;
public static readonly AtReference = 58;
public static readonly AtWidth = 59;
public static readonly AtHeight = 60;
public static readonly AtProgressPoints = 61;
public static readonly AtShortanswer = 62;
public static readonly AtLonganswer = 63;
public static readonly AtExampleWithStr = 64;
public static readonly AtExamplecol = 65;
public static readonly AtExamplecl = 66;
public static readonly AtSampleSolution = 67;
public static readonly AtPartialAnswerS = 68;
public static readonly AtPartialAnswer = 69;
public static readonly AtLabeltrue = 70;
public static readonly AtLabelfalse = 71;
public static readonly AtPoints = 72;
public static readonly AtSrc = 73;
public static readonly AtPartner = 74;
public static readonly OPATALT = 75;
public static readonly OPAMARK = 76;
public static readonly ShowInIndex = 77;
public static readonly OpAtCaption = 78;
public static readonly OpAtLicense = 79;
public static readonly OpAtCopyright = 80;
public static readonly OpAtSearch = 81;
public static readonly OpAtIsTracked = 82;
public static readonly OpAtIsInfoOnly = 83;
public static readonly AtDate = 84;
public static readonly Http = 85;
public static readonly Https = 86;
public static readonly AmpAudio = 87;
public static readonly AmpImage = 88;
public static readonly AmpImageZoom = 89;
public static readonly AmpVideo = 90;
public static readonly AmpArticle = 91;
public static readonly AmpDocument = 92;
public static readonly AmpApp = 93;
public static readonly AmpWebsite = 94;
public static readonly AmpStillImageFilm = 95;
public static readonly AmpPdf = 96;
public static readonly OpAmpAudio = 97;
public static readonly OpAmpImage = 98;
public static readonly OpAmpImageZoom = 99;
public static readonly OpAmpVideo = 100;
public static readonly OpAmpArticle = 101;
public static readonly OpAmpArticleAtt = 102;
public static readonly OpAmpDocument = 103;
public static readonly OpAmpApp = 104;
public static readonly OpAmpWebsite = 105;
public static readonly OpAmpStillImageFilm = 106;
public static readonly BracEnclose = 107;
public static readonly AmpAudioLink = 108;
public static readonly AmpImageLink = 109;
public static readonly AmpVideoLink = 110;
public static readonly AmpArticleLink = 111;
public static readonly AmpDocumentLink = 112;
public static readonly AmpDocumentDownload = 113;
public static readonly AmpAppLink = 114;
public static readonly AmpWebsiteLink = 115;
public static readonly AmpStillImageFilmLink = 116;
public static readonly OpAmpAudioLink = 117;
public static readonly OpAmpImageLink = 118;
public static readonly OpAmpVideoLink = 119;
public static readonly OpAmpArticleLink = 120;
public static readonly OpAmpDocumentLink = 121;
public static readonly OpAmpDocumentDownload = 122;
public static readonly OpAmpAppLink = 123;
public static readonly OpAmpWebsiteLink = 124;
public static readonly OpAmpStillImageFilmLink = 125;
public static readonly AmpImageEmbed = 126;
public static readonly AmpVideoEmbed = 127;
public static readonly AmpAudioEmbed = 128;
public static readonly AmpDocumentEmbed = 129;
public static readonly AmpStillImageFilmEmbed = 130;
public static readonly OpAmpImageEmbed = 131;
public static readonly OpAmpVideoEmbed = 132;
public static readonly OpAmpAudioEmbed = 133;
public static readonly OpAmpDocumentEmbed = 134;
public static readonly OpAmpStillImageFilmEmbed = 135;
public static readonly BitmarkMinus = 136;
public static readonly BitmarkPlus = 137;
public static readonly ColonText = 138;
public static readonly ColonJson = 139;
public static readonly Prosemirror = 140;
public static readonly Placeholder = 141;
public static readonly BASIC = 142;
public static readonly JPG = 143;
public static readonly PNG = 144;
public static readonly GIF = 145;
public static readonly SVG = 146;
public static readonly MP2 = 147;
public static readonly MP3 = 148;
public static readonly MP4 = 149;
public static readonly FLV = 150;
public static readonly WMV = 151;
public static readonly MPEG = 152;
public static readonly MPG = 153;
public static readonly TEL = 154;
public static readonly DotArticleAtt = 155;
public static readonly STAR = 156;
public static readonly URL = 157;
public static readonly LIST_LINE = 158;
public static readonly ENCLBARS = 159;
public static readonly RULE_bitmark = 0;
public static readonly RULE_bitmark_ = 1;
public static readonly RULE_interviews = 2;
public static readonly RULE_interview = 3;
public static readonly RULE_interview_instruction_grouped = 4;
public static readonly RULE_mcrsep = 5;
public static readonly RULE_mcrsep_end = 6;
public static readonly RULE_mcrmisc = 7;
public static readonly RULE_interview_qanda = 8;
public static readonly RULE_interview_qanda__ = 9;
public static readonly RULE_interview_sometext = 10;
public static readonly RULE_interview_text = 11;
public static readonly RULE_interview_answer = 12;
public static readonly RULE_longans = 13;
public static readonly RULE_shortans = 14;
public static readonly RULE_partans = 15;
public static readonly RULE_sample_soln_prop = 16;
public static readonly RULE_mark_text = 17;
public static readonly RULE_query = 18;
public static readonly RULE_answer = 19;
public static readonly RULE_heading = 20;
public static readonly RULE_key_title = 21;
public static readonly RULE_value_title = 22;
public static readonly RULE_ml_example = 23;
public static readonly RULE_bitElem = 24;
public static readonly RULE_interview_footer = 25;
public static readonly RULE_footer_resource = 26;
public static readonly RULE_footer_text = 27;
public static readonly RULE_gap = 28;
public static readonly RULE_single_gap = 29;
public static readonly RULE_atpoint = 30;
public static readonly RULE_format = 31;
public static readonly RULE_resource_format = 32;
public static readonly RULE_resource_format_extra = 33;
public static readonly RULE_format2 = 34;
public static readonly RULE_image_format = 35;
public static readonly RULE_video_format = 36;
public static readonly RULE_article_format = 37;
public static readonly RULE_document_format = 38;
public static readonly RULE_app_format = 39;
public static readonly RULE_website_format = 40;
public static readonly RULE_stillimagefilm_format = 41;
public static readonly RULE_op_article_format = 42;
public static readonly RULE_op_document_format = 43;
public static readonly RULE_op_app_format = 44;
public static readonly RULE_op_website_format = 45;
public static readonly RULE_op_video_format = 46;
public static readonly RULE_op_stillimagefilm_format = 47;
public static readonly RULE_articlebit = 48;
public static readonly RULE_documentbit = 49;
public static readonly RULE_websitebit = 50;
public static readonly RULE_appbit = 51;
public static readonly RULE_stillimagefilmbit = 52;
public static readonly RULE_stillimg_one = 53;
public static readonly RULE_videobit = 54;
public static readonly RULE_video_one = 55;
public static readonly RULE_imagebit = 56;
public static readonly RULE_image_one = 57;
public static readonly RULE_op_image_format = 58;
public static readonly RULE_image_chained = 59;
public static readonly RULE_image_chained4match = 60;
public static readonly RULE_audiobit = 61;
public static readonly RULE_audio_one = 62;
public static readonly RULE_audio_format = 63;
public static readonly RULE_op_audio_format = 64;
public static readonly RULE_resource_chained = 65;
public static readonly RULE_telephone = 66;
public static readonly RULE_url = 67;
public static readonly RULE_item = 68;
public static readonly RULE_lead = 69;
public static readonly RULE_angleref = 70;
public static readonly RULE_example = 71;
public static readonly RULE_bracketed_text = 72;
public static readonly RULE_reference = 73;
public static readonly RULE_progress = 74;
public static readonly RULE_dateprop = 75;
public static readonly RULE_dateprop_chained = 76;
public static readonly RULE_instruction = 77;
public static readonly RULE_hint = 78;
public static readonly RULE_title = 79;
public static readonly RULE_bool_label = 80;
public static readonly RULE_progress_points = 81;
public static readonly RULE_istracked = 82;
public static readonly RULE_isinfoonly = 83;
public static readonly RULE_atdef = 84;
public static readonly RULE_atdef_ = 85;
public static readonly RULE_dollarans = 86;
public static readonly RULE_anchor = 87;
public static readonly RULE_dcolon = 88;
public static readonly RULE_lines = 89;
public static readonly RULE_s_and_w = 90;
public static readonly RULE_clnsp = 91;
public static readonly RULE_sspl = 92;
public static readonly RULE_words = 93;
public static readonly RULE_sp = 94;
// tslint:disable:no-trailing-whitespace
public static readonly ruleNames: string[] = [
"bitmark", "bitmark_", "interviews", "interview", "interview_instruction_grouped",
"mcrsep", "mcrsep_end", "mcrmisc", "interview_qanda", "interview_qanda__",
"interview_sometext", "interview_text", "interview_answer", "longans",
"shortans", "partans", "sample_soln_prop", "mark_text", "query", "answer",
"heading", "key_title", "value_title", "ml_example", "bitElem", "interview_footer",
"footer_resource", "footer_text", "gap", "single_gap", "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", "lines",
"s_and_w", "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, "'[#'", "']'", "':'", "'&'", "'::'",
"'+'", "'.@'", "'>'", "'<'", "'\u25BA'", "'\u2192'", "'=='", undefined,
undefined, undefined, undefined, undefined, "'\u2022'", 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", "BitInterview", "BitInterviewinstgrp", "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", "DBLEQ", "OR",
"HSPL", "HSPL2", "SSPL", "SSPL2", "BULLET", "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(interviewParser._LITERAL_NAMES, interviewParser._SYMBOLIC_NAMES, []);
// @Override
// @NotNull
public get vocabulary(): Vocabulary {
return interviewParser.VOCABULARY;
}
// tslint:enable:no-trailing-whitespace
// @Override
public get grammarFileName(): string { return "interviewParser.g4"; }
// @Override
public get ruleNames(): string[] { return interviewParser.ruleNames; }
// @Override
public get serializedATN(): string { return interviewParser._serializedATN; }
protected createFailedPredicateException(predicate?: string, message?: string): FailedPredicateException {
return new FailedPredicateException(this, predicate, message);
}
constructor(input: TokenStream) {
super(input);
this._interp = new ParserATNSimulator(interviewParser._ATN, this);
}
// @RuleVersion(0)
public bitmark(): BitmarkContext {
let _localctx: BitmarkContext = new BitmarkContext(this._ctx, this.state);
this.enterRule(_localctx, 0, interviewParser.RULE_bitmark);
let _la: number;
try {
let _alt: number;
this.enterOuterAlt(_localctx, 1);
{
this.state = 203;
this._errHandler.sync(this);
_la = this._input.LA(1);
do {
{
{
this.state = 190;
this.bitmark_();
this.state = 200;
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 = 194;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === interviewParser.S) {
{
{
this.state = 191;
this.match(interviewParser.S);
}
}
this.state = 196;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
this.state = 197;
this.match(interviewParser.NL);
}
}
}
this.state = 202;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 1, this._ctx);
}
}
}
this.state = 205;
this._errHandler.sync(this);
_la = this._input.LA(1);
} while (_la === interviewParser.BitInterview || _la === interviewParser.BitInterviewinstgrp);
this.state = 210;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === interviewParser.NL) {
{
{
this.state = 207;
this.match(interviewParser.NL);
}
}
this.state = 212;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
this.state = 213;
this.match(interviewParser.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, interviewParser.RULE_bitmark_);
try {
this.enterOuterAlt(_localctx, 1);
{
this.state = 215;
this.interviews();
}
}
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 interviews(): InterviewsContext {
let _localctx: InterviewsContext = new InterviewsContext(this._ctx, this.state);
this.enterRule(_localctx, 4, interviewParser.RULE_interviews);
try {
this.state = 219;
this._errHandler.sync(this);
switch (this._input.LA(1)) {
case interviewParser.BitInterview:
this.enterOuterAlt(_localctx, 1);
{
this.state = 217;
this.interview();
}
break;
case interviewParser.BitInterviewinstgrp:
this.enterOuterAlt(_localctx, 2);
{
this.state = 218;
this.interview_instruction_grouped();
}
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 interview(): InterviewContext {
let _localctx: InterviewContext = new InterviewContext(this._ctx, this.state);
this.enterRule(_localctx, 6, interviewParser.RULE_interview);
try {
let _alt: number;
this.state = 293;
this._errHandler.sync(this);
switch ( this.interpreter.adaptivePredict(this._input, 17, this._ctx) ) {
case 1:
this.enterOuterAlt(_localctx, 1);
{
this.state = 221;
this.match(interviewParser.BitInterview);
this.state = 222;
this.format();
this.state = 223;
this.match(interviewParser.CL);
this.state = 227;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 5, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 224;
this.match(interviewParser.NL);
}
}
}
this.state = 229;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 5, this._ctx);
}
this.state = 239;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 7, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 230;
this.bitElem();
this.state = 234;
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 = 231;
this.match(interviewParser.NL);
}
}
}
this.state = 236;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 6, this._ctx);
}
}
}
}
this.state = 241;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 7, this._ctx);
}
}
break;
case 2:
this.enterOuterAlt(_localctx, 2);
{
this.state = 242;
this.match(interviewParser.BitInterview);
this.state = 243;
this.format();
this.state = 244;
this.match(interviewParser.CL);
this.state = 248;
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 = 245;
this.match(interviewParser.NL);
}
}
}
this.state = 250;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 8, this._ctx);
}
this.state = 260;
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 = 251;
this.bitElem();
this.state = 255;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 9, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 252;
this.match(interviewParser.NL);
}
}
}
this.state = 257;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 9, this._ctx);
}
}
}
}
this.state = 262;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 10, this._ctx);
}
this.state = 279;
this._errHandler.sync(this);
_alt = 1;
do {
switch (_alt) {
case 1:
{
{
this.state = 263;
this.mcrsep();
this.state = 267;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 11, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 264;
this.match(interviewParser.NL);
}
}
}
this.state = 269;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 11, this._ctx);
}
this.state = 277;
this._errHandler.sync(this);
switch ( this.interpreter.adaptivePredict(this._input, 13, this._ctx) ) {
case 1:
{
this.state = 270;
this.interview_qanda();
this.state = 274;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 12, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 271;
this.match(interviewParser.NL);
}
}
}
this.state = 276;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 12, this._ctx);
}
}
break;
}
}
}
break;
default:
throw new NoViableAltException(this);
}
this.state = 281;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 14, this._ctx);
} while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER);
this.state = 283;
this.mcrsep_end();
this.state = 287;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 15, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 284;
this.match(interviewParser.NL);
}
}
}
this.state = 289;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 15, this._ctx);
}
this.state = 291;
this._errHandler.sync(this);
switch ( this.interpreter.adaptivePredict(this._input, 16, this._ctx) ) {
case 1:
{
this.state = 290;
this.interview_footer();
}
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 interview_instruction_grouped(): Interview_instruction_groupedContext {
let _localctx: Interview_instruction_groupedContext = new Interview_instruction_groupedContext(this._ctx, this.state);
this.enterRule(_localctx, 8, interviewParser.RULE_interview_instruction_grouped);
try {
let _alt: number;
this.state = 360;
this._errHandler.sync(this);
switch ( this.interpreter.adaptivePredict(this._input, 28, this._ctx) ) {
case 1:
this.enterOuterAlt(_localctx, 1);
{
this.state = 295;
this.match(interviewParser.BitInterviewinstgrp);
this.state = 296;
this.format();
this.state = 297;
this.match(interviewParser.CL);
this.state = 301;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 18, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 298;
this.match(interviewParser.NL);
}
}
}
this.state = 303;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 18, this._ctx);
}
this.state = 313;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 20, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 304;
this.bitElem();
this.state = 308;
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 = 305;
this.match(interviewParser.NL);
}
}
}
this.state = 310;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 19, this._ctx);
}
}
}
}
this.state = 315;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 20, this._ctx);
}
}
break;
case 2:
this.enterOuterAlt(_localctx, 2);
{
this.state = 316;
this.match(interviewParser.BitInterviewinstgrp);
this.state = 317;
this.format();
this.state = 318;
this.match(interviewParser.CL);
this.state = 322;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 21, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 319;
this.match(interviewParser.NL);
}
}
}
this.state = 324;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 21, this._ctx);
}
this.state = 334;
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 = 325;
this.bitElem();
this.state = 329;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 22, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 326;
this.match(interviewParser.NL);
}
}
}
this.state = 331;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 22, this._ctx);
}
}
}
}
this.state = 336;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 23, this._ctx);
}
this.state = 347;
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 = 337;
this.mcrsep();
{
this.state = 338;
this.interview_qanda();
this.state = 342;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 24, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 339;
this.match(interviewParser.NL);
}
}
}
this.state = 344;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 24, this._ctx);
}
}
}
}
}
this.state = 349;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 25, this._ctx);
}
this.state = 350;
this.mcrsep_end();
this.state = 354;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 26, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 351;
this.match(interviewParser.NL);
}
}
}
this.state = 356;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 26, this._ctx);
}
this.state = 358;
this._errHandler.sync(this);
switch ( this.interpreter.adaptivePredict(this._input, 27, this._ctx) ) {
case 1:
{
this.state = 357;
this.interview_footer();
}
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 mcrsep(): McrsepContext {
let _localctx: McrsepContext = new McrsepContext(this._ctx, this.state);
this.enterRule(_localctx, 10, interviewParser.RULE_mcrsep);
let _la: number;
try {
this.enterOuterAlt(_localctx, 1);
{
this.state = 364;
this._errHandler.sync(this);
switch (this._input.LA(1)) {
case interviewParser.HSPL:
case interviewParser.HSPL2:
{
this.state = 362;
_la = this._input.LA(1);
if (!(_la === interviewParser.HSPL || _la === interviewParser.HSPL2)) {
this._errHandler.recoverInline(this);
} else {
if (this._input.LA(1) === Token.EOF) {
this.matchedEOF = true;
}
this._errHandler.reportMatch(this);
this.consume();
}
}
break;
case interviewParser.NL:
{
this.state = 363;
this.match(interviewParser.NL);
}
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 mcrsep_end(): Mcrsep_endContext {
let _localctx: Mcrsep_endContext = new Mcrsep_endContext(this._ctx, this.state);
this.enterRule(_localctx, 12, interviewParser.RULE_mcrsep_end);
let _la: number;
try {
this.enterOuterAlt(_localctx, 1);
{
this.state = 366;
_la = this._input.LA(1);
if (!(_la === interviewParser.HSPL || _la === interviewParser.HSPL2)) {
this._errHandler.recoverInline(this);
} else {
if (this._input.LA(1) === Token.EOF) {
this.matchedEOF = true;
}
this._errHandler.reportMatch(this);
this.consume();
}
}
}
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 mcrmisc(): McrmiscContext {
let _localctx: McrmiscContext = new McrmiscContext(this._ctx, this.state);
this.enterRule(_localctx, 14, interviewParser.RULE_mcrmisc);
try {
this.enterOuterAlt(_localctx, 1);
{
this.state = 368;
this.interview_qanda();
this.state = 369;
this.match(interviewParser.NL);
}
}
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 interview_qanda(): Interview_qandaContext {
let _localctx: Interview_qandaContext = new Interview_qandaContext(this._ctx, this.state);
this.enterRule(_localctx, 16, interviewParser.RULE_interview_qanda);
try {
let _alt: number;
this.enterOuterAlt(_localctx, 1);
{
this.state = 371;
this.interview_qanda__();
this.state = 380;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 31, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 373;
this._errHandler.sync(this);
_alt = 1;
do {
switch (_alt) {
case 1:
{
{
this.state = 372;
this.match(interviewParser.NL);
}
}
break;
default:
throw new NoViableAltException(this);
}
this.state = 375;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 30, this._ctx);
} while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER);
this.state = 377;
this.interview_qanda__();
}
}
}
this.state = 382;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 31, 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 interview_qanda__(): Interview_qanda__Context {
let _localctx: Interview_qanda__Context = new Interview_qanda__Context(this._ctx, this.state);
this.enterRule(_localctx, 18, interviewParser.RULE_interview_qanda__);
let _la: number;
try {
let _alt: number;
this.state = 470;
this._errHandler.sync(this);
switch ( this.interpreter.adaptivePredict(this._input, 48, this._ctx) ) {
case 1:
this.enterOuterAlt(_localctx, 1);
{
this.state = 384;
this._errHandler.sync(this);
_la = this._input.LA(1);
if (_la === interviewParser.OPC || _la === interviewParser.OPITEM) {
{
this.state = 383;
this.item();
}
}
this.state = 386;
this.interview_text();
this.state = 390;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 33, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 387;
this.match(interviewParser.S);
}
}
}
this.state = 392;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 33, this._ctx);
}
this.state = 406;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 35, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
this.state = 404;
this._errHandler.sync(this);
switch ( this.interpreter.adaptivePredict(this._input, 34, this._ctx) ) {
case 1:
{
this.state = 393;
this.item();
}
break;
case 2:
{
this.state = 394;
this.instruction();
}
break;
case 3:
{
this.state = 395;
this.example();
}
break;
case 4:
{
this.state = 396;
this.shortans();
}
break;
case 5:
{
this.state = 397;
this.longans();
}
break;
case 6:
{
this.state = 398;
this.dollarans();
}
break;
case 7:
{
this.state = 399;
this.partans();
}
break;
case 8:
{
this.state = 400;
this.single_gap();
}
break;
case 9:
{
this.state = 401;
this.mark_text();
}
break;
case 10:
{
this.state = 402;
this.hint();
}
break;
case 11:
{
this.state = 403;
this.interview_sometext();
}
break;
}
}
}
this.state = 408;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 35, this._ctx);
}
this.state = 430;
this._errHandler.sync(this);
switch ( this.interpreter.adaptivePredict(this._input, 40, this._ctx) ) {
case 1:
{
this.state = 409;
this.match(interviewParser.NL);
this.state = 411;
this._errHandler.sync(this);
_la = this._input.LA(1);
if (((((_la - 27)) & ~0x1F) === 0 && ((1 << (_la - 27)) & ((1 << (interviewParser.AMP - 27)) | (1 << (interviewParser.Greater - 27)) | (1 << (interviewParser.Less - 27)) | (1 << (interviewParser.RightAngle - 27)) | (1 << (interviewParser.RightArrow - 27)) | (1 << (interviewParser.STRING - 27)) | (1 << (interviewParser.NOTBITMARK - 27)) | (1 << (interviewParser.ELIPSIS - 27)) | (1 << (interviewParser.SENTENCE - 27)) | (1 << (interviewParser.BARSTRING - 27)))) !== 0)) {
{
this.state = 410;
this.interview_answer();
}
}
this.state = 416;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === interviewParser.S) {
{
{
this.state = 413;
this.match(interviewParser.S);
}
}
this.state = 418;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
this.state = 427;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === interviewParser.OPDOLL || ((((_la - 62)) & ~0x1F) === 0 && ((1 << (_la - 62)) & ((1 << (interviewParser.AtShortanswer - 62)) | (1 << (interviewParser.AtLonganswer - 62)) | (1 << (interviewParser.AtExampleWithStr - 62)) | (1 << (interviewParser.AtExamplecol - 62)) | (1 << (interviewParser.AtExamplecl - 62)) | (1 << (interviewParser.AtSampleSolution - 62)) | (1 << (interviewParser.AtPartialAnswerS - 62)) | (1 << (interviewParser.AtPartialAnswer - 62)))) !== 0)) {
{
this.state = 425;
this._errHandler.sync(this);
switch (this._input.LA(1)) {
case interviewParser.AtExampleWithStr:
case interviewParser.AtExamplecol:
case interviewParser.AtExamplecl:
{
this.state = 419;
this.example();
}
break;
case interviewParser.AtShortanswer:
{
this.state = 420;
this.shortans();
}
break;
case interviewParser.AtLonganswer:
{
this.state = 421;
this.longans();
}
break;
case interviewParser.OPDOLL:
{
this.state = 422;
this.dollarans();
}
break;
case interviewParser.AtPartialAnswerS:
case interviewParser.AtPartialAnswer:
{
this.state = 423;
this.partans();
}
break;
case interviewParser.AtSampleSolution:
{
this.state = 424;
this.sample_soln_prop();
}
break;
default:
throw new NoViableAltException(this);
}
}
this.state = 429;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
}
break;
}
}
break;
case 2:
this.enterOuterAlt(_localctx, 2);
{
this.state = 443;
this._errHandler.sync(this);
_alt = 1;
do {
switch (_alt) {
case 1:
{
this.state = 443;
this._errHandler.sync(this);
switch ( this.interpreter.adaptivePredict(this._input, 41, this._ctx) ) {
case 1:
{
this.state = 432;
this.item();
}
break;
case 2:
{
this.state = 433;
this.instruction();
}
break;
case 3:
{
this.state = 434;
this.example();
}
break;
case 4:
{
this.state = 435;
this.shortans();
}
break;
case 5:
{
this.state = 436;
this.longans();
}
break;
case 6:
{
this.state = 437;
this.dollarans();
}
break;
case 7:
{
this.state = 438;
this.partans();
}
break;
case 8:
{
this.state = 439;
this.single_gap();
}
break;
case 9:
{
this.state = 440;
this.mark_text();
}
break;
case 10:
{
this.state = 441;
this.hint();
}
break;
case 11:
{
this.state = 442;
this.interview_sometext();
}
break;
}
}
break;
default:
throw new NoViableAltException(this);
}
this.state = 445;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 42, this._ctx);
} while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER);
this.state = 468;
this._errHandler.sync(this);
switch ( this.interpreter.adaptivePredict(this._input, 47, this._ctx) ) {
case 1:
{
this.state = 447;
this.match(interviewParser.NL);
this.state = 449;
this._errHandler.sync(this);
_la = this._input.LA(1);
if (((((_la - 27)) & ~0x1F) === 0 && ((1 << (_la - 27)) & ((1 << (interviewParser.AMP - 27)) | (1 << (interviewParser.Greater - 27)) | (1 << (interviewParser.Less - 27)) | (1 << (interviewParser.RightAngle - 27)) | (1 << (interviewParser.RightArrow - 27)) | (1 << (interviewParser.STRING - 27)) | (1 << (interviewParser.NOTBITMARK - 27)) | (1 << (interviewParser.ELIPSIS - 27)) | (1 << (interviewParser.SENTENCE - 27)) | (1 << (interviewParser.BARSTRING - 27)))) !== 0)) {
{
this.state = 448;
this.interview_answer();
}
}
this.state = 454;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === interviewParser.S) {
{
{
this.state = 451;
this.match(interviewParser.S);
}
}
this.state = 456;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
this.state = 465;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === interviewParser.OPDOLL || ((((_la - 62)) & ~0x1F) === 0 && ((1 << (_la - 62)) & ((1 << (interviewParser.AtShortanswer - 62)) | (1 << (interviewParser.AtLonganswer - 62)) | (1 << (interviewParser.AtExampleWithStr - 62)) | (1 << (interviewParser.AtExamplecol - 62)) | (1 << (interviewParser.AtExamplecl - 62)) | (1 << (interviewParser.AtSampleSolution - 62)) | (1 << (interviewParser.AtPartialAnswerS - 62)) | (1 << (interviewParser.AtPartialAnswer - 62)))) !== 0)) {
{
this.state = 463;
this._errHandler.sync(this);
switch (this._input.LA(1)) {
case interviewParser.AtExampleWithStr:
case interviewParser.AtExamplecol:
case interviewParser.AtExamplecl:
{
this.state = 457;
this.example();
}
break;
case interviewParser.AtShortanswer:
{
this.state = 458;
this.shortans();
}
break;
case interviewParser.AtLonganswer:
{
this.state = 459;
this.longans();
}
break;
case interviewParser.OPDOLL:
{
this.state = 460;
this.dollarans();
}
break;
case interviewParser.AtPartialAnswerS:
case interviewParser.AtPartialAnswer:
{
this.state = 461;
this.partans();
}
break;
case interviewParser.AtSampleSolution:
{
this.state = 462;
this.sample_soln_prop();
}
break;
default:
throw new NoViableAltException(this);
}
}
this.state = 467;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
}
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 interview_sometext(): Interview_sometextContext {
let _localctx: Interview_sometextContext = new Interview_sometextContext(this._ctx, this.state);
this.enterRule(_localctx, 20, interviewParser.RULE_interview_sometext);
try {
let _alt: number;
this.enterOuterAlt(_localctx, 1);
{
this.state = 473;
this._errHandler.sync(this);
_alt = 1;
do {
switch (_alt) {
case 1:
{
{
this.state = 472;
this.s_and_w();
}
}
break;
default:
throw new NoViableAltException(this);
}
this.state = 475;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 49, this._ctx);
} while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER);
}
}
catch (re) {
if (re