bitmark-grammar
Version:
1,449 lines (1,425 loc) • 368 kB
text/typescript
// Generated from ./Chat/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 OPHASH = 26;
public static readonly CL = 27;
public static readonly COLON = 28;
public static readonly AMP = 29;
public static readonly DBLCOLON = 30;
public static readonly PLUS = 31;
public static readonly DotAt = 32;
public static readonly Greater = 33;
public static readonly Less = 34;
public static readonly RightAngle = 35;
public static readonly RightArrow = 36;
public static readonly DBLEQ = 37;
public static readonly HSPL = 38;
public static readonly HSPL2 = 39;
public static readonly SSPL = 40;
public static readonly SSPL2 = 41;
public static readonly COMMENT = 42;
public static readonly DCANY = 43;
public static readonly Image_type = 44;
public static readonly Audio_type = 45;
public static readonly Video_type = 46;
public static readonly ArticleText = 47;
public static readonly NOTCL = 48;
public static readonly NUMERIC = 49;
public static readonly STRING = 50;
public static readonly NL = 51;
public static readonly NOTBITMARK = 52;
public static readonly ELIPSIS = 53;
public static readonly SENTENCE = 54;
public static readonly BARSTRING = 55;
public static readonly OPAT = 56;
public static readonly AtProgress = 57;
public static readonly AtReference = 58;
public static readonly AtWidth = 59;
public static readonly AtHeight = 60;
public static readonly AtProgressPoints = 61;
public static readonly AtShortanswer = 62;
public static readonly AtLonganswer = 63;
public static readonly AtExampleWithStr = 64;
public static readonly AtExamplecol = 65;
public static readonly AtExamplecl = 66;
public static readonly AtSampleSolution = 67;
public static readonly AtPartialAnswerS = 68;
public static readonly AtPartialAnswer = 69;
public static readonly AtLabeltrue = 70;
public static readonly AtLabelfalse = 71;
public static readonly AtPoints = 72;
public static readonly AtSrc = 73;
public static readonly AtPartner = 74;
public static readonly OPATALT = 75;
public static readonly OPAMARK = 76;
public static readonly ShowInIndex = 77;
public static readonly OpAtCaption = 78;
public static readonly OpAtLicense = 79;
public static readonly OpAtCopyright = 80;
public static readonly OpAtSearch = 81;
public static readonly OpAtIsTracked = 82;
public static readonly OpAtIsInfoOnly = 83;
public static readonly AtDate = 84;
public static readonly Http = 85;
public static readonly Https = 86;
public static readonly AmpAudio = 87;
public static readonly AmpImage = 88;
public static readonly AmpImageZoom = 89;
public static readonly AmpImageWAudio = 90;
public static readonly AmpVideo = 91;
public static readonly AmpArticle = 92;
public static readonly AmpDocument = 93;
public static readonly AmpApp = 94;
public static readonly AmpWebsite = 95;
public static readonly AmpStillImageFilm = 96;
public static readonly AmpPdf = 97;
public static readonly OpAmpAudio = 98;
public static readonly OpAmpImage = 99;
public static readonly OpAmpImageZoom = 100;
public static readonly OpAmpImageWAudio = 101;
public static readonly OpAmpVideo = 102;
public static readonly OpAmpArticle = 103;
public static readonly OpAmpArticleAtt = 104;
public static readonly OpAmpDocument = 105;
public static readonly OpAmpApp = 106;
public static readonly OpAmpWebsite = 107;
public static readonly OpAmpStillImageFilm = 108;
public static readonly BracEnclose = 109;
public static readonly AmpAudioLink = 110;
public static readonly AmpImageLink = 111;
public static readonly AmpVideoLink = 112;
public static readonly AmpArticleLink = 113;
public static readonly AmpDocumentLink = 114;
public static readonly AmpDocumentDownload = 115;
public static readonly AmpAppLink = 116;
public static readonly AmpWebsiteLink = 117;
public static readonly AmpStillImageFilmLink = 118;
public static readonly OpAmpAudioLink = 119;
public static readonly OpAmpImageLink = 120;
public static readonly OpAmpVideoLink = 121;
public static readonly OpAmpArticleLink = 122;
public static readonly OpAmpDocumentLink = 123;
public static readonly OpAmpDocumentDownload = 124;
public static readonly OpAmpAppLink = 125;
public static readonly OpAmpWebsiteLink = 126;
public static readonly OpAmpStillImageFilmLink = 127;
public static readonly AmpImageEmbed = 128;
public static readonly AmpVideoEmbed = 129;
public static readonly AmpAudioEmbed = 130;
public static readonly AmpDocumentEmbed = 131;
public static readonly AmpStillImageFilmEmbed = 132;
public static readonly OpAmpImageEmbed = 133;
public static readonly OpAmpVideoEmbed = 134;
public static readonly OpAmpAudioEmbed = 135;
public static readonly OpAmpDocumentEmbed = 136;
public static readonly OpAmpStillImageFilmEmbed = 137;
public static readonly BitmarkMinus = 138;
public static readonly BitmarkPlus = 139;
public static readonly ColonText = 140;
public static readonly ColonJson = 141;
public static readonly Prosemirror = 142;
public static readonly Placeholder = 143;
public static readonly BASIC = 144;
public static readonly JPG = 145;
public static readonly PNG = 146;
public static readonly GIF = 147;
public static readonly SVG = 148;
public static readonly MP2 = 149;
public static readonly MP3 = 150;
public static readonly MP4 = 151;
public static readonly FLV = 152;
public static readonly WMV = 153;
public static readonly MPEG = 154;
public static readonly MPG = 155;
public static readonly TEL = 156;
public static readonly DotArticleAtt = 157;
public static readonly STAR = 158;
public static readonly URL = 159;
public static readonly LIST_LINE = 160;
public static readonly ENCLBARS = 161;
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,
"':'", "'&'", "'::'", "'+'", "'.@'", "'>'", "'<'", "'\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'", "'&image-with-audio'",
"'&video'", "'&article'", "'&document'", "'&app'", "'&website'", "'&still-image-film'",
"'&pdf'", undefined, 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", "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",
"AmpImageWAudio", "AmpVideo", "AmpArticle", "AmpDocument", "AmpApp", "AmpWebsite",
"AmpStillImageFilm", "AmpPdf", "OpAmpAudio", "OpAmpImage", "OpAmpImageZoom",
"OpAmpImageWAudio", "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.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);
_la = this._input.LA(1);
while (_la === chatParser.NL) {
{
{
this.state = 214;
this.match(chatParser.NL);
}
}
this.state = 219;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
this.state = 229;
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.OPHASH) | (1 << chatParser.COLON) | (1 << chatParser.AMP) | (1 << chatParser.DBLCOLON))) !== 0) || ((((_la - 33)) & ~0x1F) === 0 && ((1 << (_la - 33)) & ((1 << (chatParser.Greater - 33)) | (1 << (chatParser.Less - 33)) | (1 << (chatParser.RightAngle - 33)) | (1 << (chatParser.RightArrow - 33)) | (1 << (chatParser.DBLEQ - 33)) | (1 << (chatParser.ArticleText - 33)) | (1 << (chatParser.NUMERIC - 33)) | (1 << (chatParser.STRING - 33)) | (1 << (chatParser.NOTBITMARK - 33)) | (1 << (chatParser.ELIPSIS - 33)) | (1 << (chatParser.SENTENCE - 33)) | (1 << (chatParser.BARSTRING - 33)) | (1 << (chatParser.AtReference - 33)) | (1 << (chatParser.AtExampleWithStr - 33)))) !== 0) || ((((_la - 65)) & ~0x1F) === 0 && ((1 << (_la - 65)) & ((1 << (chatParser.AtExamplecol - 65)) | (1 << (chatParser.AtExamplecl - 65)) | (1 << (chatParser.AtLabeltrue - 65)) | (1 << (chatParser.AtLabelfalse - 65)) | (1 << (chatParser.OpAtCopyright - 65)))) !== 0) || ((((_la - 98)) & ~0x1F) === 0 && ((1 << (_la - 98)) & ((1 << (chatParser.OpAmpAudio - 98)) | (1 << (chatParser.OpAmpImage - 98)) | (1 << (chatParser.OpAmpImageZoom - 98)) | (1 << (chatParser.OpAmpImageWAudio - 98)) | (1 << (chatParser.OpAmpVideo - 98)) | (1 << (chatParser.OpAmpArticle - 98)) | (1 << (chatParser.OpAmpDocument - 98)) | (1 << (chatParser.OpAmpApp - 98)) | (1 << (chatParser.OpAmpWebsite - 98)) | (1 << (chatParser.OpAmpStillImageFilm - 98)) | (1 << (chatParser.OpAmpAudioLink - 98)) | (1 << (chatParser.OpAmpImageLink - 98)) | (1 << (chatParser.OpAmpVideoLink - 98)) | (1 << (chatParser.OpAmpArticleLink - 98)) | (1 << (chatParser.OpAmpDocumentLink - 98)) | (1 << (chatParser.OpAmpDocumentDownload - 98)) | (1 << (chatParser.OpAmpAppLink - 98)) | (1 << (chatParser.OpAmpWebsiteLink - 98)) | (1 << (chatParser.OpAmpStillImageFilmLink - 98)))) !== 0) || ((((_la - 134)) & ~0x1F) === 0 && ((1 << (_la - 134)) & ((1 << (chatParser.OpAmpVideoEmbed - 134)) | (1 << (chatParser.OpAmpAudioEmbed - 134)) | (1 << (chatParser.OpAmpDocumentEmbed - 134)) | (1 << (chatParser.OpAmpStillImageFilmEmbed - 134)) | (1 << (chatParser.URL - 134)) | (1 << (chatParser.LIST_LINE - 134)))) !== 0)) {
{
{
this.state = 220;
this.bitElem();
this.state = 224;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === chatParser.NL) {
{
{
this.state = 221;
this.match(chatParser.NL);
}
}
this.state = 226;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
}
}
this.state = 231;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
this.state = 232;
_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 = 233;
this.initiator();
this.state = 234;
_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 = 235;
this.partner();
this.state = 244;
this._errHandler.sync(this);
_alt = 1;
do {
switch (_alt) {
case 1:
{
{
this.state = 236;
_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 = 237;
this.chat_initiator();
this.state = 241;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === chatParser.SSPL || _la === chatParser.SSPL2) {
{
{
this.state = 238;
this.sspl_chat_partner();
}
}
this.state = 243;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
}
}
break;
default:
throw new NoViableAltException(this);
}
this.state = 246;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 9, this._ctx);
} while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER);
this.state = 248;
_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 = 252;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 10, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 249;
this.match(chatParser.NL);
}
}
}
this.state = 254;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 10, this._ctx);
}
this.state = 268;
this._errHandler.sync(this);
switch ( this.interpreter.adaptivePredict(this._input, 13, this._ctx) ) {
case 1:
{
this.state = 255;
this.resource();
this.state = 265;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 12, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 259;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === chatParser.NL) {
{
{
this.state = 256;
this.match(chatParser.NL);
}
}
this.state = 261;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
this.state = 262;
this.resource();
}
}
}
this.state = 267;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 12, this._ctx);
}
}
break;
}
}
}
catch (re) {
if (re instanceof RecognitionException) {
_localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
} else {
throw re;
}
}
finally {
this.exitRule();
}
return _localctx;
}
// @RuleVersion(0)
public 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.enterOuterAlt(_localctx, 1);
{
this.state = 270;
this.match(chatParser.BitConv);
this.state = 271;
this.format();
this.state = 272;
this.match(chatParser.CL);
this.state = 276;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === chatParser.NL) {
{
{
this.state = 273;
this.match(chatParser.NL);
}
}
this.state = 278;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
this.state = 288;
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.OPHASH) | (1 << chatParser.COLON) | (1 << chatParser.AMP) | (1 << chatParser.DBLCOLON))) !== 0) || ((((_la - 33)) & ~0x1F) === 0 && ((1 << (_la - 33)) & ((1 << (chatParser.Greater - 33)) | (1 << (chatParser.Less - 33)) | (1 << (chatParser.RightAngle - 33)) | (1 << (chatParser.RightArrow - 33)) | (1 << (chatParser.DBLEQ - 33)) | (1 << (chatParser.ArticleText - 33)) | (1 << (chatParser.NUMERIC - 33)) | (1 << (chatParser.STRING - 33)) | (1 << (chatParser.NOTBITMARK - 33)) | (1 << (chatParser.ELIPSIS - 33)) | (1 << (chatParser.SENTENCE - 33)) | (1 << (chatParser.BARSTRING - 33)) | (1 << (chatParser.AtReference - 33)) | (1 << (chatParser.AtExampleWithStr - 33)))) !== 0) || ((((_la - 65)) & ~0x1F) === 0 && ((1 << (_la - 65)) & ((1 << (chatParser.AtExamplecol - 65)) | (1 << (chatParser.AtExamplecl - 65)) | (1 << (chatParser.AtLabeltrue - 65)) | (1 << (chatParser.AtLabelfalse - 65)) | (1 << (chatParser.OpAtCopyright - 65)))) !== 0) || ((((_la - 98)) & ~0x1F) === 0 && ((1 << (_la - 98)) & ((1 << (chatParser.OpAmpAudio - 98)) | (1 << (chatParser.OpAmpImage - 98)) | (1 << (chatParser.OpAmpImageZoom - 98)) | (1 << (chatParser.OpAmpImageWAudio - 98)) | (1 << (chatParser.OpAmpVideo - 98)) | (1 << (chatParser.OpAmpArticle - 98)) | (1 << (chatParser.OpAmpDocument - 98)) | (1 << (chatParser.OpAmpApp - 98)) | (1 << (chatParser.OpAmpWebsite - 98)) | (1 << (chatParser.OpAmpStillImageFilm - 98)) | (1 << (chatParser.OpAmpAudioLink - 98)) | (1 << (chatParser.OpAmpImageLink - 98)) | (1 << (chatParser.OpAmpVideoLink - 98)) | (1 << (chatParser.OpAmpArticleLink - 98)) | (1 << (chatParser.OpAmpDocumentLink - 98)) | (1 << (chatParser.OpAmpDocumentDownload - 98)) | (1 << (chatParser.OpAmpAppLink - 98)) | (1 << (chatParser.OpAmpWebsiteLink - 98)) | (1 << (chatParser.OpAmpStillImageFilmLink - 98)))) !== 0) || ((((_la - 134)) & ~0x1F) === 0 && ((1 << (_la - 134)) & ((1 << (chatParser.OpAmpVideoEmbed - 134)) | (1 << (chatParser.OpAmpAudioEmbed - 134)) | (1 << (chatParser.OpAmpDocumentEmbed - 134)) | (1 << (chatParser.OpAmpStillImageFilmEmbed - 134)) | (1 << (chatParser.URL - 134)) | (1 << (chatParser.LIST_LINE - 134)))) !== 0)) {
{
{
this.state = 279;
this.bitElem();
this.state = 283;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === chatParser.NL) {
{
{
this.state = 280;
this.match(chatParser.NL);
}
}
this.state = 285;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
}
}
this.state = 290;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
this.state = 291;
_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 = 292;
this.initiator();
this.state = 293;
_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 = 294;
this.partner();
this.state = 303;
this._errHandler.sync(this);
_alt = 1;
do {
switch (_alt) {
case 1:
{
{
this.state = 295;
_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 = 296;
this.chat_initiator();
this.state = 300;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === chatParser.SSPL || _la === chatParser.SSPL2) {
{
{
this.state = 297;
this.sspl_chat_partner();
}
}
this.state = 302;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
}
}
break;
default:
throw new NoViableAltException(this);
}
this.state = 305;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 18, this._ctx);
} while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER);
this.state = 307;
_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 = 311;
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 = 308;
this.match(chatParser.NL);
}
}
}
this.state = 313;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 19, this._ctx);
}
this.state = 327;
this._errHandler.sync(this);
switch ( this.interpreter.adaptivePredict(this._input, 22, this._ctx) ) {
case 1:
{
this.state = 314;
this.resource();
this.state = 324;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 21, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 318;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === chatParser.NL) {
{
{
this.state = 315;
this.match(chatParser.NL);
}
}
this.state = 320;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
this.state = 321;
this.resource();
}
}
}
this.state = 326;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 21, this._ctx);
}
}
break;
}
}
}
catch (re) {
if (re instanceof RecognitionException) {
_localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
} else {
throw re;
}
}
finally {
this.exitRule();
}
return _localctx;
}
// @RuleVersion(0)
public 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.enterOuterAlt(_localctx, 1);
{
this.state = 329;
this.match(chatParser.BitConversationLeft1);
this.state = 330;
this.format2();
this.state = 331;
this.match(chatParser.CL);
this.state = 335;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 23, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 332;
this.match(chatParser.NL);
}
}
}
this.state = 337;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 23, this._ctx);
}
this.state = 347;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 25, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 338;
this.bitElem();
this.state = 342;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 24, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 339;
this.match(chatParser.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 = 351;
this._errHandler.sync(this);
_la = this._input.LA(1);
if (_la === chatParser.AtPartner) {
{
this.state = 350;
this.partner1();
}
}
this.state = 356;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === chatParser.NL) {
{
{
this.state = 353;
this.match(chatParser.NL);
}
}
this.state = 358;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
this.state = 366;
this._errHandler.sync(this);
_alt = 1;
do {
switch (_alt) {
case 1:
{
{
this.state = 359;
this.s_and_w();
this.state = 363;
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 = 360;
this.match(chatParser.NL);
}
}
}
this.state = 365;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 28, this._ctx);
}
}
}
break;
default:
throw new NoViableAltException(this);
}
this.state = 368;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 29, this._ctx);
} while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER);
}
}
catch (re) {
if (re instanceof RecognitionException) {
_localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
} else {
throw re;
}
}
finally {
this.exitRule();
}
return _localctx;
}
// @RuleVersion(0)
public 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.enterOuterAlt(_localctx, 1);
{
this.state = 370;
this.match(chatParser.BitConversationRight1);
this.state = 371;
this.format2();
this.state = 372;
this.match(chatParser.CL);
this.state = 376;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 30, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 373;
this.match(chatParser.NL);
}
}
}
this.state = 378;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 30, this._ctx);
}
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 = 379;
this.bitElem();
this.state = 383;
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 = 380;
this.match(chatParser.NL);
}
}
}
this.state = 385;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 31, this._ctx);
}
}
}
}
this.state = 390;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 32, this._ctx);
}
this.state = 392;
this._errHandler.sync(this);
_la = this._input.LA(1);
if (_la === chatParser.AtPartner) {
{
this.state = 391;
this.partner1();
}
}
this.state = 397;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === chatParser.NL) {
{
{
this.state = 394;
this.match(chatParser.NL);
}
}
this.state = 399;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
this.state = 407;
this._errHandler.sync(this);
_alt = 1;
do {
switch (_alt) {
case 1:
{
{
this.state = 400;
this.s_and_w();
this.state = 404;
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 = 401;
this.match(chatParser.NL);
}
}
}
this.state = 406;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 35, this._ctx);
}
}
}
break;
default:
throw new NoViableAltException(this);
}
this.state = 409;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 36, this._ctx);
} while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER);
}
}
catch (re) {
if (re instanceof RecognitionException) {
_localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
} else {
throw re;
}
}
finally {
this.exitRule();
}
return _localctx;
}
// @RuleVersion(0)
public conversation_right_1_thought(): Conversation_right_1_thoughtContext {
let _localctx: Conversation_right_1_thoughtContext = new Conversation_right_1_thoughtContext(this._ctx, this.state);
this.enterRule(_localctx, 12, chatParser.RULE_conversation_right_1_thought);
let _la: number;
try {
let _alt: number;
this.enterOuterAlt(_localctx, 1);
{
this.state = 411;
this.match(chatParser.BitConversationRight1Thought);
this.state = 412;
this.format2();
this.state = 413;
this.match(chatParser.CL);
this.state = 417;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 37, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 414;
this.match(chatParser.NL);
}
}
}
this.state = 419;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 37, this._ctx);
}
this.state = 429;
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 = 420;
this.bitElem();
this.state = 424;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 38, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 421;
this.match(chatParser.NL);
}
}
}
this.state = 426;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 38, this._ctx);
}
}
}
}
this.state = 431;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 39, this._ctx);
}
this.state = 433;
this._errHandler.sync(this);
_la = this._input.LA(1);
if (_la === chatParser.AtPartner) {
{
this.state = 432;
this.partner1();
}
}
this.state = 438;
this._errHandler.sync(this);
_la = this._input.LA(1);
while (_la === chatParser.NL) {
{
{
this.state = 435;
this.match(chatParser.NL);
}
}
this.state = 440;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
this.state = 448;
this._errHandler.sync(this);
_alt = 1;
do {
switch (_alt) {
case 1:
{
{
this.state = 441;
this.s_and_w();
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);
}
}
}
break;
default:
throw new NoViableAltException(this);
}
this.state = 450;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 43, this._ctx);
} while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER);
}
}
catch (re) {
if (re instanceof RecognitionException) {
_localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
} else {
throw re;
}
}
finally {
this.exitRule();
}
return _localctx;
}
// @RuleVersion(0)
public conversation_right_1_scream(): Conversation_right_1_screamContext {
let _localctx: Conversation_right_1_screamContext = new Conversation_right_1_screamContext(this._ctx, this.state);
this.enterRule(_localctx, 14, chatParser.RULE_conversation_right_1_scream);
let _la: number;
try {
let _alt: number;
this.enterOuterAlt(_localctx, 1);
{
this.state = 452;
this.match(chatParser.BitConversationRight1Scream);
this.state = 453;
this.format2();
this.state = 454;
this.match(chatParser.CL);
this.state = 458;
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 = 455;
this.match(chatParser.NL);
}
}
}
this.state = 460;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 44, this._ctx);
}
this.state = 470;
this._errHandler.sync(this);
_alt = this.interpreter.adaptivePredict(this._input, 46, this._ctx);
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 461;
this.bitElem();
this.state = 465;
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 = 462;
this.match(chatParser.NL);
}
}