bitmark-grammar
Version:
968 lines • 504 kB
JavaScript
"use strict";
// Generated from ./antlr/interviewParser.g4 by ANTLR 4.9.0-SNAPSHOT
Object.defineProperty(exports, "__esModule", { value: true });
exports.SpContext = exports.WordsContext = exports.SsplContext = exports.ClnspContext = exports.S_and_wContext = exports.LinesContext = exports.DcolonContext = exports.AnchorContext = exports.DollaransContext = exports.Atdef_Context = exports.AtdefContext = exports.IsinfoonlyContext = exports.IstrackedContext = exports.Progress_pointsContext = exports.Bool_labelContext = exports.TitleContext = exports.HintContext = exports.InstructionContext = exports.Dateprop_chainedContext = exports.DatepropContext = exports.ProgressContext = exports.ReferenceContext = exports.Bracketed_textContext = exports.ExampleContext = exports.AnglerefContext = exports.LeadContext = exports.ItemContext = exports.UrlContext = exports.TelephoneContext = exports.Resource_chainedContext = exports.Op_audio_formatContext = exports.Audio_formatContext = exports.Audio_oneContext = exports.AudiobitContext = exports.Image_chained4matchContext = exports.Image_chainedContext = exports.Op_image_formatContext = exports.Image_oneContext = exports.ImagebitContext = exports.Video_oneContext = exports.VideobitContext = exports.Stillimg_oneContext = exports.StillimagefilmbitContext = exports.AppbitContext = exports.WebsitebitContext = exports.DocumentbitContext = exports.ArticlebitContext = exports.Op_stillimagefilm_formatContext = exports.Op_video_formatContext = exports.Op_website_formatContext = exports.Op_app_formatContext = exports.Op_document_formatContext = exports.Op_article_formatContext = exports.Stillimagefilm_formatContext = exports.Website_formatContext = exports.App_formatContext = exports.Document_formatContext = exports.Article_formatContext = exports.Video_formatContext = exports.Image_formatContext = exports.Format2Context = exports.Resource_format_extraContext = exports.Resource_formatContext = exports.FormatContext = exports.AtpointContext = exports.Single_gapContext = exports.GapContext = exports.Footer_textContext = exports.Footer_resourceContext = exports.Interview_footerContext = exports.BitElemContext = exports.Ml_exampleContext = exports.Value_titleContext = exports.Key_titleContext = exports.HeadingContext = exports.AnswerContext = exports.QueryContext = exports.Mark_textContext = exports.Sample_soln_propContext = exports.PartansContext = exports.ShortansContext = exports.LongansContext = exports.Interview_answerContext = exports.Interview_textContext = exports.Interview_sometextContext = exports.Interview_qanda__Context = exports.Interview_qandaContext = exports.McrmiscContext = exports.Mcrsep_endContext = exports.McrsepContext = exports.Interview_instruction_groupedContext = exports.InterviewContext = exports.InterviewsContext = exports.Bitmark_Context = exports.BitmarkContext = exports.interviewParser = void 0;
const ATN_1 = require("antlr4ts/atn/ATN");
const ATNDeserializer_1 = require("antlr4ts/atn/ATNDeserializer");
const FailedPredicateException_1 = require("antlr4ts/FailedPredicateException");
const NoViableAltException_1 = require("antlr4ts/NoViableAltException");
const Parser_1 = require("antlr4ts/Parser");
const ParserRuleContext_1 = require("antlr4ts/ParserRuleContext");
const ParserATNSimulator_1 = require("antlr4ts/atn/ParserATNSimulator");
const RecognitionException_1 = require("antlr4ts/RecognitionException");
const Token_1 = require("antlr4ts/Token");
const VocabularyImpl_1 = require("antlr4ts/VocabularyImpl");
const Utils = require("antlr4ts/misc/Utils");
class interviewParser extends Parser_1.Parser {
constructor(input) {
super(input);
this._interp = new ParserATNSimulator_1.ParserATNSimulator(interviewParser._ATN, this);
}
// @Override
// @NotNull
get vocabulary() {
return interviewParser.VOCABULARY;
}
// tslint:enable:no-trailing-whitespace
// @Override
get grammarFileName() { return "interviewParser.g4"; }
// @Override
get ruleNames() { return interviewParser.ruleNames; }
// @Override
get serializedATN() { return interviewParser._serializedATN; }
createFailedPredicateException(predicate, message) {
return new FailedPredicateException_1.FailedPredicateException(this, predicate, message);
}
// @RuleVersion(0)
bitmark() {
let _localctx = new BitmarkContext(this._ctx, this.state);
this.enterRule(_localctx, 0, interviewParser.RULE_bitmark);
let _la;
try {
let _alt;
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_1.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_1.RecognitionException) {
_localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
}
else {
throw re;
}
}
finally {
this.exitRule();
}
return _localctx;
}
// @RuleVersion(0)
bitmark_() {
let _localctx = 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_1.RecognitionException) {
_localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
}
else {
throw re;
}
}
finally {
this.exitRule();
}
return _localctx;
}
// @RuleVersion(0)
interviews() {
let _localctx = 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_1.NoViableAltException(this);
}
}
catch (re) {
if (re instanceof RecognitionException_1.RecognitionException) {
_localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
}
else {
throw re;
}
}
finally {
this.exitRule();
}
return _localctx;
}
// @RuleVersion(0)
interview() {
let _localctx = new InterviewContext(this._ctx, this.state);
this.enterRule(_localctx, 6, interviewParser.RULE_interview);
try {
let _alt;
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_1.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_1.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_1.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_1.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_1.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_1.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_1.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_1.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_1.NoViableAltException(this);
}
this.state = 281;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 14, this._ctx);
} while (_alt !== 2 && _alt !== ATN_1.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_1.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_1.RecognitionException) {
_localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
}
else {
throw re;
}
}
finally {
this.exitRule();
}
return _localctx;
}
// @RuleVersion(0)
interview_instruction_grouped() {
let _localctx = new Interview_instruction_groupedContext(this._ctx, this.state);
this.enterRule(_localctx, 8, interviewParser.RULE_interview_instruction_grouped);
try {
let _alt;
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_1.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_1.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_1.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_1.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_1.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_1.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_1.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_1.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_1.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_1.RecognitionException) {
_localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
}
else {
throw re;
}
}
finally {
this.exitRule();
}
return _localctx;
}
// @RuleVersion(0)
mcrsep() {
let _localctx = new McrsepContext(this._ctx, this.state);
this.enterRule(_localctx, 10, interviewParser.RULE_mcrsep);
let _la;
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_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_1.NoViableAltException(this);
}
}
}
catch (re) {
if (re instanceof RecognitionException_1.RecognitionException) {
_localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
}
else {
throw re;
}
}
finally {
this.exitRule();
}
return _localctx;
}
// @RuleVersion(0)
mcrsep_end() {
let _localctx = new Mcrsep_endContext(this._ctx, this.state);
this.enterRule(_localctx, 12, interviewParser.RULE_mcrsep_end);
let _la;
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_1.Token.EOF) {
this.matchedEOF = true;
}
this._errHandler.reportMatch(this);
this.consume();
}
}
}
catch (re) {
if (re instanceof RecognitionException_1.RecognitionException) {
_localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
}
else {
throw re;
}
}
finally {
this.exitRule();
}
return _localctx;
}
// @RuleVersion(0)
mcrmisc() {
let _localctx = 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_1.RecognitionException) {
_localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
}
else {
throw re;
}
}
finally {
this.exitRule();
}
return _localctx;
}
// @RuleVersion(0)
interview_qanda() {
let _localctx = new Interview_qandaContext(this._ctx, this.state);
this.enterRule(_localctx, 16, interviewParser.RULE_interview_qanda);
try {
let _alt;
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_1.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_1.NoViableAltException(this);
}
this.state = 375;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 30, this._ctx);
} while (_alt !== 2 && _alt !== ATN_1.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_1.RecognitionException) {
_localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
}
else {
throw re;
}
}
finally {
this.exitRule();
}
return _localctx;
}
// @RuleVersion(0)
interview_qanda__() {
let _localctx = new Interview_qanda__Context(this._ctx, this.state);
this.enterRule(_localctx, 18, interviewParser.RULE_interview_qanda__);
let _la;
try {
let _alt;
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_1.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_1.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)