bitmark-grammar
Version:
1,412 lines (1,386 loc) • 398 kB
text/typescript
// Generated from ./antlr/chatParser.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 { chatParserListener } from "./chatParserListener";
export class chatParser extends Parser {
public static readonly OPDOT = 1;
public static readonly S = 2;
public static readonly BitChat = 3;
public static readonly BitConv = 4;
public static readonly BitConversationLeft1 = 5;
public static readonly BitConversationRight1 = 6;
public static readonly BitConversationRight1Thought = 7;
public static readonly BitConversationRight1Scream = 8;
public static readonly BitConversationLeft1Thought = 9;
public static readonly BitConversationLeft1Scream = 10;
public static readonly OPDOLL = 11;
public static readonly OPBUL = 12;
public static readonly OPESC = 13;
public static readonly OPRANGLES = 14;
public static readonly OPRANGLEL = 15;
public static readonly OPDANGLE = 16;
public static readonly OPU = 17;
public static readonly OPB = 18;
public static readonly OPQ = 19;
public static readonly OPA = 20;
public static readonly OPP = 21;
public static readonly OPM = 22;
public static readonly OPS = 23;
public static readonly OPR = 24;
public static readonly OPC = 25;
public static readonly OPITEM = 26;
public static readonly OPLEAD = 27;
public static readonly OPPAGENUMBER = 28;
public static readonly OPMARGINNUMBER = 29;
public static readonly OPHASH = 30;
public static readonly CL = 31;
public static readonly COLON = 32;
public static readonly AMP = 33;
public static readonly DBLCOLON = 34;
public static readonly PLUS = 35;
public static readonly DotAt = 36;
public static readonly Greater = 37;
public static readonly Less = 38;
public static readonly RightAngle = 39;
public static readonly RightArrow = 40;
public static readonly DBLEQ = 41;
public static readonly HSPL = 42;
public static readonly HSPL2 = 43;
public static readonly SSPL = 44;
public static readonly SSPL2 = 45;
public static readonly COMMENT = 46;
public static readonly DCANY = 47;
public static readonly Image_type = 48;
public static readonly Audio_type = 49;
public static readonly Video_type = 50;
public static readonly ArticleText = 51;
public static readonly NOTCL = 52;
public static readonly NUMERIC = 53;
public static readonly STRING = 54;
public static readonly NL = 55;
public static readonly NOTBITMARK = 56;
public static readonly ELIPSIS = 57;
public static readonly SENTENCE = 58;
public static readonly BARSTRING = 59;
public static readonly OPAT = 60;
public static readonly AtProgress = 61;
public static readonly AtReference = 62;
public static readonly AtWidth = 63;
public static readonly AtHeight = 64;
public static readonly AtProgressPoints = 65;
public static readonly AtShortanswer = 66;
public static readonly AtLonganswer = 67;
public static readonly AtExampleWithStr = 68;
public static readonly AtExamplecol = 69;
public static readonly AtExamplecl = 70;
public static readonly AtSampleSolution = 71;
public static readonly AtPartialAnswerS = 72;
public static readonly AtPartialAnswer = 73;
public static readonly AtLabeltrue = 74;
public static readonly AtLabelfalse = 75;
public static readonly AtPoints = 76;
public static readonly AtSrc = 77;
public static readonly AtPartner = 78;
public static readonly OPATALT = 79;
public static readonly OPAMARK = 80;
public static readonly ShowInIndex = 81;
public static readonly OpAtCaption = 82;
public static readonly OpAtLicense = 83;
public static readonly OpAtCopyright = 84;
public static readonly OpAtSearch = 85;
public static readonly OpAtIsTracked = 86;
public static readonly OpAtIsInfoOnly = 87;
public static readonly AtDate = 88;
public static readonly Http = 89;
public static readonly Https = 90;
public static readonly AmpAudio = 91;
public static readonly AmpImage = 92;
public static readonly AmpImageZoom = 93;
public static readonly AmpVideo = 94;
public static readonly AmpArticle = 95;
public static readonly AmpDocument = 96;
public static readonly AmpApp = 97;
public static readonly AmpWebsite = 98;
public static readonly AmpStillImageFilm = 99;
public static readonly AmpPdf = 100;
public static readonly OpAmpAudio = 101;
public static readonly OpAmpImage = 102;
public static readonly OpAmpImageZoom = 103;
public static readonly OpAmpVideo = 104;
public static readonly OpAmpArticle = 105;
public static readonly OpAmpArticleAtt = 106;
public static readonly OpAmpDocument = 107;
public static readonly OpAmpApp = 108;
public static readonly OpAmpWebsite = 109;
public static readonly OpAmpStillImageFilm = 110;
public static readonly BracEnclose = 111;
public static readonly AmpAudioLink = 112;
public static readonly AmpImageLink = 113;
public static readonly AmpVideoLink = 114;
public static readonly AmpArticleLink = 115;
public static readonly AmpDocumentLink = 116;
public static readonly AmpDocumentDownload = 117;
public static readonly AmpAppLink = 118;
public static readonly AmpWebsiteLink = 119;
public static readonly AmpStillImageFilmLink = 120;
public static readonly OpAmpAudioLink = 121;
public static readonly OpAmpImageLink = 122;
public static readonly OpAmpVideoLink = 123;
public static readonly OpAmpArticleLink = 124;
public static readonly OpAmpDocumentLink = 125;
public static readonly OpAmpDocumentDownload = 126;
public static readonly OpAmpAppLink = 127;
public static readonly OpAmpWebsiteLink = 128;
public static readonly OpAmpStillImageFilmLink = 129;
public static readonly AmpImageEmbed = 130;
public static readonly AmpVideoEmbed = 131;
public static readonly AmpAudioEmbed = 132;
public static readonly AmpDocumentEmbed = 133;
public static readonly AmpStillImageFilmEmbed = 134;
public static readonly OpAmpImageEmbed = 135;
public static readonly OpAmpVideoEmbed = 136;
public static readonly OpAmpAudioEmbed = 137;
public static readonly OpAmpDocumentEmbed = 138;
public static readonly OpAmpStillImageFilmEmbed = 139;
public static readonly BitmarkMinus = 140;
public static readonly BitmarkPlus = 141;
public static readonly ColonText = 142;
public static readonly ColonJson = 143;
public static readonly Prosemirror = 144;
public static readonly Placeholder = 145;
public static readonly BASIC = 146;
public static readonly JPG = 147;
public static readonly PNG = 148;
public static readonly GIF = 149;
public static readonly SVG = 150;
public static readonly MP2 = 151;
public static readonly MP3 = 152;
public static readonly MP4 = 153;
public static readonly FLV = 154;
public static readonly WMV = 155;
public static readonly MPEG = 156;
public static readonly MPG = 157;
public static readonly TEL = 158;
public static readonly DotArticleAtt = 159;
public static readonly STAR = 160;
public static readonly URL = 161;
public static readonly LIST_LINE = 162;
public static readonly ENCLBARS = 163;
public static readonly RULE_bitmark = 0;
public static readonly RULE_bitmark_ = 1;
public static readonly RULE_chat = 2;
public static readonly RULE_conversation = 3;
public static readonly RULE_conversation_left_1 = 4;
public static readonly RULE_conversation_right_1 = 5;
public static readonly RULE_conversation_right_1_thought = 6;
public static readonly RULE_conversation_right_1_scream = 7;
public static readonly RULE_conversation_left_1_thought = 8;
public static readonly RULE_conversation_left_1_scream = 9;
public static readonly RULE_initiator = 10;
public static readonly RULE_partner = 11;
public static readonly RULE_partner1 = 12;
public static readonly RULE_partner1_name = 13;
public static readonly RULE_name_text = 14;
public static readonly RULE_name_alt = 15;
public static readonly RULE_chat_initiator = 16;
public static readonly RULE_chat_partner = 17;
public static readonly RULE_sspl_chat_partner = 18;
public static readonly RULE_bitElem = 19;
public static readonly RULE_resource = 20;
public static readonly RULE_gap = 21;
public static readonly RULE_single_gap = 22;
public static readonly RULE_dcolon = 23;
public static readonly RULE_atpoint = 24;
public static readonly RULE_format = 25;
public static readonly RULE_resource_format = 26;
public static readonly RULE_resource_format_extra = 27;
public static readonly RULE_format2 = 28;
public static readonly RULE_image_format = 29;
public static readonly RULE_video_format = 30;
public static readonly RULE_article_format = 31;
public static readonly RULE_document_format = 32;
public static readonly RULE_app_format = 33;
public static readonly RULE_website_format = 34;
public static readonly RULE_stillimagefilm_format = 35;
public static readonly RULE_op_article_format = 36;
public static readonly RULE_op_document_format = 37;
public static readonly RULE_op_app_format = 38;
public static readonly RULE_op_website_format = 39;
public static readonly RULE_op_video_format = 40;
public static readonly RULE_op_stillimagefilm_format = 41;
public static readonly RULE_articlebit = 42;
public static readonly RULE_documentbit = 43;
public static readonly RULE_websitebit = 44;
public static readonly RULE_appbit = 45;
public static readonly RULE_stillimagefilmbit = 46;
public static readonly RULE_stillimg_one = 47;
public static readonly RULE_videobit = 48;
public static readonly RULE_video_one = 49;
public static readonly RULE_imagebit = 50;
public static readonly RULE_image_one = 51;
public static readonly RULE_op_image_format = 52;
public static readonly RULE_image_chained = 53;
public static readonly RULE_image_chained4match = 54;
public static readonly RULE_audiobit = 55;
public static readonly RULE_audio_one = 56;
public static readonly RULE_audio_format = 57;
public static readonly RULE_op_audio_format = 58;
public static readonly RULE_resource_chained = 59;
public static readonly RULE_telephone = 60;
public static readonly RULE_url = 61;
public static readonly RULE_item = 62;
public static readonly RULE_lead = 63;
public static readonly RULE_angleref = 64;
public static readonly RULE_example = 65;
public static readonly RULE_bracketed_text = 66;
public static readonly RULE_reference = 67;
public static readonly RULE_progress = 68;
public static readonly RULE_dateprop = 69;
public static readonly RULE_dateprop_chained = 70;
public static readonly RULE_instruction = 71;
public static readonly RULE_hint = 72;
public static readonly RULE_title = 73;
public static readonly RULE_bool_label = 74;
public static readonly RULE_progress_points = 75;
public static readonly RULE_istracked = 76;
public static readonly RULE_isinfoonly = 77;
public static readonly RULE_atdef = 78;
public static readonly RULE_atdef_ = 79;
public static readonly RULE_dollarans = 80;
public static readonly RULE_anchor = 81;
public static readonly RULE_lines = 82;
public static readonly RULE_s_and_w = 83;
public static readonly RULE_clnsp = 84;
public static readonly RULE_sspl = 85;
public static readonly RULE_words = 86;
public static readonly RULE_sp = 87;
// tslint:disable:no-trailing-whitespace
public static readonly ruleNames: string[] = [
"bitmark", "bitmark_", "chat", "conversation", "conversation_left_1",
"conversation_right_1", "conversation_right_1_thought", "conversation_right_1_scream",
"conversation_left_1_thought", "conversation_left_1_scream", "initiator",
"partner", "partner1", "partner1_name", "name_text", "name_alt", "chat_initiator",
"chat_partner", "sspl_chat_partner", "bitElem", "resource", "gap", "single_gap",
"dcolon", "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", "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, undefined, undefined, undefined, undefined,
undefined, undefined, "'[#'", undefined, "':'", "'&'", "'::'", "'+'",
"'.@'", "'>'", "'<'", "'\u25BA'", "'\u2192'", "'=='", undefined, undefined,
undefined, undefined, undefined, undefined, undefined, undefined, undefined,
undefined, undefined, undefined, undefined, undefined, undefined, undefined,
undefined, undefined, "'[@'", undefined, undefined, undefined, undefined,
undefined, undefined, undefined, undefined, undefined, undefined, undefined,
undefined, undefined, undefined, undefined, undefined, undefined, undefined,
undefined, undefined, undefined, undefined, undefined, undefined, undefined,
undefined, undefined, undefined, "'http://'", "'https://'", "'&audio'",
"'&image'", "'&image-zoom'", "'&video'", "'&article'", "'&document'",
"'&app'", "'&website'", "'&still-image-film'", "'&pdf'", undefined, undefined,
undefined, undefined, undefined, undefined, undefined, undefined, undefined,
undefined, undefined, "'&audio-link'", "'&image-link'", "'&video-link'",
"'&article-link'", "'&document-link'", "'&document-download'", "'&app-link'",
"'&website-link'", "'&still-image-film-link'", undefined, undefined, undefined,
undefined, undefined, undefined, undefined, undefined, undefined, "'&image-embed'",
"'&video-embed'", "'&daudio-embed'", "'&document-embed'", "'&still-image-film-embed'",
undefined, undefined, undefined, undefined, undefined, "':bitmark--'",
"':bitmark++'", "':text'", "':json'", "':prosemirror'", "':placeholder'",
"':basic'", "':jpg'", "':png'", "':gif'", "':svg'", "':mp2'", "':mp3'",
"':mp4'", "':flv'", "':wmv'", "':mpeg'", "':mpg'", "'tel:'", "'.article-attachment'",
"'*'",
];
private static readonly _SYMBOLIC_NAMES: Array<string | undefined> = [
undefined, "OPDOT", "S", "BitChat", "BitConv", "BitConversationLeft1",
"BitConversationRight1", "BitConversationRight1Thought", "BitConversationRight1Scream",
"BitConversationLeft1Thought", "BitConversationLeft1Scream", "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", "HSPL",
"HSPL2", "SSPL", "SSPL2", "COMMENT", "DCANY", "Image_type", "Audio_type",
"Video_type", "ArticleText", "NOTCL", "NUMERIC", "STRING", "NL", "NOTBITMARK",
"ELIPSIS", "SENTENCE", "BARSTRING", "OPAT", "AtProgress", "AtReference",
"AtWidth", "AtHeight", "AtProgressPoints", "AtShortanswer", "AtLonganswer",
"AtExampleWithStr", "AtExamplecol", "AtExamplecl", "AtSampleSolution",
"AtPartialAnswerS", "AtPartialAnswer", "AtLabeltrue", "AtLabelfalse",
"AtPoints", "AtSrc", "AtPartner", "OPATALT", "OPAMARK", "ShowInIndex",
"OpAtCaption", "OpAtLicense", "OpAtCopyright", "OpAtSearch", "OpAtIsTracked",
"OpAtIsInfoOnly", "AtDate", "Http", "Https", "AmpAudio", "AmpImage", "AmpImageZoom",
"AmpVideo", "AmpArticle", "AmpDocument", "AmpApp", "AmpWebsite", "AmpStillImageFilm",
"AmpPdf", "OpAmpAudio", "OpAmpImage", "OpAmpImageZoom", "OpAmpVideo",
"OpAmpArticle", "OpAmpArticleAtt", "OpAmpDocument", "OpAmpApp", "OpAmpWebsite",
"OpAmpStillImageFilm", "BracEnclose", "AmpAudioLink", "AmpImageLink",
"AmpVideoLink", "AmpArticleLink", "AmpDocumentLink", "AmpDocumentDownload",
"AmpAppLink", "AmpWebsiteLink", "AmpStillImageFilmLink", "OpAmpAudioLink",
"OpAmpImageLink", "OpAmpVideoLink", "OpAmpArticleLink", "OpAmpDocumentLink",
"OpAmpDocumentDownload", "OpAmpAppLink", "OpAmpWebsiteLink", "OpAmpStillImageFilmLink",
"AmpImageEmbed", "AmpVideoEmbed", "AmpAudioEmbed", "AmpDocumentEmbed",
"AmpStillImageFilmEmbed", "OpAmpImageEmbed", "OpAmpVideoEmbed", "OpAmpAudioEmbed",
"OpAmpDocumentEmbed", "OpAmpStillImageFilmEmbed", "BitmarkMinus", "BitmarkPlus",
"ColonText", "ColonJson", "Prosemirror", "Placeholder", "BASIC", "JPG",
"PNG", "GIF", "SVG", "MP2", "MP3", "MP4", "FLV", "WMV", "MPEG", "MPG",
"TEL", "DotArticleAtt", "STAR", "URL", "LIST_LINE", "ENCLBARS",
];
public static readonly VOCABULARY: Vocabulary = new VocabularyImpl(chatParser._LITERAL_NAMES, chatParser._SYMBOLIC_NAMES, []);
// @Override
// @NotNull
public get vocabulary(): Vocabulary {
return chatParser.VOCABULARY;
}
// tslint:enable:no-trailing-whitespace
// @Override
public get grammarFileName(): string { return "chatParser.g4"; }
// @Override
public get ruleNames(): string[] { return chatParser.ruleNames; }
// @Override
public get serializedATN(): string { return chatParser._serializedATN; }
protected createFailedPredicateException(predicate?: string, message?: string): FailedPredicateException {
return new FailedPredicateException(this, predicate, message);
}
constructor(input: TokenStream) {
super(input);
this._interp = new ParserATNSimulator(chatParser._ATN, this);
}
// @RuleVersion(0)
public bitmark(): BitmarkContext {
let _localctx: BitmarkContext = new BitmarkContext(this._ctx, this.state);
this.enterRule(_localctx, 0, chatParser.RULE_bitmark);
let _la: number;
try {
let _alt: number;
this.enterOuterAlt(_localctx, 1);
{
this.state = 189;
this._errHandler.sync(this);
_la = this._input.LA(1);
do {
{
{
this.state = 176;
this.bitmark_();
this.state = 186;
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 = 180;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === chatParser.S) {
{
{
this.state = 177;
this.match(chatParser.S);
}
}
this.state = 182;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
this.state = 183;
this.match(chatParser.NL);
}
}
}
this.state = 188;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 1, this._ctx);
}
}
}
this.state = 191;
this._errHandler.sync(this);
_la = this._input.LA(1);
} while ((((_la) & ~0x1F) === 0 && ((1 << _la) & ((1 << chatParser.BitChat) | (1 << chatParser.BitConv) | (1 << chatParser.BitConversationLeft1) | (1 << chatParser.BitConversationRight1) | (1 << chatParser.BitConversationRight1Thought) | (1 << chatParser.BitConversationRight1Scream) | (1 << chatParser.BitConversationLeft1Thought) | (1 << chatParser.BitConversationLeft1Scream))) !== 0));
this.state = 196;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === chatParser.NL) {
{
{
this.state = 193;
this.match(chatParser.NL);
}
}
this.state = 198;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
this.state = 199;
this.match(chatParser.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, chatParser.RULE_bitmark_);
try {
this.state = 209;
this._errHandler.sync(this);
switch (this._input.LA(1)) {
case chatParser.BitChat:
this.enterOuterAlt(_localctx, 1);
{
this.state = 201;
this.chat();
}
break;
case chatParser.BitConv:
this.enterOuterAlt(_localctx, 2);
{
this.state = 202;
this.conversation();
}
break;
case chatParser.BitConversationLeft1:
this.enterOuterAlt(_localctx, 3);
{
this.state = 203;
this.conversation_left_1();
}
break;
case chatParser.BitConversationRight1:
this.enterOuterAlt(_localctx, 4);
{
this.state = 204;
this.conversation_right_1();
}
break;
case chatParser.BitConversationRight1Thought:
this.enterOuterAlt(_localctx, 5);
{
this.state = 205;
this.conversation_right_1_thought();
}
break;
case chatParser.BitConversationRight1Scream:
this.enterOuterAlt(_localctx, 6);
{
this.state = 206;
this.conversation_right_1_scream();
}
break;
case chatParser.BitConversationLeft1Thought:
this.enterOuterAlt(_localctx, 7);
{
this.state = 207;
this.conversation_left_1_thought();
}
break;
case chatParser.BitConversationLeft1Scream:
this.enterOuterAlt(_localctx, 8);
{
this.state = 208;
this.conversation_left_1_scream();
}
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 chat(): ChatContext {
let _localctx: ChatContext = new ChatContext(this._ctx, this.state);
this.enterRule(_localctx, 4, chatParser.RULE_chat);
let _la: number;
try {
let _alt: number;
this.state = 291;
this._errHandler.sync(this);
switch ( this.interpreter.adaptivePredict(this._input, 17, this._ctx) ) {
case 1:
this.enterOuterAlt(_localctx, 1);
{
this.state = 211;
this.match(chatParser.BitChat);
this.state = 212;
this.format();
this.state = 213;
this.match(chatParser.CL);
this.state = 217;
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 = 214;
this.match(chatParser.NL);
}
}
}
this.state = 219;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 5, this._ctx);
}
this.state = 229;
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 = 220;
this.bitElem();
this.state = 224;
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 = 221;
this.match(chatParser.NL);
}
}
}
this.state = 226;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 6, this._ctx);
}
}
}
}
this.state = 231;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 7, this._ctx);
}
}
break;
case 2:
this.enterOuterAlt(_localctx, 2);
{
this.state = 232;
this.match(chatParser.BitChat);
this.state = 233;
this.format();
this.state = 234;
this.match(chatParser.CL);
this.state = 238;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === chatParser.NL) {
{
{
this.state = 235;
this.match(chatParser.NL);
}
}
this.state = 240;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
this.state = 250;
this._errHandler.sync(this);
_la = this._input.LA(1);
while ((((_la) & ~0x1F) === 0 && ((1 << _la) & ((1 << chatParser.S) | (1 << chatParser.OPRANGLES) | (1 << chatParser.OPRANGLEL) | (1 << chatParser.OPDANGLE) | (1 << chatParser.OPU) | (1 << chatParser.OPB) | (1 << chatParser.OPQ) | (1 << chatParser.OPA) | (1 << chatParser.OPS) | (1 << chatParser.OPC) | (1 << chatParser.OPITEM) | (1 << chatParser.OPHASH))) !== 0) || ((((_la - 32)) & ~0x1F) === 0 && ((1 << (_la - 32)) & ((1 << (chatParser.COLON - 32)) | (1 << (chatParser.AMP - 32)) | (1 << (chatParser.DBLCOLON - 32)) | (1 << (chatParser.Greater - 32)) | (1 << (chatParser.Less - 32)) | (1 << (chatParser.RightAngle - 32)) | (1 << (chatParser.RightArrow - 32)) | (1 << (chatParser.DBLEQ - 32)) | (1 << (chatParser.ArticleText - 32)) | (1 << (chatParser.NUMERIC - 32)) | (1 << (chatParser.STRING - 32)) | (1 << (chatParser.NOTBITMARK - 32)) | (1 << (chatParser.ELIPSIS - 32)) | (1 << (chatParser.SENTENCE - 32)) | (1 << (chatParser.BARSTRING - 32)) | (1 << (chatParser.AtReference - 32)))) !== 0) || ((((_la - 68)) & ~0x1F) === 0 && ((1 << (_la - 68)) & ((1 << (chatParser.AtExampleWithStr - 68)) | (1 << (chatParser.AtExamplecol - 68)) | (1 << (chatParser.AtExamplecl - 68)) | (1 << (chatParser.AtSampleSolution - 68)) | (1 << (chatParser.AtLabeltrue - 68)) | (1 << (chatParser.AtLabelfalse - 68)) | (1 << (chatParser.OpAtCopyright - 68)))) !== 0) || ((((_la - 101)) & ~0x1F) === 0 && ((1 << (_la - 101)) & ((1 << (chatParser.OpAmpAudio - 101)) | (1 << (chatParser.OpAmpImage - 101)) | (1 << (chatParser.OpAmpImageZoom - 101)) | (1 << (chatParser.OpAmpVideo - 101)) | (1 << (chatParser.OpAmpArticle - 101)) | (1 << (chatParser.OpAmpDocument - 101)) | (1 << (chatParser.OpAmpApp - 101)) | (1 << (chatParser.OpAmpWebsite - 101)) | (1 << (chatParser.OpAmpStillImageFilm - 101)) | (1 << (chatParser.OpAmpAudioLink - 101)) | (1 << (chatParser.OpAmpImageLink - 101)) | (1 << (chatParser.OpAmpVideoLink - 101)) | (1 << (chatParser.OpAmpArticleLink - 101)) | (1 << (chatParser.OpAmpDocumentLink - 101)) | (1 << (chatParser.OpAmpDocumentDownload - 101)) | (1 << (chatParser.OpAmpAppLink - 101)) | (1 << (chatParser.OpAmpWebsiteLink - 101)) | (1 << (chatParser.OpAmpStillImageFilmLink - 101)))) !== 0) || ((((_la - 136)) & ~0x1F) === 0 && ((1 << (_la - 136)) & ((1 << (chatParser.OpAmpVideoEmbed - 136)) | (1 << (chatParser.OpAmpAudioEmbed - 136)) | (1 << (chatParser.OpAmpDocumentEmbed - 136)) | (1 << (chatParser.OpAmpStillImageFilmEmbed - 136)) | (1 << (chatParser.URL - 136)) | (1 << (chatParser.LIST_LINE - 136)))) !== 0)) {
{
{
this.state = 241;
this.bitElem();
this.state = 245;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === chatParser.NL) {
{
{
this.state = 242;
this.match(chatParser.NL);
}
}
this.state = 247;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
}
}
this.state = 252;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
this.state = 253;
_la = this._input.LA(1);
if (!(_la === chatParser.HSPL || _la === chatParser.HSPL2)) {
this._errHandler.recoverInline(this);
} else {
if (this._input.LA(1) === Token.EOF) {
this.matchedEOF = true;
}
this._errHandler.reportMatch(this);
this.consume();
}
this.state = 254;
this.initiator();
this.state = 255;
_la = this._input.LA(1);
if (!(_la === chatParser.HSPL || _la === chatParser.HSPL2)) {
this._errHandler.recoverInline(this);
} else {
if (this._input.LA(1) === Token.EOF) {
this.matchedEOF = true;
}
this._errHandler.reportMatch(this);
this.consume();
}
this.state = 256;
this.partner();
this.state = 265;
this._errHandler.sync(this);
_alt = 1;
do {
switch (_alt) {
case 1:
{
{
this.state = 257;
_la = this._input.LA(1);
if (!(_la === chatParser.HSPL || _la === chatParser.HSPL2)) {
this._errHandler.recoverInline(this);
} else {
if (this._input.LA(1) === Token.EOF) {
this.matchedEOF = true;
}
this._errHandler.reportMatch(this);
this.consume();
}
this.state = 258;
this.chat_initiator();
this.state = 262;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === chatParser.SSPL || _la === chatParser.SSPL2) {
{
{
this.state = 259;
this.sspl_chat_partner();
}
}
this.state = 264;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
}
}
break;
default:
throw new NoViableAltException(this);
}
this.state = 267;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 12, this._ctx);
} while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER);
this.state = 269;
_la = this._input.LA(1);
if (!(_la === chatParser.HSPL || _la === chatParser.HSPL2)) {
this._errHandler.recoverInline(this);
} else {
if (this._input.LA(1) === Token.EOF) {
this.matchedEOF = true;
}
this._errHandler.reportMatch(this);
this.consume();
}
this.state = 273;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 13, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 270;
this.match(chatParser.NL);
}
}
}
this.state = 275;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 13, this._ctx);
}
this.state = 289;
this._errHandler.sync(this);
switch ( this.interpreter.adaptivePredict(this._input, 16, this._ctx) ) {
case 1:
{
this.state = 276;
this.resource();
this.state = 286;
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 = 280;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === chatParser.NL) {
{
{
this.state = 277;
this.match(chatParser.NL);
}
}
this.state = 282;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
this.state = 283;
this.resource();
}
}
}
this.state = 288;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 15, this._ctx);
}
}
break;
}
}
break;
}
}
catch (re) {
if (re instanceof RecognitionException) {
_localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
} else {
throw re;
}
}
finally {
this.exitRule();
}
return _localctx;
}
// @RuleVersion(0)
public conversation(): ConversationContext {
let _localctx: ConversationContext = new ConversationContext(this._ctx, this.state);
this.enterRule(_localctx, 6, chatParser.RULE_conversation);
let _la: number;
try {
let _alt: number;
this.state = 373;
this._errHandler.sync(this);
switch ( this.interpreter.adaptivePredict(this._input, 30, this._ctx) ) {
case 1:
this.enterOuterAlt(_localctx, 1);
{
this.state = 293;
this.match(chatParser.BitConv);
this.state = 294;
this.format();
this.state = 295;
this.match(chatParser.CL);
this.state = 299;
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 = 296;
this.match(chatParser.NL);
}
}
}
this.state = 301;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 18, this._ctx);
}
this.state = 311;
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 = 302;
this.bitElem();
this.state = 306;
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 = 303;
this.match(chatParser.NL);
}
}
}
this.state = 308;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 19, this._ctx);
}
}
}
}
this.state = 313;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 20, this._ctx);
}
}
break;
case 2:
this.enterOuterAlt(_localctx, 2);
{
this.state = 314;
this.match(chatParser.BitConv);
this.state = 315;
this.format();
this.state = 316;
this.match(chatParser.CL);
this.state = 320;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === chatParser.NL) {
{
{
this.state = 317;
this.match(chatParser.NL);
}
}
this.state = 322;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
this.state = 332;
this._errHandler.sync(this);
_la = this._input.LA(1);
while ((((_la) & ~0x1F) === 0 && ((1 << _la) & ((1 << chatParser.S) | (1 << chatParser.OPRANGLES) | (1 << chatParser.OPRANGLEL) | (1 << chatParser.OPDANGLE) | (1 << chatParser.OPU) | (1 << chatParser.OPB) | (1 << chatParser.OPQ) | (1 << chatParser.OPA) | (1 << chatParser.OPS) | (1 << chatParser.OPC) | (1 << chatParser.OPITEM) | (1 << chatParser.OPHASH))) !== 0) || ((((_la - 32)) & ~0x1F) === 0 && ((1 << (_la - 32)) & ((1 << (chatParser.COLON - 32)) | (1 << (chatParser.AMP - 32)) | (1 << (chatParser.DBLCOLON - 32)) | (1 << (chatParser.Greater - 32)) | (1 << (chatParser.Less - 32)) | (1 << (chatParser.RightAngle - 32)) | (1 << (chatParser.RightArrow - 32)) | (1 << (chatParser.DBLEQ - 32)) | (1 << (chatParser.ArticleText - 32)) | (1 << (chatParser.NUMERIC - 32)) | (1 << (chatParser.STRING - 32)) | (1 << (chatParser.NOTBITMARK - 32)) | (1 << (chatParser.ELIPSIS - 32)) | (1 << (chatParser.SENTENCE - 32)) | (1 << (chatParser.BARSTRING - 32)) | (1 << (chatParser.AtReference - 32)))) !== 0) || ((((_la - 68)) & ~0x1F) === 0 && ((1 << (_la - 68)) & ((1 << (chatParser.AtExampleWithStr - 68)) | (1 << (chatParser.AtExamplecol - 68)) | (1 << (chatParser.AtExamplecl - 68)) | (1 << (chatParser.AtSampleSolution - 68)) | (1 << (chatParser.AtLabeltrue - 68)) | (1 << (chatParser.AtLabelfalse - 68)) | (1 << (chatParser.OpAtCopyright - 68)))) !== 0) || ((((_la - 101)) & ~0x1F) === 0 && ((1 << (_la - 101)) & ((1 << (chatParser.OpAmpAudio - 101)) | (1 << (chatParser.OpAmpImage - 101)) | (1 << (chatParser.OpAmpImageZoom - 101)) | (1 << (chatParser.OpAmpVideo - 101)) | (1 << (chatParser.OpAmpArticle - 101)) | (1 << (chatParser.OpAmpDocument - 101)) | (1 << (chatParser.OpAmpApp - 101)) | (1 << (chatParser.OpAmpWebsite - 101)) | (1 << (chatParser.OpAmpStillImageFilm - 101)) | (1 << (chatParser.OpAmpAudioLink - 101)) | (1 << (chatParser.OpAmpImageLink - 101)) | (1 << (chatParser.OpAmpVideoLink - 101)) | (1 << (chatParser.OpAmpArticleLink - 101)) | (1 << (chatParser.OpAmpDocumentLink - 101)) | (1 << (chatParser.OpAmpDocumentDownload - 101)) | (1 << (chatParser.OpAmpAppLink - 101)) | (1 << (chatParser.OpAmpWebsiteLink - 101)) | (1 << (chatParser.OpAmpStillImageFilmLink - 101)))) !== 0) || ((((_la - 136)) & ~0x1F) === 0 && ((1 << (_la - 136)) & ((1 << (chatParser.OpAmpVideoEmbed - 136)) | (1 << (chatParser.OpAmpAudioEmbed - 136)) | (1 << (chatParser.OpAmpDocumentEmbed - 136)) | (1 << (chatParser.OpAmpStillImageFilmEmbed - 136)) | (1 << (chatParser.URL - 136)) | (1 << (chatParser.LIST_LINE - 136)))) !== 0)) {
{
{
this.state = 323;
this.bitElem();
this.state = 327;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === chatParser.NL) {
{
{
this.state = 324;
this.match(chatParser.NL);
}
}
this.state = 329;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
}
}
this.state = 334;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
this.state = 335;
_la = this._input.LA(1);
if (!(_la === chatParser.HSPL || _la === chatParser.HSPL2)) {
this._errHandler.recoverInline(this);
} else {
if (this._input.LA(1) === Token.EOF) {
this.matchedEOF = true;
}
this._errHandler.reportMatch(this);
this.consume();
}
this.state = 336;
this.initiator();
this.state = 337;
_la = this._input.LA(1);
if (!(_la === chatParser.HSPL || _la === chatParser.HSPL2)) {
this._errHandler.recoverInline(this);
} else {
if (this._input.LA(1) === Token.EOF) {
this.matchedEOF = true;
}
this._errHandler.reportMatch(this);
this.consume();
}
this.state = 338;
this.partner();
this.state = 347;
this._errHandler.sync(this);
_alt = 1;
do {
switch (_alt) {
case 1:
{
{
this.state = 339;
_la = this._input.LA(1);
if (!(_la === chatParser.HSPL || _la === chatParser.HSPL2)) {
this._errHandler.recoverInline(this);
} else {
if (this._input.LA(1) === Token.EOF) {
this.matchedEOF = true;
}
this._errHandler.reportMatch(this);
this.consume();
}
this.state = 340;
this.chat_initiator();
this.state = 344;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === chatParser.SSPL || _la === chatParser.SSPL2) {
{
{
this.state = 341;
this.sspl_chat_partner();
}
}
this.state = 346;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
}
}
break;
default:
throw new NoViableAltException(this);
}
this.state = 349;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 25, this._ctx);
} while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER);
this.state = 351;
_la = this._input.LA(1);
if (!(_la === chatParser.HSPL || _la === chatParser.HSPL2)) {
this._errHandler.recoverInline(this);
} else {
if (this._input.LA(1) === Token.EOF) {
this.matchedEOF = true;
}
this._errHandler.reportMatch(this);
this.consume();
}
this.state = 355;
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 = 352;
this.match(chatParser.NL);
}
}
}
this.state = 357;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 26, this._ctx);
}
this.state = 371;
this._errHandler.sync(this);
switch ( this.interpreter.adaptivePredict(this._input, 29, this._ctx) ) {
case 1:
{
this.state = 358;
this.resource();
this.state = 368;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 28, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 362;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === chatParser.NL) {
{
{
this.state = 359;
this.match(chatParser.NL);
}
}
this.state = 364;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
this.state = 365;
this.resource();
}
}
}
this.state = 370;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 28, this._ctx);
}
}
break;
}
}
break;
}
}
catch (re) {
if (re instanceof RecognitionException) {
_localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
} else {
throw re;
}
}
finally {
this.exitRule();
}
return _localctx;
}
// @RuleVersion(0)
public conversation_left_1(): Conversation_left_1Context {
let _localctx: Conversation_left_1Context = new Conversation_left_1Context(this._ctx, this.state);
this.enterRule(_localctx, 8, chatParser.RULE_conversation_left_1);
let _la: number;
try {
let _alt: number;
this.state = 437;
this._errHandler.sync(this);
switch ( this.interpreter.adaptivePredict(this._input, 41, this._ctx) ) {
case 1:
this.enterOuterAlt(_localctx, 1);
{
this.state = 375;
this.match(chatParser.BitConversationLeft1);
this.state = 376;
this.format2();
this.state = 377;
this.match(chatParser.CL);
this.state = 381;
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 = 378;
this.match(chatParser.NL);
}
}
}
this.state = 383;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 31, this._ctx);
}
this.state = 393;
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 = 384;
this.bitElem();
this.state = 388;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 32, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 385;
this.match(chatParser.NL);
}
}
}
this.state = 390;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 32, this._ctx);
}
}
}
}
this.state = 395;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 33, this._ctx);
}
}
break;
case 2:
this.enterOuterAlt(_localctx, 2);
{
this.state = 396;
this.match(chatParser.BitConversationLeft1);
this.state = 397;
this.format2();
this.state = 398;
this.match(chatParser.CL);
this.state = 402;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 34, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 399;
this.match(chatParser.NL);
}
}
}
this.state = 404;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 34, this._ctx);
}
this.state = 414;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 36, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 405;
this.bitElem();
this.state = 409;
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 = 406;
this.match(chatParser.NL);
}
}
}
this.state = 411;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 35, this._ctx);
}
}
}
}
this.state = 416;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 36, this._ctx);
}
this.state = 418;
this._errHandler.sync(this);
_la = this._input.LA(1);
if (_la === chatParser.AtPartner) {
{
this.state = 417;
this.partner1();
}
}
this.state = 423;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === chatParser.NL) {
{
{
this.state = 420;
this.match(chatParser.NL);
}
}
this.state = 425;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
this.state = 433;
this._errHandler.sync(this);
_alt = 1;
do {
switch (_alt) {
case 1:
{
{
this.state = 426;
this.s_and_w();
this.state = 430;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 39, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 427;
this.match(chatParser.NL);
}
}
}
this.state = 432;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 39, this._ctx);
}
}
}
break;
default:
throw new NoViableAltException(this);
}
this.state = 435;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 40, this._ctx);
} while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER);
}
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 conversation_right_1(): Conversation_right_1Context {
let _localctx: Conversation_right_1Context = new Conversation_right_1Context(this._ctx, this.state);
this.enterRule(_localctx, 10, chatParser.RULE_conversation_right_1);
let _la: number;
try {
let _alt: number;
this.state = 501;
this._errHandler.sync(this);
switch ( this.interpreter.adaptivePredict(this._input, 52, this._ctx) ) {
case 1:
this.enterOuterAlt(_localctx, 1);
{
this.state = 439;
this.match(chatParser.BitConversationRight1);
this.state = 440;
this.format2();
this.state = 441;
this.match(chatParser.CL);
this.state = 445;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 42, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 442;
this.match(chatParser.NL);
}
}
}
this.state = 447;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 42, this._ctx);
}
this.state = 457;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 44, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 448;
this.bitElem();
this.state = 452;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 43, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 449;
this.match(chatParser.NL);
}
}
}
this.state = 454;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 43, this._ctx);
}
}
}
}
this.state = 459;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 44, this._ctx);
}
}
break;
case 2:
this.enterOuterAlt(_localctx, 2);
{
this.state = 460;
this.match(chatParser.BitConversationRight1);
this.state = 461;
this.format2();
this.state = 462;
this.match(chatParser.CL);
this.state = 466;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 45, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 463;
this.match(chatParser.NL);
}
}