bitmark-grammar
Version:
1,054 lines • 433 kB
JavaScript
"use strict";
// Generated from ./antlr/truefalseParser.g4 by ANTLR 4.9.0-SNAPSHOT
Object.defineProperty(exports, "__esModule", { value: true });
exports.SpContext = exports.WordsContext = exports.SsplContext = exports.ClnspContext = exports.DclinesContext = exports.S_and_wContext = exports.LinesContext = 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.Bullet_itemContext = exports.Single_gapContext = exports.GapContext = exports.ResourceContext = exports.BitElemContext = exports.Choice_starContext = exports.Choice_minusContext = exports.Choice_plusContext = exports.CminusContext = exports.CplusContext = exports.ChoicesContext = exports.TfmiscContext = exports.Mcrsep_endContext = exports.McrsepContext = exports.True_falseContext = exports.True_false_1Context = exports.TruefalsesContext = exports.Bitmark_Context = exports.BitmarkContext = exports.truefalseParser = 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 truefalseParser extends Parser_1.Parser {
constructor(input) {
super(input);
this._interp = new ParserATNSimulator_1.ParserATNSimulator(truefalseParser._ATN, this);
}
// @Override
// @NotNull
get vocabulary() {
return truefalseParser.VOCABULARY;
}
// tslint:enable:no-trailing-whitespace
// @Override
get grammarFileName() { return "truefalseParser.g4"; }
// @Override
get ruleNames() { return truefalseParser.ruleNames; }
// @Override
get serializedATN() { return truefalseParser._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, truefalseParser.RULE_bitmark);
let _la;
try {
let _alt;
this.enterOuterAlt(_localctx, 1);
{
this.state = 181;
this._errHandler.sync(this);
_la = this._input.LA(1);
do {
{
{
this.state = 168;
this.bitmark_();
this.state = 178;
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 = 172;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === truefalseParser.S) {
{
{
this.state = 169;
this.match(truefalseParser.S);
}
}
this.state = 174;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
this.state = 175;
this.match(truefalseParser.NL);
}
}
}
this.state = 180;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 1, this._ctx);
}
}
}
this.state = 183;
this._errHandler.sync(this);
_la = this._input.LA(1);
} while (_la === truefalseParser.BitTruefalse1 || _la === truefalseParser.BitTruefalse);
this.state = 188;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === truefalseParser.NL) {
{
{
this.state = 185;
this.match(truefalseParser.NL);
}
}
this.state = 190;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
this.state = 191;
this.match(truefalseParser.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, truefalseParser.RULE_bitmark_);
try {
this.enterOuterAlt(_localctx, 1);
{
this.state = 193;
this.truefalses();
}
}
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)
truefalses() {
let _localctx = new TruefalsesContext(this._ctx, this.state);
this.enterRule(_localctx, 4, truefalseParser.RULE_truefalses);
try {
this.state = 197;
this._errHandler.sync(this);
switch (this._input.LA(1)) {
case truefalseParser.BitTruefalse1:
this.enterOuterAlt(_localctx, 1);
{
this.state = 195;
this.true_false_1();
}
break;
case truefalseParser.BitTruefalse:
this.enterOuterAlt(_localctx, 2);
{
this.state = 196;
this.true_false();
}
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)
true_false_1() {
let _localctx = new True_false_1Context(this._ctx, this.state);
this.enterRule(_localctx, 6, truefalseParser.RULE_true_false_1);
let _la;
try {
let _alt;
this.state = 262;
this._errHandler.sync(this);
switch (this.interpreter.adaptivePredict(this._input, 15, this._ctx)) {
case 1:
this.enterOuterAlt(_localctx, 1);
{
this.state = 199;
this.match(truefalseParser.BitTruefalse1);
this.state = 200;
this.format();
this.state = 201;
this.match(truefalseParser.CL);
this.state = 205;
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 = 202;
this.match(truefalseParser.NL);
}
}
}
this.state = 207;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 5, this._ctx);
}
this.state = 217;
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 = 208;
this.bitElem();
this.state = 212;
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 = 209;
this.match(truefalseParser.NL);
}
}
}
this.state = 214;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 6, this._ctx);
}
}
}
}
this.state = 219;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 7, this._ctx);
}
}
break;
case 2:
this.enterOuterAlt(_localctx, 2);
{
this.state = 220;
this.match(truefalseParser.BitTruefalse1);
this.state = 221;
this.format();
this.state = 222;
this.match(truefalseParser.CL);
this.state = 224;
this._errHandler.sync(this);
_la = this._input.LA(1);
do {
{
{
this.state = 223;
this.match(truefalseParser.NL);
}
}
this.state = 226;
this._errHandler.sync(this);
_la = this._input.LA(1);
} while (_la === truefalseParser.NL);
this.state = 237;
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 = 228;
this.bitElem();
this.state = 232;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === truefalseParser.NL) {
{
{
this.state = 229;
this.match(truefalseParser.NL);
}
}
this.state = 234;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
}
}
}
this.state = 239;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 10, this._ctx);
}
this.state = 240;
this.choices();
this.state = 244;
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 = 241;
this.match(truefalseParser.NL);
}
}
}
this.state = 246;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 11, this._ctx);
}
this.state = 260;
this._errHandler.sync(this);
switch (this.interpreter.adaptivePredict(this._input, 14, this._ctx)) {
case 1:
{
this.state = 247;
this.resource();
this.state = 257;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 13, this._ctx);
while (_alt !== 2 && _alt !== ATN_1.ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 251;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === truefalseParser.NL) {
{
{
this.state = 248;
this.match(truefalseParser.NL);
}
}
this.state = 253;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
this.state = 254;
this.resource();
}
}
}
this.state = 259;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 13, this._ctx);
}
}
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)
true_false() {
let _localctx = new True_falseContext(this._ctx, this.state);
this.enterRule(_localctx, 8, truefalseParser.RULE_true_false);
let _la;
try {
let _alt;
this.state = 342;
this._errHandler.sync(this);
switch (this.interpreter.adaptivePredict(this._input, 29, this._ctx)) {
case 1:
this.enterOuterAlt(_localctx, 1);
{
this.state = 264;
this.match(truefalseParser.BitTruefalse);
this.state = 265;
this.format();
this.state = 266;
this.match(truefalseParser.CL);
this.state = 270;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 16, this._ctx);
while (_alt !== 2 && _alt !== ATN_1.ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 267;
this.match(truefalseParser.NL);
}
}
}
this.state = 272;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 16, this._ctx);
}
this.state = 282;
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 = 273;
this.bitElem();
this.state = 277;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 17, this._ctx);
while (_alt !== 2 && _alt !== ATN_1.ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 274;
this.match(truefalseParser.NL);
}
}
}
this.state = 279;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 17, this._ctx);
}
}
}
}
this.state = 284;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 18, this._ctx);
}
}
break;
case 2:
this.enterOuterAlt(_localctx, 2);
{
this.state = 285;
this.match(truefalseParser.BitTruefalse);
this.state = 286;
this.format();
this.state = 287;
this.match(truefalseParser.CL);
this.state = 291;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === truefalseParser.NL) {
{
{
this.state = 288;
this.match(truefalseParser.NL);
}
}
this.state = 293;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
this.state = 303;
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 = 294;
this.bitElem();
this.state = 298;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === truefalseParser.NL) {
{
{
this.state = 295;
this.match(truefalseParser.NL);
}
}
this.state = 300;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
}
}
}
this.state = 305;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 21, this._ctx);
}
this.state = 316;
this._errHandler.sync(this);
_alt = 1;
do {
switch (_alt) {
case 1:
{
{
this.state = 307;
this._errHandler.sync(this);
_la = this._input.LA(1);
if (_la === truefalseParser.HSPL || _la === truefalseParser.HSPL2) {
{
this.state = 306;
this.mcrsep();
}
}
this.state = 312;
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 = 309;
this.tfmisc();
}
}
}
this.state = 314;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 23, this._ctx);
}
this.state = 315;
this.choices();
}
}
break;
default:
throw new NoViableAltException_1.NoViableAltException(this);
}
this.state = 318;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 24, this._ctx);
} while (_alt !== 2 && _alt !== ATN_1.ATN.INVALID_ALT_NUMBER);
this.state = 320;
this.mcrsep_end();
this.state = 324;
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 = 321;
this.match(truefalseParser.NL);
}
}
}
this.state = 326;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 25, this._ctx);
}
this.state = 340;
this._errHandler.sync(this);
switch (this.interpreter.adaptivePredict(this._input, 28, this._ctx)) {
case 1:
{
this.state = 327;
this.resource();
this.state = 337;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 27, this._ctx);
while (_alt !== 2 && _alt !== ATN_1.ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 331;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === truefalseParser.NL) {
{
{
this.state = 328;
this.match(truefalseParser.NL);
}
}
this.state = 333;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
this.state = 334;
this.resource();
}
}
}
this.state = 339;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 27, this._ctx);
}
}
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, truefalseParser.RULE_mcrsep);
let _la;
try {
this.enterOuterAlt(_localctx, 1);
{
this.state = 344;
_la = this._input.LA(1);
if (!(_la === truefalseParser.HSPL || _la === truefalseParser.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)
mcrsep_end() {
let _localctx = new Mcrsep_endContext(this._ctx, this.state);
this.enterRule(_localctx, 12, truefalseParser.RULE_mcrsep_end);
let _la;
try {
this.enterOuterAlt(_localctx, 1);
{
this.state = 346;
_la = this._input.LA(1);
if (!(_la === truefalseParser.HSPL || _la === truefalseParser.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)
tfmisc() {
let _localctx = new TfmiscContext(this._ctx, this.state);
this.enterRule(_localctx, 14, truefalseParser.RULE_tfmisc);
let _la;
try {
this.enterOuterAlt(_localctx, 1);
{
{
this.state = 348;
this.bitElem();
this.state = 352;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === truefalseParser.NL) {
{
{
this.state = 349;
this.match(truefalseParser.NL);
}
}
this.state = 354;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
}
}
}
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)
choices() {
let _localctx = new ChoicesContext(this._ctx, this.state);
this.enterRule(_localctx, 16, truefalseParser.RULE_choices);
let _la;
try {
let _alt;
this.enterOuterAlt(_localctx, 1);
{
this.state = 357;
this._errHandler.sync(this);
switch (this.interpreter.adaptivePredict(this._input, 31, this._ctx)) {
case 1:
{
this.state = 355;
this.cplus();
}
break;
case 2:
{
this.state = 356;
this.cminus();
}
break;
}
this.state = 374;
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 = 360;
this._errHandler.sync(this);
_la = this._input.LA(1);
if (_la === truefalseParser.NL) {
{
this.state = 359;
this.match(truefalseParser.NL);
}
}
this.state = 365;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === truefalseParser.S) {
{
{
this.state = 362;
this.match(truefalseParser.S);
}
}
this.state = 367;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
this.state = 370;
this._errHandler.sync(this);
switch (this.interpreter.adaptivePredict(this._input, 34, this._ctx)) {
case 1:
{
this.state = 368;
this.cplus();
}
break;
case 2:
{
this.state = 369;
this.cminus();
}
break;
}
}
}
}
this.state = 376;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 35, 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)
cplus() {
let _localctx = new CplusContext(this._ctx, this.state);
this.enterRule(_localctx, 18, truefalseParser.RULE_cplus);
try {
this.enterOuterAlt(_localctx, 1);
{
this.state = 377;
this.choice_plus();
this.state = 379;
this._errHandler.sync(this);
switch (this.interpreter.adaptivePredict(this._input, 36, this._ctx)) {
case 1:
{
this.state = 378;
this.example();
}
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)
cminus() {
let _localctx = new CminusContext(this._ctx, this.state);
this.enterRule(_localctx, 20, truefalseParser.RULE_cminus);
try {
this.enterOuterAlt(_localctx, 1);
{
this.state = 381;
this.choice_minus();
this.state = 383;
this._errHandler.sync(this);
switch (this.interpreter.adaptivePredict(this._input, 37, this._ctx)) {
case 1:
{
this.state = 382;
this.example();
}
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)
choice_plus() {
let _localctx = new Choice_plusContext(this._ctx, this.state);
this.enterRule(_localctx, 22, truefalseParser.RULE_choice_plus);
let _la;
try {
this.enterOuterAlt(_localctx, 1);
{
this.state = 386;
this._errHandler.sync(this);
_la = this._input.LA(1);
if (_la === truefalseParser.OPC || _la === truefalseParser.OPITEM) {
{
this.state = 385;
this.item();
}
}
this.state = 388;
this.match(truefalseParser.OPP);
this.state = 391;
this._errHandler.sync(this);
_la = this._input.LA(1);
do {
{
this.state = 391;
this._errHandler.sync(this);
switch (this._input.LA(1)) {
case truefalseParser.S:
case truefalseParser.OPS:
case truefalseParser.COLON:
case truefalseParser.AMP:
case truefalseParser.DBLCOLON:
case truefalseParser.Greater:
case truefalseParser.Less:
case truefalseParser.DBLEQ:
case truefalseParser.RightAngle:
case truefalseParser.RightArrow:
case truefalseParser.NUMERIC:
case truefalseParser.STRING:
case truefalseParser.NOTBITMARK:
case truefalseParser.ELIPSIS:
case truefalseParser.SENTENCE:
case truefalseParser.BARSTRING:
case truefalseParser.URL:
{
this.state = 389;
this.s_and_w();
}
break;
case truefalseParser.NL:
{
this.state = 390;
this.match(truefalseParser.NL);
}
break;
default:
throw new NoViableAltException_1.NoViableAltException(this);
}
}
this.state = 393;
this._errHandler.sync(this);
_la = this._input.LA(1);
} while ((((_la) & ~0x1F) === 0 && ((1 << _la) & ((1 << truefalseParser.S) | (1 << truefalseParser.OPS) | (1 << truefalseParser.COLON) | (1 << truefalseParser.AMP) | (1 << truefalseParser.DBLCOLON) | (1 << truefalseParser.Greater))) !== 0) || ((((_la - 32)) & ~0x1F) === 0 && ((1 << (_la - 32)) & ((1 << (truefalseParser.Less - 32)) | (1 << (truefalseParser.DBLEQ - 32)) | (1 << (truefalseParser.RightAngle - 32)) | (1 << (truefalseParser.RightArrow - 32)) | (1 << (truefalseParser.NUMERIC - 32)) | (1 << (truefalseParser.STRING - 32)) | (1 << (truefalseParser.NL - 32)) | (1 << (truefalseParser.NOTBITMARK - 32)) | (1 << (truefalseParser.ELIPSIS - 32)) | (1 << (truefalseParser.SENTENCE - 32)) | (1 << (truefalseParser.BARSTRING - 32)))) !== 0) || _la === truefalseParser.URL);
this.state = 395;
this.match(truefalseParser.CL);
}
}
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)
choice_minus() {
let _localctx = new Choice_minusContext(this._ctx, this.state);
this.enterRule(_localctx, 24, truefalseParser.RULE_choice_minus);
let _la;
try {
this.enterOuterAlt(_localctx, 1);
{
this.state = 398;
this._errHandler.sync(this);
_la = this._input.LA(1);
if (_la === truefalseParser.OPC || _la === truefalseParser.OPITEM) {
{
this.state = 397;
this.item();
}
}
this.state = 400;
this.match(truefalseParser.OPM);
this.state = 403;
this._errHandler.sync(this);
_la = this._input.LA(1);
do {
{
this.state = 403;
this._errHandler.sync(this);
switch (this._input.LA(1)) {
case truefalseParser.S:
case truefalseParser.OPS:
case truefalseParser.COLON:
case truefalseParser.AMP:
case truefalseParser.DBLCOLON:
case truefalseParser.Greater:
case truefalseParser.Less:
case truefalseParser.DBLEQ:
case truefalseParser.RightAngle:
case truefalseParser.RightArrow:
case truefalseParser.NUMERIC:
case truefalseParser.STRING:
case truefalseParser.NOTBITMARK:
case truefalseParser.ELIPSIS:
case truefalseParser.SENTENCE:
case truefalseParser.BARSTRING:
case truefalseParser.URL:
{
this.state = 401;
this.s_and_w();
}
break;
case truefalseParser.NL:
{
this.state = 402;
this.match(truefalseParser.NL);
}
break;
default:
throw new NoViableAltException_