// $ANTLR 3.0 Creole10.g 2016-12-02 14:22:14
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.liferay.wiki.engine.creole.internal.parser.parser;
import com.liferay.portal.kernel.util.StringBundler;
import com.liferay.wiki.engine.creole.internal.parser.ast.ASTNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.BaseListNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.BaseParentableNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.BoldTextNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.CollectionNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.ForcedEndOfLineNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.FormattedTextNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.HeadingNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.HorizontalNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.ImageNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.ItalicTextNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.ItemNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.LineNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.ListNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.NoWikiInlineNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.NoWikiSectionNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.OrderedListItemNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.OrderedListNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.ParagraphNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.ScapedNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.UnformattedTextNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.UnorderedListItemNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.UnorderedListNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.WikiPageNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.extension.TableOfContentsNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.link.LinkNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.link.interwiki.C2InterwikiLinkNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.link.interwiki.DokuWikiInterwikiLinkNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.link.interwiki.FlickrInterwikiLinkNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.link.interwiki.GoogleInterwikiLinkNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.link.interwiki.InterwikiLinkNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.link.interwiki.JSPWikiInterwikiLinkNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.link.interwiki.MeatballInterwikiLinkNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.link.interwiki.MediaWikiInterwikiLinkNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.link.interwiki.MoinMoinInterwikiLinkNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.link.interwiki.OddmuseInterwikiLinkNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.link.interwiki.OhanaInterwikiLinkNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.link.interwiki.PmWikiInterwikiLinkNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.link.interwiki.PukiWikiInterwikiLinkNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.link.interwiki.PurpleWikiInterwikiLinkNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.link.interwiki.RadeoxInterwikiLinkNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.link.interwiki.SnipSnapInterwikiLinkNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.link.interwiki.TWikiInterwikiLinkNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.link.interwiki.TiddlyWikiInterwikiLinkNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.link.interwiki.UsemodInterwikiLinkNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.link.interwiki.WikipediaInterwikiLinkNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.link.interwiki.XWikiInterwikiLinkNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.table.TableCellNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.table.TableDataNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.table.TableHeaderNode;
import com.liferay.wiki.engine.creole.internal.parser.ast.table.TableNode;
import java.util.Stack;
/**
* This is a generated file from Creole10.g. DO NOT MODIFY THIS FILE MANUALLY!!
* If needed, modify the grammar and rerun the gradle generation task
* (../../../../gradlew generateGrammarSource)
*/
import org.antlr.runtime.*;
import java.util.Stack;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.util.HashMap;
public class Creole10Parser extends Parser {
public static final String[] tokenNames = new String[] {
"<invalid>", "<EOR>", "<DOWN>", "<UP>", "FORCED_END_OF_LINE", "HEADING_SECTION", "HORIZONTAL_SECTION", "LIST_ITEM", "LIST_ITEM_PART", "NOWIKI_SECTION", "SCAPE_NODE", "TEXT_NODE", "UNORDERED_LIST", "UNFORMATTED_TEXT", "WIKI", "NEWLINE", "POUND", "STAR", "EQUAL", "PIPE", "ITAL", "LINK_OPEN", "IMAGE_OPEN", "NOWIKI_OPEN", "EXTENSION", "FORCED_LINEBREAK", "ESCAPE", "NOWIKI_BLOCK_CLOSE", "NOWIKI_CLOSE", "LINK_CLOSE", "IMAGE_CLOSE", "BLANKS", "DASH", "CR", "LF", "SPACE", "TABULATOR", "BRACE_CLOSE", "COLON_SLASH", "SLASH", "INSIGNIFICANT_CHAR", "':'", "'C'", "'2'", "'D'", "'o'", "'k'", "'u'", "'W'", "'i'", "'F'", "'l'", "'c'", "'r'", "'G'", "'g'", "'e'", "'J'", "'S'", "'P'", "'M'", "'a'", "'t'", "'b'", "'d'", "'n'", "'O'", "'m'", "'s'", "'h'", "'p'", "'R'", "'x'", "'T'", "'y'", "'U'", "'X'", "'<<TableOfContents>>'", "'<<TableOfContents title='", "'\\\"'", "'>>'"
};
public static final int SPACE=35;
public static final int ESCAPE=26;
public static final int WIKI=14;
public static final int NOWIKI_OPEN=23;
public static final int SLASH=39;
public static final int EXTENSION=24;
public static final int HORIZONTAL_SECTION=6;
public static final int IMAGE_CLOSE=30;
public static final int ITAL=20;
public static final int CR=33;
public static final int STAR=17;
public static final int NOWIKI_CLOSE=28;
public static final int IMAGE_OPEN=22;
public static final int NOWIKI_BLOCK_CLOSE=27;
public static final int NEWLINE=15;
public static final int TABULATOR=36;
public static final int LF=34;
public static final int FORCED_END_OF_LINE=4;
public static final int EOF=-1;
public static final int FORCED_LINEBREAK=25;
public static final int EQUAL=18;
public static final int POUND=16;
public static final int DASH=32;
public static final int BLANKS=31;
public static final int LIST_ITEM=7;
public static final int PIPE=19;
public static final int COLON_SLASH=38;
public static final int SCAPE_NODE=10;
public static final int UNFORMATTED_TEXT=13;
public static final int INSIGNIFICANT_CHAR=40;
public static final int TEXT_NODE=11;
public static final int HEADING_SECTION=5;
public static final int LINK_OPEN=21;
public static final int LINK_CLOSE=29;
public static final int BRACE_CLOSE=37;
public static final int NOWIKI_SECTION=9;
public static final int UNORDERED_LIST=12;
public static final int LIST_ITEM_PART=8;
protected static class CountLevel_scope {
int level;
String currentMarkup;
String groups;
}
protected Stack CountLevel_stack = new Stack();
public Creole10Parser(TokenStream input) {
super(input);
ruleMemo = new HashMap[128+1];
}
public String[] getTokenNames() { return tokenNames; }
public String getGrammarFileName() { return "Creole10.g"; }
public void displayRecognitionError(String[] tokenNames,RecognitionException e) {
String header = getErrorHeader(e);
String message = getErrorMessage(e, tokenNames);
_errors.add(header + " " + message);
}
public List<String> getErrors() {
return _errors;
}
public WikiPageNode getWikiPageNode() {
if (_wikipage == null)
throw new IllegalStateException("No successful parsing process");
return _wikipage;
}
protected static final String GROUPING_SEPARATOR = "-";
protected BaseParentableNode buildAndComposeListNode(BaseParentableNode baseParentableNode, ItemNode itemNode, boolean ordered) {
BaseParentableNode listNode = null;
if (ordered) {
listNode = new OrderedListNode(baseParentableNode);
}
else {
listNode = new UnorderedListNode(baseParentableNode);
}
itemNode.setBaseParentableNode(listNode);
listNode.addChildASTNode(itemNode);
baseParentableNode.addChildASTNode(listNode);
return listNode;
}
private List<String> _errors = new ArrayList<String>();
private WikiPageNode _wikipage;
// $ANTLR start wikipage
// Creole10.g:168:1: wikipage : ( whitespaces )? p= paragraphs EOF ;
public final void wikipage() throws RecognitionException {
CollectionNode p = null;
try {
// Creole10.g:169:4: ( ( whitespaces )? p= paragraphs EOF )
// Creole10.g:169:4: ( whitespaces )? p= paragraphs EOF
{
// Creole10.g:169:4: ( whitespaces )?
int alt1=2;
int LA1_0 = input.LA(1);
if ( (LA1_0==NEWLINE||LA1_0==BLANKS) ) {
alt1=1;
}
switch (alt1) {
case 1 :
// Creole10.g:169:6: whitespaces
{
pushFollow(FOLLOW_whitespaces_in_wikipage111);
whitespaces();
_fsp--;
if (failed) return ;
}
break;
}
pushFollow(FOLLOW_paragraphs_in_wikipage119);
p=paragraphs();
_fsp--;
if (failed) return ;
if ( backtracking==0 ) {
_wikipage = new WikiPageNode(p);
}
match(input,EOF,FOLLOW_EOF_in_wikipage124); if (failed) return ;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return ;
}
// $ANTLR end wikipage
// $ANTLR start paragraphs
// Creole10.g:171:1: paragraphs returns [CollectionNode sections = new CollectionNode()] : (p= paragraph )* ;
public final CollectionNode paragraphs() throws RecognitionException {
CollectionNode sections = new CollectionNode();
ASTNode p = null;
try {
// Creole10.g:172:4: ( (p= paragraph )* )
// Creole10.g:172:4: (p= paragraph )*
{
// Creole10.g:172:4: (p= paragraph )*
loop2:
do {
int alt2=2;
int LA2_0 = input.LA(1);
if ( ((LA2_0>=FORCED_END_OF_LINE && LA2_0<=WIKI)||(LA2_0>=POUND && LA2_0<=80)) ) {
alt2=1;
}
switch (alt2) {
case 1 :
// Creole10.g:172:5: p= paragraph
{
pushFollow(FOLLOW_paragraph_in_paragraphs142);
p=paragraph();
_fsp--;
if (failed) return sections;
if ( backtracking==0 ) {
if (p != null){ // at this moment we ignore paragraps with blanks
sections.add(p);
}
}
}
break;
default :
break loop2;
}
} while (true);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return sections;
}
// $ANTLR end paragraphs
// $ANTLR start paragraph
// Creole10.g:178:1: paragraph returns [ASTNode node = null] : (n= nowiki_block | blanks paragraph_separator | ( blanks )? (tof= table_of_contents | h= heading | {...}?hn= horizontalrule | l= list | t= table | tp= text_paragraph ) ( paragraph_separator )? );
public final ASTNode paragraph() throws RecognitionException {
ASTNode node = null;
NoWikiSectionNode n = null;
TableOfContentsNode tof = null;
ASTNode h = null;
ASTNode hn = null;
ListNode l = null;
TableNode t = null;
ParagraphNode tp = null;
try {
// Creole10.g:179:4: (n= nowiki_block | blanks paragraph_separator | ( blanks )? (tof= table_of_contents | h= heading | {...}?hn= horizontalrule | l= list | t= table | tp= text_paragraph ) ( paragraph_separator )? )
int alt6=3;
switch ( input.LA(1) ) {
case NOWIKI_OPEN:
{
int LA6_1 = input.LA(2);
if ( (LA6_1==NEWLINE) ) {
alt6=1;
}
else if ( ((LA6_1>=FORCED_END_OF_LINE && LA6_1<=WIKI)||(LA6_1>=POUND && LA6_1<=80)) ) {
alt6=3;
}
else {
if (backtracking>0) {failed=true; return node;}
NoViableAltException nvae =
new NoViableAltException("178:1: paragraph returns [ASTNode node = null] : (n= nowiki_block | blanks paragraph_separator | ( blanks )? (tof= table_of_contents | h= heading | {...}?hn= horizontalrule | l= list | t= table | tp= text_paragraph ) ( paragraph_separator )? );", 6, 1, input);
throw nvae;
}
}
break;
case BLANKS:
{
switch ( input.LA(2) ) {
case NEWLINE:
{
alt6=2;
}
break;
case EOF:
{
alt6=2;
}
break;
case FORCED_END_OF_LINE:
case HEADING_SECTION:
case HORIZONTAL_SECTION:
case LIST_ITEM:
case LIST_ITEM_PART:
case NOWIKI_SECTION:
case SCAPE_NODE:
case TEXT_NODE:
case UNORDERED_LIST:
case UNFORMATTED_TEXT:
case WIKI:
case POUND:
case STAR:
case EQUAL:
case PIPE:
case ITAL:
case LINK_OPEN:
case IMAGE_OPEN:
case NOWIKI_OPEN:
case EXTENSION:
case FORCED_LINEBREAK:
case ESCAPE:
case NOWIKI_BLOCK_CLOSE:
case NOWIKI_CLOSE:
case LINK_CLOSE:
case IMAGE_CLOSE:
case BLANKS:
case DASH:
case CR:
case LF:
case SPACE:
case TABULATOR:
case BRACE_CLOSE:
case COLON_SLASH:
case SLASH:
case INSIGNIFICANT_CHAR:
case 41:
case 42:
case 43:
case 44:
case 45:
case 46:
case 47:
case 48:
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 56:
case 57:
case 58:
case 59:
case 60:
case 61:
case 62:
case 63:
case 64:
case 65:
case 66:
case 67:
case 68:
case 69:
case 70:
case 71:
case 72:
case 73:
case 74:
case 75:
case 76:
case 77:
case 78:
case 79:
case 80:
{
alt6=3;
}
break;
default:
if (backtracking>0) {failed=true; return node;}
NoViableAltException nvae =
new NoViableAltException("178:1: paragraph returns [ASTNode node = null] : (n= nowiki_block | blanks paragraph_separator | ( blanks )? (tof= table_of_contents | h= heading | {...}?hn= horizontalrule | l= list | t= table | tp= text_paragraph ) ( paragraph_separator )? );", 6, 2, input);
throw nvae;
}
}
break;
case FORCED_END_OF_LINE:
case HEADING_SECTION:
case HORIZONTAL_SECTION:
case LIST_ITEM:
case LIST_ITEM_PART:
case NOWIKI_SECTION:
case SCAPE_NODE:
case TEXT_NODE:
case UNORDERED_LIST:
case UNFORMATTED_TEXT:
case WIKI:
case POUND:
case STAR:
case EQUAL:
case PIPE:
case ITAL:
case LINK_OPEN:
case IMAGE_OPEN:
case EXTENSION:
case FORCED_LINEBREAK:
case ESCAPE:
case NOWIKI_BLOCK_CLOSE:
case NOWIKI_CLOSE:
case LINK_CLOSE:
case IMAGE_CLOSE:
case DASH:
case CR:
case LF:
case SPACE:
case TABULATOR:
case BRACE_CLOSE:
case COLON_SLASH:
case SLASH:
case INSIGNIFICANT_CHAR:
case 41:
case 42:
case 43:
case 44:
case 45:
case 46:
case 47:
case 48:
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 56:
case 57:
case 58:
case 59:
case 60:
case 61:
case 62:
case 63:
case 64:
case 65:
case 66:
case 67:
case 68:
case 69:
case 70:
case 71:
case 72:
case 73:
case 74:
case 75:
case 76:
case 77:
case 78:
case 79:
case 80:
{
alt6=3;
}
break;
default:
if (backtracking>0) {failed=true; return node;}
NoViableAltException nvae =
new NoViableAltException("178:1: paragraph returns [ASTNode node = null] : (n= nowiki_block | blanks paragraph_separator | ( blanks )? (tof= table_of_contents | h= heading | {...}?hn= horizontalrule | l= list | t= table | tp= text_paragraph ) ( paragraph_separator )? );", 6, 0, input);
throw nvae;
}
switch (alt6) {
case 1 :
// Creole10.g:179:4: n= nowiki_block
{
pushFollow(FOLLOW_nowiki_block_in_paragraph163);
n=nowiki_block();
_fsp--;
if (failed) return node;
if ( backtracking==0 ) {
node = n;
}
}
break;
case 2 :
// Creole10.g:180:4: blanks paragraph_separator
{
pushFollow(FOLLOW_blanks_in_paragraph170);
blanks();
_fsp--;
if (failed) return node;
pushFollow(FOLLOW_paragraph_separator_in_paragraph173);
paragraph_separator();
_fsp--;
if (failed) return node;
}
break;
case 3 :
// Creole10.g:181:4: ( blanks )? (tof= table_of_contents | h= heading | {...}?hn= horizontalrule | l= list | t= table | tp= text_paragraph ) ( paragraph_separator )?
{
// Creole10.g:181:4: ( blanks )?
int alt3=2;
int LA3_0 = input.LA(1);
if ( (LA3_0==BLANKS) ) {
alt3=1;
}
switch (alt3) {
case 1 :
// Creole10.g:181:6: blanks
{
pushFollow(FOLLOW_blanks_in_paragraph180);
blanks();
_fsp--;
if (failed) return node;
}
break;
}
// Creole10.g:182:4: (tof= table_of_contents | h= heading | {...}?hn= horizontalrule | l= list | t= table | tp= text_paragraph )
int alt4=6;
switch ( input.LA(1) ) {
case 77:
{
alt4=1;
}
break;
case 78:
{
alt4=1;
}
break;
case EQUAL:
{
alt4=2;
}
break;
case DASH:
{
int LA4_4 = input.LA(2);
if ( ( input.LA(1) == DASH && input.LA(2) == DASH &&
input.LA(3) == DASH && input.LA(4) == DASH ) ) {
alt4=3;
}
else if ( (true) ) {
alt4=6;
}
else {
if (backtracking>0) {failed=true; return node;}
NoViableAltException nvae =
new NoViableAltException("182:4: (tof= table_of_contents | h= heading | {...}?hn= horizontalrule | l= list | t= table | tp= text_paragraph )", 4, 4, input);
throw nvae;
}
}
break;
case POUND:
{
alt4=4;
}
break;
case STAR:
{
int LA4_6 = input.LA(2);
if ( (!( input.LA(1) != STAR || (input.LA(1) == STAR && input.LA(2) == STAR) )) ) {
alt4=4;
}
else if ( ( input.LA(1) != STAR || (input.LA(1) == STAR && input.LA(2) == STAR) ) ) {
alt4=6;
}
else {
if (backtracking>0) {failed=true; return node;}
NoViableAltException nvae =
new NoViableAltException("182:4: (tof= table_of_contents | h= heading | {...}?hn= horizontalrule | l= list | t= table | tp= text_paragraph )", 4, 6, input);
throw nvae;
}
}
break;
case PIPE:
{
alt4=5;
}
break;
case FORCED_END_OF_LINE:
case HEADING_SECTION:
case HORIZONTAL_SECTION:
case LIST_ITEM:
case LIST_ITEM_PART:
case NOWIKI_SECTION:
case SCAPE_NODE:
case TEXT_NODE:
case UNORDERED_LIST:
case UNFORMATTED_TEXT:
case WIKI:
case ITAL:
case LINK_OPEN:
case IMAGE_OPEN:
case NOWIKI_OPEN:
case EXTENSION:
case FORCED_LINEBREAK:
case ESCAPE:
case NOWIKI_BLOCK_CLOSE:
case NOWIKI_CLOSE:
case LINK_CLOSE:
case IMAGE_CLOSE:
case BLANKS:
case CR:
case LF:
case SPACE:
case TABULATOR:
case BRACE_CLOSE:
case COLON_SLASH:
case SLASH:
case INSIGNIFICANT_CHAR:
case 41:
case 42:
case 43:
case 44:
case 45:
case 46:
case 47:
case 48:
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 56:
case 57:
case 58:
case 59:
case 60:
case 61:
case 62:
case 63:
case 64:
case 65:
case 66:
case 67:
case 68:
case 69:
case 70:
case 71:
case 72:
case 73:
case 74:
case 75:
case 76:
case 79:
case 80:
{
alt4=6;
}
break;
default:
if (backtracking>0) {failed=true; return node;}
NoViableAltException nvae =
new NoViableAltException("182:4: (tof= table_of_contents | h= heading | {...}?hn= horizontalrule | l= list | t= table | tp= text_paragraph )", 4, 0, input);
throw nvae;
}
switch (alt4) {
case 1 :
// Creole10.g:182:6: tof= table_of_contents
{
pushFollow(FOLLOW_table_of_contents_in_paragraph194);
tof=table_of_contents();
_fsp--;
if (failed) return node;
if ( backtracking==0 ) {
node = tof;
}
}
break;
case 2 :
// Creole10.g:183:6: h= heading
{
pushFollow(FOLLOW_heading_in_paragraph208);
h=heading();
_fsp--;
if (failed) return node;
if ( backtracking==0 ) {
node = h;
}
}
break;
case 3 :
// Creole10.g:184:6: {...}?hn= horizontalrule
{
if ( !( input.LA(1) == DASH && input.LA(2) == DASH &&
input.LA(3) == DASH && input.LA(4) == DASH ) ) {
if (backtracking>0) {failed=true; return node;}
throw new FailedPredicateException(input, "paragraph", " input.LA(1) == DASH && input.LA(2) == DASH &&\r\n\t\t\t\tinput.LA(3) == DASH && input.LA(4) == DASH ");
}
pushFollow(FOLLOW_horizontalrule_in_paragraph227);
hn=horizontalrule();
_fsp--;
if (failed) return node;
if ( backtracking==0 ) {
node = hn;
}
}
break;
case 4 :
// Creole10.g:187:6: l= list
{
pushFollow(FOLLOW_list_in_paragraph240);
l=list();
_fsp--;
if (failed) return node;
if ( backtracking==0 ) {
node = l;
}
}
break;
case 5 :
// Creole10.g:188:6: t= table
{
pushFollow(FOLLOW_table_in_paragraph253);
t=table();
_fsp--;
if (failed) return node;
if ( backtracking==0 ) {
node = t;
}
}
break;
case 6 :
// Creole10.g:189:6: tp= text_paragraph
{
pushFollow(FOLLOW_text_paragraph_in_paragraph266);
tp=text_paragraph();
_fsp--;
if (failed) return node;
if ( backtracking==0 ) {
node = tp;
}
}
break;
}
// Creole10.g:190:7: ( paragraph_separator )?
int alt5=2;
int LA5_0 = input.LA(1);
if ( (LA5_0==NEWLINE) ) {
alt5=1;
}
else if ( (LA5_0==EOF) ) {
int LA5_2 = input.LA(2);
if ( (LA5_2==EOF) ) {
int LA5_4 = input.LA(3);
if ( (LA5_4==EOF) ) {
alt5=1;
}
}
else if ( ((LA5_2>=FORCED_END_OF_LINE && LA5_2<=WIKI)||(LA5_2>=POUND && LA5_2<=80)) ) {
alt5=1;
}
}
switch (alt5) {
case 1 :
// Creole10.g:190:9: paragraph_separator
{
pushFollow(FOLLOW_paragraph_separator_in_paragraph279);
paragraph_separator();
_fsp--;
if (failed) return node;
}
break;
}
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return node;
}
// $ANTLR end paragraph
// $ANTLR start text_paragraph
// Creole10.g:197:1: text_paragraph returns [ ParagraphNode paragraph = new ParagraphNode() ] : (tl= text_line | ( NOWIKI_OPEN ~ ( NEWLINE ) )=>nw= nowiki_inline (te= text_element )* text_lineseparator )+ ;
public final ParagraphNode text_paragraph() throws RecognitionException {
ParagraphNode paragraph = new ParagraphNode();
LineNode tl = null;
NoWikiInlineNode nw = null;
ASTNode te = null;
try {
// Creole10.g:198:4: ( (tl= text_line | ( NOWIKI_OPEN ~ ( NEWLINE ) )=>nw= nowiki_inline (te= text_element )* text_lineseparator )+ )
// Creole10.g:198:4: (tl= text_line | ( NOWIKI_OPEN ~ ( NEWLINE ) )=>nw= nowiki_inline (te= text_element )* text_lineseparator )+
{
// Creole10.g:198:4: (tl= text_line | ( NOWIKI_OPEN ~ ( NEWLINE ) )=>nw= nowiki_inline (te= text_element )* text_lineseparator )+
int cnt8=0;
loop8:
do {
int alt8=3;
switch ( input.LA(1) ) {
case NOWIKI_OPEN:
{
int LA8_2 = input.LA(2);
if ( (synpred1()) ) {
alt8=2;
}
}
break;
case BLANKS:
{
alt8=1;
}
break;
case 77:
{
alt8=1;
}
break;
case 78:
{
alt8=1;
}
break;
case DASH:
{
alt8=1;
}
break;
case STAR:
{
int LA8_7 = input.LA(2);
if ( ( input.LA(1) != STAR || (input.LA(1) == STAR && input.LA(2) == STAR) ) ) {
alt8=1;
}
}
break;
case ITAL:
{
int LA8_8 = input.LA(2);
if ( ( input.LA(1) != STAR || (input.LA(1) == STAR && input.LA(2) == STAR) ) ) {
alt8=1;
}
}
break;
case FORCED_END_OF_LINE:
case HEADING_SECTION:
case HORIZONTAL_SECTION:
case LIST_ITEM:
case LIST_ITEM_PART:
case NOWIKI_SECTION:
case SCAPE_NODE:
case TEXT_NODE:
case UNORDERED_LIST:
case UNFORMATTED_TEXT:
case WIKI:
case NOWIKI_BLOCK_CLOSE:
case NOWIKI_CLOSE:
case LINK_CLOSE:
case IMAGE_CLOSE:
case CR:
case LF:
case SPACE:
case TABULATOR:
case BRACE_CLOSE:
case COLON_SLASH:
case SLASH:
case INSIGNIFICANT_CHAR:
case 41:
case 42:
case 43:
case 44:
case 45:
case 46:
case 47:
case 48:
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 56:
case 57:
case 58:
case 59:
case 60:
case 61:
case 62:
case 63:
case 64:
case 65:
case 66:
case 67:
case 68:
case 69:
case 70:
case 71:
case 72:
case 73:
case 74:
case 75:
case 76:
case 79:
case 80:
{
alt8=1;
}
break;
case FORCED_LINEBREAK:
{
alt8=1;
}
break;
case ESCAPE:
{
alt8=1;
}
break;
case LINK_OPEN:
{
alt8=1;
}
break;
case IMAGE_OPEN:
{
alt8=1;
}
break;
case EXTENSION:
{
alt8=1;
}
break;
}
switch (alt8) {
case 1 :
// Creole10.g:198:6: tl= text_line
{
pushFollow(FOLLOW_text_line_in_text_paragraph307);
tl=text_line();
_fsp--;
if (failed) return paragraph;
if ( backtracking==0 ) {
paragraph.addChildASTNode(tl);
}
}
break;
case 2 :
// Creole10.g:199:5: ( NOWIKI_OPEN ~ ( NEWLINE ) )=>nw= nowiki_inline (te= text_element )* text_lineseparator
{
pushFollow(FOLLOW_nowiki_inline_in_text_paragraph339);
nw=nowiki_inline();
_fsp--;
if (failed) return paragraph;
if ( backtracking==0 ) {
paragraph.addChildASTNode(nw);
}
// Creole10.g:200:66: (te= text_element )*
loop7:
do {
int alt7=2;
int LA7_0 = input.LA(1);
if ( ((LA7_0>=FORCED_END_OF_LINE && LA7_0<=WIKI)||(LA7_0>=POUND && LA7_0<=80)) ) {
alt7=1;
}
switch (alt7) {
case 1 :
// Creole10.g:200:68: te= text_element
{
pushFollow(FOLLOW_text_element_in_text_paragraph350);
te=text_element();
_fsp--;
if (failed) return paragraph;
if ( backtracking==0 ) {
paragraph.addChildASTNode(te);
}
}
break;
default :
break loop7;
}
} while (true);
pushFollow(FOLLOW_text_lineseparator_in_text_paragraph359);
text_lineseparator();
_fsp--;
if (failed) return paragraph;
}
break;
default :
if ( cnt8 >= 1 ) break loop8;
if (backtracking>0) {failed=true; return paragraph;}
EarlyExitException eee =
new EarlyExitException(8, input);
throw eee;
}
cnt8++;
} while (true);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return paragraph;
}
// $ANTLR end text_paragraph
// $ANTLR start text_line
// Creole10.g:203:1: text_line returns [LineNode line = new LineNode()] : first= text_firstelement (element= text_element )* text_lineseparator ;
public final LineNode text_line() throws RecognitionException {
LineNode line = new LineNode();
ASTNode first = null;
ASTNode element = null;
try {
// Creole10.g:204:4: (first= text_firstelement (element= text_element )* text_lineseparator )
// Creole10.g:204:4: first= text_firstelement (element= text_element )* text_lineseparator
{
pushFollow(FOLLOW_text_firstelement_in_text_line382);
first=text_firstelement();
_fsp--;
if (failed) return line;
if ( backtracking==0 ) {
if (first != null) { // recovering from errors
line.addChildASTNode(first);
}
}
// Creole10.g:209:9: (element= text_element )*
loop9:
do {
int alt9=2;
int LA9_0 = input.LA(1);
if ( ((LA9_0>=FORCED_END_OF_LINE && LA9_0<=WIKI)||(LA9_0>=POUND && LA9_0<=80)) ) {
alt9=1;
}
switch (alt9) {
case 1 :
// Creole10.g:209:11: element= text_element
{
pushFollow(FOLLOW_text_element_in_text_line401);
element=text_element();
_fsp--;
if (failed) return line;
if ( backtracking==0 ) {
if (element != null) // recovering from errors
line.addChildASTNode(element);
}
}
break;
default :
break loop9;
}
} while (true);
pushFollow(FOLLOW_text_lineseparator_in_text_line415);
text_lineseparator();
_fsp--;
if (failed) return line;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return line;
}
// $ANTLR end text_line
// $ANTLR start text_firstelement
// Creole10.g:215:1: text_firstelement returns [ASTNode item = null] : ({...}?tf= text_formattedelement | tu= text_first_unformattedelement );
public final ASTNode text_firstelement() throws RecognitionException {
ASTNode item = null;
FormattedTextNode tf = null;
ASTNode tu = null;
try {
// Creole10.g:216:4: ({...}?tf= text_formattedelement | tu= text_first_unformattedelement )
int alt10=2;
int LA10_0 = input.LA(1);
if ( (LA10_0==STAR||LA10_0==ITAL) ) {
alt10=1;
}
else if ( ((LA10_0>=FORCED_END_OF_LINE && LA10_0<=WIKI)||(LA10_0>=LINK_OPEN && LA10_0<=IMAGE_OPEN)||(LA10_0>=EXTENSION && LA10_0<=80)) ) {
alt10=2;
}
else {
if (backtracking>0) {failed=true; return item;}
NoViableAltException nvae =
new NoViableAltException("215:1: text_firstelement returns [ASTNode item = null] : ({...}?tf= text_formattedelement | tu= text_first_unformattedelement );", 10, 0, input);
throw nvae;
}
switch (alt10) {
case 1 :
// Creole10.g:216:4: {...}?tf= text_formattedelement
{
if ( !( input.LA(1) != STAR || (input.LA(1) == STAR && input.LA(2) == STAR) ) ) {
if (backtracking>0) {failed=true; return item;}
throw new FailedPredicateException(input, "text_firstelement", " input.LA(1) != STAR || (input.LA(1) == STAR && input.LA(2) == STAR) ");
}
pushFollow(FOLLOW_text_formattedelement_in_text_firstelement437);
tf=text_formattedelement();
_fsp--;
if (failed) return item;
if ( backtracking==0 ) {
item = tf;
}
}
break;
case 2 :
// Creole10.g:218:4: tu= text_first_unformattedelement
{
pushFollow(FOLLOW_text_first_unformattedelement_in_text_firstelement448);
tu=text_first_unformattedelement();
_fsp--;
if (failed) return item;
if ( backtracking==0 ) {
item = tu;
}
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return item;
}
// $ANTLR end text_firstelement
// $ANTLR start text_formattedelement
// Creole10.g:220:1: text_formattedelement returns [FormattedTextNode item = null] : ( ital_markup ic= text_italcontent ( ( NEWLINE )? ital_markup )? | bold_markup bc= text_boldcontent ( ( NEWLINE )? bold_markup )? );
public final FormattedTextNode text_formattedelement() throws RecognitionException {
FormattedTextNode item = null;
CollectionNode ic = null;
CollectionNode bc = null;
try {
// Creole10.g:221:4: ( ital_markup ic= text_italcontent ( ( NEWLINE )? ital_markup )? | bold_markup bc= text_boldcontent ( ( NEWLINE )? bold_markup )? )
int alt15=2;
int LA15_0 = input.LA(1);
if ( (LA15_0==ITAL) ) {
alt15=1;
}
else if ( (LA15_0==STAR) ) {
alt15=2;
}
else {
if (backtracking>0) {failed=true; return item;}
NoViableAltException nvae =
new NoViableAltException("220:1: text_formattedelement returns [FormattedTextNode item = null] : ( ital_markup ic= text_italcontent ( ( NEWLINE )? ital_markup )? | bold_markup bc= text_boldcontent ( ( NEWLINE )? bold_markup )? );", 15, 0, input);
throw nvae;
}
switch (alt15) {
case 1 :
// Creole10.g:221:4: ital_markup ic= text_italcontent ( ( NEWLINE )? ital_markup )?
{
pushFollow(FOLLOW_ital_markup_in_text_formattedelement464);
ital_markup();
_fsp--;
if (failed) return item;
pushFollow(FOLLOW_text_italcontent_in_text_formattedelement470);
ic=text_italcontent();
_fsp--;
if (failed) return item;
if ( backtracking==0 ) {
item = new ItalicTextNode(ic);
}
// Creole10.g:221:81: ( ( NEWLINE )? ital_markup )?
int alt12=2;
int LA12_0 = input.LA(1);
if ( (LA12_0==NEWLINE) ) {
int LA12_1 = input.LA(2);
if ( (LA12_1==ITAL) ) {
alt12=1;
}
}
else if ( (LA12_0==ITAL) ) {
alt12=1;
}
switch (alt12) {
case 1 :
// Creole10.g:221:83: ( NEWLINE )? ital_markup
{
// Creole10.g:221:83: ( NEWLINE )?
int alt11=2;
int LA11_0 = input.LA(1);
if ( (LA11_0==NEWLINE) ) {
alt11=1;
}
switch (alt11) {
case 1 :
// Creole10.g:221:85: NEWLINE
{
match(input,NEWLINE,FOLLOW_NEWLINE_in_text_formattedelement479); if (failed) return item;
}
break;
}
pushFollow(FOLLOW_ital_markup_in_text_formattedelement485);
ital_markup();
_fsp--;
if (failed) return item;
}
break;
}
}
break;
case 2 :
// Creole10.g:222:4: bold_markup bc= text_boldcontent ( ( NEWLINE )? bold_markup )?
{
pushFollow(FOLLOW_bold_markup_in_text_formattedelement493);
bold_markup();
_fsp--;
if (failed) return item;
pushFollow(FOLLOW_text_boldcontent_in_text_formattedelement500);
bc=text_boldcontent();
_fsp--;
if (failed) return item;
if ( backtracking==0 ) {
item = new BoldTextNode(bc);
}
// Creole10.g:222:79: ( ( NEWLINE )? bold_markup )?
int alt14=2;
int LA14_0 = input.LA(1);
if ( (LA14_0==NEWLINE) ) {
int LA14_1 = input.LA(2);
if ( (LA14_1==STAR) ) {
int LA14_4 = input.LA(3);
if ( (LA14_4==STAR) ) {
alt14=1;
}
}
}
else if ( (LA14_0==STAR) ) {
int LA14_2 = input.LA(2);
if ( (LA14_2==STAR) ) {
alt14=1;
}
}
switch (alt14) {
case 1 :
// Creole10.g:222:81: ( NEWLINE )? bold_markup
{
// Creole10.g:222:81: ( NEWLINE )?
int alt13=2;
int LA13_0 = input.LA(1);
if ( (LA13_0==NEWLINE) ) {
alt13=1;
}
switch (alt13) {
case 1 :
// Creole10.g:222:83: NEWLINE
{
match(input,NEWLINE,FOLLOW_NEWLINE_in_text_formattedelement509); if (failed) return item;
}
break;
}
pushFollow(FOLLOW_bold_markup_in_text_formattedelement515);
bold_markup();
_fsp--;
if (failed) return item;
}
break;
}
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return item;
}
// $ANTLR end text_formattedelement
// $ANTLR start text_boldcontent
// Creole10.g:224:1: text_boldcontent returns [ CollectionNode text = new CollectionNode() ] : ( ( NEWLINE )? (p= text_boldcontentpart )* | EOF );
public final CollectionNode text_boldcontent() throws RecognitionException {
CollectionNode text = new CollectionNode();
FormattedTextNode p = null;
try {
// Creole10.g:225:4: ( ( NEWLINE )? (p= text_boldcontentpart )* | EOF )
int alt18=2;
int LA18_0 = input.LA(1);
if ( ((LA18_0>=FORCED_END_OF_LINE && LA18_0<=80)) ) {
alt18=1;
}
else if ( (LA18_0==EOF) ) {
alt18=1;
}
else {
if (backtracking>0) {failed=true; return text;}
NoViableAltException nvae =
new NoViableAltException("224:1: text_boldcontent returns [ CollectionNode text = new CollectionNode() ] : ( ( NEWLINE )? (p= text_boldcontentpart )* | EOF );", 18, 0, input);
throw nvae;
}
switch (alt18) {
case 1 :
// Creole10.g:225:4: ( NEWLINE )? (p= text_boldcontentpart )*
{
// Creole10.g:225:4: ( NEWLINE )?
int alt16=2;
int LA16_0 = input.LA(1);
if ( (LA16_0==NEWLINE) ) {
alt16=1;
}
switch (alt16) {
case 1 :
// Creole10.g:225:6: NEWLINE
{
match(input,NEWLINE,FOLLOW_NEWLINE_in_text_boldcontent534); if (failed) return text;
}
break;
}
// Creole10.g:225:18: (p= text_boldcontentpart )*
loop17:
do {
int alt17=2;
switch ( input.LA(1) ) {
case STAR:
{
int LA17_2 = input.LA(2);
if ( ( input.LA(2) != STAR ) ) {
alt17=1;
}
}
break;
case FORCED_END_OF_LINE:
case HEADING_SECTION:
case HORIZONTAL_SECTION:
case LIST_ITEM:
case LIST_ITEM_PART:
case NOWIKI_SECTION:
case SCAPE_NODE:
case TEXT_NODE:
case UNORDERED_LIST:
case UNFORMATTED_TEXT:
case WIKI:
case POUND:
case EQUAL:
case PIPE:
case NOWIKI_BLOCK_CLOSE:
case NOWIKI_CLOSE:
case LINK_CLOSE:
case IMAGE_CLOSE:
case BLANKS:
case DASH:
case CR:
case LF:
case SPACE:
case TABULATOR:
case BRACE_CLOSE:
case COLON_SLASH:
case SLASH:
case INSIGNIFICANT_CHAR:
case 41:
case 42:
case 43:
case 44:
case 45:
case 46:
case 47:
case 48:
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 56:
case 57:
case 58:
case 59:
case 60:
case 61:
case 62:
case 63:
case 64:
case 65:
case 66:
case 67:
case 68:
case 69:
case 70:
case 71:
case 72:
case 73:
case 74:
case 75:
case 76:
case 77:
case 78:
case 79:
case 80:
{
alt17=1;
}
break;
case FORCED_LINEBREAK:
{
alt17=1;
}
break;
case ESCAPE:
{
alt17=1;
}
break;
case LINK_OPEN:
{
alt17=1;
}
break;
case IMAGE_OPEN:
{
alt17=1;
}
break;
case EXTENSION:
{
alt17=1;
}
break;
case NOWIKI_OPEN:
{
alt17=1;
}
break;
case ITAL:
{
alt17=1;
}
break;
}
switch (alt17) {
case 1 :
// Creole10.g:225:20: p= text_boldcontentpart
{
pushFollow(FOLLOW_text_boldcontentpart_in_text_boldcontent546);
p=text_boldcontentpart();
_fsp--;
if (failed) return text;
if ( backtracking==0 ) {
text.add(p);
}
}
break;
default :
break loop17;
}
} while (true);
}
break;
case 2 :
// Creole10.g:226:4: EOF
{
match(input,EOF,FOLLOW_EOF_in_text_boldcontent557); if (failed) return text;
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return text;
}
// $ANTLR end text_boldcontent
// $ANTLR start text_italcontent
// Creole10.g:228:1: text_italcontent returns [ CollectionNode text = new CollectionNode() ] : ( ( NEWLINE )? (p= text_italcontentpart )* | EOF );
public final CollectionNode text_italcontent() throws RecognitionException {
CollectionNode text = new CollectionNode();
FormattedTextNode p = null;
try {
// Creole10.g:229:4: ( ( NEWLINE )? (p= text_italcontentpart )* | EOF )
int alt21=2;
int LA21_0 = input.LA(1);
if ( ((LA21_0>=FORCED_END_OF_LINE && LA21_0<=80)) ) {
alt21=1;
}
else if ( (LA21_0==EOF) ) {
alt21=1;
}
else {
if (backtracking>0) {failed=true; return text;}
NoViableAltException nvae =
new NoViableAltException("228:1: text_italcontent returns [ CollectionNode text = new CollectionNode() ] : ( ( NEWLINE )? (p= text_italcontentpart )* | EOF );", 21, 0, input);
throw nvae;
}
switch (alt21) {
case 1 :
// Creole10.g:229:4: ( NEWLINE )? (p= text_italcontentpart )*
{
// Creole10.g:229:4: ( NEWLINE )?
int alt19=2;
int LA19_0 = input.LA(1);
if ( (LA19_0==NEWLINE) ) {
alt19=1;
}
switch (alt19) {
case 1 :
// Creole10.g:229:6: NEWLINE
{
match(input,NEWLINE,FOLLOW_NEWLINE_in_text_italcontent573); if (failed) return text;
}
break;
}
// Creole10.g:229:18: (p= text_italcontentpart )*
loop20:
do {
int alt20=2;
switch ( input.LA(1) ) {
case STAR:
{
alt20=1;
}
break;
case FORCED_END_OF_LINE:
case HEADING_SECTION:
case HORIZONTAL_SECTION:
case LIST_ITEM:
case LIST_ITEM_PART:
case NOWIKI_SECTION:
case SCAPE_NODE:
case TEXT_NODE:
case UNORDERED_LIST:
case UNFORMATTED_TEXT:
case WIKI:
case POUND:
case EQUAL:
case PIPE:
case NOWIKI_BLOCK_CLOSE:
case NOWIKI_CLOSE:
case LINK_CLOSE:
case IMAGE_CLOSE:
case BLANKS:
case DASH:
case CR:
case LF:
case SPACE:
case TABULATOR:
case BRACE_CLOSE:
case COLON_SLASH:
case SLASH:
case INSIGNIFICANT_CHAR:
case 41:
case 42:
case 43:
case 44:
case 45:
case 46:
case 47:
case 48:
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 56:
case 57:
case 58:
case 59:
case 60:
case 61:
case 62:
case 63:
case 64:
case 65:
case 66:
case 67:
case 68:
case 69:
case 70:
case 71:
case 72:
case 73:
case 74:
case 75:
case 76:
case 77:
case 78:
case 79:
case 80:
{
alt20=1;
}
break;
case FORCED_LINEBREAK:
{
alt20=1;
}
break;
case ESCAPE:
{
alt20=1;
}
break;
case LINK_OPEN:
{
alt20=1;
}
break;
case IMAGE_OPEN:
{
alt20=1;
}
break;
case EXTENSION:
{
alt20=1;
}
break;
case NOWIKI_OPEN:
{
alt20=1;
}
break;
}
switch (alt20) {
case 1 :
// Creole10.g:229:20: p= text_italcontentpart
{
pushFollow(FOLLOW_text_italcontentpart_in_text_italcontent585);
p=text_italcontentpart();
_fsp--;
if (failed) return text;
if ( backtracking==0 ) {
text.add(p);
}
}
break;
default :
break loop20;
}
} while (true);
}
break;
case 2 :
// Creole10.g:230:4: EOF
{
match(input,EOF,FOLLOW_EOF_in_text_italcontent596); if (failed) return text;
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return text;
}
// $ANTLR end text_italcontent
// $ANTLR start text_element
// Creole10.g:232:1: text_element returns [ASTNode item = null] : ( onestar tu1= text_unformattedelement | tu2= text_unformattedelement onestar | tf= text_formattedelement );
public final ASTNode text_element() throws RecognitionException {
ASTNode item = null;
ASTNode tu1 = null;
ASTNode tu2 = null;
FormattedTextNode tf = null;
try {
// Creole10.g:233:4: ( onestar tu1= text_unformattedelement | tu2= text_unformattedelement onestar | tf= text_formattedelement )
int alt22=3;
switch ( input.LA(1) ) {
case STAR:
{
int LA22_1 = input.LA(2);
if ( ( input.LA(2) != STAR ) ) {
alt22=1;
}
else if ( (true) ) {
alt22=3;
}
else {
if (backtracking>0) {failed=true; return item;}
NoViableAltException nvae =
new NoViableAltException("232:1: text_element returns [ASTNode item = null] : ( onestar tu1= text_unformattedelement | tu2= text_unformattedelement onestar | tf= text_formattedelement );", 22, 1, input);
throw nvae;
}
}
break;
case FORCED_END_OF_LINE:
case HEADING_SECTION:
case HORIZONTAL_SECTION:
case LIST_ITEM:
case LIST_ITEM_PART:
case NOWIKI_SECTION:
case SCAPE_NODE:
case TEXT_NODE:
case UNORDERED_LIST:
case UNFORMATTED_TEXT:
case WIKI:
case POUND:
case EQUAL:
case PIPE:
case NOWIKI_BLOCK_CLOSE:
case NOWIKI_CLOSE:
case LINK_CLOSE:
case IMAGE_CLOSE:
case BLANKS:
case DASH:
case CR:
case LF:
case SPACE:
case TABULATOR:
case BRACE_CLOSE:
case COLON_SLASH:
case SLASH:
case INSIGNIFICANT_CHAR:
case 41:
case 42:
case 43:
case 44:
case 45:
case 46:
case 47:
case 48:
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 56:
case 57:
case 58:
case 59:
case 60:
case 61:
case 62:
case 63:
case 64:
case 65:
case 66:
case 67:
case 68:
case 69:
case 70:
case 71:
case 72:
case 73:
case 74:
case 75:
case 76:
case 77:
case 78:
case 79:
case 80:
{
alt22=1;
}
break;
case FORCED_LINEBREAK:
{
alt22=1;
}
break;
case ESCAPE:
{
alt22=1;
}
break;
case LINK_OPEN:
{
alt22=1;
}
break;
case IMAGE_OPEN:
{
alt22=1;
}
break;
case EXTENSION:
{
alt22=1;
}
break;
case NOWIKI_OPEN:
{
alt22=1;
}
break;
case ITAL:
{
alt22=3;
}
break;
default:
if (backtracking>0) {failed=true; return item;}
NoViableAltException nvae =
new NoViableAltException("232:1: text_element returns [ASTNode item = null] : ( onestar tu1= text_unformattedelement | tu2= text_unformattedelement onestar | tf= text_formattedelement );", 22, 0, input);
throw nvae;
}
switch (alt22) {
case 1 :
// Creole10.g:233:4: onestar tu1= text_unformattedelement
{
pushFollow(FOLLOW_onestar_in_text_element610);
onestar();
_fsp--;
if (failed) return item;
pushFollow(FOLLOW_text_unformattedelement_in_text_element617);
tu1=text_unformattedelement();
_fsp--;
if (failed) return item;
if ( backtracking==0 ) {
item = tu1;
}
}
break;
case 2 :
// Creole10.g:234:4: tu2= text_unformattedelement onestar
{
pushFollow(FOLLOW_text_unformattedelement_in_text_element628);
tu2=text_unformattedelement();
_fsp--;
if (failed) return item;
pushFollow(FOLLOW_onestar_in_text_element631);
onestar();
_fsp--;
if (failed) return item;
if ( backtracking==0 ) {
item = tu2;
}
}
break;
case 3 :
// Creole10.g:235:4: tf= text_formattedelement
{
pushFollow(FOLLOW_text_formattedelement_in_text_element642);
tf=text_formattedelement();
_fsp--;
if (failed) return item;
if ( backtracking==0 ) {
item = tf;
}
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return item;
}
// $ANTLR end text_element
// $ANTLR start text_boldcontentpart
// Creole10.g:238:1: text_boldcontentpart returns [FormattedTextNode node = null] : ( ital_markup t= text_bolditalcontent ( ital_markup )? | tf= text_formattedcontent );
public final FormattedTextNode text_boldcontentpart() throws RecognitionException {
FormattedTextNode node = null;
ASTNode t = null;
CollectionNode tf = null;
try {
// Creole10.g:239:4: ( ital_markup t= text_bolditalcontent ( ital_markup )? | tf= text_formattedcontent )
int alt24=2;
int LA24_0 = input.LA(1);
if ( (LA24_0==ITAL) ) {
alt24=1;
}
else if ( ((LA24_0>=FORCED_END_OF_LINE && LA24_0<=WIKI)||(LA24_0>=POUND && LA24_0<=PIPE)||(LA24_0>=LINK_OPEN && LA24_0<=80)) ) {
alt24=2;
}
else {
if (backtracking>0) {failed=true; return node;}
NoViableAltException nvae =
new NoViableAltException("238:1: text_boldcontentpart returns [FormattedTextNode node = null] : ( ital_markup t= text_bolditalcontent ( ital_markup )? | tf= text_formattedcontent );", 24, 0, input);
throw nvae;
}
switch (alt24) {
case 1 :
// Creole10.g:239:4: ital_markup t= text_bolditalcontent ( ital_markup )?
{
pushFollow(FOLLOW_ital_markup_in_text_boldcontentpart659);
ital_markup();
_fsp--;
if (failed) return node;
pushFollow(FOLLOW_text_bolditalcontent_in_text_boldcontentpart666);
t=text_bolditalcontent();
_fsp--;
if (failed) return node;
if ( backtracking==0 ) {
node = new ItalicTextNode(t);
}
// Creole10.g:239:84: ( ital_markup )?
int alt23=2;
int LA23_0 = input.LA(1);
if ( (LA23_0==ITAL) ) {
alt23=1;
}
switch (alt23) {
case 1 :
// Creole10.g:239:86: ital_markup
{
pushFollow(FOLLOW_ital_markup_in_text_boldcontentpart673);
ital_markup();
_fsp--;
if (failed) return node;
}
break;
}
}
break;
case 2 :
// Creole10.g:240:4: tf= text_formattedcontent
{
pushFollow(FOLLOW_text_formattedcontent_in_text_boldcontentpart685);
tf=text_formattedcontent();
_fsp--;
if (failed) return node;
if ( backtracking==0 ) {
node = new FormattedTextNode(tf);
}
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return node;
}
// $ANTLR end text_boldcontentpart
// $ANTLR start text_italcontentpart
// Creole10.g:242:1: text_italcontentpart returns [FormattedTextNode node = null] : ( bold_markup t= text_bolditalcontent ( bold_markup )? | tf= text_formattedcontent );
public final FormattedTextNode text_italcontentpart() throws RecognitionException {
FormattedTextNode node = null;
ASTNode t = null;
CollectionNode tf = null;
try {
// Creole10.g:243:4: ( bold_markup t= text_bolditalcontent ( bold_markup )? | tf= text_formattedcontent )
int alt26=2;
int LA26_0 = input.LA(1);
if ( (LA26_0==STAR) ) {
int LA26_1 = input.LA(2);
if ( (LA26_1==STAR) ) {
alt26=1;
}
else if ( ((LA26_1>=FORCED_END_OF_LINE && LA26_1<=WIKI)||LA26_1==POUND||(LA26_1>=EQUAL && LA26_1<=PIPE)||(LA26_1>=LINK_OPEN && LA26_1<=80)) ) {
alt26=2;
}
else {
if (backtracking>0) {failed=true; return node;}
NoViableAltException nvae =
new NoViableAltException("242:1: text_italcontentpart returns [FormattedTextNode node = null] : ( bold_markup t= text_bolditalcontent ( bold_markup )? | tf= text_formattedcontent );", 26, 1, input);
throw nvae;
}
}
else if ( ((LA26_0>=FORCED_END_OF_LINE && LA26_0<=WIKI)||LA26_0==POUND||(LA26_0>=EQUAL && LA26_0<=PIPE)||(LA26_0>=LINK_OPEN && LA26_0<=80)) ) {
alt26=2;
}
else {
if (backtracking>0) {failed=true; return node;}
NoViableAltException nvae =
new NoViableAltException("242:1: text_italcontentpart returns [FormattedTextNode node = null] : ( bold_markup t= text_bolditalcontent ( bold_markup )? | tf= text_formattedcontent );", 26, 0, input);
throw nvae;
}
switch (alt26) {
case 1 :
// Creole10.g:243:4: bold_markup t= text_bolditalcontent ( bold_markup )?
{
pushFollow(FOLLOW_bold_markup_in_text_italcontentpart701);
bold_markup();
_fsp--;
if (failed) return node;
pushFollow(FOLLOW_text_bolditalcontent_in_text_italcontentpart708);
t=text_bolditalcontent();
_fsp--;
if (failed) return node;
if ( backtracking==0 ) {
node = new BoldTextNode(t);
}
// Creole10.g:243:82: ( bold_markup )?
int alt25=2;
int LA25_0 = input.LA(1);
if ( (LA25_0==STAR) ) {
int LA25_1 = input.LA(2);
if ( (LA25_1==STAR) ) {
alt25=1;
}
}
switch (alt25) {
case 1 :
// Creole10.g:243:84: bold_markup
{
pushFollow(FOLLOW_bold_markup_in_text_italcontentpart714);
bold_markup();
_fsp--;
if (failed) return node;
}
break;
}
}
break;
case 2 :
// Creole10.g:244:4: tf= text_formattedcontent
{
pushFollow(FOLLOW_text_formattedcontent_in_text_italcontentpart725);
tf=text_formattedcontent();
_fsp--;
if (failed) return node;
if ( backtracking==0 ) {
node = new FormattedTextNode(tf);
}
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return node;
}
// $ANTLR end text_italcontentpart
// $ANTLR start text_bolditalcontent
// Creole10.g:246:1: text_bolditalcontent returns [ASTNode items = null] : ( ( NEWLINE )? (tf= text_formattedcontent )? | EOF );
public final ASTNode text_bolditalcontent() throws RecognitionException {
ASTNode items = null;
CollectionNode tf = null;
try {
// Creole10.g:247:4: ( ( NEWLINE )? (tf= text_formattedcontent )? | EOF )
int alt29=2;
int LA29_0 = input.LA(1);
if ( ((LA29_0>=FORCED_END_OF_LINE && LA29_0<=80)) ) {
alt29=1;
}
else if ( (LA29_0==EOF) ) {
alt29=1;
}
else {
if (backtracking>0) {failed=true; return items;}
NoViableAltException nvae =
new NoViableAltException("246:1: text_bolditalcontent returns [ASTNode items = null] : ( ( NEWLINE )? (tf= text_formattedcontent )? | EOF );", 29, 0, input);
throw nvae;
}
switch (alt29) {
case 1 :
// Creole10.g:247:4: ( NEWLINE )? (tf= text_formattedcontent )?
{
// Creole10.g:247:4: ( NEWLINE )?
int alt27=2;
int LA27_0 = input.LA(1);
if ( (LA27_0==NEWLINE) ) {
alt27=1;
}
switch (alt27) {
case 1 :
// Creole10.g:247:6: NEWLINE
{
match(input,NEWLINE,FOLLOW_NEWLINE_in_text_bolditalcontent743); if (failed) return items;
}
break;
}
// Creole10.g:247:18: (tf= text_formattedcontent )?
int alt28=2;
switch ( input.LA(1) ) {
case STAR:
{
int LA28_1 = input.LA(2);
if ( ( input.LA(2) != STAR ) ) {
alt28=1;
}
}
break;
case FORCED_END_OF_LINE:
case HEADING_SECTION:
case HORIZONTAL_SECTION:
case LIST_ITEM:
case LIST_ITEM_PART:
case NOWIKI_SECTION:
case SCAPE_NODE:
case TEXT_NODE:
case UNORDERED_LIST:
case UNFORMATTED_TEXT:
case WIKI:
case POUND:
case EQUAL:
case PIPE:
case NOWIKI_BLOCK_CLOSE:
case NOWIKI_CLOSE:
case LINK_CLOSE:
case IMAGE_CLOSE:
case BLANKS:
case DASH:
case CR:
case LF:
case SPACE:
case TABULATOR:
case BRACE_CLOSE:
case COLON_SLASH:
case SLASH:
case INSIGNIFICANT_CHAR:
case 41:
case 42:
case 43:
case 44:
case 45:
case 46:
case 47:
case 48:
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 56:
case 57:
case 58:
case 59:
case 60:
case 61:
case 62:
case 63:
case 64:
case 65:
case 66:
case 67:
case 68:
case 69:
case 70:
case 71:
case 72:
case 73:
case 74:
case 75:
case 76:
case 77:
case 78:
case 79:
case 80:
{
alt28=1;
}
break;
case FORCED_LINEBREAK:
{
alt28=1;
}
break;
case ESCAPE:
{
alt28=1;
}
break;
case LINK_OPEN:
{
alt28=1;
}
break;
case IMAGE_OPEN:
{
alt28=1;
}
break;
case EXTENSION:
{
alt28=1;
}
break;
case NOWIKI_OPEN:
{
alt28=1;
}
break;
}
switch (alt28) {
case 1 :
// Creole10.g:247:20: tf= text_formattedcontent
{
pushFollow(FOLLOW_text_formattedcontent_in_text_bolditalcontent754);
tf=text_formattedcontent();
_fsp--;
if (failed) return items;
if ( backtracking==0 ) {
items = tf;
}
}
break;
}
}
break;
case 2 :
// Creole10.g:248:4: EOF
{
match(input,EOF,FOLLOW_EOF_in_text_bolditalcontent764); if (failed) return items;
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return items;
}
// $ANTLR end text_bolditalcontent
// $ANTLR start text_formattedcontent
// Creole10.g:250:1: text_formattedcontent returns [CollectionNode items = new CollectionNode ()] : onestar (t= text_unformattedelement onestar ( text_linebreak )? )+ ;
public final CollectionNode text_formattedcontent() throws RecognitionException {
CollectionNode items = new CollectionNode ();
ASTNode t = null;
try {
// Creole10.g:251:4: ( onestar (t= text_unformattedelement onestar ( text_linebreak )? )+ )
// Creole10.g:251:4: onestar (t= text_unformattedelement onestar ( text_linebreak )? )+
{
pushFollow(FOLLOW_onestar_in_text_formattedcontent778);
onestar();
_fsp--;
if (failed) return items;
// Creole10.g:251:13: (t= text_unformattedelement onestar ( text_linebreak )? )+
int cnt31=0;
loop31:
do {
int alt31=2;
switch ( input.LA(1) ) {
case FORCED_END_OF_LINE:
case HEADING_SECTION:
case HORIZONTAL_SECTION:
case LIST_ITEM:
case LIST_ITEM_PART:
case NOWIKI_SECTION:
case SCAPE_NODE:
case TEXT_NODE:
case UNORDERED_LIST:
case UNFORMATTED_TEXT:
case WIKI:
case POUND:
case EQUAL:
case PIPE:
case NOWIKI_BLOCK_CLOSE:
case NOWIKI_CLOSE:
case LINK_CLOSE:
case IMAGE_CLOSE:
case BLANKS:
case DASH:
case CR:
case LF:
case SPACE:
case TABULATOR:
case BRACE_CLOSE:
case COLON_SLASH:
case SLASH:
case INSIGNIFICANT_CHAR:
case 41:
case 42:
case 43:
case 44:
case 45:
case 46:
case 47:
case 48:
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 56:
case 57:
case 58:
case 59:
case 60:
case 61:
case 62:
case 63:
case 64:
case 65:
case 66:
case 67:
case 68:
case 69:
case 70:
case 71:
case 72:
case 73:
case 74:
case 75:
case 76:
case 77:
case 78:
case 79:
case 80:
{
alt31=1;
}
break;
case FORCED_LINEBREAK:
{
alt31=1;
}
break;
case ESCAPE:
{
alt31=1;
}
break;
case LINK_OPEN:
{
alt31=1;
}
break;
case IMAGE_OPEN:
{
alt31=1;
}
break;
case EXTENSION:
{
alt31=1;
}
break;
case NOWIKI_OPEN:
{
alt31=1;
}
break;
}
switch (alt31) {
case 1 :
// Creole10.g:251:15: t= text_unformattedelement onestar ( text_linebreak )?
{
pushFollow(FOLLOW_text_unformattedelement_in_text_formattedcontent787);
t=text_unformattedelement();
_fsp--;
if (failed) return items;
if ( backtracking==0 ) {
items.add(t);
}
pushFollow(FOLLOW_onestar_in_text_formattedcontent792);
onestar();
_fsp--;
if (failed) return items;
// Creole10.g:251:81: ( text_linebreak )?
int alt30=2;
int LA30_0 = input.LA(1);
if ( (LA30_0==NEWLINE) ) {
int LA30_1 = input.LA(2);
if ( ( input.LA(2) != DASH && input.LA(2) != POUND &&
input.LA(2) != EQUAL && input.LA(2) != NEWLINE ) ) {
alt30=1;
}
}
else if ( (LA30_0==EOF) ) {
int LA30_2 = input.LA(2);
if ( ( input.LA(2) != DASH && input.LA(2) != POUND &&
input.LA(2) != EQUAL && input.LA(2) != NEWLINE ) ) {
alt30=1;
}
}
switch (alt30) {
case 1 :
// Creole10.g:251:83: text_linebreak
{
pushFollow(FOLLOW_text_linebreak_in_text_formattedcontent797);
text_linebreak();
_fsp--;
if (failed) return items;
}
break;
}
}
break;
default :
if ( cnt31 >= 1 ) break loop31;
if (backtracking>0) {failed=true; return items;}
EarlyExitException eee =
new EarlyExitException(31, input);
throw eee;
}
cnt31++;
} while (true);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return items;
}
// $ANTLR end text_formattedcontent
// $ANTLR start text_linebreak
// Creole10.g:253:1: text_linebreak : {...}? text_lineseparator ;
public final void text_linebreak() throws RecognitionException {
try {
// Creole10.g:254:4: ({...}? text_lineseparator )
// Creole10.g:254:4: {...}? text_lineseparator
{
if ( !( input.LA(2) != DASH && input.LA(2) != POUND &&
input.LA(2) != EQUAL && input.LA(2) != NEWLINE ) ) {
if (backtracking>0) {failed=true; return ;}
throw new FailedPredicateException(input, "text_linebreak", " input.LA(2) != DASH && input.LA(2) != POUND &&\r\n\t\tinput.LA(2) != EQUAL && input.LA(2) != NEWLINE ");
}
pushFollow(FOLLOW_text_lineseparator_in_text_linebreak817);
text_lineseparator();
_fsp--;
if (failed) return ;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return ;
}
// $ANTLR end text_linebreak
// $ANTLR start text_inlineelement
// Creole10.g:258:1: text_inlineelement returns [ASTNode element = null ] : (tf= text_first_inlineelement | nwi= nowiki_inline );
public final ASTNode text_inlineelement() throws RecognitionException {
ASTNode element = null;
ASTNode tf = null;
NoWikiInlineNode nwi = null;
try {
// Creole10.g:259:4: (tf= text_first_inlineelement | nwi= nowiki_inline )
int alt32=2;
int LA32_0 = input.LA(1);
if ( ((LA32_0>=LINK_OPEN && LA32_0<=IMAGE_OPEN)||LA32_0==EXTENSION) ) {
alt32=1;
}
else if ( (LA32_0==NOWIKI_OPEN) ) {
alt32=2;
}
else {
if (backtracking>0) {failed=true; return element;}
NoViableAltException nvae =
new NoViableAltException("258:1: text_inlineelement returns [ASTNode element = null ] : (tf= text_first_inlineelement | nwi= nowiki_inline );", 32, 0, input);
throw nvae;
}
switch (alt32) {
case 1 :
// Creole10.g:259:4: tf= text_first_inlineelement
{
pushFollow(FOLLOW_text_first_inlineelement_in_text_inlineelement835);
tf=text_first_inlineelement();
_fsp--;
if (failed) return element;
if ( backtracking==0 ) {
element = tf;
}
}
break;
case 2 :
// Creole10.g:260:4: nwi= nowiki_inline
{
pushFollow(FOLLOW_nowiki_inline_in_text_inlineelement846);
nwi=nowiki_inline();
_fsp--;
if (failed) return element;
if ( backtracking==0 ) {
element = nwi;
}
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return element;
}
// $ANTLR end text_inlineelement
// $ANTLR start text_first_inlineelement
// Creole10.g:262:1: text_first_inlineelement returns [ASTNode element = null] : (l= link | i= image | e= extension );
public final ASTNode text_first_inlineelement() throws RecognitionException {
ASTNode element = null;
LinkNode l = null;
ImageNode i = null;
ASTNode e = null;
try {
// Creole10.g:264:3: (l= link | i= image | e= extension )
int alt33=3;
switch ( input.LA(1) ) {
case LINK_OPEN:
{
alt33=1;
}
break;
case IMAGE_OPEN:
{
alt33=2;
}
break;
case EXTENSION:
{
alt33=3;
}
break;
default:
if (backtracking>0) {failed=true; return element;}
NoViableAltException nvae =
new NoViableAltException("262:1: text_first_inlineelement returns [ASTNode element = null] : (l= link | i= image | e= extension );", 33, 0, input);
throw nvae;
}
switch (alt33) {
case 1 :
// Creole10.g:264:3: l= link
{
pushFollow(FOLLOW_link_in_text_first_inlineelement867);
l=link();
_fsp--;
if (failed) return element;
if ( backtracking==0 ) {
element = l;
}
}
break;
case 2 :
// Creole10.g:265:4: i= image
{
pushFollow(FOLLOW_image_in_text_first_inlineelement878);
i=image();
_fsp--;
if (failed) return element;
if ( backtracking==0 ) {
element = i;
}
}
break;
case 3 :
// Creole10.g:266:4: e= extension
{
pushFollow(FOLLOW_extension_in_text_first_inlineelement888);
e=extension();
_fsp--;
if (failed) return element;
if ( backtracking==0 ) {
element = e;
}
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return element;
}
// $ANTLR end text_first_inlineelement
// $ANTLR start text_first_unformattedelement
// Creole10.g:268:1: text_first_unformattedelement returns [ASTNode item = null] : (tfu= text_first_unformatted | tfi= text_first_inlineelement );
public final ASTNode text_first_unformattedelement() throws RecognitionException {
ASTNode item = null;
CollectionNode tfu = null;
ASTNode tfi = null;
try {
// Creole10.g:269:4: (tfu= text_first_unformatted | tfi= text_first_inlineelement )
int alt34=2;
int LA34_0 = input.LA(1);
if ( ((LA34_0>=FORCED_END_OF_LINE && LA34_0<=WIKI)||(LA34_0>=FORCED_LINEBREAK && LA34_0<=80)) ) {
alt34=1;
}
else if ( ((LA34_0>=LINK_OPEN && LA34_0<=IMAGE_OPEN)||LA34_0==EXTENSION) ) {
alt34=2;
}
else {
if (backtracking>0) {failed=true; return item;}
NoViableAltException nvae =
new NoViableAltException("268:1: text_first_unformattedelement returns [ASTNode item = null] : (tfu= text_first_unformatted | tfi= text_first_inlineelement );", 34, 0, input);
throw nvae;
}
switch (alt34) {
case 1 :
// Creole10.g:269:4: tfu= text_first_unformatted
{
pushFollow(FOLLOW_text_first_unformatted_in_text_first_unformattedelement908);
tfu=text_first_unformatted();
_fsp--;
if (failed) return item;
if ( backtracking==0 ) {
item = new UnformattedTextNode(tfu);
}
}
break;
case 2 :
// Creole10.g:270:4: tfi= text_first_inlineelement
{
pushFollow(FOLLOW_text_first_inlineelement_in_text_first_unformattedelement919);
tfi=text_first_inlineelement();
_fsp--;
if (failed) return item;
if ( backtracking==0 ) {
item = tfi;
}
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return item;
}
// $ANTLR end text_first_unformattedelement
// $ANTLR start text_first_unformatted
// Creole10.g:272:1: text_first_unformatted returns [CollectionNode items = new CollectionNode()] : (t= text_first_unformmatted_text | ( forced_linebreak | e= escaped )+ );
public final CollectionNode text_first_unformatted() throws RecognitionException {
CollectionNode items = new CollectionNode();
StringBundler t = null;
ScapedNode e = null;
try {
// Creole10.g:273:6: (t= text_first_unformmatted_text | ( forced_linebreak | e= escaped )+ )
int alt36=2;
int LA36_0 = input.LA(1);
if ( ((LA36_0>=FORCED_END_OF_LINE && LA36_0<=WIKI)||(LA36_0>=NOWIKI_BLOCK_CLOSE && LA36_0<=80)) ) {
alt36=1;
}
else if ( ((LA36_0>=FORCED_LINEBREAK && LA36_0<=ESCAPE)) ) {
alt36=2;
}
else {
if (backtracking>0) {failed=true; return items;}
NoViableAltException nvae =
new NoViableAltException("272:1: text_first_unformatted returns [CollectionNode items = new CollectionNode()] : (t= text_first_unformmatted_text | ( forced_linebreak | e= escaped )+ );", 36, 0, input);
throw nvae;
}
switch (alt36) {
case 1 :
// Creole10.g:273:6: t= text_first_unformmatted_text
{
pushFollow(FOLLOW_text_first_unformmatted_text_in_text_first_unformatted941);
t=text_first_unformmatted_text();
_fsp--;
if (failed) return items;
if ( backtracking==0 ) {
items.add(new UnformattedTextNode(t.toString()));
}
}
break;
case 2 :
// Creole10.g:274:5: ( forced_linebreak | e= escaped )+
{
// Creole10.g:274:5: ( forced_linebreak | e= escaped )+
int cnt35=0;
loop35:
do {
int alt35=3;
int LA35_0 = input.LA(1);
if ( (LA35_0==FORCED_LINEBREAK) ) {
alt35=1;
}
else if ( (LA35_0==ESCAPE) ) {
int LA35_3 = input.LA(2);
if ( ((LA35_3>=FORCED_END_OF_LINE && LA35_3<=80)) ) {
alt35=2;
}
}
switch (alt35) {
case 1 :
// Creole10.g:274:6: forced_linebreak
{
pushFollow(FOLLOW_forced_linebreak_in_text_first_unformatted950);
forced_linebreak();
_fsp--;
if (failed) return items;
if ( backtracking==0 ) {
items.add(new ForcedEndOfLineNode());
}
}
break;
case 2 :
// Creole10.g:275:5: e= escaped
{
pushFollow(FOLLOW_escaped_in_text_first_unformatted962);
e=escaped();
_fsp--;
if (failed) return items;
if ( backtracking==0 ) {
items.add(e);
}
}
break;
default :
if ( cnt35 >= 1 ) break loop35;
if (backtracking>0) {failed=true; return items;}
EarlyExitException eee =
new EarlyExitException(35, input);
throw eee;
}
cnt35++;
} while (true);
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return items;
}
// $ANTLR end text_first_unformatted
// $ANTLR start text_first_unformmatted_text
// Creole10.g:278:1: text_first_unformmatted_text returns [StringBundler text = new StringBundler()] : (c=~ ( POUND | STAR | EQUAL | PIPE | ITAL | LINK_OPEN | IMAGE_OPEN | NOWIKI_OPEN | EXTENSION | FORCED_LINEBREAK | ESCAPE | NEWLINE | EOF ) )+ ;
public final StringBundler text_first_unformmatted_text() throws RecognitionException {
StringBundler text = new StringBundler();
Token c=null;
try {
// Creole10.g:280:3: ( (c=~ ( POUND | STAR | EQUAL | PIPE | ITAL | LINK_OPEN | IMAGE_OPEN | NOWIKI_OPEN | EXTENSION | FORCED_LINEBREAK | ESCAPE | NEWLINE | EOF ) )+ )
// Creole10.g:280:3: (c=~ ( POUND | STAR | EQUAL | PIPE | ITAL | LINK_OPEN | IMAGE_OPEN | NOWIKI_OPEN | EXTENSION | FORCED_LINEBREAK | ESCAPE | NEWLINE | EOF ) )+
{
// Creole10.g:280:3: (c=~ ( POUND | STAR | EQUAL | PIPE | ITAL | LINK_OPEN | IMAGE_OPEN | NOWIKI_OPEN | EXTENSION | FORCED_LINEBREAK | ESCAPE | NEWLINE | EOF ) )+
int cnt37=0;
loop37:
do {
int alt37=2;
int LA37_0 = input.LA(1);
if ( ((LA37_0>=FORCED_END_OF_LINE && LA37_0<=WIKI)||(LA37_0>=NOWIKI_BLOCK_CLOSE && LA37_0<=80)) ) {
alt37=1;
}
switch (alt37) {
case 1 :
// Creole10.g:280:4: c=~ ( POUND | STAR | EQUAL | PIPE | ITAL | LINK_OPEN | IMAGE_OPEN | NOWIKI_OPEN | EXTENSION | FORCED_LINEBREAK | ESCAPE | NEWLINE | EOF )
{
c=(Token)input.LT(1);
if ( (input.LA(1)>=FORCED_END_OF_LINE && input.LA(1)<=WIKI)||(input.LA(1)>=NOWIKI_BLOCK_CLOSE && input.LA(1)<=80) ) {
input.consume();
errorRecovery=false;failed=false;
}
else {
if (backtracking>0) {failed=true; return text;}
MismatchedSetException mse =
new MismatchedSetException(null,input);
recoverFromMismatchedSet(input,mse,FOLLOW_set_in_text_first_unformmatted_text990); throw mse;
}
if ( backtracking==0 ) {
text.append(c.getText());
}
}
break;
default :
if ( cnt37 >= 1 ) break loop37;
if (backtracking>0) {failed=true; return text;}
EarlyExitException eee =
new EarlyExitException(37, input);
throw eee;
}
cnt37++;
} while (true);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return text;
}
// $ANTLR end text_first_unformmatted_text
// $ANTLR start text_unformattedelement
// Creole10.g:294:1: text_unformattedelement returns [ASTNode contents = null] : (text= text_unformatted | ti= text_inlineelement );
public final ASTNode text_unformattedelement() throws RecognitionException {
ASTNode contents = null;
CollectionNode text = null;
ASTNode ti = null;
try {
// Creole10.g:295:4: (text= text_unformatted | ti= text_inlineelement )
int alt38=2;
int LA38_0 = input.LA(1);
if ( ((LA38_0>=FORCED_END_OF_LINE && LA38_0<=WIKI)||LA38_0==POUND||(LA38_0>=EQUAL && LA38_0<=PIPE)||(LA38_0>=FORCED_LINEBREAK && LA38_0<=80)) ) {
alt38=1;
}
else if ( ((LA38_0>=LINK_OPEN && LA38_0<=EXTENSION)) ) {
alt38=2;
}
else {
if (backtracking>0) {failed=true; return contents;}
NoViableAltException nvae =
new NoViableAltException("294:1: text_unformattedelement returns [ASTNode contents = null] : (text= text_unformatted | ti= text_inlineelement );", 38, 0, input);
throw nvae;
}
switch (alt38) {
case 1 :
// Creole10.g:295:4: text= text_unformatted
{
pushFollow(FOLLOW_text_unformatted_in_text_unformattedelement1104);
text=text_unformatted();
_fsp--;
if (failed) return contents;
if ( backtracking==0 ) {
contents = text;
}
}
break;
case 2 :
// Creole10.g:296:4: ti= text_inlineelement
{
pushFollow(FOLLOW_text_inlineelement_in_text_unformattedelement1115);
ti=text_inlineelement();
_fsp--;
if (failed) return contents;
if ( backtracking==0 ) {
contents = ti;
}
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return contents;
}
// $ANTLR end text_unformattedelement
// $ANTLR start text_unformatted
// Creole10.g:299:1: text_unformatted returns [CollectionNode items = new CollectionNode()] : (contents= text_unformated_text | ( forced_linebreak | e= escaped )+ );
public final CollectionNode text_unformatted() throws RecognitionException {
CollectionNode items = new CollectionNode();
StringBundler contents = null;
ScapedNode e = null;
try {
// Creole10.g:300:5: (contents= text_unformated_text | ( forced_linebreak | e= escaped )+ )
int alt40=2;
int LA40_0 = input.LA(1);
if ( ((LA40_0>=FORCED_END_OF_LINE && LA40_0<=WIKI)||LA40_0==POUND||(LA40_0>=EQUAL && LA40_0<=PIPE)||(LA40_0>=NOWIKI_BLOCK_CLOSE && LA40_0<=80)) ) {
alt40=1;
}
else if ( ((LA40_0>=FORCED_LINEBREAK && LA40_0<=ESCAPE)) ) {
alt40=2;
}
else {
if (backtracking>0) {failed=true; return items;}
NoViableAltException nvae =
new NoViableAltException("299:1: text_unformatted returns [CollectionNode items = new CollectionNode()] : (contents= text_unformated_text | ( forced_linebreak | e= escaped )+ );", 40, 0, input);
throw nvae;
}
switch (alt40) {
case 1 :
// Creole10.g:300:5: contents= text_unformated_text
{
pushFollow(FOLLOW_text_unformated_text_in_text_unformatted1137);
contents=text_unformated_text();
_fsp--;
if (failed) return items;
if ( backtracking==0 ) {
items.add(new UnformattedTextNode(contents.toString()));
}
}
break;
case 2 :
// Creole10.g:301:5: ( forced_linebreak | e= escaped )+
{
// Creole10.g:301:5: ( forced_linebreak | e= escaped )+
int cnt39=0;
loop39:
do {
int alt39=3;
int LA39_0 = input.LA(1);
if ( (LA39_0==FORCED_LINEBREAK) ) {
alt39=1;
}
else if ( (LA39_0==ESCAPE) ) {
alt39=2;
}
switch (alt39) {
case 1 :
// Creole10.g:301:6: forced_linebreak
{
pushFollow(FOLLOW_forced_linebreak_in_text_unformatted1146);
forced_linebreak();
_fsp--;
if (failed) return items;
if ( backtracking==0 ) {
items.add(new ForcedEndOfLineNode());
}
}
break;
case 2 :
// Creole10.g:302:5: e= escaped
{
pushFollow(FOLLOW_escaped_in_text_unformatted1158);
e=escaped();
_fsp--;
if (failed) return items;
if ( backtracking==0 ) {
items.add(e);
}
}
break;
default :
if ( cnt39 >= 1 ) break loop39;
if (backtracking>0) {failed=true; return items;}
EarlyExitException eee =
new EarlyExitException(39, input);
throw eee;
}
cnt39++;
} while (true);
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return items;
}
// $ANTLR end text_unformatted
// $ANTLR start text_unformated_text
// Creole10.g:305:1: text_unformated_text returns [StringBundler text = new StringBundler()] : (c=~ ( ITAL | STAR | LINK_OPEN | IMAGE_OPEN | NOWIKI_OPEN | EXTENSION | FORCED_LINEBREAK | ESCAPE | NEWLINE | EOF ) )+ ;
public final StringBundler text_unformated_text() throws RecognitionException {
StringBundler text = new StringBundler();
Token c=null;
try {
// Creole10.g:307:2: ( (c=~ ( ITAL | STAR | LINK_OPEN | IMAGE_OPEN | NOWIKI_OPEN | EXTENSION | FORCED_LINEBREAK | ESCAPE | NEWLINE | EOF ) )+ )
// Creole10.g:307:2: (c=~ ( ITAL | STAR | LINK_OPEN | IMAGE_OPEN | NOWIKI_OPEN | EXTENSION | FORCED_LINEBREAK | ESCAPE | NEWLINE | EOF ) )+
{
// Creole10.g:307:2: (c=~ ( ITAL | STAR | LINK_OPEN | IMAGE_OPEN | NOWIKI_OPEN | EXTENSION | FORCED_LINEBREAK | ESCAPE | NEWLINE | EOF ) )+
int cnt41=0;
loop41:
do {
int alt41=2;
int LA41_0 = input.LA(1);
if ( ((LA41_0>=FORCED_END_OF_LINE && LA41_0<=WIKI)||LA41_0==POUND||(LA41_0>=EQUAL && LA41_0<=PIPE)||(LA41_0>=NOWIKI_BLOCK_CLOSE && LA41_0<=80)) ) {
alt41=1;
}
switch (alt41) {
case 1 :
// Creole10.g:307:3: c=~ ( ITAL | STAR | LINK_OPEN | IMAGE_OPEN | NOWIKI_OPEN | EXTENSION | FORCED_LINEBREAK | ESCAPE | NEWLINE | EOF )
{
c=(Token)input.LT(1);
if ( (input.LA(1)>=FORCED_END_OF_LINE && input.LA(1)<=WIKI)||input.LA(1)==POUND||(input.LA(1)>=EQUAL && input.LA(1)<=PIPE)||(input.LA(1)>=NOWIKI_BLOCK_CLOSE && input.LA(1)<=80) ) {
input.consume();
errorRecovery=false;failed=false;
}
else {
if (backtracking>0) {failed=true; return text;}
MismatchedSetException mse =
new MismatchedSetException(null,input);
recoverFromMismatchedSet(input,mse,FOLLOW_set_in_text_unformated_text1183); throw mse;
}
if ( backtracking==0 ) {
text.append(c.getText());
}
}
break;
default :
if ( cnt41 >= 1 ) break loop41;
if (backtracking>0) {failed=true; return text;}
EarlyExitException eee =
new EarlyExitException(41, input);
throw eee;
}
cnt41++;
} while (true);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return text;
}
// $ANTLR end text_unformated_text
protected static class heading_scope {
CollectionNode items;
int nestedLevel;
String text;
}
protected Stack heading_stack = new Stack();
// $ANTLR start heading
// Creole10.g:321:1: heading returns [ASTNode header] : heading_markup heading_content ( heading_markup )? ( blanks )? paragraph_separator ;
public final ASTNode heading() throws RecognitionException {
heading_stack.push(new heading_scope());
ASTNode header = null;
((heading_scope)heading_stack.peek()).items = new CollectionNode();
((heading_scope)heading_stack.peek()).text = new String();
try {
// Creole10.g:331:4: ( heading_markup heading_content ( heading_markup )? ( blanks )? paragraph_separator )
// Creole10.g:331:4: heading_markup heading_content ( heading_markup )? ( blanks )? paragraph_separator
{
pushFollow(FOLLOW_heading_markup_in_heading1285);
heading_markup();
_fsp--;
if (failed) return header;
if ( backtracking==0 ) {
((heading_scope)heading_stack.peek()).nestedLevel++;
}
pushFollow(FOLLOW_heading_content_in_heading1290);
heading_content();
_fsp--;
if (failed) return header;
if ( backtracking==0 ) {
header = new HeadingNode(((heading_scope)heading_stack.peek()).items,((heading_scope)heading_stack.peek()).nestedLevel);
}
// Creole10.g:331:134: ( heading_markup )?
int alt42=2;
int LA42_0 = input.LA(1);
if ( (LA42_0==EQUAL) ) {
alt42=1;
}
switch (alt42) {
case 1 :
// Creole10.g:331:136: heading_markup
{
pushFollow(FOLLOW_heading_markup_in_heading1297);
heading_markup();
_fsp--;
if (failed) return header;
}
break;
}
// Creole10.g:331:155: ( blanks )?
int alt43=2;
int LA43_0 = input.LA(1);
if ( (LA43_0==BLANKS) ) {
alt43=1;
}
switch (alt43) {
case 1 :
// Creole10.g:331:157: blanks
{
pushFollow(FOLLOW_blanks_in_heading1305);
blanks();
_fsp--;
if (failed) return header;
}
break;
}
pushFollow(FOLLOW_paragraph_separator_in_heading1312);
paragraph_separator();
_fsp--;
if (failed) return header;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
heading_stack.pop();
}
return header;
}
// $ANTLR end heading
// $ANTLR start heading_content
// Creole10.g:334:1: heading_content : ( heading_markup heading_content ( heading_markup )? | ht= heading_text );
public final void heading_content() throws RecognitionException {
CollectionNode ht = null;
try {
// Creole10.g:335:4: ( heading_markup heading_content ( heading_markup )? | ht= heading_text )
int alt45=2;
int LA45_0 = input.LA(1);
if ( (LA45_0==EQUAL) ) {
alt45=1;
}
else if ( (LA45_0==EOF||(LA45_0>=FORCED_END_OF_LINE && LA45_0<=STAR)||(LA45_0>=PIPE && LA45_0<=FORCED_LINEBREAK)||(LA45_0>=NOWIKI_BLOCK_CLOSE && LA45_0<=80)) ) {
alt45=2;
}
else {
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
new NoViableAltException("334:1: heading_content : ( heading_markup heading_content ( heading_markup )? | ht= heading_text );", 45, 0, input);
throw nvae;
}
switch (alt45) {
case 1 :
// Creole10.g:335:4: heading_markup heading_content ( heading_markup )?
{
pushFollow(FOLLOW_heading_markup_in_heading_content1322);
heading_markup();
_fsp--;
if (failed) return ;
if ( backtracking==0 ) {
((heading_scope)heading_stack.peek()).nestedLevel++;
}
pushFollow(FOLLOW_heading_content_in_heading_content1327);
heading_content();
_fsp--;
if (failed) return ;
// Creole10.g:335:64: ( heading_markup )?
int alt44=2;
int LA44_0 = input.LA(1);
if ( (LA44_0==EQUAL) ) {
alt44=1;
}
switch (alt44) {
case 1 :
// Creole10.g:335:66: heading_markup
{
pushFollow(FOLLOW_heading_markup_in_heading_content1332);
heading_markup();
_fsp--;
if (failed) return ;
}
break;
}
}
break;
case 2 :
// Creole10.g:336:4: ht= heading_text
{
pushFollow(FOLLOW_heading_text_in_heading_content1344);
ht=heading_text();
_fsp--;
if (failed) return ;
if ( backtracking==0 ) {
((heading_scope)heading_stack.peek()).items = ht;
}
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return ;
}
// $ANTLR end heading_content
// $ANTLR start heading_text
// Creole10.g:339:1: heading_text returns [CollectionNode items = null] : te= heading_cellcontent ;
public final CollectionNode heading_text() throws RecognitionException {
CollectionNode items = null;
CollectionNode te = null;
try {
// Creole10.g:340:4: (te= heading_cellcontent )
// Creole10.g:340:4: te= heading_cellcontent
{
pushFollow(FOLLOW_heading_cellcontent_in_heading_text1365);
te=heading_cellcontent();
_fsp--;
if (failed) return items;
if ( backtracking==0 ) {
items = te;
}
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return items;
}
// $ANTLR end heading_text
// $ANTLR start heading_cellcontent
// Creole10.g:343:1: heading_cellcontent returns [CollectionNode items = new CollectionNode()] : onestar (tcp= heading_cellcontentpart onestar )* ;
public final CollectionNode heading_cellcontent() throws RecognitionException {
CollectionNode items = new CollectionNode();
ASTNode tcp = null;
try {
// Creole10.g:344:4: ( onestar (tcp= heading_cellcontentpart onestar )* )
// Creole10.g:344:4: onestar (tcp= heading_cellcontentpart onestar )*
{
pushFollow(FOLLOW_onestar_in_heading_cellcontent1382);
onestar();
_fsp--;
if (failed) return items;
// Creole10.g:344:13: (tcp= heading_cellcontentpart onestar )*
loop46:
do {
int alt46=2;
int LA46_0 = input.LA(1);
if ( ((LA46_0>=FORCED_END_OF_LINE && LA46_0<=WIKI)||(LA46_0>=POUND && LA46_0<=STAR)||(LA46_0>=PIPE && LA46_0<=FORCED_LINEBREAK)||(LA46_0>=NOWIKI_BLOCK_CLOSE && LA46_0<=80)) ) {
alt46=1;
}
switch (alt46) {
case 1 :
// Creole10.g:344:15: tcp= heading_cellcontentpart onestar
{
pushFollow(FOLLOW_heading_cellcontentpart_in_heading_cellcontent1391);
tcp=heading_cellcontentpart();
_fsp--;
if (failed) return items;
if ( backtracking==0 ) {
if (tcp != null) { // some AST Node could be NULL if bad CREOLE syntax is wrotten
items.add(tcp);
}
}
pushFollow(FOLLOW_onestar_in_heading_cellcontent1402);
onestar();
_fsp--;
if (failed) return items;
}
break;
default :
break loop46;
}
} while (true);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return items;
}
// $ANTLR end heading_cellcontent
// $ANTLR start heading_cellcontentpart
// Creole10.g:353:1: heading_cellcontentpart returns [ASTNode node = null] : (tf= heading_formattedelement | tu= heading_unformattedelement );
public final ASTNode heading_cellcontentpart() throws RecognitionException {
ASTNode node = null;
ASTNode tf = null;
ASTNode tu = null;
try {
// Creole10.g:354:4: (tf= heading_formattedelement | tu= heading_unformattedelement )
int alt47=2;
switch ( input.LA(1) ) {
case ITAL:
{
alt47=1;
}
break;
case STAR:
{
int LA47_2 = input.LA(2);
if ( (LA47_2==STAR) ) {
alt47=1;
}
else if ( (LA47_2==EOF||(LA47_2>=FORCED_END_OF_LINE && LA47_2<=POUND)||(LA47_2>=EQUAL && LA47_2<=FORCED_LINEBREAK)||(LA47_2>=NOWIKI_BLOCK_CLOSE && LA47_2<=80)) ) {
alt47=2;
}
else {
if (backtracking>0) {failed=true; return node;}
NoViableAltException nvae =
new NoViableAltException("353:1: heading_cellcontentpart returns [ASTNode node = null] : (tf= heading_formattedelement | tu= heading_unformattedelement );", 47, 2, input);
throw nvae;
}
}
break;
case FORCED_END_OF_LINE:
case HEADING_SECTION:
case HORIZONTAL_SECTION:
case LIST_ITEM:
case LIST_ITEM_PART:
case NOWIKI_SECTION:
case SCAPE_NODE:
case TEXT_NODE:
case UNORDERED_LIST:
case UNFORMATTED_TEXT:
case WIKI:
case POUND:
case PIPE:
case LINK_OPEN:
case IMAGE_OPEN:
case NOWIKI_OPEN:
case EXTENSION:
case FORCED_LINEBREAK:
case NOWIKI_BLOCK_CLOSE:
case NOWIKI_CLOSE:
case LINK_CLOSE:
case IMAGE_CLOSE:
case BLANKS:
case DASH:
case CR:
case LF:
case SPACE:
case TABULATOR:
case BRACE_CLOSE:
case COLON_SLASH:
case SLASH:
case INSIGNIFICANT_CHAR:
case 41:
case 42:
case 43:
case 44:
case 45:
case 46:
case 47:
case 48:
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 56:
case 57:
case 58:
case 59:
case 60:
case 61:
case 62:
case 63:
case 64:
case 65:
case 66:
case 67:
case 68:
case 69:
case 70:
case 71:
case 72:
case 73:
case 74:
case 75:
case 76:
case 77:
case 78:
case 79:
case 80:
{
alt47=2;
}
break;
default:
if (backtracking>0) {failed=true; return node;}
NoViableAltException nvae =
new NoViableAltException("353:1: heading_cellcontentpart returns [ASTNode node = null] : (tf= heading_formattedelement | tu= heading_unformattedelement );", 47, 0, input);
throw nvae;
}
switch (alt47) {
case 1 :
// Creole10.g:354:4: tf= heading_formattedelement
{
pushFollow(FOLLOW_heading_formattedelement_in_heading_cellcontentpart1423);
tf=heading_formattedelement();
_fsp--;
if (failed) return node;
if ( backtracking==0 ) {
node =tf;
}
}
break;
case 2 :
// Creole10.g:355:4: tu= heading_unformattedelement
{
pushFollow(FOLLOW_heading_unformattedelement_in_heading_cellcontentpart1434);
tu=heading_unformattedelement();
_fsp--;
if (failed) return node;
if ( backtracking==0 ) {
node =tu;
}
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return node;
}
// $ANTLR end heading_cellcontentpart
// $ANTLR start heading_formattedelement
// Creole10.g:357:1: heading_formattedelement returns [ASTNode content = null] : ( ital_markup (tic= heading_italcontent )? ( ital_markup )? | bold_markup (tbc= heading_boldcontent )? ( bold_markup )? );
public final ASTNode heading_formattedelement() throws RecognitionException {
ASTNode content = null;
CollectionNode tic = null;
CollectionNode tbc = null;
try {
// Creole10.g:358:4: ( ital_markup (tic= heading_italcontent )? ( ital_markup )? | bold_markup (tbc= heading_boldcontent )? ( bold_markup )? )
int alt52=2;
int LA52_0 = input.LA(1);
if ( (LA52_0==ITAL) ) {
alt52=1;
}
else if ( (LA52_0==STAR) ) {
alt52=2;
}
else {
if (backtracking>0) {failed=true; return content;}
NoViableAltException nvae =
new NoViableAltException("357:1: heading_formattedelement returns [ASTNode content = null] : ( ital_markup (tic= heading_italcontent )? ( ital_markup )? | bold_markup (tbc= heading_boldcontent )? ( bold_markup )? );", 52, 0, input);
throw nvae;
}
switch (alt52) {
case 1 :
// Creole10.g:358:4: ital_markup (tic= heading_italcontent )? ( ital_markup )?
{
pushFollow(FOLLOW_ital_markup_in_heading_formattedelement1450);
ital_markup();
_fsp--;
if (failed) return content;
// Creole10.g:358:18: (tic= heading_italcontent )?
int alt48=2;
switch ( input.LA(1) ) {
case STAR:
{
alt48=1;
}
break;
case ITAL:
{
alt48=1;
}
break;
case LINK_OPEN:
{
alt48=1;
}
break;
case IMAGE_OPEN:
{
alt48=1;
}
break;
case NOWIKI_OPEN:
{
alt48=1;
}
break;
case EOF:
{
alt48=1;
}
break;
case BLANKS:
{
alt48=1;
}
break;
case FORCED_END_OF_LINE:
case HEADING_SECTION:
case HORIZONTAL_SECTION:
case LIST_ITEM:
case LIST_ITEM_PART:
case NOWIKI_SECTION:
case SCAPE_NODE:
case TEXT_NODE:
case UNORDERED_LIST:
case UNFORMATTED_TEXT:
case WIKI:
case POUND:
case PIPE:
case EXTENSION:
case FORCED_LINEBREAK:
case NOWIKI_BLOCK_CLOSE:
case NOWIKI_CLOSE:
case LINK_CLOSE:
case IMAGE_CLOSE:
case DASH:
case CR:
case LF:
case SPACE:
case TABULATOR:
case BRACE_CLOSE:
case COLON_SLASH:
case SLASH:
case INSIGNIFICANT_CHAR:
case 41:
case 42:
case 43:
case 44:
case 45:
case 46:
case 47:
case 48:
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 56:
case 57:
case 58:
case 59:
case 60:
case 61:
case 62:
case 63:
case 64:
case 65:
case 66:
case 67:
case 68:
case 69:
case 70:
case 71:
case 72:
case 73:
case 74:
case 75:
case 76:
case 77:
case 78:
case 79:
case 80:
{
alt48=1;
}
break;
}
switch (alt48) {
case 1 :
// Creole10.g:358:20: tic= heading_italcontent
{
pushFollow(FOLLOW_heading_italcontent_in_heading_formattedelement1460);
tic=heading_italcontent();
_fsp--;
if (failed) return content;
if ( backtracking==0 ) {
content = new ItalicTextNode(tic);
}
}
break;
}
// Creole10.g:358:96: ( ital_markup )?
int alt49=2;
int LA49_0 = input.LA(1);
if ( (LA49_0==ITAL) ) {
alt49=1;
}
switch (alt49) {
case 1 :
// Creole10.g:358:98: ital_markup
{
pushFollow(FOLLOW_ital_markup_in_heading_formattedelement1469);
ital_markup();
_fsp--;
if (failed) return content;
}
break;
}
}
break;
case 2 :
// Creole10.g:359:4: bold_markup (tbc= heading_boldcontent )? ( bold_markup )?
{
pushFollow(FOLLOW_bold_markup_in_heading_formattedelement1477);
bold_markup();
_fsp--;
if (failed) return content;
// Creole10.g:359:16: (tbc= heading_boldcontent )?
int alt50=2;
switch ( input.LA(1) ) {
case STAR:
{
alt50=1;
}
break;
case ITAL:
{
alt50=1;
}
break;
case LINK_OPEN:
{
alt50=1;
}
break;
case IMAGE_OPEN:
{
alt50=1;
}
break;
case NOWIKI_OPEN:
{
alt50=1;
}
break;
case BLANKS:
{
alt50=1;
}
break;
case EOF:
{
alt50=1;
}
break;
case FORCED_END_OF_LINE:
case HEADING_SECTION:
case HORIZONTAL_SECTION:
case LIST_ITEM:
case LIST_ITEM_PART:
case NOWIKI_SECTION:
case SCAPE_NODE:
case TEXT_NODE:
case UNORDERED_LIST:
case UNFORMATTED_TEXT:
case WIKI:
case POUND:
case PIPE:
case EXTENSION:
case FORCED_LINEBREAK:
case NOWIKI_BLOCK_CLOSE:
case NOWIKI_CLOSE:
case LINK_CLOSE:
case IMAGE_CLOSE:
case DASH:
case CR:
case LF:
case SPACE:
case TABULATOR:
case BRACE_CLOSE:
case COLON_SLASH:
case SLASH:
case INSIGNIFICANT_CHAR:
case 41:
case 42:
case 43:
case 44:
case 45:
case 46:
case 47:
case 48:
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 56:
case 57:
case 58:
case 59:
case 60:
case 61:
case 62:
case 63:
case 64:
case 65:
case 66:
case 67:
case 68:
case 69:
case 70:
case 71:
case 72:
case 73:
case 74:
case 75:
case 76:
case 77:
case 78:
case 79:
case 80:
{
alt50=1;
}
break;
}
switch (alt50) {
case 1 :
// Creole10.g:359:18: tbc= heading_boldcontent
{
pushFollow(FOLLOW_heading_boldcontent_in_heading_formattedelement1484);
tbc=heading_boldcontent();
_fsp--;
if (failed) return content;
if ( backtracking==0 ) {
content = new BoldTextNode(tbc);
}
}
break;
}
// Creole10.g:359:90: ( bold_markup )?
int alt51=2;
int LA51_0 = input.LA(1);
if ( (LA51_0==STAR) ) {
int LA51_1 = input.LA(2);
if ( (LA51_1==STAR) ) {
alt51=1;
}
}
switch (alt51) {
case 1 :
// Creole10.g:359:92: bold_markup
{
pushFollow(FOLLOW_bold_markup_in_heading_formattedelement1494);
bold_markup();
_fsp--;
if (failed) return content;
}
break;
}
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return content;
}
// $ANTLR end heading_formattedelement
// $ANTLR start heading_boldcontent
// Creole10.g:361:1: heading_boldcontent returns [CollectionNode items = new CollectionNode()] : ( onestar (tb= heading_boldcontentpart onestar )+ | EOF );
public final CollectionNode heading_boldcontent() throws RecognitionException {
CollectionNode items = new CollectionNode();
ASTNode tb = null;
try {
// Creole10.g:362:4: ( onestar (tb= heading_boldcontentpart onestar )+ | EOF )
int alt54=2;
int LA54_0 = input.LA(1);
if ( ((LA54_0>=FORCED_END_OF_LINE && LA54_0<=WIKI)||(LA54_0>=POUND && LA54_0<=STAR)||(LA54_0>=PIPE && LA54_0<=FORCED_LINEBREAK)||(LA54_0>=NOWIKI_BLOCK_CLOSE && LA54_0<=80)) ) {
alt54=1;
}
else if ( (LA54_0==EOF) ) {
alt54=2;
}
else {
if (backtracking>0) {failed=true; return items;}
NoViableAltException nvae =
new NoViableAltException("361:1: heading_boldcontent returns [CollectionNode items = new CollectionNode()] : ( onestar (tb= heading_boldcontentpart onestar )+ | EOF );", 54, 0, input);
throw nvae;
}
switch (alt54) {
case 1 :
// Creole10.g:362:4: onestar (tb= heading_boldcontentpart onestar )+
{
pushFollow(FOLLOW_onestar_in_heading_boldcontent1511);
onestar();
_fsp--;
if (failed) return items;
// Creole10.g:362:13: (tb= heading_boldcontentpart onestar )+
int cnt53=0;
loop53:
do {
int alt53=2;
switch ( input.LA(1) ) {
case STAR:
{
alt53=1;
}
break;
case BLANKS:
{
alt53=1;
}
break;
case ITAL:
{
alt53=1;
}
break;
case FORCED_END_OF_LINE:
case HEADING_SECTION:
case HORIZONTAL_SECTION:
case LIST_ITEM:
case LIST_ITEM_PART:
case NOWIKI_SECTION:
case SCAPE_NODE:
case TEXT_NODE:
case UNORDERED_LIST:
case UNFORMATTED_TEXT:
case WIKI:
case POUND:
case PIPE:
case EXTENSION:
case FORCED_LINEBREAK:
case NOWIKI_BLOCK_CLOSE:
case NOWIKI_CLOSE:
case LINK_CLOSE:
case IMAGE_CLOSE:
case DASH:
case CR:
case LF:
case SPACE:
case TABULATOR:
case BRACE_CLOSE:
case COLON_SLASH:
case SLASH:
case INSIGNIFICANT_CHAR:
case 41:
case 42:
case 43:
case 44:
case 45:
case 46:
case 47:
case 48:
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 56:
case 57:
case 58:
case 59:
case 60:
case 61:
case 62:
case 63:
case 64:
case 65:
case 66:
case 67:
case 68:
case 69:
case 70:
case 71:
case 72:
case 73:
case 74:
case 75:
case 76:
case 77:
case 78:
case 79:
case 80:
{
alt53=1;
}
break;
case LINK_OPEN:
{
alt53=1;
}
break;
case IMAGE_OPEN:
{
alt53=1;
}
break;
case NOWIKI_OPEN:
{
alt53=1;
}
break;
}
switch (alt53) {
case 1 :
// Creole10.g:362:15: tb= heading_boldcontentpart onestar
{
pushFollow(FOLLOW_heading_boldcontentpart_in_heading_boldcontent1520);
tb=heading_boldcontentpart();
_fsp--;
if (failed) return items;
if ( backtracking==0 ) {
items.add(tb);
}
pushFollow(FOLLOW_onestar_in_heading_boldcontent1525);
onestar();
_fsp--;
if (failed) return items;
}
break;
default :
if ( cnt53 >= 1 ) break loop53;
if (backtracking>0) {failed=true; return items;}
EarlyExitException eee =
new EarlyExitException(53, input);
throw eee;
}
cnt53++;
} while (true);
}
break;
case 2 :
// Creole10.g:363:4: EOF
{
match(input,EOF,FOLLOW_EOF_in_heading_boldcontent1533); if (failed) return items;
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return items;
}
// $ANTLR end heading_boldcontent
// $ANTLR start heading_italcontent
// Creole10.g:365:1: heading_italcontent returns [CollectionNode items = new CollectionNode()] : ( onestar (ti= heading_italcontentpart onestar )+ | EOF );
public final CollectionNode heading_italcontent() throws RecognitionException {
CollectionNode items = new CollectionNode();
ASTNode ti = null;
try {
// Creole10.g:366:4: ( onestar (ti= heading_italcontentpart onestar )+ | EOF )
int alt56=2;
int LA56_0 = input.LA(1);
if ( ((LA56_0>=FORCED_END_OF_LINE && LA56_0<=WIKI)||(LA56_0>=POUND && LA56_0<=STAR)||(LA56_0>=PIPE && LA56_0<=FORCED_LINEBREAK)||(LA56_0>=NOWIKI_BLOCK_CLOSE && LA56_0<=80)) ) {
alt56=1;
}
else if ( (LA56_0==EOF) ) {
alt56=2;
}
else {
if (backtracking>0) {failed=true; return items;}
NoViableAltException nvae =
new NoViableAltException("365:1: heading_italcontent returns [CollectionNode items = new CollectionNode()] : ( onestar (ti= heading_italcontentpart onestar )+ | EOF );", 56, 0, input);
throw nvae;
}
switch (alt56) {
case 1 :
// Creole10.g:366:4: onestar (ti= heading_italcontentpart onestar )+
{
pushFollow(FOLLOW_onestar_in_heading_italcontent1547);
onestar();
_fsp--;
if (failed) return items;
// Creole10.g:366:13: (ti= heading_italcontentpart onestar )+
int cnt55=0;
loop55:
do {
int alt55=2;
switch ( input.LA(1) ) {
case ITAL:
{
alt55=1;
}
break;
case STAR:
{
alt55=1;
}
break;
case BLANKS:
{
alt55=1;
}
break;
case FORCED_END_OF_LINE:
case HEADING_SECTION:
case HORIZONTAL_SECTION:
case LIST_ITEM:
case LIST_ITEM_PART:
case NOWIKI_SECTION:
case SCAPE_NODE:
case TEXT_NODE:
case UNORDERED_LIST:
case UNFORMATTED_TEXT:
case WIKI:
case POUND:
case PIPE:
case EXTENSION:
case FORCED_LINEBREAK:
case NOWIKI_BLOCK_CLOSE:
case NOWIKI_CLOSE:
case LINK_CLOSE:
case IMAGE_CLOSE:
case DASH:
case CR:
case LF:
case SPACE:
case TABULATOR:
case BRACE_CLOSE:
case COLON_SLASH:
case SLASH:
case INSIGNIFICANT_CHAR:
case 41:
case 42:
case 43:
case 44:
case 45:
case 46:
case 47:
case 48:
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 56:
case 57:
case 58:
case 59:
case 60:
case 61:
case 62:
case 63:
case 64:
case 65:
case 66:
case 67:
case 68:
case 69:
case 70:
case 71:
case 72:
case 73:
case 74:
case 75:
case 76:
case 77:
case 78:
case 79:
case 80:
{
alt55=1;
}
break;
case LINK_OPEN:
{
alt55=1;
}
break;
case IMAGE_OPEN:
{
alt55=1;
}
break;
case NOWIKI_OPEN:
{
alt55=1;
}
break;
}
switch (alt55) {
case 1 :
// Creole10.g:366:15: ti= heading_italcontentpart onestar
{
pushFollow(FOLLOW_heading_italcontentpart_in_heading_italcontent1556);
ti=heading_italcontentpart();
_fsp--;
if (failed) return items;
if ( backtracking==0 ) {
items.add(ti);
}
pushFollow(FOLLOW_onestar_in_heading_italcontent1561);
onestar();
_fsp--;
if (failed) return items;
}
break;
default :
if ( cnt55 >= 1 ) break loop55;
if (backtracking>0) {failed=true; return items;}
EarlyExitException eee =
new EarlyExitException(55, input);
throw eee;
}
cnt55++;
} while (true);
}
break;
case 2 :
// Creole10.g:367:4: EOF
{
match(input,EOF,FOLLOW_EOF_in_heading_italcontent1569); if (failed) return items;
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return items;
}
// $ANTLR end heading_italcontent
// $ANTLR start heading_boldcontentpart
// Creole10.g:369:1: heading_boldcontentpart returns [ASTNode node = null] : (tf= heading_formattedcontent | ital_markup tb= heading_bolditalcontent ( ital_markup )? );
public final ASTNode heading_boldcontentpart() throws RecognitionException {
ASTNode node = null;
CollectionNode tf = null;
CollectionNode tb = null;
try {
// Creole10.g:370:4: (tf= heading_formattedcontent | ital_markup tb= heading_bolditalcontent ( ital_markup )? )
int alt58=2;
int LA58_0 = input.LA(1);
if ( ((LA58_0>=FORCED_END_OF_LINE && LA58_0<=WIKI)||(LA58_0>=POUND && LA58_0<=STAR)||(LA58_0>=PIPE && LA58_0<=FORCED_LINEBREAK)||(LA58_0>=NOWIKI_BLOCK_CLOSE && LA58_0<=80)) ) {
alt58=1;
}
else {
if (backtracking>0) {failed=true; return node;}
NoViableAltException nvae =
new NoViableAltException("369:1: heading_boldcontentpart returns [ASTNode node = null] : (tf= heading_formattedcontent | ital_markup tb= heading_bolditalcontent ( ital_markup )? );", 58, 0, input);
throw nvae;
}
switch (alt58) {
case 1 :
// Creole10.g:370:4: tf= heading_formattedcontent
{
pushFollow(FOLLOW_heading_formattedcontent_in_heading_boldcontentpart1587);
tf=heading_formattedcontent();
_fsp--;
if (failed) return node;
if ( backtracking==0 ) {
node = tf;
}
}
break;
case 2 :
// Creole10.g:371:4: ital_markup tb= heading_bolditalcontent ( ital_markup )?
{
pushFollow(FOLLOW_ital_markup_in_heading_boldcontentpart1594);
ital_markup();
_fsp--;
if (failed) return node;
pushFollow(FOLLOW_heading_bolditalcontent_in_heading_boldcontentpart1601);
tb=heading_bolditalcontent();
_fsp--;
if (failed) return node;
if ( backtracking==0 ) {
node = new ItalicTextNode(tb);
}
// Creole10.g:371:94: ( ital_markup )?
int alt57=2;
int LA57_0 = input.LA(1);
if ( (LA57_0==ITAL) ) {
alt57=1;
}
switch (alt57) {
case 1 :
// Creole10.g:371:96: ital_markup
{
pushFollow(FOLLOW_ital_markup_in_heading_boldcontentpart1608);
ital_markup();
_fsp--;
if (failed) return node;
}
break;
}
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return node;
}
// $ANTLR end heading_boldcontentpart
// $ANTLR start heading_italcontentpart
// Creole10.g:373:1: heading_italcontentpart returns [ASTNode node = null] : ( bold_markup tb= heading_bolditalcontent ( bold_markup )? | tf= heading_formattedcontent );
public final ASTNode heading_italcontentpart() throws RecognitionException {
ASTNode node = null;
CollectionNode tb = null;
CollectionNode tf = null;
try {
// Creole10.g:374:4: ( bold_markup tb= heading_bolditalcontent ( bold_markup )? | tf= heading_formattedcontent )
int alt60=2;
int LA60_0 = input.LA(1);
if ( (LA60_0==STAR) ) {
int LA60_1 = input.LA(2);
if ( (LA60_1==STAR) ) {
alt60=1;
}
else if ( (LA60_1==EOF||(LA60_1>=FORCED_END_OF_LINE && LA60_1<=POUND)||(LA60_1>=EQUAL && LA60_1<=FORCED_LINEBREAK)||(LA60_1>=NOWIKI_BLOCK_CLOSE && LA60_1<=80)) ) {
alt60=2;
}
else {
if (backtracking>0) {failed=true; return node;}
NoViableAltException nvae =
new NoViableAltException("373:1: heading_italcontentpart returns [ASTNode node = null] : ( bold_markup tb= heading_bolditalcontent ( bold_markup )? | tf= heading_formattedcontent );", 60, 1, input);
throw nvae;
}
}
else if ( ((LA60_0>=FORCED_END_OF_LINE && LA60_0<=WIKI)||LA60_0==POUND||(LA60_0>=PIPE && LA60_0<=FORCED_LINEBREAK)||(LA60_0>=NOWIKI_BLOCK_CLOSE && LA60_0<=80)) ) {
alt60=2;
}
else {
if (backtracking>0) {failed=true; return node;}
NoViableAltException nvae =
new NoViableAltException("373:1: heading_italcontentpart returns [ASTNode node = null] : ( bold_markup tb= heading_bolditalcontent ( bold_markup )? | tf= heading_formattedcontent );", 60, 0, input);
throw nvae;
}
switch (alt60) {
case 1 :
// Creole10.g:374:4: bold_markup tb= heading_bolditalcontent ( bold_markup )?
{
pushFollow(FOLLOW_bold_markup_in_heading_italcontentpart1625);
bold_markup();
_fsp--;
if (failed) return node;
pushFollow(FOLLOW_heading_bolditalcontent_in_heading_italcontentpart1632);
tb=heading_bolditalcontent();
_fsp--;
if (failed) return node;
if ( backtracking==0 ) {
node = new BoldTextNode(tb);
}
// Creole10.g:374:90: ( bold_markup )?
int alt59=2;
int LA59_0 = input.LA(1);
if ( (LA59_0==STAR) ) {
int LA59_1 = input.LA(2);
if ( (LA59_1==STAR) ) {
alt59=1;
}
}
switch (alt59) {
case 1 :
// Creole10.g:374:92: bold_markup
{
pushFollow(FOLLOW_bold_markup_in_heading_italcontentpart1639);
bold_markup();
_fsp--;
if (failed) return node;
}
break;
}
}
break;
case 2 :
// Creole10.g:375:4: tf= heading_formattedcontent
{
pushFollow(FOLLOW_heading_formattedcontent_in_heading_italcontentpart1651);
tf=heading_formattedcontent();
_fsp--;
if (failed) return node;
if ( backtracking==0 ) {
node = tf;
}
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return node;
}
// $ANTLR end heading_italcontentpart
// $ANTLR start heading_bolditalcontent
// Creole10.g:377:1: heading_bolditalcontent returns [CollectionNode elements = null] : ( onestar (tfc= heading_formattedcontent onestar )? | EOF );
public final CollectionNode heading_bolditalcontent() throws RecognitionException {
CollectionNode elements = null;
CollectionNode tfc = null;
try {
// Creole10.g:378:4: ( onestar (tfc= heading_formattedcontent onestar )? | EOF )
int alt62=2;
int LA62_0 = input.LA(1);
if ( ((LA62_0>=FORCED_END_OF_LINE && LA62_0<=FORCED_LINEBREAK)||(LA62_0>=NOWIKI_BLOCK_CLOSE && LA62_0<=80)) ) {
alt62=1;
}
else if ( (LA62_0==EOF) ) {
alt62=1;
}
else {
if (backtracking>0) {failed=true; return elements;}
NoViableAltException nvae =
new NoViableAltException("377:1: heading_bolditalcontent returns [CollectionNode elements = null] : ( onestar (tfc= heading_formattedcontent onestar )? | EOF );", 62, 0, input);
throw nvae;
}
switch (alt62) {
case 1 :
// Creole10.g:378:4: onestar (tfc= heading_formattedcontent onestar )?
{
pushFollow(FOLLOW_onestar_in_heading_bolditalcontent1667);
onestar();
_fsp--;
if (failed) return elements;
// Creole10.g:378:13: (tfc= heading_formattedcontent onestar )?
int alt61=2;
switch ( input.LA(1) ) {
case ITAL:
{
alt61=1;
}
break;
case LINK_OPEN:
{
alt61=1;
}
break;
case IMAGE_OPEN:
{
alt61=1;
}
break;
case NOWIKI_OPEN:
{
alt61=1;
}
break;
case STAR:
{
alt61=1;
}
break;
case BLANKS:
{
alt61=1;
}
break;
case FORCED_END_OF_LINE:
case HEADING_SECTION:
case HORIZONTAL_SECTION:
case LIST_ITEM:
case LIST_ITEM_PART:
case NOWIKI_SECTION:
case SCAPE_NODE:
case TEXT_NODE:
case UNORDERED_LIST:
case UNFORMATTED_TEXT:
case WIKI:
case POUND:
case PIPE:
case EXTENSION:
case FORCED_LINEBREAK:
case NOWIKI_BLOCK_CLOSE:
case NOWIKI_CLOSE:
case LINK_CLOSE:
case IMAGE_CLOSE:
case DASH:
case CR:
case LF:
case SPACE:
case TABULATOR:
case BRACE_CLOSE:
case COLON_SLASH:
case SLASH:
case INSIGNIFICANT_CHAR:
case 41:
case 42:
case 43:
case 44:
case 45:
case 46:
case 47:
case 48:
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 56:
case 57:
case 58:
case 59:
case 60:
case 61:
case 62:
case 63:
case 64:
case 65:
case 66:
case 67:
case 68:
case 69:
case 70:
case 71:
case 72:
case 73:
case 74:
case 75:
case 76:
case 77:
case 78:
case 79:
case 80:
{
alt61=1;
}
break;
}
switch (alt61) {
case 1 :
// Creole10.g:378:15: tfc= heading_formattedcontent onestar
{
pushFollow(FOLLOW_heading_formattedcontent_in_heading_bolditalcontent1676);
tfc=heading_formattedcontent();
_fsp--;
if (failed) return elements;
if ( backtracking==0 ) {
elements = tfc;
}
pushFollow(FOLLOW_onestar_in_heading_bolditalcontent1681);
onestar();
_fsp--;
if (failed) return elements;
}
break;
}
}
break;
case 2 :
// Creole10.g:379:4: EOF
{
match(input,EOF,FOLLOW_EOF_in_heading_bolditalcontent1689); if (failed) return elements;
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return elements;
}
// $ANTLR end heading_bolditalcontent
// $ANTLR start heading_formattedcontent
// Creole10.g:381:1: heading_formattedcontent returns [CollectionNode elements = new CollectionNode()] : (tu= heading_unformattedelement )+ ;
public final CollectionNode heading_formattedcontent() throws RecognitionException {
CollectionNode elements = new CollectionNode();
ASTNode tu = null;
try {
// Creole10.g:382:4: ( (tu= heading_unformattedelement )+ )
// Creole10.g:382:4: (tu= heading_unformattedelement )+
{
// Creole10.g:382:4: (tu= heading_unformattedelement )+
int cnt63=0;
loop63:
do {
int alt63=2;
switch ( input.LA(1) ) {
case STAR:
{
alt63=1;
}
break;
case BLANKS:
{
alt63=1;
}
break;
case ITAL:
{
alt63=1;
}
break;
case FORCED_END_OF_LINE:
case HEADING_SECTION:
case HORIZONTAL_SECTION:
case LIST_ITEM:
case LIST_ITEM_PART:
case NOWIKI_SECTION:
case SCAPE_NODE:
case TEXT_NODE:
case UNORDERED_LIST:
case UNFORMATTED_TEXT:
case WIKI:
case POUND:
case PIPE:
case EXTENSION:
case FORCED_LINEBREAK:
case NOWIKI_BLOCK_CLOSE:
case NOWIKI_CLOSE:
case LINK_CLOSE:
case IMAGE_CLOSE:
case DASH:
case CR:
case LF:
case SPACE:
case TABULATOR:
case BRACE_CLOSE:
case COLON_SLASH:
case SLASH:
case INSIGNIFICANT_CHAR:
case 41:
case 42:
case 43:
case 44:
case 45:
case 46:
case 47:
case 48:
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 56:
case 57:
case 58:
case 59:
case 60:
case 61:
case 62:
case 63:
case 64:
case 65:
case 66:
case 67:
case 68:
case 69:
case 70:
case 71:
case 72:
case 73:
case 74:
case 75:
case 76:
case 77:
case 78:
case 79:
case 80:
{
alt63=1;
}
break;
case LINK_OPEN:
{
alt63=1;
}
break;
case IMAGE_OPEN:
{
alt63=1;
}
break;
case NOWIKI_OPEN:
{
alt63=1;
}
break;
}
switch (alt63) {
case 1 :
// Creole10.g:382:6: tu= heading_unformattedelement
{
pushFollow(FOLLOW_heading_unformattedelement_in_heading_formattedcontent1709);
tu=heading_unformattedelement();
_fsp--;
if (failed) return elements;
if ( backtracking==0 ) {
elements.add(tu);
}
}
break;
default :
if ( cnt63 >= 1 ) break loop63;
if (backtracking>0) {failed=true; return elements;}
EarlyExitException eee =
new EarlyExitException(63, input);
throw eee;
}
cnt63++;
} while (true);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return elements;
}
// $ANTLR end heading_formattedcontent
// $ANTLR start heading_unformattedelement
// Creole10.g:384:1: heading_unformattedelement returns [ASTNode content = null] : (tu= heading_unformatted_text | ti= heading_inlineelement );
public final ASTNode heading_unformattedelement() throws RecognitionException {
ASTNode content = null;
StringBundler tu = null;
ASTNode ti = null;
try {
// Creole10.g:385:4: (tu= heading_unformatted_text | ti= heading_inlineelement )
int alt64=2;
int LA64_0 = input.LA(1);
if ( ((LA64_0>=FORCED_END_OF_LINE && LA64_0<=WIKI)||(LA64_0>=POUND && LA64_0<=STAR)||(LA64_0>=PIPE && LA64_0<=ITAL)||(LA64_0>=EXTENSION && LA64_0<=FORCED_LINEBREAK)||(LA64_0>=NOWIKI_BLOCK_CLOSE && LA64_0<=80)) ) {
alt64=1;
}
else if ( ((LA64_0>=LINK_OPEN && LA64_0<=NOWIKI_OPEN)) ) {
alt64=2;
}
else {
if (backtracking>0) {failed=true; return content;}
NoViableAltException nvae =
new NoViableAltException("384:1: heading_unformattedelement returns [ASTNode content = null] : (tu= heading_unformatted_text | ti= heading_inlineelement );", 64, 0, input);
throw nvae;
}
switch (alt64) {
case 1 :
// Creole10.g:385:4: tu= heading_unformatted_text
{
pushFollow(FOLLOW_heading_unformatted_text_in_heading_unformattedelement1732);
tu=heading_unformatted_text();
_fsp--;
if (failed) return content;
if ( backtracking==0 ) {
content = new UnformattedTextNode(tu.toString());
}
}
break;
case 2 :
// Creole10.g:386:4: ti= heading_inlineelement
{
pushFollow(FOLLOW_heading_inlineelement_in_heading_unformattedelement1744);
ti=heading_inlineelement();
_fsp--;
if (failed) return content;
if ( backtracking==0 ) {
content = ti;
}
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return content;
}
// $ANTLR end heading_unformattedelement
// $ANTLR start heading_inlineelement
// Creole10.g:388:1: heading_inlineelement returns [ASTNode element = null] : (l= link | i= image | nwi= nowiki_inline );
public final ASTNode heading_inlineelement() throws RecognitionException {
ASTNode element = null;
LinkNode l = null;
ImageNode i = null;
NoWikiInlineNode nwi = null;
try {
// Creole10.g:389:4: (l= link | i= image | nwi= nowiki_inline )
int alt65=3;
switch ( input.LA(1) ) {
case LINK_OPEN:
{
alt65=1;
}
break;
case IMAGE_OPEN:
{
alt65=2;
}
break;
case NOWIKI_OPEN:
{
alt65=3;
}
break;
default:
if (backtracking>0) {failed=true; return element;}
NoViableAltException nvae =
new NoViableAltException("388:1: heading_inlineelement returns [ASTNode element = null] : (l= link | i= image | nwi= nowiki_inline );", 65, 0, input);
throw nvae;
}
switch (alt65) {
case 1 :
// Creole10.g:389:4: l= link
{
pushFollow(FOLLOW_link_in_heading_inlineelement1764);
l=link();
_fsp--;
if (failed) return element;
if ( backtracking==0 ) {
element = l;
}
}
break;
case 2 :
// Creole10.g:390:4: i= image
{
pushFollow(FOLLOW_image_in_heading_inlineelement1774);
i=image();
_fsp--;
if (failed) return element;
if ( backtracking==0 ) {
element = i;
}
}
break;
case 3 :
// Creole10.g:391:4: nwi= nowiki_inline
{
pushFollow(FOLLOW_nowiki_inline_in_heading_inlineelement1785);
nwi=nowiki_inline();
_fsp--;
if (failed) return element;
if ( backtracking==0 ) {
element = nwi;
}
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return element;
}
// $ANTLR end heading_inlineelement
// $ANTLR start heading_unformatted_text
// Creole10.g:394:1: heading_unformatted_text returns [StringBundler text = new StringBundler()] : (c=~ ( LINK_OPEN | IMAGE_OPEN | NOWIKI_OPEN | EQUAL | ESCAPE | NEWLINE | EOF ) )+ ;
public final StringBundler heading_unformatted_text() throws RecognitionException {
StringBundler text = new StringBundler();
Token c=null;
try {
// Creole10.g:395:4: ( (c=~ ( LINK_OPEN | IMAGE_OPEN | NOWIKI_OPEN | EQUAL | ESCAPE | NEWLINE | EOF ) )+ )
// Creole10.g:395:4: (c=~ ( LINK_OPEN | IMAGE_OPEN | NOWIKI_OPEN | EQUAL | ESCAPE | NEWLINE | EOF ) )+
{
// Creole10.g:395:4: (c=~ ( LINK_OPEN | IMAGE_OPEN | NOWIKI_OPEN | EQUAL | ESCAPE | NEWLINE | EOF ) )+
int cnt66=0;
loop66:
do {
int alt66=2;
switch ( input.LA(1) ) {
case STAR:
{
alt66=1;
}
break;
case BLANKS:
{
alt66=1;
}
break;
case ITAL:
{
alt66=1;
}
break;
case FORCED_END_OF_LINE:
case HEADING_SECTION:
case HORIZONTAL_SECTION:
case LIST_ITEM:
case LIST_ITEM_PART:
case NOWIKI_SECTION:
case SCAPE_NODE:
case TEXT_NODE:
case UNORDERED_LIST:
case UNFORMATTED_TEXT:
case WIKI:
case POUND:
case PIPE:
case EXTENSION:
case FORCED_LINEBREAK:
case NOWIKI_BLOCK_CLOSE:
case NOWIKI_CLOSE:
case LINK_CLOSE:
case IMAGE_CLOSE:
case DASH:
case CR:
case LF:
case SPACE:
case TABULATOR:
case BRACE_CLOSE:
case COLON_SLASH:
case SLASH:
case INSIGNIFICANT_CHAR:
case 41:
case 42:
case 43:
case 44:
case 45:
case 46:
case 47:
case 48:
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 56:
case 57:
case 58:
case 59:
case 60:
case 61:
case 62:
case 63:
case 64:
case 65:
case 66:
case 67:
case 68:
case 69:
case 70:
case 71:
case 72:
case 73:
case 74:
case 75:
case 76:
case 77:
case 78:
case 79:
case 80:
{
alt66=1;
}
break;
}
switch (alt66) {
case 1 :
// Creole10.g:395:6: c=~ ( LINK_OPEN | IMAGE_OPEN | NOWIKI_OPEN | EQUAL | ESCAPE | NEWLINE | EOF )
{
c=(Token)input.LT(1);
if ( (input.LA(1)>=FORCED_END_OF_LINE && input.LA(1)<=WIKI)||(input.LA(1)>=POUND && input.LA(1)<=STAR)||(input.LA(1)>=PIPE && input.LA(1)<=ITAL)||(input.LA(1)>=EXTENSION && input.LA(1)<=FORCED_LINEBREAK)||(input.LA(1)>=NOWIKI_BLOCK_CLOSE && input.LA(1)<=80) ) {
input.consume();
errorRecovery=false;failed=false;
}
else {
if (backtracking>0) {failed=true; return text;}
MismatchedSetException mse =
new MismatchedSetException(null,input);
recoverFromMismatchedSet(input,mse,FOLLOW_set_in_heading_unformatted_text1808); throw mse;
}
if ( backtracking==0 ) {
text.append(c.getText());
}
}
break;
default :
if ( cnt66 >= 1 ) break loop66;
if (backtracking>0) {failed=true; return text;}
EarlyExitException eee =
new EarlyExitException(66, input);
throw eee;
}
cnt66++;
} while (true);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return text;
}
// $ANTLR end heading_unformatted_text
protected static class list_scope {
BaseListNode currentParent;
ListNode root;
Stack<ItemNode> parents;
int lastLevel = 1;
}
protected Stack list_stack = new Stack();
// $ANTLR start list
// Creole10.g:401:1: list returns [ListNode listNode = null] : (elem= list_elems )+ ( end_of_list )? ;
public final ListNode list() throws RecognitionException {
list_stack.push(new list_scope());
ListNode listNode = null;
((list_scope)list_stack.peek()).root = new ListNode();
if (input.LA(1) == POUND) {
((list_scope)list_stack.peek()).currentParent = new OrderedListNode(((list_scope)list_stack.peek()).root);
}
else {
((list_scope)list_stack.peek()).currentParent = new UnorderedListNode(((list_scope)list_stack.peek()).root);
}
((list_scope)list_stack.peek()).root.addChildASTNode(((list_scope)list_stack.peek()).currentParent);
((list_scope)list_stack.peek()).parents = new Stack<ItemNode>();
try {
// Creole10.g:425:4: ( (elem= list_elems )+ ( end_of_list )? )
// Creole10.g:425:4: (elem= list_elems )+ ( end_of_list )?
{
// Creole10.g:425:4: (elem= list_elems )+
int cnt67=0;
loop67:
do {
int alt67=2;
int LA67_0 = input.LA(1);
if ( (LA67_0==POUND) ) {
alt67=1;
}
else if ( (LA67_0==STAR) ) {
alt67=1;
}
switch (alt67) {
case 1 :
// Creole10.g:425:6: elem= list_elems
{
pushFollow(FOLLOW_list_elems_in_list1882);
list_elems();
_fsp--;
if (failed) return listNode;
}
break;
default :
if ( cnt67 >= 1 ) break loop67;
if (backtracking>0) {failed=true; return listNode;}
EarlyExitException eee =
new EarlyExitException(67, input);
throw eee;
}
cnt67++;
} while (true);
// Creole10.g:425:28: ( end_of_list )?
int alt68=2;
int LA68_0 = input.LA(1);
if ( (LA68_0==NEWLINE) ) {
alt68=1;
}
else if ( (LA68_0==EOF) ) {
alt68=1;
}
switch (alt68) {
case 1 :
// Creole10.g:425:30: end_of_list
{
pushFollow(FOLLOW_end_of_list_in_list1890);
end_of_list();
_fsp--;
if (failed) return listNode;
}
break;
}
}
if ( backtracking==0 ) {
listNode = ((list_scope)list_stack.peek()).root;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
list_stack.pop();
}
return listNode;
}
// $ANTLR end list
// $ANTLR start list_elems
// Creole10.g:428:1: list_elems : (om= list_ordelem_markup elem= list_elem | um= list_unordelem_markup elem= list_elem );
public final void list_elems() throws RecognitionException {
CountLevel_stack.push(new CountLevel_scope());
list_ordelem_markup_return om = null;
CollectionNode elem = null;
list_unordelem_markup_return um = null;
((CountLevel_scope)CountLevel_stack.peek()).level = 0;
try {
// Creole10.g:433:4: (om= list_ordelem_markup elem= list_elem | um= list_unordelem_markup elem= list_elem )
int alt69=2;
int LA69_0 = input.LA(1);
if ( (LA69_0==POUND) ) {
alt69=1;
}
else if ( (LA69_0==STAR) ) {
alt69=2;
}
else {
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
new NoViableAltException("428:1: list_elems : (om= list_ordelem_markup elem= list_elem | um= list_unordelem_markup elem= list_elem );", 69, 0, input);
throw nvae;
}
switch (alt69) {
case 1 :
// Creole10.g:433:4: om= list_ordelem_markup elem= list_elem
{
pushFollow(FOLLOW_list_ordelem_markup_in_list_elems1920);
om=list_ordelem_markup();
_fsp--;
if (failed) return ;
if ( backtracking==0 ) {
++((CountLevel_scope)CountLevel_stack.peek()).level;((CountLevel_scope)CountLevel_stack.peek()).currentMarkup = input.toString(om.start,om.stop);((CountLevel_scope)CountLevel_stack.peek()).groups += input.toString(om.start,om.stop);
}
pushFollow(FOLLOW_list_elem_in_list_elems1930);
elem=list_elem();
_fsp--;
if (failed) return ;
if ( backtracking==0 ) {
Stack<ItemNode> parents = ((list_scope)list_stack.peek()).parents;
ItemNode top = parents.isEmpty()?null:parents.peek();
BaseParentableNode baseParentableNode = ((list_scope)list_stack.peek()).currentParent;
if (top == null) {
OrderedListItemNode node = new OrderedListItemNode(((CountLevel_scope)CountLevel_stack.peek()).level, baseParentableNode, elem);
baseParentableNode.addChildASTNode(node);
parents.push(node);
}
else if (((CountLevel_scope)CountLevel_stack.peek()).level > ((list_scope)list_stack.peek()).lastLevel) {
OrderedListNode orderedListNode = new OrderedListNode(top);
OrderedListItemNode node = new OrderedListItemNode(((CountLevel_scope)CountLevel_stack.peek()).level, orderedListNode, elem);
orderedListNode.addChildASTNode(node);
top.addChildASTNode(orderedListNode);
parents.push(node);
}
else if (((CountLevel_scope)CountLevel_stack.peek()).level < ((list_scope)list_stack.peek()).lastLevel) {
ItemNode in = parents.peek();
while (in.getLevel() > ((CountLevel_scope)CountLevel_stack.peek()).level) {
in = parents.pop();
--((list_scope)list_stack.peek()).lastLevel;
}
top = in;
baseParentableNode = top.getBaseParentableNode();
OrderedListItemNode node = new OrderedListItemNode(((CountLevel_scope)CountLevel_stack.peek()).level, baseParentableNode, elem);
if (baseParentableNode instanceof UnorderedListItemNode) {
buildAndComposeListNode(baseParentableNode, node, true);
}
else if (baseParentableNode instanceof UnorderedListNode) {
baseParentableNode = ((UnorderedListNode)baseParentableNode).getBaseParentableNode();
buildAndComposeListNode(baseParentableNode, node, true);
}
else if (baseParentableNode instanceof OrderedListNode && top instanceof UnorderedListItemNode) {
baseParentableNode = ((OrderedListNode)baseParentableNode).getBaseParentableNode();
buildAndComposeListNode(baseParentableNode, node, true);
}
else {
baseParentableNode.addChildASTNode(node);
}
parents.push(node);
}
else {
baseParentableNode = top.getBaseParentableNode();
OrderedListItemNode node = new OrderedListItemNode(((CountLevel_scope)CountLevel_stack.peek()).level, baseParentableNode, elem);
if (baseParentableNode instanceof UnorderedListItemNode) {
buildAndComposeListNode(baseParentableNode, node, true);
}
else if (baseParentableNode instanceof UnorderedListNode) {
baseParentableNode = ((UnorderedListNode)baseParentableNode).getBaseParentableNode();
buildAndComposeListNode(baseParentableNode, node, true);
}
else if (baseParentableNode instanceof OrderedListNode && top instanceof UnorderedListItemNode) {
baseParentableNode = ((OrderedListNode)baseParentableNode).getBaseParentableNode();
buildAndComposeListNode(baseParentableNode, node, true);
}
else {
baseParentableNode.addChildASTNode(node);
}
parents.pop();
parents.push(node);
}
((list_scope)list_stack.peek()).lastLevel = ((CountLevel_scope)CountLevel_stack.peek()).level;
}
}
break;
case 2 :
// Creole10.g:521:4: um= list_unordelem_markup elem= list_elem
{
pushFollow(FOLLOW_list_unordelem_markup_in_list_elems1941);
um=list_unordelem_markup();
_fsp--;
if (failed) return ;
if ( backtracking==0 ) {
++((CountLevel_scope)CountLevel_stack.peek()).level; ((CountLevel_scope)CountLevel_stack.peek()).currentMarkup = input.toString(um.start,um.stop);((CountLevel_scope)CountLevel_stack.peek()).groups += input.toString(um.start,um.stop);
}
pushFollow(FOLLOW_list_elem_in_list_elems1951);
elem=list_elem();
_fsp--;
if (failed) return ;
if ( backtracking==0 ) {
Stack<ItemNode> parents = ((list_scope)list_stack.peek()).parents;
ItemNode top = parents.isEmpty()?null:parents.peek();
BaseParentableNode baseParentableNode = ((list_scope)list_stack.peek()).currentParent;
if (top == null) {
UnorderedListItemNode node = new UnorderedListItemNode(((CountLevel_scope)CountLevel_stack.peek()).level, baseParentableNode, elem);
baseParentableNode.addChildASTNode(node);
parents.push(node);
}
else if (((CountLevel_scope)CountLevel_stack.peek()).level > ((list_scope)list_stack.peek()).lastLevel) {
UnorderedListNode unorderedListNode = new UnorderedListNode(top);
UnorderedListItemNode node = new UnorderedListItemNode(((CountLevel_scope)CountLevel_stack.peek()).level, unorderedListNode, elem);
unorderedListNode.addChildASTNode(node);
top.addChildASTNode(unorderedListNode);
parents.push(node);
}
else if (((CountLevel_scope)CountLevel_stack.peek()).level < ((list_scope)list_stack.peek()).lastLevel) {
ItemNode in = parents.peek();
while (in.getLevel() > ((CountLevel_scope)CountLevel_stack.peek()).level) {
in = parents.pop();
--((list_scope)list_stack.peek()).lastLevel;
}
top = in;
baseParentableNode = top.getBaseParentableNode();
UnorderedListItemNode node = new UnorderedListItemNode(((CountLevel_scope)CountLevel_stack.peek()).level, baseParentableNode, elem);
if (baseParentableNode instanceof OrderedListItemNode) {
buildAndComposeListNode(baseParentableNode, node, false);
}
else if (baseParentableNode instanceof OrderedListNode) {
baseParentableNode = ((OrderedListNode)baseParentableNode).getBaseParentableNode();
buildAndComposeListNode(baseParentableNode, node, false);
}
else if (baseParentableNode instanceof UnorderedListNode && top instanceof OrderedListItemNode) {
baseParentableNode = ((UnorderedListNode)baseParentableNode).getBaseParentableNode();
buildAndComposeListNode(baseParentableNode, node, false);
}
else {
baseParentableNode.addChildASTNode(node);
}
parents.push(node);
}
else {
baseParentableNode = top.getBaseParentableNode();
UnorderedListItemNode node = new UnorderedListItemNode(((CountLevel_scope)CountLevel_stack.peek()).level, baseParentableNode, elem);
if (baseParentableNode instanceof OrderedListItemNode) {
buildAndComposeListNode(baseParentableNode, node, false);
}
else if (baseParentableNode instanceof OrderedListNode ) {
baseParentableNode = ((OrderedListNode)baseParentableNode).getBaseParentableNode();
buildAndComposeListNode(baseParentableNode, node, false);
}
else if (baseParentableNode instanceof UnorderedListNode && top instanceof OrderedListItemNode) {
baseParentableNode = ((UnorderedListNode)baseParentableNode).getBaseParentableNode();
buildAndComposeListNode(baseParentableNode, node, false);
}
else {
baseParentableNode.addChildASTNode(node);
}
parents.pop();
parents.push(node);
}
((list_scope)list_stack.peek()).lastLevel = ((CountLevel_scope)CountLevel_stack.peek()).level;
}
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
CountLevel_stack.pop();
}
return ;
}
// $ANTLR end list_elems
// $ANTLR start list_elem
// Creole10.g:611:1: list_elem returns [CollectionNode items = null] : (m= list_elem_markup )* c= list_elemcontent list_elemseparator ;
public final CollectionNode list_elem() throws RecognitionException {
CollectionNode items = null;
list_elem_markup_return m = null;
CollectionNode c = null;
try {
// Creole10.g:612:4: ( (m= list_elem_markup )* c= list_elemcontent list_elemseparator )
// Creole10.g:612:4: (m= list_elem_markup )* c= list_elemcontent list_elemseparator
{
// Creole10.g:612:4: (m= list_elem_markup )*
loop70:
do {
int alt70=2;
int LA70_0 = input.LA(1);
if ( (LA70_0==STAR) ) {
alt70=1;
}
else if ( (LA70_0==POUND) ) {
alt70=1;
}
switch (alt70) {
case 1 :
// Creole10.g:612:6: m= list_elem_markup
{
pushFollow(FOLLOW_list_elem_markup_in_list_elem1974);
m=list_elem_markup();
_fsp--;
if (failed) return items;
if ( backtracking==0 ) {
++((CountLevel_scope)CountLevel_stack.peek()).level;
if (!input.toString(m.start,m.stop).equals(((CountLevel_scope)CountLevel_stack.peek()).currentMarkup)) {
((CountLevel_scope)CountLevel_stack.peek()).groups+= GROUPING_SEPARATOR;
}
((CountLevel_scope)CountLevel_stack.peek()).groups+= input.toString(m.start,m.stop);
((CountLevel_scope)CountLevel_stack.peek()).currentMarkup = input.toString(m.start,m.stop);
}
}
break;
default :
break loop70;
}
} while (true);
pushFollow(FOLLOW_list_elemcontent_in_list_elem1985);
c=list_elemcontent();
_fsp--;
if (failed) return items;
if ( backtracking==0 ) {
items = c;
}
pushFollow(FOLLOW_list_elemseparator_in_list_elem1990);
list_elemseparator();
_fsp--;
if (failed) return items;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return items;
}
// $ANTLR end list_elem
public static class list_elem_markup_return extends ParserRuleReturnScope {
};
// $ANTLR start list_elem_markup
// Creole10.g:621:1: list_elem_markup : ( list_ordelem_markup | list_unordelem_markup );
public final list_elem_markup_return list_elem_markup() throws RecognitionException {
list_elem_markup_return retval = new list_elem_markup_return();
retval.start = input.LT(1);
try {
// Creole10.g:622:4: ( list_ordelem_markup | list_unordelem_markup )
int alt71=2;
int LA71_0 = input.LA(1);
if ( (LA71_0==POUND) ) {
alt71=1;
}
else if ( (LA71_0==STAR) ) {
alt71=2;
}
else {
if (backtracking>0) {failed=true; return retval;}
NoViableAltException nvae =
new NoViableAltException("621:1: list_elem_markup : ( list_ordelem_markup | list_unordelem_markup );", 71, 0, input);
throw nvae;
}
switch (alt71) {
case 1 :
// Creole10.g:622:4: list_ordelem_markup
{
pushFollow(FOLLOW_list_ordelem_markup_in_list_elem_markup2000);
list_ordelem_markup();
_fsp--;
if (failed) return retval;
}
break;
case 2 :
// Creole10.g:623:4: list_unordelem_markup
{
pushFollow(FOLLOW_list_unordelem_markup_in_list_elem_markup2005);
list_unordelem_markup();
_fsp--;
if (failed) return retval;
}
break;
}
retval.stop = input.LT(-1);
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return retval;
}
// $ANTLR end list_elem_markup
// $ANTLR start list_elemcontent
// Creole10.g:625:1: list_elemcontent returns [CollectionNode items = new CollectionNode()] : onestar (part= list_elemcontentpart onestar )* ;
public final CollectionNode list_elemcontent() throws RecognitionException {
CollectionNode items = new CollectionNode();
ASTNode part = null;
try {
// Creole10.g:626:4: ( onestar (part= list_elemcontentpart onestar )* )
// Creole10.g:626:4: onestar (part= list_elemcontentpart onestar )*
{
pushFollow(FOLLOW_onestar_in_list_elemcontent2019);
onestar();
_fsp--;
if (failed) return items;
// Creole10.g:626:13: (part= list_elemcontentpart onestar )*
loop72:
do {
int alt72=2;
int LA72_0 = input.LA(1);
if ( ((LA72_0>=FORCED_END_OF_LINE && LA72_0<=WIKI)||(LA72_0>=POUND && LA72_0<=80)) ) {
alt72=1;
}
switch (alt72) {
case 1 :
// Creole10.g:626:15: part= list_elemcontentpart onestar
{
pushFollow(FOLLOW_list_elemcontentpart_in_list_elemcontent2028);
part=list_elemcontentpart();
_fsp--;
if (failed) return items;
if ( backtracking==0 ) {
items.add(part);
}
pushFollow(FOLLOW_onestar_in_list_elemcontent2033);
onestar();
_fsp--;
if (failed) return items;
}
break;
default :
break loop72;
}
} while (true);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return items;
}
// $ANTLR end list_elemcontent
// $ANTLR start list_elemcontentpart
// Creole10.g:628:1: list_elemcontentpart returns [ASTNode node = null] : (tuf= text_unformattedelement | tf= list_formatted_elem );
public final ASTNode list_elemcontentpart() throws RecognitionException {
ASTNode node = null;
ASTNode tuf = null;
CollectionNode tf = null;
try {
// Creole10.g:629:4: (tuf= text_unformattedelement | tf= list_formatted_elem )
int alt73=2;
int LA73_0 = input.LA(1);
if ( ((LA73_0>=FORCED_END_OF_LINE && LA73_0<=WIKI)||LA73_0==POUND||(LA73_0>=EQUAL && LA73_0<=PIPE)||(LA73_0>=LINK_OPEN && LA73_0<=80)) ) {
alt73=1;
}
else if ( (LA73_0==STAR||LA73_0==ITAL) ) {
alt73=2;
}
else {
if (backtracking>0) {failed=true; return node;}
NoViableAltException nvae =
new NoViableAltException("628:1: list_elemcontentpart returns [ASTNode node = null] : (tuf= text_unformattedelement | tf= list_formatted_elem );", 73, 0, input);
throw nvae;
}
switch (alt73) {
case 1 :
// Creole10.g:629:4: tuf= text_unformattedelement
{
pushFollow(FOLLOW_text_unformattedelement_in_list_elemcontentpart2054);
tuf=text_unformattedelement();
_fsp--;
if (failed) return node;
if ( backtracking==0 ) {
if (tuf instanceof CollectionNode)
node = new UnformattedTextNode(tuf);
else
node = tuf;
}
}
break;
case 2 :
// Creole10.g:635:4: tf= list_formatted_elem
{
pushFollow(FOLLOW_list_formatted_elem_in_list_elemcontentpart2065);
tf=list_formatted_elem();
_fsp--;
if (failed) return node;
if ( backtracking==0 ) {
node = new FormattedTextNode(tf);
}
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return node;
}
// $ANTLR end list_elemcontentpart
// $ANTLR start list_formatted_elem
// Creole10.g:637:1: list_formatted_elem returns [CollectionNode contents = new CollectionNode()] : ( bold_markup onestar (boldContents= list_boldcontentpart onestar )* ( bold_markup )? | ital_markup onestar (italContents= list_italcontentpart onestar )* ( ital_markup )? );
public final CollectionNode list_formatted_elem() throws RecognitionException {
CollectionNode contents = new CollectionNode();
ASTNode boldContents = null;
ASTNode italContents = null;
try {
// Creole10.g:638:4: ( bold_markup onestar (boldContents= list_boldcontentpart onestar )* ( bold_markup )? | ital_markup onestar (italContents= list_italcontentpart onestar )* ( ital_markup )? )
int alt78=2;
int LA78_0 = input.LA(1);
if ( (LA78_0==STAR) ) {
alt78=1;
}
else if ( (LA78_0==ITAL) ) {
alt78=2;
}
else {
if (backtracking>0) {failed=true; return contents;}
NoViableAltException nvae =
new NoViableAltException("637:1: list_formatted_elem returns [CollectionNode contents = new CollectionNode()] : ( bold_markup onestar (boldContents= list_boldcontentpart onestar )* ( bold_markup )? | ital_markup onestar (italContents= list_italcontentpart onestar )* ( ital_markup )? );", 78, 0, input);
throw nvae;
}
switch (alt78) {
case 1 :
// Creole10.g:638:4: bold_markup onestar (boldContents= list_boldcontentpart onestar )* ( bold_markup )?
{
pushFollow(FOLLOW_bold_markup_in_list_formatted_elem2081);
bold_markup();
_fsp--;
if (failed) return contents;
pushFollow(FOLLOW_onestar_in_list_formatted_elem2084);
onestar();
_fsp--;
if (failed) return contents;
// Creole10.g:638:26: (boldContents= list_boldcontentpart onestar )*
loop74:
do {
int alt74=2;
switch ( input.LA(1) ) {
case FORCED_END_OF_LINE:
case HEADING_SECTION:
case HORIZONTAL_SECTION:
case LIST_ITEM:
case LIST_ITEM_PART:
case NOWIKI_SECTION:
case SCAPE_NODE:
case TEXT_NODE:
case UNORDERED_LIST:
case UNFORMATTED_TEXT:
case WIKI:
case POUND:
case EQUAL:
case PIPE:
case NOWIKI_BLOCK_CLOSE:
case NOWIKI_CLOSE:
case LINK_CLOSE:
case IMAGE_CLOSE:
case BLANKS:
case DASH:
case CR:
case LF:
case SPACE:
case TABULATOR:
case BRACE_CLOSE:
case COLON_SLASH:
case SLASH:
case INSIGNIFICANT_CHAR:
case 41:
case 42:
case 43:
case 44:
case 45:
case 46:
case 47:
case 48:
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 56:
case 57:
case 58:
case 59:
case 60:
case 61:
case 62:
case 63:
case 64:
case 65:
case 66:
case 67:
case 68:
case 69:
case 70:
case 71:
case 72:
case 73:
case 74:
case 75:
case 76:
case 77:
case 78:
case 79:
case 80:
{
alt74=1;
}
break;
case FORCED_LINEBREAK:
{
alt74=1;
}
break;
case ESCAPE:
{
alt74=1;
}
break;
case LINK_OPEN:
{
alt74=1;
}
break;
case IMAGE_OPEN:
{
alt74=1;
}
break;
case EXTENSION:
{
alt74=1;
}
break;
case NOWIKI_OPEN:
{
alt74=1;
}
break;
case ITAL:
{
alt74=1;
}
break;
}
switch (alt74) {
case 1 :
// Creole10.g:638:28: boldContents= list_boldcontentpart onestar
{
pushFollow(FOLLOW_list_boldcontentpart_in_list_formatted_elem2093);
boldContents=list_boldcontentpart();
_fsp--;
if (failed) return contents;
if ( backtracking==0 ) {
BoldTextNode add = null;
if (boldContents instanceof CollectionNode){
add = new BoldTextNode(boldContents);
}
else {
CollectionNode c = new CollectionNode();
c.add(boldContents);
add = new BoldTextNode(c);
}
contents.add(add);
}
pushFollow(FOLLOW_onestar_in_list_formatted_elem2102);
onestar();
_fsp--;
if (failed) return contents;
}
break;
default :
break loop74;
}
} while (true);
// Creole10.g:651:3: ( bold_markup )?
int alt75=2;
int LA75_0 = input.LA(1);
if ( (LA75_0==STAR) ) {
int LA75_1 = input.LA(2);
if ( (LA75_1==STAR) ) {
alt75=1;
}
}
switch (alt75) {
case 1 :
// Creole10.g:651:5: bold_markup
{
pushFollow(FOLLOW_bold_markup_in_list_formatted_elem2111);
bold_markup();
_fsp--;
if (failed) return contents;
}
break;
}
}
break;
case 2 :
// Creole10.g:652:4: ital_markup onestar (italContents= list_italcontentpart onestar )* ( ital_markup )?
{
pushFollow(FOLLOW_ital_markup_in_list_formatted_elem2119);
ital_markup();
_fsp--;
if (failed) return contents;
pushFollow(FOLLOW_onestar_in_list_formatted_elem2124);
onestar();
_fsp--;
if (failed) return contents;
// Creole10.g:652:28: (italContents= list_italcontentpart onestar )*
loop76:
do {
int alt76=2;
switch ( input.LA(1) ) {
case STAR:
{
alt76=1;
}
break;
case FORCED_END_OF_LINE:
case HEADING_SECTION:
case HORIZONTAL_SECTION:
case LIST_ITEM:
case LIST_ITEM_PART:
case NOWIKI_SECTION:
case SCAPE_NODE:
case TEXT_NODE:
case UNORDERED_LIST:
case UNFORMATTED_TEXT:
case WIKI:
case POUND:
case EQUAL:
case PIPE:
case NOWIKI_BLOCK_CLOSE:
case NOWIKI_CLOSE:
case LINK_CLOSE:
case IMAGE_CLOSE:
case BLANKS:
case DASH:
case CR:
case LF:
case SPACE:
case TABULATOR:
case BRACE_CLOSE:
case COLON_SLASH:
case SLASH:
case INSIGNIFICANT_CHAR:
case 41:
case 42:
case 43:
case 44:
case 45:
case 46:
case 47:
case 48:
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 56:
case 57:
case 58:
case 59:
case 60:
case 61:
case 62:
case 63:
case 64:
case 65:
case 66:
case 67:
case 68:
case 69:
case 70:
case 71:
case 72:
case 73:
case 74:
case 75:
case 76:
case 77:
case 78:
case 79:
case 80:
{
alt76=1;
}
break;
case FORCED_LINEBREAK:
{
alt76=1;
}
break;
case ESCAPE:
{
alt76=1;
}
break;
case LINK_OPEN:
{
alt76=1;
}
break;
case IMAGE_OPEN:
{
alt76=1;
}
break;
case EXTENSION:
{
alt76=1;
}
break;
case NOWIKI_OPEN:
{
alt76=1;
}
break;
}
switch (alt76) {
case 1 :
// Creole10.g:652:30: italContents= list_italcontentpart onestar
{
pushFollow(FOLLOW_list_italcontentpart_in_list_formatted_elem2133);
italContents=list_italcontentpart();
_fsp--;
if (failed) return contents;
if ( backtracking==0 ) {
ItalicTextNode add = null;
if (italContents instanceof CollectionNode){
add = new ItalicTextNode(italContents);
}
else {
CollectionNode c = new CollectionNode();
c.add(italContents);
add = new ItalicTextNode(c);
}
contents.add(add);
}
pushFollow(FOLLOW_onestar_in_list_formatted_elem2142);
onestar();
_fsp--;
if (failed) return contents;
}
break;
default :
break loop76;
}
} while (true);
// Creole10.g:664:3: ( ital_markup )?
int alt77=2;
int LA77_0 = input.LA(1);
if ( (LA77_0==ITAL) ) {
alt77=1;
}
switch (alt77) {
case 1 :
// Creole10.g:664:5: ital_markup
{
pushFollow(FOLLOW_ital_markup_in_list_formatted_elem2151);
ital_markup();
_fsp--;
if (failed) return contents;
}
break;
}
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return contents;
}
// $ANTLR end list_formatted_elem
protected static class list_boldcontentpart_scope {
List<ASTNode> elements;
}
protected Stack list_boldcontentpart_stack = new Stack();
// $ANTLR start list_boldcontentpart
// Creole10.g:667:1: list_boldcontentpart returns [ASTNode contents = null] : ( ital_markup c= list_bolditalcontent ( ital_markup )? | (t= text_unformattedelement )+ );
public final ASTNode list_boldcontentpart() throws RecognitionException {
list_boldcontentpart_stack.push(new list_boldcontentpart_scope());
ASTNode contents = null;
ASTNode c = null;
ASTNode t = null;
((list_boldcontentpart_scope)list_boldcontentpart_stack.peek()).elements = new ArrayList<ASTNode>();
try {
// Creole10.g:674:4: ( ital_markup c= list_bolditalcontent ( ital_markup )? | (t= text_unformattedelement )+ )
int alt81=2;
int LA81_0 = input.LA(1);
if ( (LA81_0==ITAL) ) {
alt81=1;
}
else if ( ((LA81_0>=FORCED_END_OF_LINE && LA81_0<=WIKI)||LA81_0==POUND||(LA81_0>=EQUAL && LA81_0<=PIPE)||(LA81_0>=LINK_OPEN && LA81_0<=80)) ) {
alt81=2;
}
else {
if (backtracking>0) {failed=true; return contents;}
NoViableAltException nvae =
new NoViableAltException("667:1: list_boldcontentpart returns [ASTNode contents = null] : ( ital_markup c= list_bolditalcontent ( ital_markup )? | (t= text_unformattedelement )+ );", 81, 0, input);
throw nvae;
}
switch (alt81) {
case 1 :
// Creole10.g:674:4: ital_markup c= list_bolditalcontent ( ital_markup )?
{
pushFollow(FOLLOW_ital_markup_in_list_boldcontentpart2177);
ital_markup();
_fsp--;
if (failed) return contents;
pushFollow(FOLLOW_list_bolditalcontent_in_list_boldcontentpart2184);
c=list_bolditalcontent();
_fsp--;
if (failed) return contents;
if ( backtracking==0 ) {
contents = new ItalicTextNode(c);
}
// Creole10.g:674:86: ( ital_markup )?
int alt79=2;
int LA79_0 = input.LA(1);
if ( (LA79_0==ITAL) ) {
alt79=1;
}
switch (alt79) {
case 1 :
// Creole10.g:674:88: ital_markup
{
pushFollow(FOLLOW_ital_markup_in_list_boldcontentpart2191);
ital_markup();
_fsp--;
if (failed) return contents;
}
break;
}
}
break;
case 2 :
// Creole10.g:675:4: (t= text_unformattedelement )+
{
// Creole10.g:675:4: (t= text_unformattedelement )+
int cnt80=0;
loop80:
do {
int alt80=2;
switch ( input.LA(1) ) {
case FORCED_END_OF_LINE:
case HEADING_SECTION:
case HORIZONTAL_SECTION:
case LIST_ITEM:
case LIST_ITEM_PART:
case NOWIKI_SECTION:
case SCAPE_NODE:
case TEXT_NODE:
case UNORDERED_LIST:
case UNFORMATTED_TEXT:
case WIKI:
case POUND:
case EQUAL:
case PIPE:
case NOWIKI_BLOCK_CLOSE:
case NOWIKI_CLOSE:
case LINK_CLOSE:
case IMAGE_CLOSE:
case BLANKS:
case DASH:
case CR:
case LF:
case SPACE:
case TABULATOR:
case BRACE_CLOSE:
case COLON_SLASH:
case SLASH:
case INSIGNIFICANT_CHAR:
case 41:
case 42:
case 43:
case 44:
case 45:
case 46:
case 47:
case 48:
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 56:
case 57:
case 58:
case 59:
case 60:
case 61:
case 62:
case 63:
case 64:
case 65:
case 66:
case 67:
case 68:
case 69:
case 70:
case 71:
case 72:
case 73:
case 74:
case 75:
case 76:
case 77:
case 78:
case 79:
case 80:
{
alt80=1;
}
break;
case FORCED_LINEBREAK:
{
alt80=1;
}
break;
case ESCAPE:
{
alt80=1;
}
break;
case LINK_OPEN:
{
alt80=1;
}
break;
case IMAGE_OPEN:
{
alt80=1;
}
break;
case EXTENSION:
{
alt80=1;
}
break;
case NOWIKI_OPEN:
{
alt80=1;
}
break;
}
switch (alt80) {
case 1 :
// Creole10.g:675:6: t= text_unformattedelement
{
pushFollow(FOLLOW_text_unformattedelement_in_list_boldcontentpart2205);
t=text_unformattedelement();
_fsp--;
if (failed) return contents;
if ( backtracking==0 ) {
((list_boldcontentpart_scope)list_boldcontentpart_stack.peek()).elements.add(t);
}
}
break;
default :
if ( cnt80 >= 1 ) break loop80;
if (backtracking>0) {failed=true; return contents;}
EarlyExitException eee =
new EarlyExitException(80, input);
throw eee;
}
cnt80++;
} while (true);
if ( backtracking==0 ) {
contents = new CollectionNode(((list_boldcontentpart_scope)list_boldcontentpart_stack.peek()).elements);
}
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
list_boldcontentpart_stack.pop();
}
return contents;
}
// $ANTLR end list_boldcontentpart
// $ANTLR start list_bolditalcontent
// Creole10.g:679:1: list_bolditalcontent returns [ASTNode text = null] : (t= text_unformattedelement )+ ;
public final ASTNode list_bolditalcontent() throws RecognitionException {
ASTNode text = null;
ASTNode t = null;
try {
// Creole10.g:680:4: ( (t= text_unformattedelement )+ )
// Creole10.g:680:4: (t= text_unformattedelement )+
{
// Creole10.g:680:4: (t= text_unformattedelement )+
int cnt82=0;
loop82:
do {
int alt82=2;
switch ( input.LA(1) ) {
case FORCED_END_OF_LINE:
case HEADING_SECTION:
case HORIZONTAL_SECTION:
case LIST_ITEM:
case LIST_ITEM_PART:
case NOWIKI_SECTION:
case SCAPE_NODE:
case TEXT_NODE:
case UNORDERED_LIST:
case UNFORMATTED_TEXT:
case WIKI:
case POUND:
case EQUAL:
case PIPE:
case NOWIKI_BLOCK_CLOSE:
case NOWIKI_CLOSE:
case LINK_CLOSE:
case IMAGE_CLOSE:
case BLANKS:
case DASH:
case CR:
case LF:
case SPACE:
case TABULATOR:
case BRACE_CLOSE:
case COLON_SLASH:
case SLASH:
case INSIGNIFICANT_CHAR:
case 41:
case 42:
case 43:
case 44:
case 45:
case 46:
case 47:
case 48:
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 56:
case 57:
case 58:
case 59:
case 60:
case 61:
case 62:
case 63:
case 64:
case 65:
case 66:
case 67:
case 68:
case 69:
case 70:
case 71:
case 72:
case 73:
case 74:
case 75:
case 76:
case 77:
case 78:
case 79:
case 80:
{
alt82=1;
}
break;
case FORCED_LINEBREAK:
{
alt82=1;
}
break;
case ESCAPE:
{
alt82=1;
}
break;
case LINK_OPEN:
{
alt82=1;
}
break;
case IMAGE_OPEN:
{
alt82=1;
}
break;
case EXTENSION:
{
alt82=1;
}
break;
case NOWIKI_OPEN:
{
alt82=1;
}
break;
}
switch (alt82) {
case 1 :
// Creole10.g:680:6: t= text_unformattedelement
{
pushFollow(FOLLOW_text_unformattedelement_in_list_bolditalcontent2236);
t=text_unformattedelement();
_fsp--;
if (failed) return text;
if ( backtracking==0 ) {
text = t;
}
}
break;
default :
if ( cnt82 >= 1 ) break loop82;
if (backtracking>0) {failed=true; return text;}
EarlyExitException eee =
new EarlyExitException(82, input);
throw eee;
}
cnt82++;
} while (true);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return text;
}
// $ANTLR end list_bolditalcontent
protected static class list_italcontentpart_scope {
List<ASTNode> elements;
}
protected Stack list_italcontentpart_stack = new Stack();
// $ANTLR start list_italcontentpart
// Creole10.g:683:1: list_italcontentpart returns [ASTNode contents = null] : ( bold_markup c= list_bolditalcontent ( bold_markup )? | (t= text_unformattedelement )+ );
public final ASTNode list_italcontentpart() throws RecognitionException {
list_italcontentpart_stack.push(new list_italcontentpart_scope());
ASTNode contents = null;
ASTNode c = null;
ASTNode t = null;
((list_italcontentpart_scope)list_italcontentpart_stack.peek()).elements = new ArrayList<ASTNode>();
try {
// Creole10.g:690:4: ( bold_markup c= list_bolditalcontent ( bold_markup )? | (t= text_unformattedelement )+ )
int alt85=2;
int LA85_0 = input.LA(1);
if ( (LA85_0==STAR) ) {
alt85=1;
}
else if ( ((LA85_0>=FORCED_END_OF_LINE && LA85_0<=WIKI)||LA85_0==POUND||(LA85_0>=EQUAL && LA85_0<=PIPE)||(LA85_0>=LINK_OPEN && LA85_0<=80)) ) {
alt85=2;
}
else {
if (backtracking>0) {failed=true; return contents;}
NoViableAltException nvae =
new NoViableAltException("683:1: list_italcontentpart returns [ASTNode contents = null] : ( bold_markup c= list_bolditalcontent ( bold_markup )? | (t= text_unformattedelement )+ );", 85, 0, input);
throw nvae;
}
switch (alt85) {
case 1 :
// Creole10.g:690:4: bold_markup c= list_bolditalcontent ( bold_markup )?
{
pushFollow(FOLLOW_bold_markup_in_list_italcontentpart2264);
bold_markup();
_fsp--;
if (failed) return contents;
pushFollow(FOLLOW_list_bolditalcontent_in_list_italcontentpart2271);
c=list_bolditalcontent();
_fsp--;
if (failed) return contents;
if ( backtracking==0 ) {
contents = new BoldTextNode(c);
}
// Creole10.g:690:86: ( bold_markup )?
int alt83=2;
int LA83_0 = input.LA(1);
if ( (LA83_0==STAR) ) {
int LA83_1 = input.LA(2);
if ( (LA83_1==STAR) ) {
alt83=1;
}
}
switch (alt83) {
case 1 :
// Creole10.g:690:88: bold_markup
{
pushFollow(FOLLOW_bold_markup_in_list_italcontentpart2278);
bold_markup();
_fsp--;
if (failed) return contents;
}
break;
}
}
break;
case 2 :
// Creole10.g:691:4: (t= text_unformattedelement )+
{
// Creole10.g:691:4: (t= text_unformattedelement )+
int cnt84=0;
loop84:
do {
int alt84=2;
switch ( input.LA(1) ) {
case FORCED_END_OF_LINE:
case HEADING_SECTION:
case HORIZONTAL_SECTION:
case LIST_ITEM:
case LIST_ITEM_PART:
case NOWIKI_SECTION:
case SCAPE_NODE:
case TEXT_NODE:
case UNORDERED_LIST:
case UNFORMATTED_TEXT:
case WIKI:
case POUND:
case EQUAL:
case PIPE:
case NOWIKI_BLOCK_CLOSE:
case NOWIKI_CLOSE:
case LINK_CLOSE:
case IMAGE_CLOSE:
case BLANKS:
case DASH:
case CR:
case LF:
case SPACE:
case TABULATOR:
case BRACE_CLOSE:
case COLON_SLASH:
case SLASH:
case INSIGNIFICANT_CHAR:
case 41:
case 42:
case 43:
case 44:
case 45:
case 46:
case 47:
case 48:
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 56:
case 57:
case 58:
case 59:
case 60:
case 61:
case 62:
case 63:
case 64:
case 65:
case 66:
case 67:
case 68:
case 69:
case 70:
case 71:
case 72:
case 73:
case 74:
case 75:
case 76:
case 77:
case 78:
case 79:
case 80:
{
alt84=1;
}
break;
case FORCED_LINEBREAK:
{
alt84=1;
}
break;
case ESCAPE:
{
alt84=1;
}
break;
case LINK_OPEN:
{
alt84=1;
}
break;
case IMAGE_OPEN:
{
alt84=1;
}
break;
case EXTENSION:
{
alt84=1;
}
break;
case NOWIKI_OPEN:
{
alt84=1;
}
break;
}
switch (alt84) {
case 1 :
// Creole10.g:691:6: t= text_unformattedelement
{
pushFollow(FOLLOW_text_unformattedelement_in_list_italcontentpart2292);
t=text_unformattedelement();
_fsp--;
if (failed) return contents;
if ( backtracking==0 ) {
((list_italcontentpart_scope)list_italcontentpart_stack.peek()).elements.add(t);
}
}
break;
default :
if ( cnt84 >= 1 ) break loop84;
if (backtracking>0) {failed=true; return contents;}
EarlyExitException eee =
new EarlyExitException(84, input);
throw eee;
}
cnt84++;
} while (true);
if ( backtracking==0 ) {
contents = new CollectionNode(((list_italcontentpart_scope)list_italcontentpart_stack.peek()).elements);
}
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
list_italcontentpart_stack.pop();
}
return contents;
}
// $ANTLR end list_italcontentpart
// $ANTLR start table
// Creole10.g:695:1: table returns [TableNode table = new TableNode()] : (tr= table_row )+ ;
public final TableNode table() throws RecognitionException {
TableNode table = new TableNode();
CollectionNode tr = null;
try {
// Creole10.g:696:4: ( (tr= table_row )+ )
// Creole10.g:696:4: (tr= table_row )+
{
// Creole10.g:696:4: (tr= table_row )+
int cnt86=0;
loop86:
do {
int alt86=2;
int LA86_0 = input.LA(1);
if ( (LA86_0==PIPE) ) {
alt86=1;
}
switch (alt86) {
case 1 :
// Creole10.g:696:6: tr= table_row
{
pushFollow(FOLLOW_table_row_in_table2320);
tr=table_row();
_fsp--;
if (failed) return table;
if ( backtracking==0 ) {
table.addChildASTNode(tr);
}
}
break;
default :
if ( cnt86 >= 1 ) break loop86;
if (backtracking>0) {failed=true; return table;}
EarlyExitException eee =
new EarlyExitException(86, input);
throw eee;
}
cnt86++;
} while (true);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return table;
}
// $ANTLR end table
// $ANTLR start table_row
// Creole10.g:698:1: table_row returns [CollectionNode row = new CollectionNode()] : ({...}? table_cell | tc= table_cell )+ table_rowseparator ;
public final CollectionNode table_row() throws RecognitionException {
CollectionNode row = new CollectionNode();
TableCellNode tc = null;
try {
// Creole10.g:699:4: ( ({...}? table_cell | tc= table_cell )+ table_rowseparator )
// Creole10.g:699:4: ({...}? table_cell | tc= table_cell )+ table_rowseparator
{
// Creole10.g:699:4: ({...}? table_cell | tc= table_cell )+
int cnt87=0;
loop87:
do {
int alt87=3;
int LA87_0 = input.LA(1);
if ( (LA87_0==PIPE) ) {
int LA87_2 = input.LA(2);
if ( ((( input.LA(1) == PIPE && input.LA(2) == PIPE && input.LA(2) == EQUAL )|| input.LA(1) == PIPE && input.LA(2) == PIPE )) ) {
alt87=1;
}
else if ( (true) ) {
alt87=2;
}
}
switch (alt87) {
case 1 :
// Creole10.g:699:6: {...}? table_cell
{
if ( !( input.LA(1) == PIPE && input.LA(2) == PIPE ) ) {
if (backtracking>0) {failed=true; return row;}
throw new FailedPredicateException(input, "table_row", " input.LA(1) == PIPE && input.LA(2) == PIPE ");
}
pushFollow(FOLLOW_table_cell_in_table_row2346);
table_cell();
_fsp--;
if (failed) return row;
if ( backtracking==0 ) {
CollectionNode cn = new CollectionNode();
cn.add(new UnformattedTextNode(" "));
TableCellNode space = new TableDataNode(cn);
row.add(space);
}
}
break;
case 2 :
// Creole10.g:706:6: tc= table_cell
{
pushFollow(FOLLOW_table_cell_in_table_row2359);
tc=table_cell();
_fsp--;
if (failed) return row;
if ( backtracking==0 ) {
row.add(tc);
}
}
break;
default :
if ( cnt87 >= 1 ) break loop87;
if (backtracking>0) {failed=true; return row;}
EarlyExitException eee =
new EarlyExitException(87, input);
throw eee;
}
cnt87++;
} while (true);
pushFollow(FOLLOW_table_rowseparator_in_table_row2368);
table_rowseparator();
_fsp--;
if (failed) return row;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return row;
}
// $ANTLR end table_row
// $ANTLR start table_cell
// Creole10.g:709:1: table_cell returns [TableCellNode cell = null] : ({...}?th= table_headercell | tc= table_normalcell );
public final TableCellNode table_cell() throws RecognitionException {
TableCellNode cell = null;
TableHeaderNode th = null;
TableDataNode tc = null;
try {
// Creole10.g:710:4: ({...}?th= table_headercell | tc= table_normalcell )
int alt88=2;
int LA88_0 = input.LA(1);
if ( (LA88_0==PIPE) ) {
int LA88_1 = input.LA(2);
if ( (LA88_1==EQUAL) ) {
int LA88_2 = input.LA(3);
if ( ( input.LA(2) == EQUAL ) ) {
alt88=1;
}
else if ( (true) ) {
alt88=2;
}
else {
if (backtracking>0) {failed=true; return cell;}
NoViableAltException nvae =
new NoViableAltException("709:1: table_cell returns [TableCellNode cell = null] : ({...}?th= table_headercell | tc= table_normalcell );", 88, 2, input);
throw nvae;
}
}
else if ( (LA88_1==EOF||(LA88_1>=FORCED_END_OF_LINE && LA88_1<=STAR)||(LA88_1>=PIPE && LA88_1<=80)) ) {
alt88=2;
}
else {
if (backtracking>0) {failed=true; return cell;}
NoViableAltException nvae =
new NoViableAltException("709:1: table_cell returns [TableCellNode cell = null] : ({...}?th= table_headercell | tc= table_normalcell );", 88, 1, input);
throw nvae;
}
}
else {
if (backtracking>0) {failed=true; return cell;}
NoViableAltException nvae =
new NoViableAltException("709:1: table_cell returns [TableCellNode cell = null] : ({...}?th= table_headercell | tc= table_normalcell );", 88, 0, input);
throw nvae;
}
switch (alt88) {
case 1 :
// Creole10.g:710:4: {...}?th= table_headercell
{
if ( !( input.LA(2) == EQUAL ) ) {
if (backtracking>0) {failed=true; return cell;}
throw new FailedPredicateException(input, "table_cell", " input.LA(2) == EQUAL ");
}
pushFollow(FOLLOW_table_headercell_in_table_cell2389);
th=table_headercell();
_fsp--;
if (failed) return cell;
if ( backtracking==0 ) {
cell = th;
}
}
break;
case 2 :
// Creole10.g:711:4: tc= table_normalcell
{
pushFollow(FOLLOW_table_normalcell_in_table_cell2400);
tc=table_normalcell();
_fsp--;
if (failed) return cell;
if ( backtracking==0 ) {
cell = tc;
}
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return cell;
}
// $ANTLR end table_cell
// $ANTLR start table_headercell
// Creole10.g:713:1: table_headercell returns [TableHeaderNode header = null] : table_headercell_markup tc= table_cellcontent ;
public final TableHeaderNode table_headercell() throws RecognitionException {
TableHeaderNode header = null;
CollectionNode tc = null;
try {
// Creole10.g:714:4: ( table_headercell_markup tc= table_cellcontent )
// Creole10.g:714:4: table_headercell_markup tc= table_cellcontent
{
pushFollow(FOLLOW_table_headercell_markup_in_table_headercell2416);
table_headercell_markup();
_fsp--;
if (failed) return header;
pushFollow(FOLLOW_table_cellcontent_in_table_headercell2423);
tc=table_cellcontent();
_fsp--;
if (failed) return header;
if ( backtracking==0 ) {
header = new TableHeaderNode(tc);
}
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return header;
}
// $ANTLR end table_headercell
// $ANTLR start table_normalcell
// Creole10.g:716:1: table_normalcell returns [TableDataNode cell = null] : table_cell_markup tc= table_cellcontent ;
public final TableDataNode table_normalcell() throws RecognitionException {
TableDataNode cell = null;
CollectionNode tc = null;
try {
// Creole10.g:717:4: ( table_cell_markup tc= table_cellcontent )
// Creole10.g:717:4: table_cell_markup tc= table_cellcontent
{
pushFollow(FOLLOW_table_cell_markup_in_table_normalcell2439);
table_cell_markup();
_fsp--;
if (failed) return cell;
pushFollow(FOLLOW_table_cellcontent_in_table_normalcell2446);
tc=table_cellcontent();
_fsp--;
if (failed) return cell;
if ( backtracking==0 ) {
cell = new TableDataNode(tc);
}
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return cell;
}
// $ANTLR end table_normalcell
// $ANTLR start table_cellcontent
// Creole10.g:719:1: table_cellcontent returns [CollectionNode items = new CollectionNode()] : onestar (tcp= table_cellcontentpart onestar )* ;
public final CollectionNode table_cellcontent() throws RecognitionException {
CollectionNode items = new CollectionNode();
ASTNode tcp = null;
try {
// Creole10.g:720:4: ( onestar (tcp= table_cellcontentpart onestar )* )
// Creole10.g:720:4: onestar (tcp= table_cellcontentpart onestar )*
{
pushFollow(FOLLOW_onestar_in_table_cellcontent2462);
onestar();
_fsp--;
if (failed) return items;
// Creole10.g:720:13: (tcp= table_cellcontentpart onestar )*
loop89:
do {
int alt89=2;
int LA89_0 = input.LA(1);
if ( ((LA89_0>=FORCED_END_OF_LINE && LA89_0<=WIKI)||(LA89_0>=POUND && LA89_0<=EQUAL)||(LA89_0>=ITAL && LA89_0<=80)) ) {
alt89=1;
}
switch (alt89) {
case 1 :
// Creole10.g:720:15: tcp= table_cellcontentpart onestar
{
pushFollow(FOLLOW_table_cellcontentpart_in_table_cellcontent2471);
tcp=table_cellcontentpart();
_fsp--;
if (failed) return items;
if ( backtracking==0 ) {
if (tcp != null) {
items.add(tcp);
}
}
pushFollow(FOLLOW_onestar_in_table_cellcontent2478);
onestar();
_fsp--;
if (failed) return items;
}
break;
default :
break loop89;
}
} while (true);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return items;
}
// $ANTLR end table_cellcontent
// $ANTLR start table_cellcontentpart
// Creole10.g:727:1: table_cellcontentpart returns [ASTNode node = null] : (tf= table_formattedelement | tu= table_unformattedelement );
public final ASTNode table_cellcontentpart() throws RecognitionException {
ASTNode node = null;
ASTNode tf = null;
ASTNode tu = null;
try {
// Creole10.g:728:4: (tf= table_formattedelement | tu= table_unformattedelement )
int alt90=2;
int LA90_0 = input.LA(1);
if ( (LA90_0==STAR||LA90_0==ITAL) ) {
alt90=1;
}
else if ( ((LA90_0>=FORCED_END_OF_LINE && LA90_0<=WIKI)||LA90_0==POUND||LA90_0==EQUAL||(LA90_0>=LINK_OPEN && LA90_0<=80)) ) {
alt90=2;
}
else {
if (backtracking>0) {failed=true; return node;}
NoViableAltException nvae =
new NoViableAltException("727:1: table_cellcontentpart returns [ASTNode node = null] : (tf= table_formattedelement | tu= table_unformattedelement );", 90, 0, input);
throw nvae;
}
switch (alt90) {
case 1 :
// Creole10.g:728:4: tf= table_formattedelement
{
pushFollow(FOLLOW_table_formattedelement_in_table_cellcontentpart2499);
tf=table_formattedelement();
_fsp--;
if (failed) return node;
if ( backtracking==0 ) {
node =tf;
}
}
break;
case 2 :
// Creole10.g:729:4: tu= table_unformattedelement
{
pushFollow(FOLLOW_table_unformattedelement_in_table_cellcontentpart2510);
tu=table_unformattedelement();
_fsp--;
if (failed) return node;
if ( backtracking==0 ) {
node =tu;
}
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return node;
}
// $ANTLR end table_cellcontentpart
// $ANTLR start table_formattedelement
// Creole10.g:731:1: table_formattedelement returns [ASTNode content = null] : ( ital_markup (tic= table_italcontent )? ( ital_markup )? | bold_markup (tbc= table_boldcontent )? ( bold_markup )? );
public final ASTNode table_formattedelement() throws RecognitionException {
ASTNode content = null;
CollectionNode tic = null;
CollectionNode tbc = null;
try {
// Creole10.g:732:4: ( ital_markup (tic= table_italcontent )? ( ital_markup )? | bold_markup (tbc= table_boldcontent )? ( bold_markup )? )
int alt95=2;
int LA95_0 = input.LA(1);
if ( (LA95_0==ITAL) ) {
alt95=1;
}
else if ( (LA95_0==STAR) ) {
alt95=2;
}
else {
if (backtracking>0) {failed=true; return content;}
NoViableAltException nvae =
new NoViableAltException("731:1: table_formattedelement returns [ASTNode content = null] : ( ital_markup (tic= table_italcontent )? ( ital_markup )? | bold_markup (tbc= table_boldcontent )? ( bold_markup )? );", 95, 0, input);
throw nvae;
}
switch (alt95) {
case 1 :
// Creole10.g:732:4: ital_markup (tic= table_italcontent )? ( ital_markup )?
{
pushFollow(FOLLOW_ital_markup_in_table_formattedelement2526);
ital_markup();
_fsp--;
if (failed) return content;
// Creole10.g:732:18: (tic= table_italcontent )?
int alt91=2;
switch ( input.LA(1) ) {
case STAR:
{
alt91=1;
}
break;
case FORCED_END_OF_LINE:
case HEADING_SECTION:
case HORIZONTAL_SECTION:
case LIST_ITEM:
case LIST_ITEM_PART:
case NOWIKI_SECTION:
case SCAPE_NODE:
case TEXT_NODE:
case UNORDERED_LIST:
case UNFORMATTED_TEXT:
case WIKI:
case POUND:
case EQUAL:
case NOWIKI_BLOCK_CLOSE:
case NOWIKI_CLOSE:
case LINK_CLOSE:
case IMAGE_CLOSE:
case BLANKS:
case DASH:
case CR:
case LF:
case SPACE:
case TABULATOR:
case BRACE_CLOSE:
case COLON_SLASH:
case SLASH:
case INSIGNIFICANT_CHAR:
case 41:
case 42:
case 43:
case 44:
case 45:
case 46:
case 47:
case 48:
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 56:
case 57:
case 58:
case 59:
case 60:
case 61:
case 62:
case 63:
case 64:
case 65:
case 66:
case 67:
case 68:
case 69:
case 70:
case 71:
case 72:
case 73:
case 74:
case 75:
case 76:
case 77:
case 78:
case 79:
case 80:
{
alt91=1;
}
break;
case FORCED_LINEBREAK:
{
alt91=1;
}
break;
case ESCAPE:
{
alt91=1;
}
break;
case LINK_OPEN:
{
alt91=1;
}
break;
case IMAGE_OPEN:
{
alt91=1;
}
break;
case EXTENSION:
{
alt91=1;
}
break;
case NOWIKI_OPEN:
{
alt91=1;
}
break;
case EOF:
{
alt91=1;
}
break;
}
switch (alt91) {
case 1 :
// Creole10.g:732:20: tic= table_italcontent
{
pushFollow(FOLLOW_table_italcontent_in_table_formattedelement2536);
tic=table_italcontent();
_fsp--;
if (failed) return content;
if ( backtracking==0 ) {
content = new ItalicTextNode(tic);
}
}
break;
}
// Creole10.g:732:94: ( ital_markup )?
int alt92=2;
int LA92_0 = input.LA(1);
if ( (LA92_0==ITAL) ) {
alt92=1;
}
switch (alt92) {
case 1 :
// Creole10.g:732:96: ital_markup
{
pushFollow(FOLLOW_ital_markup_in_table_formattedelement2545);
ital_markup();
_fsp--;
if (failed) return content;
}
break;
}
}
break;
case 2 :
// Creole10.g:733:4: bold_markup (tbc= table_boldcontent )? ( bold_markup )?
{
pushFollow(FOLLOW_bold_markup_in_table_formattedelement2553);
bold_markup();
_fsp--;
if (failed) return content;
// Creole10.g:733:16: (tbc= table_boldcontent )?
int alt93=2;
switch ( input.LA(1) ) {
case STAR:
{
int LA93_1 = input.LA(2);
if ( ( input.LA(2) != STAR ) ) {
alt93=1;
}
}
break;
case FORCED_END_OF_LINE:
case HEADING_SECTION:
case HORIZONTAL_SECTION:
case LIST_ITEM:
case LIST_ITEM_PART:
case NOWIKI_SECTION:
case SCAPE_NODE:
case TEXT_NODE:
case UNORDERED_LIST:
case UNFORMATTED_TEXT:
case WIKI:
case POUND:
case EQUAL:
case NOWIKI_BLOCK_CLOSE:
case NOWIKI_CLOSE:
case LINK_CLOSE:
case IMAGE_CLOSE:
case BLANKS:
case DASH:
case CR:
case LF:
case SPACE:
case TABULATOR:
case BRACE_CLOSE:
case COLON_SLASH:
case SLASH:
case INSIGNIFICANT_CHAR:
case 41:
case 42:
case 43:
case 44:
case 45:
case 46:
case 47:
case 48:
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 56:
case 57:
case 58:
case 59:
case 60:
case 61:
case 62:
case 63:
case 64:
case 65:
case 66:
case 67:
case 68:
case 69:
case 70:
case 71:
case 72:
case 73:
case 74:
case 75:
case 76:
case 77:
case 78:
case 79:
case 80:
{
alt93=1;
}
break;
case FORCED_LINEBREAK:
{
alt93=1;
}
break;
case ESCAPE:
{
alt93=1;
}
break;
case LINK_OPEN:
{
alt93=1;
}
break;
case IMAGE_OPEN:
{
alt93=1;
}
break;
case EXTENSION:
{
alt93=1;
}
break;
case NOWIKI_OPEN:
{
alt93=1;
}
break;
case ITAL:
{
alt93=1;
}
break;
case EOF:
{
alt93=1;
}
break;
}
switch (alt93) {
case 1 :
// Creole10.g:733:18: tbc= table_boldcontent
{
pushFollow(FOLLOW_table_boldcontent_in_table_formattedelement2560);
tbc=table_boldcontent();
_fsp--;
if (failed) return content;
if ( backtracking==0 ) {
content = new BoldTextNode(tbc);
}
}
break;
}
// Creole10.g:733:88: ( bold_markup )?
int alt94=2;
int LA94_0 = input.LA(1);
if ( (LA94_0==STAR) ) {
int LA94_1 = input.LA(2);
if ( (LA94_1==STAR) ) {
alt94=1;
}
}
switch (alt94) {
case 1 :
// Creole10.g:733:90: bold_markup
{
pushFollow(FOLLOW_bold_markup_in_table_formattedelement2570);
bold_markup();
_fsp--;
if (failed) return content;
}
break;
}
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return content;
}
// $ANTLR end table_formattedelement
// $ANTLR start table_boldcontent
// Creole10.g:735:1: table_boldcontent returns [CollectionNode items = new CollectionNode()] : ( onestar (tb= table_boldcontentpart onestar )+ | EOF );
public final CollectionNode table_boldcontent() throws RecognitionException {
CollectionNode items = new CollectionNode();
ASTNode tb = null;
try {
// Creole10.g:736:4: ( onestar (tb= table_boldcontentpart onestar )+ | EOF )
int alt97=2;
int LA97_0 = input.LA(1);
if ( ((LA97_0>=FORCED_END_OF_LINE && LA97_0<=WIKI)||(LA97_0>=POUND && LA97_0<=EQUAL)||(LA97_0>=ITAL && LA97_0<=80)) ) {
alt97=1;
}
else if ( (LA97_0==EOF) ) {
alt97=2;
}
else {
if (backtracking>0) {failed=true; return items;}
NoViableAltException nvae =
new NoViableAltException("735:1: table_boldcontent returns [CollectionNode items = new CollectionNode()] : ( onestar (tb= table_boldcontentpart onestar )+ | EOF );", 97, 0, input);
throw nvae;
}
switch (alt97) {
case 1 :
// Creole10.g:736:4: onestar (tb= table_boldcontentpart onestar )+
{
pushFollow(FOLLOW_onestar_in_table_boldcontent2587);
onestar();
_fsp--;
if (failed) return items;
// Creole10.g:736:13: (tb= table_boldcontentpart onestar )+
int cnt96=0;
loop96:
do {
int alt96=2;
switch ( input.LA(1) ) {
case ITAL:
{
alt96=1;
}
break;
case FORCED_END_OF_LINE:
case HEADING_SECTION:
case HORIZONTAL_SECTION:
case LIST_ITEM:
case LIST_ITEM_PART:
case NOWIKI_SECTION:
case SCAPE_NODE:
case TEXT_NODE:
case UNORDERED_LIST:
case UNFORMATTED_TEXT:
case WIKI:
case POUND:
case EQUAL:
case NOWIKI_BLOCK_CLOSE:
case NOWIKI_CLOSE:
case LINK_CLOSE:
case IMAGE_CLOSE:
case BLANKS:
case DASH:
case CR:
case LF:
case SPACE:
case TABULATOR:
case BRACE_CLOSE:
case COLON_SLASH:
case SLASH:
case INSIGNIFICANT_CHAR:
case 41:
case 42:
case 43:
case 44:
case 45:
case 46:
case 47:
case 48:
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 56:
case 57:
case 58:
case 59:
case 60:
case 61:
case 62:
case 63:
case 64:
case 65:
case 66:
case 67:
case 68:
case 69:
case 70:
case 71:
case 72:
case 73:
case 74:
case 75:
case 76:
case 77:
case 78:
case 79:
case 80:
{
alt96=1;
}
break;
case FORCED_LINEBREAK:
{
alt96=1;
}
break;
case ESCAPE:
{
alt96=1;
}
break;
case LINK_OPEN:
{
alt96=1;
}
break;
case IMAGE_OPEN:
{
alt96=1;
}
break;
case EXTENSION:
{
alt96=1;
}
break;
case NOWIKI_OPEN:
{
alt96=1;
}
break;
}
switch (alt96) {
case 1 :
// Creole10.g:736:15: tb= table_boldcontentpart onestar
{
pushFollow(FOLLOW_table_boldcontentpart_in_table_boldcontent2596);
tb=table_boldcontentpart();
_fsp--;
if (failed) return items;
if ( backtracking==0 ) {
items.add(tb);
}
pushFollow(FOLLOW_onestar_in_table_boldcontent2601);
onestar();
_fsp--;
if (failed) return items;
}
break;
default :
if ( cnt96 >= 1 ) break loop96;
if (backtracking>0) {failed=true; return items;}
EarlyExitException eee =
new EarlyExitException(96, input);
throw eee;
}
cnt96++;
} while (true);
}
break;
case 2 :
// Creole10.g:737:4: EOF
{
match(input,EOF,FOLLOW_EOF_in_table_boldcontent2609); if (failed) return items;
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return items;
}
// $ANTLR end table_boldcontent
// $ANTLR start table_italcontent
// Creole10.g:739:1: table_italcontent returns [CollectionNode items = new CollectionNode()] : ( onestar (ti= table_italcontentpart onestar )+ | EOF );
public final CollectionNode table_italcontent() throws RecognitionException {
CollectionNode items = new CollectionNode();
ASTNode ti = null;
try {
// Creole10.g:740:4: ( onestar (ti= table_italcontentpart onestar )+ | EOF )
int alt99=2;
int LA99_0 = input.LA(1);
if ( ((LA99_0>=FORCED_END_OF_LINE && LA99_0<=WIKI)||(LA99_0>=POUND && LA99_0<=EQUAL)||(LA99_0>=LINK_OPEN && LA99_0<=80)) ) {
alt99=1;
}
else if ( (LA99_0==EOF) ) {
alt99=2;
}
else {
if (backtracking>0) {failed=true; return items;}
NoViableAltException nvae =
new NoViableAltException("739:1: table_italcontent returns [CollectionNode items = new CollectionNode()] : ( onestar (ti= table_italcontentpart onestar )+ | EOF );", 99, 0, input);
throw nvae;
}
switch (alt99) {
case 1 :
// Creole10.g:740:4: onestar (ti= table_italcontentpart onestar )+
{
pushFollow(FOLLOW_onestar_in_table_italcontent2623);
onestar();
_fsp--;
if (failed) return items;
// Creole10.g:740:13: (ti= table_italcontentpart onestar )+
int cnt98=0;
loop98:
do {
int alt98=2;
switch ( input.LA(1) ) {
case STAR:
{
alt98=1;
}
break;
case FORCED_END_OF_LINE:
case HEADING_SECTION:
case HORIZONTAL_SECTION:
case LIST_ITEM:
case LIST_ITEM_PART:
case NOWIKI_SECTION:
case SCAPE_NODE:
case TEXT_NODE:
case UNORDERED_LIST:
case UNFORMATTED_TEXT:
case WIKI:
case POUND:
case EQUAL:
case NOWIKI_BLOCK_CLOSE:
case NOWIKI_CLOSE:
case LINK_CLOSE:
case IMAGE_CLOSE:
case BLANKS:
case DASH:
case CR:
case LF:
case SPACE:
case TABULATOR:
case BRACE_CLOSE:
case COLON_SLASH:
case SLASH:
case INSIGNIFICANT_CHAR:
case 41:
case 42:
case 43:
case 44:
case 45:
case 46:
case 47:
case 48:
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 56:
case 57:
case 58:
case 59:
case 60:
case 61:
case 62:
case 63:
case 64:
case 65:
case 66:
case 67:
case 68:
case 69:
case 70:
case 71:
case 72:
case 73:
case 74:
case 75:
case 76:
case 77:
case 78:
case 79:
case 80:
{
alt98=1;
}
break;
case FORCED_LINEBREAK:
{
alt98=1;
}
break;
case ESCAPE:
{
alt98=1;
}
break;
case LINK_OPEN:
{
alt98=1;
}
break;
case IMAGE_OPEN:
{
alt98=1;
}
break;
case EXTENSION:
{
alt98=1;
}
break;
case NOWIKI_OPEN:
{
alt98=1;
}
break;
}
switch (alt98) {
case 1 :
// Creole10.g:740:15: ti= table_italcontentpart onestar
{
pushFollow(FOLLOW_table_italcontentpart_in_table_italcontent2632);
ti=table_italcontentpart();
_fsp--;
if (failed) return items;
if ( backtracking==0 ) {
items.add(ti);
}
pushFollow(FOLLOW_onestar_in_table_italcontent2637);
onestar();
_fsp--;
if (failed) return items;
}
break;
default :
if ( cnt98 >= 1 ) break loop98;
if (backtracking>0) {failed=true; return items;}
EarlyExitException eee =
new EarlyExitException(98, input);
throw eee;
}
cnt98++;
} while (true);
}
break;
case 2 :
// Creole10.g:741:4: EOF
{
match(input,EOF,FOLLOW_EOF_in_table_italcontent2645); if (failed) return items;
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return items;
}
// $ANTLR end table_italcontent
// $ANTLR start table_boldcontentpart
// Creole10.g:743:1: table_boldcontentpart returns [ASTNode node = null] : (tf= table_formattedcontent | ital_markup tb= table_bolditalcontent ( ital_markup )? );
public final ASTNode table_boldcontentpart() throws RecognitionException {
ASTNode node = null;
CollectionNode tf = null;
CollectionNode tb = null;
try {
// Creole10.g:744:4: (tf= table_formattedcontent | ital_markup tb= table_bolditalcontent ( ital_markup )? )
int alt101=2;
int LA101_0 = input.LA(1);
if ( ((LA101_0>=FORCED_END_OF_LINE && LA101_0<=WIKI)||LA101_0==POUND||LA101_0==EQUAL||(LA101_0>=LINK_OPEN && LA101_0<=80)) ) {
alt101=1;
}
else if ( (LA101_0==ITAL) ) {
alt101=2;
}
else {
if (backtracking>0) {failed=true; return node;}
NoViableAltException nvae =
new NoViableAltException("743:1: table_boldcontentpart returns [ASTNode node = null] : (tf= table_formattedcontent | ital_markup tb= table_bolditalcontent ( ital_markup )? );", 101, 0, input);
throw nvae;
}
switch (alt101) {
case 1 :
// Creole10.g:744:4: tf= table_formattedcontent
{
pushFollow(FOLLOW_table_formattedcontent_in_table_boldcontentpart2663);
tf=table_formattedcontent();
_fsp--;
if (failed) return node;
if ( backtracking==0 ) {
node = tf;
}
}
break;
case 2 :
// Creole10.g:745:4: ital_markup tb= table_bolditalcontent ( ital_markup )?
{
pushFollow(FOLLOW_ital_markup_in_table_boldcontentpart2670);
ital_markup();
_fsp--;
if (failed) return node;
pushFollow(FOLLOW_table_bolditalcontent_in_table_boldcontentpart2677);
tb=table_bolditalcontent();
_fsp--;
if (failed) return node;
if ( backtracking==0 ) {
node = new ItalicTextNode(tb);
}
// Creole10.g:745:92: ( ital_markup )?
int alt100=2;
int LA100_0 = input.LA(1);
if ( (LA100_0==ITAL) ) {
alt100=1;
}
switch (alt100) {
case 1 :
// Creole10.g:745:94: ital_markup
{
pushFollow(FOLLOW_ital_markup_in_table_boldcontentpart2684);
ital_markup();
_fsp--;
if (failed) return node;
}
break;
}
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return node;
}
// $ANTLR end table_boldcontentpart
// $ANTLR start table_italcontentpart
// Creole10.g:747:1: table_italcontentpart returns [ASTNode node = null] : ( bold_markup tb= table_bolditalcontent ( bold_markup )? | tf= table_formattedcontent );
public final ASTNode table_italcontentpart() throws RecognitionException {
ASTNode node = null;
CollectionNode tb = null;
CollectionNode tf = null;
try {
// Creole10.g:748:4: ( bold_markup tb= table_bolditalcontent ( bold_markup )? | tf= table_formattedcontent )
int alt103=2;
int LA103_0 = input.LA(1);
if ( (LA103_0==STAR) ) {
alt103=1;
}
else if ( ((LA103_0>=FORCED_END_OF_LINE && LA103_0<=WIKI)||LA103_0==POUND||LA103_0==EQUAL||(LA103_0>=LINK_OPEN && LA103_0<=80)) ) {
alt103=2;
}
else {
if (backtracking>0) {failed=true; return node;}
NoViableAltException nvae =
new NoViableAltException("747:1: table_italcontentpart returns [ASTNode node = null] : ( bold_markup tb= table_bolditalcontent ( bold_markup )? | tf= table_formattedcontent );", 103, 0, input);
throw nvae;
}
switch (alt103) {
case 1 :
// Creole10.g:748:4: bold_markup tb= table_bolditalcontent ( bold_markup )?
{
pushFollow(FOLLOW_bold_markup_in_table_italcontentpart2701);
bold_markup();
_fsp--;
if (failed) return node;
pushFollow(FOLLOW_table_bolditalcontent_in_table_italcontentpart2708);
tb=table_bolditalcontent();
_fsp--;
if (failed) return node;
if ( backtracking==0 ) {
node = new BoldTextNode(tb);
}
// Creole10.g:748:88: ( bold_markup )?
int alt102=2;
int LA102_0 = input.LA(1);
if ( (LA102_0==STAR) ) {
int LA102_1 = input.LA(2);
if ( (LA102_1==STAR) ) {
alt102=1;
}
}
switch (alt102) {
case 1 :
// Creole10.g:748:90: bold_markup
{
pushFollow(FOLLOW_bold_markup_in_table_italcontentpart2715);
bold_markup();
_fsp--;
if (failed) return node;
}
break;
}
}
break;
case 2 :
// Creole10.g:749:4: tf= table_formattedcontent
{
pushFollow(FOLLOW_table_formattedcontent_in_table_italcontentpart2727);
tf=table_formattedcontent();
_fsp--;
if (failed) return node;
if ( backtracking==0 ) {
node = tf;
}
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return node;
}
// $ANTLR end table_italcontentpart
// $ANTLR start table_bolditalcontent
// Creole10.g:751:1: table_bolditalcontent returns [CollectionNode elements = null] : ( onestar (tfc= table_formattedcontent onestar )? | EOF );
public final CollectionNode table_bolditalcontent() throws RecognitionException {
CollectionNode elements = null;
CollectionNode tfc = null;
try {
// Creole10.g:752:4: ( onestar (tfc= table_formattedcontent onestar )? | EOF )
int alt105=2;
int LA105_0 = input.LA(1);
if ( ((LA105_0>=FORCED_END_OF_LINE && LA105_0<=EQUAL)||(LA105_0>=ITAL && LA105_0<=80)) ) {
alt105=1;
}
else if ( (LA105_0==EOF||LA105_0==PIPE) ) {
alt105=1;
}
else {
if (backtracking>0) {failed=true; return elements;}
NoViableAltException nvae =
new NoViableAltException("751:1: table_bolditalcontent returns [CollectionNode elements = null] : ( onestar (tfc= table_formattedcontent onestar )? | EOF );", 105, 0, input);
throw nvae;
}
switch (alt105) {
case 1 :
// Creole10.g:752:4: onestar (tfc= table_formattedcontent onestar )?
{
pushFollow(FOLLOW_onestar_in_table_bolditalcontent2743);
onestar();
_fsp--;
if (failed) return elements;
// Creole10.g:752:13: (tfc= table_formattedcontent onestar )?
int alt104=2;
switch ( input.LA(1) ) {
case FORCED_END_OF_LINE:
case HEADING_SECTION:
case HORIZONTAL_SECTION:
case LIST_ITEM:
case LIST_ITEM_PART:
case NOWIKI_SECTION:
case SCAPE_NODE:
case TEXT_NODE:
case UNORDERED_LIST:
case UNFORMATTED_TEXT:
case WIKI:
case POUND:
case EQUAL:
case NOWIKI_BLOCK_CLOSE:
case NOWIKI_CLOSE:
case LINK_CLOSE:
case IMAGE_CLOSE:
case BLANKS:
case DASH:
case CR:
case LF:
case SPACE:
case TABULATOR:
case BRACE_CLOSE:
case COLON_SLASH:
case SLASH:
case INSIGNIFICANT_CHAR:
case 41:
case 42:
case 43:
case 44:
case 45:
case 46:
case 47:
case 48:
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 56:
case 57:
case 58:
case 59:
case 60:
case 61:
case 62:
case 63:
case 64:
case 65:
case 66:
case 67:
case 68:
case 69:
case 70:
case 71:
case 72:
case 73:
case 74:
case 75:
case 76:
case 77:
case 78:
case 79:
case 80:
{
alt104=1;
}
break;
case FORCED_LINEBREAK:
{
alt104=1;
}
break;
case ESCAPE:
{
alt104=1;
}
break;
case LINK_OPEN:
{
alt104=1;
}
break;
case IMAGE_OPEN:
{
alt104=1;
}
break;
case EXTENSION:
{
alt104=1;
}
break;
case NOWIKI_OPEN:
{
alt104=1;
}
break;
}
switch (alt104) {
case 1 :
// Creole10.g:752:15: tfc= table_formattedcontent onestar
{
pushFollow(FOLLOW_table_formattedcontent_in_table_bolditalcontent2752);
tfc=table_formattedcontent();
_fsp--;
if (failed) return elements;
if ( backtracking==0 ) {
elements = tfc;
}
pushFollow(FOLLOW_onestar_in_table_bolditalcontent2757);
onestar();
_fsp--;
if (failed) return elements;
}
break;
}
}
break;
case 2 :
// Creole10.g:753:4: EOF
{
match(input,EOF,FOLLOW_EOF_in_table_bolditalcontent2765); if (failed) return elements;
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return elements;
}
// $ANTLR end table_bolditalcontent
// $ANTLR start table_formattedcontent
// Creole10.g:755:1: table_formattedcontent returns [CollectionNode elements = new CollectionNode()] : (tu= table_unformattedelement )+ ;
public final CollectionNode table_formattedcontent() throws RecognitionException {
CollectionNode elements = new CollectionNode();
ASTNode tu = null;
try {
// Creole10.g:756:4: ( (tu= table_unformattedelement )+ )
// Creole10.g:756:4: (tu= table_unformattedelement )+
{
// Creole10.g:756:4: (tu= table_unformattedelement )+
int cnt106=0;
loop106:
do {
int alt106=2;
switch ( input.LA(1) ) {
case FORCED_END_OF_LINE:
case HEADING_SECTION:
case HORIZONTAL_SECTION:
case LIST_ITEM:
case LIST_ITEM_PART:
case NOWIKI_SECTION:
case SCAPE_NODE:
case TEXT_NODE:
case UNORDERED_LIST:
case UNFORMATTED_TEXT:
case WIKI:
case POUND:
case EQUAL:
case NOWIKI_BLOCK_CLOSE:
case NOWIKI_CLOSE:
case LINK_CLOSE:
case IMAGE_CLOSE:
case BLANKS:
case DASH:
case CR:
case LF:
case SPACE:
case TABULATOR:
case BRACE_CLOSE:
case COLON_SLASH:
case SLASH:
case INSIGNIFICANT_CHAR:
case 41:
case 42:
case 43:
case 44:
case 45:
case 46:
case 47:
case 48:
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 56:
case 57:
case 58:
case 59:
case 60:
case 61:
case 62:
case 63:
case 64:
case 65:
case 66:
case 67:
case 68:
case 69:
case 70:
case 71:
case 72:
case 73:
case 74:
case 75:
case 76:
case 77:
case 78:
case 79:
case 80:
{
alt106=1;
}
break;
case FORCED_LINEBREAK:
{
alt106=1;
}
break;
case ESCAPE:
{
alt106=1;
}
break;
case LINK_OPEN:
{
alt106=1;
}
break;
case IMAGE_OPEN:
{
alt106=1;
}
break;
case EXTENSION:
{
alt106=1;
}
break;
case NOWIKI_OPEN:
{
alt106=1;
}
break;
}
switch (alt106) {
case 1 :
// Creole10.g:756:6: tu= table_unformattedelement
{
pushFollow(FOLLOW_table_unformattedelement_in_table_formattedcontent2785);
tu=table_unformattedelement();
_fsp--;
if (failed) return elements;
if ( backtracking==0 ) {
elements.add(tu);
}
}
break;
default :
if ( cnt106 >= 1 ) break loop106;
if (backtracking>0) {failed=true; return elements;}
EarlyExitException eee =
new EarlyExitException(106, input);
throw eee;
}
cnt106++;
} while (true);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return elements;
}
// $ANTLR end table_formattedcontent
// $ANTLR start table_unformattedelement
// Creole10.g:758:1: table_unformattedelement returns [ASTNode content = null] : (tu= table_unformatted | ti= table_inlineelement );
public final ASTNode table_unformattedelement() throws RecognitionException {
ASTNode content = null;
CollectionNode tu = null;
ASTNode ti = null;
try {
// Creole10.g:759:4: (tu= table_unformatted | ti= table_inlineelement )
int alt107=2;
int LA107_0 = input.LA(1);
if ( ((LA107_0>=FORCED_END_OF_LINE && LA107_0<=WIKI)||LA107_0==POUND||LA107_0==EQUAL||(LA107_0>=FORCED_LINEBREAK && LA107_0<=80)) ) {
alt107=1;
}
else if ( ((LA107_0>=LINK_OPEN && LA107_0<=EXTENSION)) ) {
alt107=2;
}
else {
if (backtracking>0) {failed=true; return content;}
NoViableAltException nvae =
new NoViableAltException("758:1: table_unformattedelement returns [ASTNode content = null] : (tu= table_unformatted | ti= table_inlineelement );", 107, 0, input);
throw nvae;
}
switch (alt107) {
case 1 :
// Creole10.g:759:4: tu= table_unformatted
{
pushFollow(FOLLOW_table_unformatted_in_table_unformattedelement2808);
tu=table_unformatted();
_fsp--;
if (failed) return content;
if ( backtracking==0 ) {
content = new UnformattedTextNode(tu);
}
}
break;
case 2 :
// Creole10.g:760:4: ti= table_inlineelement
{
pushFollow(FOLLOW_table_inlineelement_in_table_unformattedelement2820);
ti=table_inlineelement();
_fsp--;
if (failed) return content;
if ( backtracking==0 ) {
content = ti;
}
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return content;
}
// $ANTLR end table_unformattedelement
// $ANTLR start table_inlineelement
// Creole10.g:762:1: table_inlineelement returns [ASTNode element = null] : (l= link | i= image | e= extension | nw= nowiki_inline );
public final ASTNode table_inlineelement() throws RecognitionException {
ASTNode element = null;
LinkNode l = null;
ImageNode i = null;
ASTNode e = null;
NoWikiInlineNode nw = null;
try {
// Creole10.g:763:4: (l= link | i= image | e= extension | nw= nowiki_inline )
int alt108=4;
switch ( input.LA(1) ) {
case LINK_OPEN:
{
alt108=1;
}
break;
case IMAGE_OPEN:
{
alt108=2;
}
break;
case EXTENSION:
{
alt108=3;
}
break;
case NOWIKI_OPEN:
{
alt108=4;
}
break;
default:
if (backtracking>0) {failed=true; return element;}
NoViableAltException nvae =
new NoViableAltException("762:1: table_inlineelement returns [ASTNode element = null] : (l= link | i= image | e= extension | nw= nowiki_inline );", 108, 0, input);
throw nvae;
}
switch (alt108) {
case 1 :
// Creole10.g:763:4: l= link
{
pushFollow(FOLLOW_link_in_table_inlineelement2840);
l=link();
_fsp--;
if (failed) return element;
if ( backtracking==0 ) {
element = l;
}
}
break;
case 2 :
// Creole10.g:764:4: i= image
{
pushFollow(FOLLOW_image_in_table_inlineelement2850);
i=image();
_fsp--;
if (failed) return element;
if ( backtracking==0 ) {
element = i;
}
}
break;
case 3 :
// Creole10.g:765:4: e= extension
{
pushFollow(FOLLOW_extension_in_table_inlineelement2861);
e=extension();
_fsp--;
if (failed) return element;
if ( backtracking==0 ) {
element = e;
}
}
break;
case 4 :
// Creole10.g:766:4: nw= nowiki_inline
{
pushFollow(FOLLOW_nowiki_inline_in_table_inlineelement2871);
nw=nowiki_inline();
_fsp--;
if (failed) return element;
if ( backtracking==0 ) {
element = nw;
}
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return element;
}
// $ANTLR end table_inlineelement
// $ANTLR start table_unformatted
// Creole10.g:768:1: table_unformatted returns [CollectionNode text = new CollectionNode()] : (t= table_unformatted_text | ( forced_linebreak | e= escaped )+ );
public final CollectionNode table_unformatted() throws RecognitionException {
CollectionNode text = new CollectionNode();
StringBundler t = null;
ScapedNode e = null;
try {
// Creole10.g:769:5: (t= table_unformatted_text | ( forced_linebreak | e= escaped )+ )
int alt110=2;
int LA110_0 = input.LA(1);
if ( ((LA110_0>=FORCED_END_OF_LINE && LA110_0<=WIKI)||LA110_0==POUND||LA110_0==EQUAL||(LA110_0>=NOWIKI_BLOCK_CLOSE && LA110_0<=80)) ) {
alt110=1;
}
else if ( ((LA110_0>=FORCED_LINEBREAK && LA110_0<=ESCAPE)) ) {
alt110=2;
}
else {
if (backtracking>0) {failed=true; return text;}
NoViableAltException nvae =
new NoViableAltException("768:1: table_unformatted returns [CollectionNode text = new CollectionNode()] : (t= table_unformatted_text | ( forced_linebreak | e= escaped )+ );", 110, 0, input);
throw nvae;
}
switch (alt110) {
case 1 :
// Creole10.g:769:5: t= table_unformatted_text
{
pushFollow(FOLLOW_table_unformatted_text_in_table_unformatted2892);
t=table_unformatted_text();
_fsp--;
if (failed) return text;
if ( backtracking==0 ) {
text.add(new UnformattedTextNode(t.toString()));
}
}
break;
case 2 :
// Creole10.g:770:5: ( forced_linebreak | e= escaped )+
{
// Creole10.g:770:5: ( forced_linebreak | e= escaped )+
int cnt109=0;
loop109:
do {
int alt109=3;
int LA109_0 = input.LA(1);
if ( (LA109_0==FORCED_LINEBREAK) ) {
alt109=1;
}
else if ( (LA109_0==ESCAPE) ) {
alt109=2;
}
switch (alt109) {
case 1 :
// Creole10.g:770:6: forced_linebreak
{
pushFollow(FOLLOW_forced_linebreak_in_table_unformatted2901);
forced_linebreak();
_fsp--;
if (failed) return text;
if ( backtracking==0 ) {
text.add(new ForcedEndOfLineNode());
}
}
break;
case 2 :
// Creole10.g:771:5: e= escaped
{
pushFollow(FOLLOW_escaped_in_table_unformatted2913);
e=escaped();
_fsp--;
if (failed) return text;
if ( backtracking==0 ) {
text.add(e);
}
}
break;
default :
if ( cnt109 >= 1 ) break loop109;
if (backtracking>0) {failed=true; return text;}
EarlyExitException eee =
new EarlyExitException(109, input);
throw eee;
}
cnt109++;
} while (true);
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return text;
}
// $ANTLR end table_unformatted
// $ANTLR start table_unformatted_text
// Creole10.g:774:1: table_unformatted_text returns [StringBundler text = new StringBundler()] : (c=~ ( PIPE | ITAL | STAR | LINK_OPEN | IMAGE_OPEN | NOWIKI_OPEN | EXTENSION | FORCED_LINEBREAK | ESCAPE | NEWLINE | EOF ) )+ ;
public final StringBundler table_unformatted_text() throws RecognitionException {
StringBundler text = new StringBundler();
Token c=null;
try {
// Creole10.g:775:4: ( (c=~ ( PIPE | ITAL | STAR | LINK_OPEN | IMAGE_OPEN | NOWIKI_OPEN | EXTENSION | FORCED_LINEBREAK | ESCAPE | NEWLINE | EOF ) )+ )
// Creole10.g:775:4: (c=~ ( PIPE | ITAL | STAR | LINK_OPEN | IMAGE_OPEN | NOWIKI_OPEN | EXTENSION | FORCED_LINEBREAK | ESCAPE | NEWLINE | EOF ) )+
{
// Creole10.g:775:4: (c=~ ( PIPE | ITAL | STAR | LINK_OPEN | IMAGE_OPEN | NOWIKI_OPEN | EXTENSION | FORCED_LINEBREAK | ESCAPE | NEWLINE | EOF ) )+
int cnt111=0;
loop111:
do {
int alt111=2;
int LA111_0 = input.LA(1);
if ( ((LA111_0>=FORCED_END_OF_LINE && LA111_0<=WIKI)||LA111_0==POUND||LA111_0==EQUAL||(LA111_0>=NOWIKI_BLOCK_CLOSE && LA111_0<=80)) ) {
alt111=1;
}
switch (alt111) {
case 1 :
// Creole10.g:775:6: c=~ ( PIPE | ITAL | STAR | LINK_OPEN | IMAGE_OPEN | NOWIKI_OPEN | EXTENSION | FORCED_LINEBREAK | ESCAPE | NEWLINE | EOF )
{
c=(Token)input.LT(1);
if ( (input.LA(1)>=FORCED_END_OF_LINE && input.LA(1)<=WIKI)||input.LA(1)==POUND||input.LA(1)==EQUAL||(input.LA(1)>=NOWIKI_BLOCK_CLOSE && input.LA(1)<=80) ) {
input.consume();
errorRecovery=false;failed=false;
}
else {
if (backtracking>0) {failed=true; return text;}
MismatchedSetException mse =
new MismatchedSetException(null,input);
recoverFromMismatchedSet(input,mse,FOLLOW_set_in_table_unformatted_text2939); throw mse;
}
if ( backtracking==0 ) {
text.append(c.getText());
}
}
break;
default :
if ( cnt111 >= 1 ) break loop111;
if (backtracking>0) {failed=true; return text;}
EarlyExitException eee =
new EarlyExitException(111, input);
throw eee;
}
cnt111++;
} while (true);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return text;
}
// $ANTLR end table_unformatted_text
// $ANTLR start nowiki_block
// Creole10.g:789:1: nowiki_block returns [NoWikiSectionNode nowikiNode] : nowikiblock_open_markup contents= nowiki_block_contents nowikiblock_close_markup paragraph_separator ;
public final NoWikiSectionNode nowiki_block() throws RecognitionException {
NoWikiSectionNode nowikiNode = null;
nowiki_block_contents_return contents = null;
try {
// Creole10.g:790:4: ( nowikiblock_open_markup contents= nowiki_block_contents nowikiblock_close_markup paragraph_separator )
// Creole10.g:790:4: nowikiblock_open_markup contents= nowiki_block_contents nowikiblock_close_markup paragraph_separator
{
pushFollow(FOLLOW_nowikiblock_open_markup_in_nowiki_block3036);
nowikiblock_open_markup();
_fsp--;
if (failed) return nowikiNode;
pushFollow(FOLLOW_nowiki_block_contents_in_nowiki_block3043);
contents=nowiki_block_contents();
_fsp--;
if (failed) return nowikiNode;
if ( backtracking==0 ) {
nowikiNode = new NoWikiSectionNode(input.toString(contents.start,contents.stop).toString());
}
pushFollow(FOLLOW_nowikiblock_close_markup_in_nowiki_block3049);
nowikiblock_close_markup();
_fsp--;
if (failed) return nowikiNode;
pushFollow(FOLLOW_paragraph_separator_in_nowiki_block3052);
paragraph_separator();
_fsp--;
if (failed) return nowikiNode;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return nowikiNode;
}
// $ANTLR end nowiki_block
// $ANTLR start nowikiblock_open_markup
// Creole10.g:794:1: nowikiblock_open_markup : nowiki_open_markup newline ;
public final void nowikiblock_open_markup() throws RecognitionException {
try {
// Creole10.g:795:4: ( nowiki_open_markup newline )
// Creole10.g:795:4: nowiki_open_markup newline
{
pushFollow(FOLLOW_nowiki_open_markup_in_nowikiblock_open_markup3063);
nowiki_open_markup();
_fsp--;
if (failed) return ;
pushFollow(FOLLOW_newline_in_nowikiblock_open_markup3066);
newline();
_fsp--;
if (failed) return ;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return ;
}
// $ANTLR end nowikiblock_open_markup
// $ANTLR start nowikiblock_close_markup
// Creole10.g:798:1: nowikiblock_close_markup : NOWIKI_BLOCK_CLOSE ;
public final void nowikiblock_close_markup() throws RecognitionException {
try {
// Creole10.g:799:4: ( NOWIKI_BLOCK_CLOSE )
// Creole10.g:799:4: NOWIKI_BLOCK_CLOSE
{
match(input,NOWIKI_BLOCK_CLOSE,FOLLOW_NOWIKI_BLOCK_CLOSE_in_nowikiblock_close_markup3077); if (failed) return ;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return ;
}
// $ANTLR end nowikiblock_close_markup
// $ANTLR start nowiki_inline
// Creole10.g:802:1: nowiki_inline returns [NoWikiInlineNode nowiki = null] : nowiki_open_markup t= nowiki_inline_contents nowiki_close_markup ;
public final NoWikiInlineNode nowiki_inline() throws RecognitionException {
NoWikiInlineNode nowiki = null;
StringBundler t = null;
try {
// Creole10.g:803:4: ( nowiki_open_markup t= nowiki_inline_contents nowiki_close_markup )
// Creole10.g:803:4: nowiki_open_markup t= nowiki_inline_contents nowiki_close_markup
{
pushFollow(FOLLOW_nowiki_open_markup_in_nowiki_inline3092);
nowiki_open_markup();
_fsp--;
if (failed) return nowiki;
pushFollow(FOLLOW_nowiki_inline_contents_in_nowiki_inline3099);
t=nowiki_inline_contents();
_fsp--;
if (failed) return nowiki;
pushFollow(FOLLOW_nowiki_close_markup_in_nowiki_inline3103);
nowiki_close_markup();
_fsp--;
if (failed) return nowiki;
if ( backtracking==0 ) {
nowiki = new NoWikiInlineNode(t.toString());
}
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return nowiki;
}
// $ANTLR end nowiki_inline
public static class nowiki_block_contents_return extends ParserRuleReturnScope {
public StringBundler contents = new StringBundler();
};
// $ANTLR start nowiki_block_contents
// Creole10.g:806:1: nowiki_block_contents returns [StringBundler contents = new StringBundler()] : (c=~ ( NOWIKI_BLOCK_CLOSE | EOF ) )* ;
public final nowiki_block_contents_return nowiki_block_contents() throws RecognitionException {
nowiki_block_contents_return retval = new nowiki_block_contents_return();
retval.start = input.LT(1);
Token c=null;
try {
// Creole10.g:807:3: ( (c=~ ( NOWIKI_BLOCK_CLOSE | EOF ) )* )
// Creole10.g:807:3: (c=~ ( NOWIKI_BLOCK_CLOSE | EOF ) )*
{
// Creole10.g:807:3: (c=~ ( NOWIKI_BLOCK_CLOSE | EOF ) )*
loop112:
do {
int alt112=2;
int LA112_0 = input.LA(1);
if ( ((LA112_0>=FORCED_END_OF_LINE && LA112_0<=ESCAPE)||(LA112_0>=NOWIKI_CLOSE && LA112_0<=80)) ) {
alt112=1;
}
switch (alt112) {
case 1 :
// Creole10.g:807:4: c=~ ( NOWIKI_BLOCK_CLOSE | EOF )
{
c=(Token)input.LT(1);
if ( (input.LA(1)>=FORCED_END_OF_LINE && input.LA(1)<=ESCAPE)||(input.LA(1)>=NOWIKI_CLOSE && input.LA(1)<=80) ) {
input.consume();
errorRecovery=false;failed=false;
}
else {
if (backtracking>0) {failed=true; return retval;}
MismatchedSetException mse =
new MismatchedSetException(null,input);
recoverFromMismatchedSet(input,mse,FOLLOW_set_in_nowiki_block_contents3121); throw mse;
}
if ( backtracking==0 ) {
retval.contents.append(c.getText());
}
}
break;
default :
break loop112;
}
} while (true);
}
retval.stop = input.LT(-1);
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return retval;
}
// $ANTLR end nowiki_block_contents
// $ANTLR start nowiki_inline_contents
// Creole10.g:810:1: nowiki_inline_contents returns [StringBundler text = new StringBundler()] : (c=~ ( NOWIKI_CLOSE | NEWLINE | EOF ) )* ;
public final StringBundler nowiki_inline_contents() throws RecognitionException {
StringBundler text = new StringBundler();
Token c=null;
try {
// Creole10.g:811:4: ( (c=~ ( NOWIKI_CLOSE | NEWLINE | EOF ) )* )
// Creole10.g:811:4: (c=~ ( NOWIKI_CLOSE | NEWLINE | EOF ) )*
{
// Creole10.g:811:4: (c=~ ( NOWIKI_CLOSE | NEWLINE | EOF ) )*
loop113:
do {
int alt113=2;
int LA113_0 = input.LA(1);
if ( ((LA113_0>=FORCED_END_OF_LINE && LA113_0<=WIKI)||(LA113_0>=POUND && LA113_0<=NOWIKI_BLOCK_CLOSE)||(LA113_0>=LINK_CLOSE && LA113_0<=80)) ) {
alt113=1;
}
switch (alt113) {
case 1 :
// Creole10.g:811:5: c=~ ( NOWIKI_CLOSE | NEWLINE | EOF )
{
c=(Token)input.LT(1);
if ( (input.LA(1)>=FORCED_END_OF_LINE && input.LA(1)<=WIKI)||(input.LA(1)>=POUND && input.LA(1)<=NOWIKI_BLOCK_CLOSE)||(input.LA(1)>=LINK_CLOSE && input.LA(1)<=80) ) {
input.consume();
errorRecovery=false;failed=false;
}
else {
if (backtracking>0) {failed=true; return text;}
MismatchedSetException mse =
new MismatchedSetException(null,input);
recoverFromMismatchedSet(input,mse,FOLLOW_set_in_nowiki_inline_contents3154); throw mse;
}
if ( backtracking==0 ) {
text.append(c.getText());
}
}
break;
default :
break loop113;
}
} while (true);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return text;
}
// $ANTLR end nowiki_inline_contents
// $ANTLR start horizontalrule
// Creole10.g:818:1: horizontalrule returns [ASTNode horizontal = null] : horizontalrule_markup ( blanks )? paragraph_separator ;
public final ASTNode horizontalrule() throws RecognitionException {
ASTNode horizontal = null;
try {
// Creole10.g:819:4: ( horizontalrule_markup ( blanks )? paragraph_separator )
// Creole10.g:819:4: horizontalrule_markup ( blanks )? paragraph_separator
{
pushFollow(FOLLOW_horizontalrule_markup_in_horizontalrule3190);
horizontalrule_markup();
_fsp--;
if (failed) return horizontal;
// Creole10.g:819:27: ( blanks )?
int alt114=2;
int LA114_0 = input.LA(1);
if ( (LA114_0==BLANKS) ) {
alt114=1;
}
switch (alt114) {
case 1 :
// Creole10.g:819:29: blanks
{
pushFollow(FOLLOW_blanks_in_horizontalrule3195);
blanks();
_fsp--;
if (failed) return horizontal;
}
break;
}
pushFollow(FOLLOW_paragraph_separator_in_horizontalrule3201);
paragraph_separator();
_fsp--;
if (failed) return horizontal;
if ( backtracking==0 ) {
horizontal = new HorizontalNode();
}
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return horizontal;
}
// $ANTLR end horizontalrule
// $ANTLR start link
// Creole10.g:826:1: link returns [LinkNode link = null] : link_open_markup a= link_address ( link_description_markup d= link_description )? link_close_markup ;
public final LinkNode link() throws RecognitionException {
LinkNode link = null;
LinkNode a = null;
CollectionNode d = null;
try {
// Creole10.g:827:4: ( link_open_markup a= link_address ( link_description_markup d= link_description )? link_close_markup )
// Creole10.g:827:4: link_open_markup a= link_address ( link_description_markup d= link_description )? link_close_markup
{
pushFollow(FOLLOW_link_open_markup_in_link3222);
link_open_markup();
_fsp--;
if (failed) return link;
pushFollow(FOLLOW_link_address_in_link3228);
a=link_address();
_fsp--;
if (failed) return link;
if ( backtracking==0 ) {
link = a;
}
// Creole10.g:827:59: ( link_description_markup d= link_description )?
int alt115=2;
int LA115_0 = input.LA(1);
if ( (LA115_0==PIPE) ) {
alt115=1;
}
switch (alt115) {
case 1 :
// Creole10.g:827:60: link_description_markup d= link_description
{
pushFollow(FOLLOW_link_description_markup_in_link3234);
link_description_markup();
_fsp--;
if (failed) return link;
pushFollow(FOLLOW_link_description_in_link3242);
d=link_description();
_fsp--;
if (failed) return link;
if ( backtracking==0 ) {
if (link == null) { // recover from possible errors
link = new LinkNode();
}
link.setAltCollectionNode(d);
}
}
break;
}
pushFollow(FOLLOW_link_close_markup_in_link3250);
link_close_markup();
_fsp--;
if (failed) return link;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return link;
}
// $ANTLR end link
// $ANTLR start link_address
// Creole10.g:837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );
public final LinkNode link_address() throws RecognitionException {
LinkNode link = null;
InterwikiLinkNode li = null;
StringBundler p = null;
StringBundler lu = null;
try {
// Creole10.g:838:4: (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri )
int alt116=2;
switch ( input.LA(1) ) {
case 42:
{
int LA116_1 = input.LA(2);
if ( (LA116_1==43) ) {
int LA116_16 = input.LA(3);
if ( (LA116_16==41) ) {
int LA116_34 = input.LA(4);
if ( ((LA116_34>=FORCED_END_OF_LINE && LA116_34<=WIKI)||(LA116_34>=POUND && LA116_34<=EQUAL)||(LA116_34>=ITAL && LA116_34<=NOWIKI_CLOSE)||(LA116_34>=IMAGE_CLOSE && LA116_34<=80)) ) {
alt116=1;
}
else if ( (LA116_34==PIPE||LA116_34==LINK_CLOSE) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 34, input);
throw nvae;
}
}
else if ( ((LA116_16>=FORCED_END_OF_LINE && LA116_16<=WIKI)||(LA116_16>=POUND && LA116_16<=INSIGNIFICANT_CHAR)||(LA116_16>=42 && LA116_16<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 16, input);
throw nvae;
}
}
else if ( ((LA116_1>=FORCED_END_OF_LINE && LA116_1<=WIKI)||(LA116_1>=POUND && LA116_1<=42)||(LA116_1>=44 && LA116_1<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 1, input);
throw nvae;
}
}
break;
case 44:
{
int LA116_2 = input.LA(2);
if ( (LA116_2==45) ) {
int LA116_17 = input.LA(3);
if ( (LA116_17==46) ) {
int LA116_35 = input.LA(4);
if ( (LA116_35==47) ) {
int LA116_55 = input.LA(5);
if ( (LA116_55==48) ) {
int LA116_74 = input.LA(6);
if ( (LA116_74==49) ) {
int LA116_93 = input.LA(7);
if ( (LA116_93==46) ) {
int LA116_109 = input.LA(8);
if ( (LA116_109==49) ) {
int LA116_120 = input.LA(9);
if ( (LA116_120==41) ) {
int LA116_34 = input.LA(10);
if ( ((LA116_34>=FORCED_END_OF_LINE && LA116_34<=WIKI)||(LA116_34>=POUND && LA116_34<=EQUAL)||(LA116_34>=ITAL && LA116_34<=NOWIKI_CLOSE)||(LA116_34>=IMAGE_CLOSE && LA116_34<=80)) ) {
alt116=1;
}
else if ( (LA116_34==PIPE||LA116_34==LINK_CLOSE) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 34, input);
throw nvae;
}
}
else if ( ((LA116_120>=FORCED_END_OF_LINE && LA116_120<=WIKI)||(LA116_120>=POUND && LA116_120<=INSIGNIFICANT_CHAR)||(LA116_120>=42 && LA116_120<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 120, input);
throw nvae;
}
}
else if ( ((LA116_109>=FORCED_END_OF_LINE && LA116_109<=WIKI)||(LA116_109>=POUND && LA116_109<=48)||(LA116_109>=50 && LA116_109<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 109, input);
throw nvae;
}
}
else if ( ((LA116_93>=FORCED_END_OF_LINE && LA116_93<=WIKI)||(LA116_93>=POUND && LA116_93<=45)||(LA116_93>=47 && LA116_93<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 93, input);
throw nvae;
}
}
else if ( ((LA116_74>=FORCED_END_OF_LINE && LA116_74<=WIKI)||(LA116_74>=POUND && LA116_74<=48)||(LA116_74>=50 && LA116_74<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 74, input);
throw nvae;
}
}
else if ( ((LA116_55>=FORCED_END_OF_LINE && LA116_55<=WIKI)||(LA116_55>=POUND && LA116_55<=47)||(LA116_55>=49 && LA116_55<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 55, input);
throw nvae;
}
}
else if ( ((LA116_35>=FORCED_END_OF_LINE && LA116_35<=WIKI)||(LA116_35>=POUND && LA116_35<=46)||(LA116_35>=48 && LA116_35<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 35, input);
throw nvae;
}
}
else if ( ((LA116_17>=FORCED_END_OF_LINE && LA116_17<=WIKI)||(LA116_17>=POUND && LA116_17<=45)||(LA116_17>=47 && LA116_17<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 17, input);
throw nvae;
}
}
else if ( ((LA116_2>=FORCED_END_OF_LINE && LA116_2<=WIKI)||(LA116_2>=POUND && LA116_2<=44)||(LA116_2>=46 && LA116_2<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 2, input);
throw nvae;
}
}
break;
case 50:
{
int LA116_3 = input.LA(2);
if ( (LA116_3==51) ) {
int LA116_18 = input.LA(3);
if ( (LA116_18==49) ) {
int LA116_36 = input.LA(4);
if ( (LA116_36==52) ) {
int LA116_56 = input.LA(5);
if ( (LA116_56==46) ) {
int LA116_75 = input.LA(6);
if ( (LA116_75==53) ) {
int LA116_94 = input.LA(7);
if ( ((LA116_94>=FORCED_END_OF_LINE && LA116_94<=WIKI)||(LA116_94>=POUND && LA116_94<=INSIGNIFICANT_CHAR)||(LA116_94>=42 && LA116_94<=80)) ) {
alt116=2;
}
else if ( (LA116_94==41) ) {
int LA116_34 = input.LA(8);
if ( ((LA116_34>=FORCED_END_OF_LINE && LA116_34<=WIKI)||(LA116_34>=POUND && LA116_34<=EQUAL)||(LA116_34>=ITAL && LA116_34<=NOWIKI_CLOSE)||(LA116_34>=IMAGE_CLOSE && LA116_34<=80)) ) {
alt116=1;
}
else if ( (LA116_34==PIPE||LA116_34==LINK_CLOSE) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 34, input);
throw nvae;
}
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 94, input);
throw nvae;
}
}
else if ( ((LA116_75>=FORCED_END_OF_LINE && LA116_75<=WIKI)||(LA116_75>=POUND && LA116_75<=52)||(LA116_75>=54 && LA116_75<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 75, input);
throw nvae;
}
}
else if ( ((LA116_56>=FORCED_END_OF_LINE && LA116_56<=WIKI)||(LA116_56>=POUND && LA116_56<=45)||(LA116_56>=47 && LA116_56<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 56, input);
throw nvae;
}
}
else if ( ((LA116_36>=FORCED_END_OF_LINE && LA116_36<=WIKI)||(LA116_36>=POUND && LA116_36<=51)||(LA116_36>=53 && LA116_36<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 36, input);
throw nvae;
}
}
else if ( ((LA116_18>=FORCED_END_OF_LINE && LA116_18<=WIKI)||(LA116_18>=POUND && LA116_18<=48)||(LA116_18>=50 && LA116_18<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 18, input);
throw nvae;
}
}
else if ( ((LA116_3>=FORCED_END_OF_LINE && LA116_3<=WIKI)||(LA116_3>=POUND && LA116_3<=50)||(LA116_3>=52 && LA116_3<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 3, input);
throw nvae;
}
}
break;
case 54:
{
int LA116_4 = input.LA(2);
if ( (LA116_4==45) ) {
int LA116_19 = input.LA(3);
if ( (LA116_19==45) ) {
int LA116_37 = input.LA(4);
if ( (LA116_37==55) ) {
int LA116_57 = input.LA(5);
if ( (LA116_57==51) ) {
int LA116_76 = input.LA(6);
if ( (LA116_76==56) ) {
int LA116_95 = input.LA(7);
if ( ((LA116_95>=FORCED_END_OF_LINE && LA116_95<=WIKI)||(LA116_95>=POUND && LA116_95<=INSIGNIFICANT_CHAR)||(LA116_95>=42 && LA116_95<=80)) ) {
alt116=2;
}
else if ( (LA116_95==41) ) {
int LA116_34 = input.LA(8);
if ( ((LA116_34>=FORCED_END_OF_LINE && LA116_34<=WIKI)||(LA116_34>=POUND && LA116_34<=EQUAL)||(LA116_34>=ITAL && LA116_34<=NOWIKI_CLOSE)||(LA116_34>=IMAGE_CLOSE && LA116_34<=80)) ) {
alt116=1;
}
else if ( (LA116_34==PIPE||LA116_34==LINK_CLOSE) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 34, input);
throw nvae;
}
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 95, input);
throw nvae;
}
}
else if ( ((LA116_76>=FORCED_END_OF_LINE && LA116_76<=WIKI)||(LA116_76>=POUND && LA116_76<=55)||(LA116_76>=57 && LA116_76<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 76, input);
throw nvae;
}
}
else if ( ((LA116_57>=FORCED_END_OF_LINE && LA116_57<=WIKI)||(LA116_57>=POUND && LA116_57<=50)||(LA116_57>=52 && LA116_57<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 57, input);
throw nvae;
}
}
else if ( ((LA116_37>=FORCED_END_OF_LINE && LA116_37<=WIKI)||(LA116_37>=POUND && LA116_37<=54)||(LA116_37>=56 && LA116_37<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 37, input);
throw nvae;
}
}
else if ( ((LA116_19>=FORCED_END_OF_LINE && LA116_19<=WIKI)||(LA116_19>=POUND && LA116_19<=44)||(LA116_19>=46 && LA116_19<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 19, input);
throw nvae;
}
}
else if ( ((LA116_4>=FORCED_END_OF_LINE && LA116_4<=WIKI)||(LA116_4>=POUND && LA116_4<=44)||(LA116_4>=46 && LA116_4<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 4, input);
throw nvae;
}
}
break;
case 57:
{
int LA116_5 = input.LA(2);
if ( (LA116_5==58) ) {
int LA116_20 = input.LA(3);
if ( (LA116_20==59) ) {
int LA116_38 = input.LA(4);
if ( (LA116_38==48) ) {
int LA116_58 = input.LA(5);
if ( (LA116_58==49) ) {
int LA116_77 = input.LA(6);
if ( (LA116_77==46) ) {
int LA116_96 = input.LA(7);
if ( (LA116_96==49) ) {
int LA116_110 = input.LA(8);
if ( ((LA116_110>=FORCED_END_OF_LINE && LA116_110<=WIKI)||(LA116_110>=POUND && LA116_110<=INSIGNIFICANT_CHAR)||(LA116_110>=42 && LA116_110<=80)) ) {
alt116=2;
}
else if ( (LA116_110==41) ) {
int LA116_34 = input.LA(9);
if ( ((LA116_34>=FORCED_END_OF_LINE && LA116_34<=WIKI)||(LA116_34>=POUND && LA116_34<=EQUAL)||(LA116_34>=ITAL && LA116_34<=NOWIKI_CLOSE)||(LA116_34>=IMAGE_CLOSE && LA116_34<=80)) ) {
alt116=1;
}
else if ( (LA116_34==PIPE||LA116_34==LINK_CLOSE) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 34, input);
throw nvae;
}
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 110, input);
throw nvae;
}
}
else if ( ((LA116_96>=FORCED_END_OF_LINE && LA116_96<=WIKI)||(LA116_96>=POUND && LA116_96<=48)||(LA116_96>=50 && LA116_96<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 96, input);
throw nvae;
}
}
else if ( ((LA116_77>=FORCED_END_OF_LINE && LA116_77<=WIKI)||(LA116_77>=POUND && LA116_77<=45)||(LA116_77>=47 && LA116_77<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 77, input);
throw nvae;
}
}
else if ( ((LA116_58>=FORCED_END_OF_LINE && LA116_58<=WIKI)||(LA116_58>=POUND && LA116_58<=48)||(LA116_58>=50 && LA116_58<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 58, input);
throw nvae;
}
}
else if ( ((LA116_38>=FORCED_END_OF_LINE && LA116_38<=WIKI)||(LA116_38>=POUND && LA116_38<=47)||(LA116_38>=49 && LA116_38<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 38, input);
throw nvae;
}
}
else if ( ((LA116_20>=FORCED_END_OF_LINE && LA116_20<=WIKI)||(LA116_20>=POUND && LA116_20<=58)||(LA116_20>=60 && LA116_20<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 20, input);
throw nvae;
}
}
else if ( ((LA116_5>=FORCED_END_OF_LINE && LA116_5<=WIKI)||(LA116_5>=POUND && LA116_5<=57)||(LA116_5>=59 && LA116_5<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 5, input);
throw nvae;
}
}
break;
case 60:
{
switch ( input.LA(2) ) {
case 45:
{
int LA116_21 = input.LA(3);
if ( (LA116_21==49) ) {
int LA116_39 = input.LA(4);
if ( (LA116_39==65) ) {
int LA116_59 = input.LA(5);
if ( (LA116_59==60) ) {
int LA116_78 = input.LA(6);
if ( (LA116_78==45) ) {
int LA116_97 = input.LA(7);
if ( (LA116_97==49) ) {
int LA116_111 = input.LA(8);
if ( (LA116_111==65) ) {
int LA116_121 = input.LA(9);
if ( (LA116_121==41) ) {
int LA116_34 = input.LA(10);
if ( ((LA116_34>=FORCED_END_OF_LINE && LA116_34<=WIKI)||(LA116_34>=POUND && LA116_34<=EQUAL)||(LA116_34>=ITAL && LA116_34<=NOWIKI_CLOSE)||(LA116_34>=IMAGE_CLOSE && LA116_34<=80)) ) {
alt116=1;
}
else if ( (LA116_34==PIPE||LA116_34==LINK_CLOSE) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 34, input);
throw nvae;
}
}
else if ( ((LA116_121>=FORCED_END_OF_LINE && LA116_121<=WIKI)||(LA116_121>=POUND && LA116_121<=INSIGNIFICANT_CHAR)||(LA116_121>=42 && LA116_121<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 121, input);
throw nvae;
}
}
else if ( ((LA116_111>=FORCED_END_OF_LINE && LA116_111<=WIKI)||(LA116_111>=POUND && LA116_111<=64)||(LA116_111>=66 && LA116_111<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 111, input);
throw nvae;
}
}
else if ( ((LA116_97>=FORCED_END_OF_LINE && LA116_97<=WIKI)||(LA116_97>=POUND && LA116_97<=48)||(LA116_97>=50 && LA116_97<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 97, input);
throw nvae;
}
}
else if ( ((LA116_78>=FORCED_END_OF_LINE && LA116_78<=WIKI)||(LA116_78>=POUND && LA116_78<=44)||(LA116_78>=46 && LA116_78<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 78, input);
throw nvae;
}
}
else if ( ((LA116_59>=FORCED_END_OF_LINE && LA116_59<=WIKI)||(LA116_59>=POUND && LA116_59<=59)||(LA116_59>=61 && LA116_59<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 59, input);
throw nvae;
}
}
else if ( ((LA116_39>=FORCED_END_OF_LINE && LA116_39<=WIKI)||(LA116_39>=POUND && LA116_39<=64)||(LA116_39>=66 && LA116_39<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 39, input);
throw nvae;
}
}
else if ( ((LA116_21>=FORCED_END_OF_LINE && LA116_21<=WIKI)||(LA116_21>=POUND && LA116_21<=48)||(LA116_21>=50 && LA116_21<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 21, input);
throw nvae;
}
}
break;
case 56:
{
switch ( input.LA(3) ) {
case 64:
{
int LA116_40 = input.LA(4);
if ( (LA116_40==49) ) {
int LA116_60 = input.LA(5);
if ( (LA116_60==61) ) {
int LA116_79 = input.LA(6);
if ( (LA116_79==48) ) {
int LA116_98 = input.LA(7);
if ( (LA116_98==49) ) {
int LA116_112 = input.LA(8);
if ( (LA116_112==46) ) {
int LA116_122 = input.LA(9);
if ( (LA116_122==49) ) {
int LA116_129 = input.LA(10);
if ( (LA116_129==41) ) {
int LA116_34 = input.LA(11);
if ( ((LA116_34>=FORCED_END_OF_LINE && LA116_34<=WIKI)||(LA116_34>=POUND && LA116_34<=EQUAL)||(LA116_34>=ITAL && LA116_34<=NOWIKI_CLOSE)||(LA116_34>=IMAGE_CLOSE && LA116_34<=80)) ) {
alt116=1;
}
else if ( (LA116_34==PIPE||LA116_34==LINK_CLOSE) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 34, input);
throw nvae;
}
}
else if ( ((LA116_129>=FORCED_END_OF_LINE && LA116_129<=WIKI)||(LA116_129>=POUND && LA116_129<=INSIGNIFICANT_CHAR)||(LA116_129>=42 && LA116_129<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 129, input);
throw nvae;
}
}
else if ( ((LA116_122>=FORCED_END_OF_LINE && LA116_122<=WIKI)||(LA116_122>=POUND && LA116_122<=48)||(LA116_122>=50 && LA116_122<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 122, input);
throw nvae;
}
}
else if ( ((LA116_112>=FORCED_END_OF_LINE && LA116_112<=WIKI)||(LA116_112>=POUND && LA116_112<=45)||(LA116_112>=47 && LA116_112<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 112, input);
throw nvae;
}
}
else if ( ((LA116_98>=FORCED_END_OF_LINE && LA116_98<=WIKI)||(LA116_98>=POUND && LA116_98<=48)||(LA116_98>=50 && LA116_98<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 98, input);
throw nvae;
}
}
else if ( ((LA116_79>=FORCED_END_OF_LINE && LA116_79<=WIKI)||(LA116_79>=POUND && LA116_79<=47)||(LA116_79>=49 && LA116_79<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 79, input);
throw nvae;
}
}
else if ( ((LA116_60>=FORCED_END_OF_LINE && LA116_60<=WIKI)||(LA116_60>=POUND && LA116_60<=60)||(LA116_60>=62 && LA116_60<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 60, input);
throw nvae;
}
}
else if ( ((LA116_40>=FORCED_END_OF_LINE && LA116_40<=WIKI)||(LA116_40>=POUND && LA116_40<=48)||(LA116_40>=50 && LA116_40<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 40, input);
throw nvae;
}
}
break;
case 61:
{
int LA116_41 = input.LA(4);
if ( (LA116_41==62) ) {
int LA116_61 = input.LA(5);
if ( (LA116_61==63) ) {
int LA116_80 = input.LA(6);
if ( (LA116_80==61) ) {
int LA116_99 = input.LA(7);
if ( (LA116_99==51) ) {
int LA116_113 = input.LA(8);
if ( (LA116_113==51) ) {
int LA116_123 = input.LA(9);
if ( (LA116_123==41) ) {
int LA116_34 = input.LA(10);
if ( ((LA116_34>=FORCED_END_OF_LINE && LA116_34<=WIKI)||(LA116_34>=POUND && LA116_34<=EQUAL)||(LA116_34>=ITAL && LA116_34<=NOWIKI_CLOSE)||(LA116_34>=IMAGE_CLOSE && LA116_34<=80)) ) {
alt116=1;
}
else if ( (LA116_34==PIPE||LA116_34==LINK_CLOSE) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 34, input);
throw nvae;
}
}
else if ( ((LA116_123>=FORCED_END_OF_LINE && LA116_123<=WIKI)||(LA116_123>=POUND && LA116_123<=INSIGNIFICANT_CHAR)||(LA116_123>=42 && LA116_123<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 123, input);
throw nvae;
}
}
else if ( ((LA116_113>=FORCED_END_OF_LINE && LA116_113<=WIKI)||(LA116_113>=POUND && LA116_113<=50)||(LA116_113>=52 && LA116_113<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 113, input);
throw nvae;
}
}
else if ( ((LA116_99>=FORCED_END_OF_LINE && LA116_99<=WIKI)||(LA116_99>=POUND && LA116_99<=50)||(LA116_99>=52 && LA116_99<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 99, input);
throw nvae;
}
}
else if ( ((LA116_80>=FORCED_END_OF_LINE && LA116_80<=WIKI)||(LA116_80>=POUND && LA116_80<=60)||(LA116_80>=62 && LA116_80<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 80, input);
throw nvae;
}
}
else if ( ((LA116_61>=FORCED_END_OF_LINE && LA116_61<=WIKI)||(LA116_61>=POUND && LA116_61<=62)||(LA116_61>=64 && LA116_61<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 61, input);
throw nvae;
}
}
else if ( ((LA116_41>=FORCED_END_OF_LINE && LA116_41<=WIKI)||(LA116_41>=POUND && LA116_41<=61)||(LA116_41>=63 && LA116_41<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 41, input);
throw nvae;
}
}
break;
case FORCED_END_OF_LINE:
case HEADING_SECTION:
case HORIZONTAL_SECTION:
case LIST_ITEM:
case LIST_ITEM_PART:
case NOWIKI_SECTION:
case SCAPE_NODE:
case TEXT_NODE:
case UNORDERED_LIST:
case UNFORMATTED_TEXT:
case WIKI:
case POUND:
case STAR:
case EQUAL:
case PIPE:
case ITAL:
case LINK_OPEN:
case IMAGE_OPEN:
case NOWIKI_OPEN:
case EXTENSION:
case FORCED_LINEBREAK:
case ESCAPE:
case NOWIKI_BLOCK_CLOSE:
case NOWIKI_CLOSE:
case LINK_CLOSE:
case IMAGE_CLOSE:
case BLANKS:
case DASH:
case CR:
case LF:
case SPACE:
case TABULATOR:
case BRACE_CLOSE:
case COLON_SLASH:
case SLASH:
case INSIGNIFICANT_CHAR:
case 41:
case 42:
case 43:
case 44:
case 45:
case 46:
case 47:
case 48:
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 56:
case 57:
case 58:
case 59:
case 60:
case 62:
case 63:
case 65:
case 66:
case 67:
case 68:
case 69:
case 70:
case 71:
case 72:
case 73:
case 74:
case 75:
case 76:
case 77:
case 78:
case 79:
case 80:
{
alt116=2;
}
break;
default:
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 22, input);
throw nvae;
}
}
break;
case FORCED_END_OF_LINE:
case HEADING_SECTION:
case HORIZONTAL_SECTION:
case LIST_ITEM:
case LIST_ITEM_PART:
case NOWIKI_SECTION:
case SCAPE_NODE:
case TEXT_NODE:
case UNORDERED_LIST:
case UNFORMATTED_TEXT:
case WIKI:
case POUND:
case STAR:
case EQUAL:
case PIPE:
case ITAL:
case LINK_OPEN:
case IMAGE_OPEN:
case NOWIKI_OPEN:
case EXTENSION:
case FORCED_LINEBREAK:
case ESCAPE:
case NOWIKI_BLOCK_CLOSE:
case NOWIKI_CLOSE:
case LINK_CLOSE:
case IMAGE_CLOSE:
case BLANKS:
case DASH:
case CR:
case LF:
case SPACE:
case TABULATOR:
case BRACE_CLOSE:
case COLON_SLASH:
case SLASH:
case INSIGNIFICANT_CHAR:
case 41:
case 42:
case 43:
case 44:
case 46:
case 47:
case 48:
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 57:
case 58:
case 59:
case 60:
case 61:
case 62:
case 63:
case 64:
case 65:
case 66:
case 67:
case 68:
case 69:
case 70:
case 71:
case 72:
case 73:
case 74:
case 75:
case 76:
case 77:
case 78:
case 79:
case 80:
{
alt116=2;
}
break;
default:
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 6, input);
throw nvae;
}
}
break;
case 66:
{
switch ( input.LA(2) ) {
case 69:
{
int LA116_23 = input.LA(3);
if ( (LA116_23==61) ) {
int LA116_42 = input.LA(4);
if ( (LA116_42==65) ) {
int LA116_62 = input.LA(5);
if ( (LA116_62==61) ) {
int LA116_81 = input.LA(6);
if ( ((LA116_81>=FORCED_END_OF_LINE && LA116_81<=WIKI)||(LA116_81>=POUND && LA116_81<=INSIGNIFICANT_CHAR)||(LA116_81>=42 && LA116_81<=80)) ) {
alt116=2;
}
else if ( (LA116_81==41) ) {
int LA116_34 = input.LA(7);
if ( ((LA116_34>=FORCED_END_OF_LINE && LA116_34<=WIKI)||(LA116_34>=POUND && LA116_34<=EQUAL)||(LA116_34>=ITAL && LA116_34<=NOWIKI_CLOSE)||(LA116_34>=IMAGE_CLOSE && LA116_34<=80)) ) {
alt116=1;
}
else if ( (LA116_34==PIPE||LA116_34==LINK_CLOSE) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 34, input);
throw nvae;
}
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 81, input);
throw nvae;
}
}
else if ( ((LA116_62>=FORCED_END_OF_LINE && LA116_62<=WIKI)||(LA116_62>=POUND && LA116_62<=60)||(LA116_62>=62 && LA116_62<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 62, input);
throw nvae;
}
}
else if ( ((LA116_42>=FORCED_END_OF_LINE && LA116_42<=WIKI)||(LA116_42>=POUND && LA116_42<=64)||(LA116_42>=66 && LA116_42<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 42, input);
throw nvae;
}
}
else if ( ((LA116_23>=FORCED_END_OF_LINE && LA116_23<=WIKI)||(LA116_23>=POUND && LA116_23<=60)||(LA116_23>=62 && LA116_23<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 23, input);
throw nvae;
}
}
break;
case 64:
{
int LA116_24 = input.LA(3);
if ( (LA116_24==64) ) {
int LA116_43 = input.LA(4);
if ( (LA116_43==67) ) {
int LA116_63 = input.LA(5);
if ( (LA116_63==47) ) {
int LA116_82 = input.LA(6);
if ( (LA116_82==68) ) {
int LA116_100 = input.LA(7);
if ( (LA116_100==56) ) {
int LA116_114 = input.LA(8);
if ( ((LA116_114>=FORCED_END_OF_LINE && LA116_114<=WIKI)||(LA116_114>=POUND && LA116_114<=INSIGNIFICANT_CHAR)||(LA116_114>=42 && LA116_114<=80)) ) {
alt116=2;
}
else if ( (LA116_114==41) ) {
int LA116_34 = input.LA(9);
if ( ((LA116_34>=FORCED_END_OF_LINE && LA116_34<=WIKI)||(LA116_34>=POUND && LA116_34<=EQUAL)||(LA116_34>=ITAL && LA116_34<=NOWIKI_CLOSE)||(LA116_34>=IMAGE_CLOSE && LA116_34<=80)) ) {
alt116=1;
}
else if ( (LA116_34==PIPE||LA116_34==LINK_CLOSE) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 34, input);
throw nvae;
}
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 114, input);
throw nvae;
}
}
else if ( ((LA116_100>=FORCED_END_OF_LINE && LA116_100<=WIKI)||(LA116_100>=POUND && LA116_100<=55)||(LA116_100>=57 && LA116_100<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 100, input);
throw nvae;
}
}
else if ( ((LA116_82>=FORCED_END_OF_LINE && LA116_82<=WIKI)||(LA116_82>=POUND && LA116_82<=67)||(LA116_82>=69 && LA116_82<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 82, input);
throw nvae;
}
}
else if ( ((LA116_63>=FORCED_END_OF_LINE && LA116_63<=WIKI)||(LA116_63>=POUND && LA116_63<=46)||(LA116_63>=48 && LA116_63<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 63, input);
throw nvae;
}
}
else if ( ((LA116_43>=FORCED_END_OF_LINE && LA116_43<=WIKI)||(LA116_43>=POUND && LA116_43<=66)||(LA116_43>=68 && LA116_43<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 43, input);
throw nvae;
}
}
else if ( ((LA116_24>=FORCED_END_OF_LINE && LA116_24<=WIKI)||(LA116_24>=POUND && LA116_24<=63)||(LA116_24>=65 && LA116_24<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 24, input);
throw nvae;
}
}
break;
case FORCED_END_OF_LINE:
case HEADING_SECTION:
case HORIZONTAL_SECTION:
case LIST_ITEM:
case LIST_ITEM_PART:
case NOWIKI_SECTION:
case SCAPE_NODE:
case TEXT_NODE:
case UNORDERED_LIST:
case UNFORMATTED_TEXT:
case WIKI:
case POUND:
case STAR:
case EQUAL:
case PIPE:
case ITAL:
case LINK_OPEN:
case IMAGE_OPEN:
case NOWIKI_OPEN:
case EXTENSION:
case FORCED_LINEBREAK:
case ESCAPE:
case NOWIKI_BLOCK_CLOSE:
case NOWIKI_CLOSE:
case LINK_CLOSE:
case IMAGE_CLOSE:
case BLANKS:
case DASH:
case CR:
case LF:
case SPACE:
case TABULATOR:
case BRACE_CLOSE:
case COLON_SLASH:
case SLASH:
case INSIGNIFICANT_CHAR:
case 41:
case 42:
case 43:
case 44:
case 45:
case 46:
case 47:
case 48:
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 56:
case 57:
case 58:
case 59:
case 60:
case 61:
case 62:
case 63:
case 65:
case 66:
case 67:
case 68:
case 70:
case 71:
case 72:
case 73:
case 74:
case 75:
case 76:
case 77:
case 78:
case 79:
case 80:
{
alt116=2;
}
break;
default:
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 7, input);
throw nvae;
}
}
break;
case 59:
{
switch ( input.LA(2) ) {
case 47:
{
switch ( input.LA(3) ) {
case 46:
{
int LA116_44 = input.LA(4);
if ( (LA116_44==49) ) {
int LA116_64 = input.LA(5);
if ( (LA116_64==48) ) {
int LA116_83 = input.LA(6);
if ( (LA116_83==49) ) {
int LA116_101 = input.LA(7);
if ( (LA116_101==46) ) {
int LA116_115 = input.LA(8);
if ( (LA116_115==49) ) {
int LA116_124 = input.LA(9);
if ( (LA116_124==41) ) {
int LA116_34 = input.LA(10);
if ( ((LA116_34>=FORCED_END_OF_LINE && LA116_34<=WIKI)||(LA116_34>=POUND && LA116_34<=EQUAL)||(LA116_34>=ITAL && LA116_34<=NOWIKI_CLOSE)||(LA116_34>=IMAGE_CLOSE && LA116_34<=80)) ) {
alt116=1;
}
else if ( (LA116_34==PIPE||LA116_34==LINK_CLOSE) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 34, input);
throw nvae;
}
}
else if ( ((LA116_124>=FORCED_END_OF_LINE && LA116_124<=WIKI)||(LA116_124>=POUND && LA116_124<=INSIGNIFICANT_CHAR)||(LA116_124>=42 && LA116_124<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 124, input);
throw nvae;
}
}
else if ( ((LA116_115>=FORCED_END_OF_LINE && LA116_115<=WIKI)||(LA116_115>=POUND && LA116_115<=48)||(LA116_115>=50 && LA116_115<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 115, input);
throw nvae;
}
}
else if ( ((LA116_101>=FORCED_END_OF_LINE && LA116_101<=WIKI)||(LA116_101>=POUND && LA116_101<=45)||(LA116_101>=47 && LA116_101<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 101, input);
throw nvae;
}
}
else if ( ((LA116_83>=FORCED_END_OF_LINE && LA116_83<=WIKI)||(LA116_83>=POUND && LA116_83<=48)||(LA116_83>=50 && LA116_83<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 83, input);
throw nvae;
}
}
else if ( ((LA116_64>=FORCED_END_OF_LINE && LA116_64<=WIKI)||(LA116_64>=POUND && LA116_64<=47)||(LA116_64>=49 && LA116_64<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 64, input);
throw nvae;
}
}
else if ( ((LA116_44>=FORCED_END_OF_LINE && LA116_44<=WIKI)||(LA116_44>=POUND && LA116_44<=48)||(LA116_44>=50 && LA116_44<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 44, input);
throw nvae;
}
}
break;
case 53:
{
int LA116_45 = input.LA(4);
if ( (LA116_45==70) ) {
int LA116_65 = input.LA(5);
if ( (LA116_65==51) ) {
int LA116_84 = input.LA(6);
if ( (LA116_84==56) ) {
int LA116_102 = input.LA(7);
if ( (LA116_102==48) ) {
int LA116_116 = input.LA(8);
if ( (LA116_116==49) ) {
int LA116_125 = input.LA(9);
if ( (LA116_125==46) ) {
int LA116_130 = input.LA(10);
if ( (LA116_130==49) ) {
int LA116_133 = input.LA(11);
if ( (LA116_133==41) ) {
int LA116_34 = input.LA(12);
if ( ((LA116_34>=FORCED_END_OF_LINE && LA116_34<=WIKI)||(LA116_34>=POUND && LA116_34<=EQUAL)||(LA116_34>=ITAL && LA116_34<=NOWIKI_CLOSE)||(LA116_34>=IMAGE_CLOSE && LA116_34<=80)) ) {
alt116=1;
}
else if ( (LA116_34==PIPE||LA116_34==LINK_CLOSE) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 34, input);
throw nvae;
}
}
else if ( ((LA116_133>=FORCED_END_OF_LINE && LA116_133<=WIKI)||(LA116_133>=POUND && LA116_133<=INSIGNIFICANT_CHAR)||(LA116_133>=42 && LA116_133<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 133, input);
throw nvae;
}
}
else if ( ((LA116_130>=FORCED_END_OF_LINE && LA116_130<=WIKI)||(LA116_130>=POUND && LA116_130<=48)||(LA116_130>=50 && LA116_130<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 130, input);
throw nvae;
}
}
else if ( ((LA116_125>=FORCED_END_OF_LINE && LA116_125<=WIKI)||(LA116_125>=POUND && LA116_125<=45)||(LA116_125>=47 && LA116_125<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 125, input);
throw nvae;
}
}
else if ( ((LA116_116>=FORCED_END_OF_LINE && LA116_116<=WIKI)||(LA116_116>=POUND && LA116_116<=48)||(LA116_116>=50 && LA116_116<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 116, input);
throw nvae;
}
}
else if ( ((LA116_102>=FORCED_END_OF_LINE && LA116_102<=WIKI)||(LA116_102>=POUND && LA116_102<=47)||(LA116_102>=49 && LA116_102<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 102, input);
throw nvae;
}
}
else if ( ((LA116_84>=FORCED_END_OF_LINE && LA116_84<=WIKI)||(LA116_84>=POUND && LA116_84<=55)||(LA116_84>=57 && LA116_84<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 84, input);
throw nvae;
}
}
else if ( ((LA116_65>=FORCED_END_OF_LINE && LA116_65<=WIKI)||(LA116_65>=POUND && LA116_65<=50)||(LA116_65>=52 && LA116_65<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 65, input);
throw nvae;
}
}
else if ( ((LA116_45>=FORCED_END_OF_LINE && LA116_45<=WIKI)||(LA116_45>=POUND && LA116_45<=69)||(LA116_45>=71 && LA116_45<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 45, input);
throw nvae;
}
}
break;
case FORCED_END_OF_LINE:
case HEADING_SECTION:
case HORIZONTAL_SECTION:
case LIST_ITEM:
case LIST_ITEM_PART:
case NOWIKI_SECTION:
case SCAPE_NODE:
case TEXT_NODE:
case UNORDERED_LIST:
case UNFORMATTED_TEXT:
case WIKI:
case POUND:
case STAR:
case EQUAL:
case PIPE:
case ITAL:
case LINK_OPEN:
case IMAGE_OPEN:
case NOWIKI_OPEN:
case EXTENSION:
case FORCED_LINEBREAK:
case ESCAPE:
case NOWIKI_BLOCK_CLOSE:
case NOWIKI_CLOSE:
case LINK_CLOSE:
case IMAGE_CLOSE:
case BLANKS:
case DASH:
case CR:
case LF:
case SPACE:
case TABULATOR:
case BRACE_CLOSE:
case COLON_SLASH:
case SLASH:
case INSIGNIFICANT_CHAR:
case 41:
case 42:
case 43:
case 44:
case 45:
case 47:
case 48:
case 49:
case 50:
case 51:
case 52:
case 54:
case 55:
case 56:
case 57:
case 58:
case 59:
case 60:
case 61:
case 62:
case 63:
case 64:
case 65:
case 66:
case 67:
case 68:
case 69:
case 70:
case 71:
case 72:
case 73:
case 74:
case 75:
case 76:
case 77:
case 78:
case 79:
case 80:
{
alt116=2;
}
break;
default:
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 25, input);
throw nvae;
}
}
break;
case 67:
{
int LA116_26 = input.LA(3);
if ( (LA116_26==48) ) {
int LA116_46 = input.LA(4);
if ( (LA116_46==49) ) {
int LA116_66 = input.LA(5);
if ( (LA116_66==46) ) {
int LA116_85 = input.LA(6);
if ( (LA116_85==49) ) {
int LA116_103 = input.LA(7);
if ( ((LA116_103>=FORCED_END_OF_LINE && LA116_103<=WIKI)||(LA116_103>=POUND && LA116_103<=INSIGNIFICANT_CHAR)||(LA116_103>=42 && LA116_103<=80)) ) {
alt116=2;
}
else if ( (LA116_103==41) ) {
int LA116_34 = input.LA(8);
if ( ((LA116_34>=FORCED_END_OF_LINE && LA116_34<=WIKI)||(LA116_34>=POUND && LA116_34<=EQUAL)||(LA116_34>=ITAL && LA116_34<=NOWIKI_CLOSE)||(LA116_34>=IMAGE_CLOSE && LA116_34<=80)) ) {
alt116=1;
}
else if ( (LA116_34==PIPE||LA116_34==LINK_CLOSE) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 34, input);
throw nvae;
}
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 103, input);
throw nvae;
}
}
else if ( ((LA116_85>=FORCED_END_OF_LINE && LA116_85<=WIKI)||(LA116_85>=POUND && LA116_85<=48)||(LA116_85>=50 && LA116_85<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 85, input);
throw nvae;
}
}
else if ( ((LA116_66>=FORCED_END_OF_LINE && LA116_66<=WIKI)||(LA116_66>=POUND && LA116_66<=45)||(LA116_66>=47 && LA116_66<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 66, input);
throw nvae;
}
}
else if ( ((LA116_46>=FORCED_END_OF_LINE && LA116_46<=WIKI)||(LA116_46>=POUND && LA116_46<=48)||(LA116_46>=50 && LA116_46<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 46, input);
throw nvae;
}
}
else if ( ((LA116_26>=FORCED_END_OF_LINE && LA116_26<=WIKI)||(LA116_26>=POUND && LA116_26<=47)||(LA116_26>=49 && LA116_26<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 26, input);
throw nvae;
}
}
break;
case FORCED_END_OF_LINE:
case HEADING_SECTION:
case HORIZONTAL_SECTION:
case LIST_ITEM:
case LIST_ITEM_PART:
case NOWIKI_SECTION:
case SCAPE_NODE:
case TEXT_NODE:
case UNORDERED_LIST:
case UNFORMATTED_TEXT:
case WIKI:
case POUND:
case STAR:
case EQUAL:
case PIPE:
case ITAL:
case LINK_OPEN:
case IMAGE_OPEN:
case NOWIKI_OPEN:
case EXTENSION:
case FORCED_LINEBREAK:
case ESCAPE:
case NOWIKI_BLOCK_CLOSE:
case NOWIKI_CLOSE:
case LINK_CLOSE:
case IMAGE_CLOSE:
case BLANKS:
case DASH:
case CR:
case LF:
case SPACE:
case TABULATOR:
case BRACE_CLOSE:
case COLON_SLASH:
case SLASH:
case INSIGNIFICANT_CHAR:
case 41:
case 42:
case 43:
case 44:
case 45:
case 46:
case 48:
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 56:
case 57:
case 58:
case 59:
case 60:
case 61:
case 62:
case 63:
case 64:
case 65:
case 66:
case 68:
case 69:
case 70:
case 71:
case 72:
case 73:
case 74:
case 75:
case 76:
case 77:
case 78:
case 79:
case 80:
{
alt116=2;
}
break;
default:
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 8, input);
throw nvae;
}
}
break;
case 71:
{
int LA116_9 = input.LA(2);
if ( (LA116_9==61) ) {
int LA116_27 = input.LA(3);
if ( (LA116_27==64) ) {
int LA116_47 = input.LA(4);
if ( (LA116_47==56) ) {
int LA116_67 = input.LA(5);
if ( (LA116_67==45) ) {
int LA116_86 = input.LA(6);
if ( (LA116_86==72) ) {
int LA116_104 = input.LA(7);
if ( (LA116_104==41) ) {
int LA116_34 = input.LA(8);
if ( ((LA116_34>=FORCED_END_OF_LINE && LA116_34<=WIKI)||(LA116_34>=POUND && LA116_34<=EQUAL)||(LA116_34>=ITAL && LA116_34<=NOWIKI_CLOSE)||(LA116_34>=IMAGE_CLOSE && LA116_34<=80)) ) {
alt116=1;
}
else if ( (LA116_34==PIPE||LA116_34==LINK_CLOSE) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 34, input);
throw nvae;
}
}
else if ( ((LA116_104>=FORCED_END_OF_LINE && LA116_104<=WIKI)||(LA116_104>=POUND && LA116_104<=INSIGNIFICANT_CHAR)||(LA116_104>=42 && LA116_104<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 104, input);
throw nvae;
}
}
else if ( ((LA116_86>=FORCED_END_OF_LINE && LA116_86<=WIKI)||(LA116_86>=POUND && LA116_86<=71)||(LA116_86>=73 && LA116_86<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 86, input);
throw nvae;
}
}
else if ( ((LA116_67>=FORCED_END_OF_LINE && LA116_67<=WIKI)||(LA116_67>=POUND && LA116_67<=44)||(LA116_67>=46 && LA116_67<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 67, input);
throw nvae;
}
}
else if ( ((LA116_47>=FORCED_END_OF_LINE && LA116_47<=WIKI)||(LA116_47>=POUND && LA116_47<=55)||(LA116_47>=57 && LA116_47<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 47, input);
throw nvae;
}
}
else if ( ((LA116_27>=FORCED_END_OF_LINE && LA116_27<=WIKI)||(LA116_27>=POUND && LA116_27<=63)||(LA116_27>=65 && LA116_27<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 27, input);
throw nvae;
}
}
else if ( ((LA116_9>=FORCED_END_OF_LINE && LA116_9<=WIKI)||(LA116_9>=POUND && LA116_9<=60)||(LA116_9>=62 && LA116_9<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 9, input);
throw nvae;
}
}
break;
case 58:
{
int LA116_10 = input.LA(2);
if ( (LA116_10==65) ) {
int LA116_28 = input.LA(3);
if ( (LA116_28==49) ) {
int LA116_48 = input.LA(4);
if ( (LA116_48==70) ) {
int LA116_68 = input.LA(5);
if ( (LA116_68==58) ) {
int LA116_87 = input.LA(6);
if ( (LA116_87==65) ) {
int LA116_105 = input.LA(7);
if ( (LA116_105==61) ) {
int LA116_117 = input.LA(8);
if ( (LA116_117==70) ) {
int LA116_126 = input.LA(9);
if ( ((LA116_126>=FORCED_END_OF_LINE && LA116_126<=WIKI)||(LA116_126>=POUND && LA116_126<=INSIGNIFICANT_CHAR)||(LA116_126>=42 && LA116_126<=80)) ) {
alt116=2;
}
else if ( (LA116_126==41) ) {
int LA116_34 = input.LA(10);
if ( ((LA116_34>=FORCED_END_OF_LINE && LA116_34<=WIKI)||(LA116_34>=POUND && LA116_34<=EQUAL)||(LA116_34>=ITAL && LA116_34<=NOWIKI_CLOSE)||(LA116_34>=IMAGE_CLOSE && LA116_34<=80)) ) {
alt116=1;
}
else if ( (LA116_34==PIPE||LA116_34==LINK_CLOSE) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 34, input);
throw nvae;
}
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 126, input);
throw nvae;
}
}
else if ( ((LA116_117>=FORCED_END_OF_LINE && LA116_117<=WIKI)||(LA116_117>=POUND && LA116_117<=69)||(LA116_117>=71 && LA116_117<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 117, input);
throw nvae;
}
}
else if ( ((LA116_105>=FORCED_END_OF_LINE && LA116_105<=WIKI)||(LA116_105>=POUND && LA116_105<=60)||(LA116_105>=62 && LA116_105<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 105, input);
throw nvae;
}
}
else if ( ((LA116_87>=FORCED_END_OF_LINE && LA116_87<=WIKI)||(LA116_87>=POUND && LA116_87<=64)||(LA116_87>=66 && LA116_87<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 87, input);
throw nvae;
}
}
else if ( ((LA116_68>=FORCED_END_OF_LINE && LA116_68<=WIKI)||(LA116_68>=POUND && LA116_68<=57)||(LA116_68>=59 && LA116_68<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 68, input);
throw nvae;
}
}
else if ( ((LA116_48>=FORCED_END_OF_LINE && LA116_48<=WIKI)||(LA116_48>=POUND && LA116_48<=69)||(LA116_48>=71 && LA116_48<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 48, input);
throw nvae;
}
}
else if ( ((LA116_28>=FORCED_END_OF_LINE && LA116_28<=WIKI)||(LA116_28>=POUND && LA116_28<=48)||(LA116_28>=50 && LA116_28<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 28, input);
throw nvae;
}
}
else if ( ((LA116_10>=FORCED_END_OF_LINE && LA116_10<=WIKI)||(LA116_10>=POUND && LA116_10<=64)||(LA116_10>=66 && LA116_10<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 10, input);
throw nvae;
}
}
break;
case 73:
{
switch ( input.LA(2) ) {
case 49:
{
int LA116_29 = input.LA(3);
if ( (LA116_29==64) ) {
int LA116_49 = input.LA(4);
if ( (LA116_49==64) ) {
int LA116_69 = input.LA(5);
if ( (LA116_69==51) ) {
int LA116_88 = input.LA(6);
if ( (LA116_88==74) ) {
int LA116_106 = input.LA(7);
if ( (LA116_106==48) ) {
int LA116_118 = input.LA(8);
if ( (LA116_118==49) ) {
int LA116_127 = input.LA(9);
if ( (LA116_127==46) ) {
int LA116_131 = input.LA(10);
if ( (LA116_131==49) ) {
int LA116_134 = input.LA(11);
if ( (LA116_134==41) ) {
int LA116_34 = input.LA(12);
if ( ((LA116_34>=FORCED_END_OF_LINE && LA116_34<=WIKI)||(LA116_34>=POUND && LA116_34<=EQUAL)||(LA116_34>=ITAL && LA116_34<=NOWIKI_CLOSE)||(LA116_34>=IMAGE_CLOSE && LA116_34<=80)) ) {
alt116=1;
}
else if ( (LA116_34==PIPE||LA116_34==LINK_CLOSE) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 34, input);
throw nvae;
}
}
else if ( ((LA116_134>=FORCED_END_OF_LINE && LA116_134<=WIKI)||(LA116_134>=POUND && LA116_134<=INSIGNIFICANT_CHAR)||(LA116_134>=42 && LA116_134<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 134, input);
throw nvae;
}
}
else if ( ((LA116_131>=FORCED_END_OF_LINE && LA116_131<=WIKI)||(LA116_131>=POUND && LA116_131<=48)||(LA116_131>=50 && LA116_131<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 131, input);
throw nvae;
}
}
else if ( ((LA116_127>=FORCED_END_OF_LINE && LA116_127<=WIKI)||(LA116_127>=POUND && LA116_127<=45)||(LA116_127>=47 && LA116_127<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 127, input);
throw nvae;
}
}
else if ( ((LA116_118>=FORCED_END_OF_LINE && LA116_118<=WIKI)||(LA116_118>=POUND && LA116_118<=48)||(LA116_118>=50 && LA116_118<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 118, input);
throw nvae;
}
}
else if ( ((LA116_106>=FORCED_END_OF_LINE && LA116_106<=WIKI)||(LA116_106>=POUND && LA116_106<=47)||(LA116_106>=49 && LA116_106<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 106, input);
throw nvae;
}
}
else if ( ((LA116_88>=FORCED_END_OF_LINE && LA116_88<=WIKI)||(LA116_88>=POUND && LA116_88<=73)||(LA116_88>=75 && LA116_88<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 88, input);
throw nvae;
}
}
else if ( ((LA116_69>=FORCED_END_OF_LINE && LA116_69<=WIKI)||(LA116_69>=POUND && LA116_69<=50)||(LA116_69>=52 && LA116_69<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 69, input);
throw nvae;
}
}
else if ( ((LA116_49>=FORCED_END_OF_LINE && LA116_49<=WIKI)||(LA116_49>=POUND && LA116_49<=63)||(LA116_49>=65 && LA116_49<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 49, input);
throw nvae;
}
}
else if ( ((LA116_29>=FORCED_END_OF_LINE && LA116_29<=WIKI)||(LA116_29>=POUND && LA116_29<=63)||(LA116_29>=65 && LA116_29<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 29, input);
throw nvae;
}
}
break;
case 48:
{
int LA116_30 = input.LA(3);
if ( (LA116_30==49) ) {
int LA116_50 = input.LA(4);
if ( (LA116_50==46) ) {
int LA116_70 = input.LA(5);
if ( (LA116_70==49) ) {
int LA116_89 = input.LA(6);
if ( (LA116_89==41) ) {
int LA116_34 = input.LA(7);
if ( ((LA116_34>=FORCED_END_OF_LINE && LA116_34<=WIKI)||(LA116_34>=POUND && LA116_34<=EQUAL)||(LA116_34>=ITAL && LA116_34<=NOWIKI_CLOSE)||(LA116_34>=IMAGE_CLOSE && LA116_34<=80)) ) {
alt116=1;
}
else if ( (LA116_34==PIPE||LA116_34==LINK_CLOSE) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 34, input);
throw nvae;
}
}
else if ( ((LA116_89>=FORCED_END_OF_LINE && LA116_89<=WIKI)||(LA116_89>=POUND && LA116_89<=INSIGNIFICANT_CHAR)||(LA116_89>=42 && LA116_89<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 89, input);
throw nvae;
}
}
else if ( ((LA116_70>=FORCED_END_OF_LINE && LA116_70<=WIKI)||(LA116_70>=POUND && LA116_70<=48)||(LA116_70>=50 && LA116_70<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 70, input);
throw nvae;
}
}
else if ( ((LA116_50>=FORCED_END_OF_LINE && LA116_50<=WIKI)||(LA116_50>=POUND && LA116_50<=45)||(LA116_50>=47 && LA116_50<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 50, input);
throw nvae;
}
}
else if ( ((LA116_30>=FORCED_END_OF_LINE && LA116_30<=WIKI)||(LA116_30>=POUND && LA116_30<=48)||(LA116_30>=50 && LA116_30<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 30, input);
throw nvae;
}
}
break;
case FORCED_END_OF_LINE:
case HEADING_SECTION:
case HORIZONTAL_SECTION:
case LIST_ITEM:
case LIST_ITEM_PART:
case NOWIKI_SECTION:
case SCAPE_NODE:
case TEXT_NODE:
case UNORDERED_LIST:
case UNFORMATTED_TEXT:
case WIKI:
case POUND:
case STAR:
case EQUAL:
case PIPE:
case ITAL:
case LINK_OPEN:
case IMAGE_OPEN:
case NOWIKI_OPEN:
case EXTENSION:
case FORCED_LINEBREAK:
case ESCAPE:
case NOWIKI_BLOCK_CLOSE:
case NOWIKI_CLOSE:
case LINK_CLOSE:
case IMAGE_CLOSE:
case BLANKS:
case DASH:
case CR:
case LF:
case SPACE:
case TABULATOR:
case BRACE_CLOSE:
case COLON_SLASH:
case SLASH:
case INSIGNIFICANT_CHAR:
case 41:
case 42:
case 43:
case 44:
case 45:
case 46:
case 47:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 56:
case 57:
case 58:
case 59:
case 60:
case 61:
case 62:
case 63:
case 64:
case 65:
case 66:
case 67:
case 68:
case 69:
case 70:
case 71:
case 72:
case 73:
case 74:
case 75:
case 76:
case 77:
case 78:
case 79:
case 80:
{
alt116=2;
}
break;
default:
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 11, input);
throw nvae;
}
}
break;
case 75:
{
int LA116_12 = input.LA(2);
if ( (LA116_12==68) ) {
int LA116_31 = input.LA(3);
if ( (LA116_31==56) ) {
int LA116_51 = input.LA(4);
if ( (LA116_51==67) ) {
int LA116_71 = input.LA(5);
if ( (LA116_71==45) ) {
int LA116_90 = input.LA(6);
if ( (LA116_90==64) ) {
int LA116_107 = input.LA(7);
if ( (LA116_107==41) ) {
int LA116_34 = input.LA(8);
if ( ((LA116_34>=FORCED_END_OF_LINE && LA116_34<=WIKI)||(LA116_34>=POUND && LA116_34<=EQUAL)||(LA116_34>=ITAL && LA116_34<=NOWIKI_CLOSE)||(LA116_34>=IMAGE_CLOSE && LA116_34<=80)) ) {
alt116=1;
}
else if ( (LA116_34==PIPE||LA116_34==LINK_CLOSE) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 34, input);
throw nvae;
}
}
else if ( ((LA116_107>=FORCED_END_OF_LINE && LA116_107<=WIKI)||(LA116_107>=POUND && LA116_107<=INSIGNIFICANT_CHAR)||(LA116_107>=42 && LA116_107<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 107, input);
throw nvae;
}
}
else if ( ((LA116_90>=FORCED_END_OF_LINE && LA116_90<=WIKI)||(LA116_90>=POUND && LA116_90<=63)||(LA116_90>=65 && LA116_90<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 90, input);
throw nvae;
}
}
else if ( ((LA116_71>=FORCED_END_OF_LINE && LA116_71<=WIKI)||(LA116_71>=POUND && LA116_71<=44)||(LA116_71>=46 && LA116_71<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 71, input);
throw nvae;
}
}
else if ( ((LA116_51>=FORCED_END_OF_LINE && LA116_51<=WIKI)||(LA116_51>=POUND && LA116_51<=66)||(LA116_51>=68 && LA116_51<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 51, input);
throw nvae;
}
}
else if ( ((LA116_31>=FORCED_END_OF_LINE && LA116_31<=WIKI)||(LA116_31>=POUND && LA116_31<=55)||(LA116_31>=57 && LA116_31<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 31, input);
throw nvae;
}
}
else if ( ((LA116_12>=FORCED_END_OF_LINE && LA116_12<=WIKI)||(LA116_12>=POUND && LA116_12<=67)||(LA116_12>=69 && LA116_12<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 12, input);
throw nvae;
}
}
break;
case 48:
{
int LA116_13 = input.LA(2);
if ( (LA116_13==49) ) {
int LA116_32 = input.LA(3);
if ( (LA116_32==46) ) {
int LA116_52 = input.LA(4);
if ( (LA116_52==49) ) {
int LA116_72 = input.LA(5);
if ( (LA116_72==70) ) {
int LA116_91 = input.LA(6);
if ( (LA116_91==56) ) {
int LA116_108 = input.LA(7);
if ( (LA116_108==64) ) {
int LA116_119 = input.LA(8);
if ( (LA116_119==49) ) {
int LA116_128 = input.LA(9);
if ( (LA116_128==61) ) {
int LA116_132 = input.LA(10);
if ( (LA116_132==41) ) {
int LA116_34 = input.LA(11);
if ( ((LA116_34>=FORCED_END_OF_LINE && LA116_34<=WIKI)||(LA116_34>=POUND && LA116_34<=EQUAL)||(LA116_34>=ITAL && LA116_34<=NOWIKI_CLOSE)||(LA116_34>=IMAGE_CLOSE && LA116_34<=80)) ) {
alt116=1;
}
else if ( (LA116_34==PIPE||LA116_34==LINK_CLOSE) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 34, input);
throw nvae;
}
}
else if ( ((LA116_132>=FORCED_END_OF_LINE && LA116_132<=WIKI)||(LA116_132>=POUND && LA116_132<=INSIGNIFICANT_CHAR)||(LA116_132>=42 && LA116_132<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 132, input);
throw nvae;
}
}
else if ( ((LA116_128>=FORCED_END_OF_LINE && LA116_128<=WIKI)||(LA116_128>=POUND && LA116_128<=60)||(LA116_128>=62 && LA116_128<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 128, input);
throw nvae;
}
}
else if ( ((LA116_119>=FORCED_END_OF_LINE && LA116_119<=WIKI)||(LA116_119>=POUND && LA116_119<=48)||(LA116_119>=50 && LA116_119<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 119, input);
throw nvae;
}
}
else if ( ((LA116_108>=FORCED_END_OF_LINE && LA116_108<=WIKI)||(LA116_108>=POUND && LA116_108<=63)||(LA116_108>=65 && LA116_108<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 108, input);
throw nvae;
}
}
else if ( ((LA116_91>=FORCED_END_OF_LINE && LA116_91<=WIKI)||(LA116_91>=POUND && LA116_91<=55)||(LA116_91>=57 && LA116_91<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 91, input);
throw nvae;
}
}
else if ( ((LA116_72>=FORCED_END_OF_LINE && LA116_72<=WIKI)||(LA116_72>=POUND && LA116_72<=69)||(LA116_72>=71 && LA116_72<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 72, input);
throw nvae;
}
}
else if ( ((LA116_52>=FORCED_END_OF_LINE && LA116_52<=WIKI)||(LA116_52>=POUND && LA116_52<=48)||(LA116_52>=50 && LA116_52<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 52, input);
throw nvae;
}
}
else if ( ((LA116_32>=FORCED_END_OF_LINE && LA116_32<=WIKI)||(LA116_32>=POUND && LA116_32<=45)||(LA116_32>=47 && LA116_32<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 32, input);
throw nvae;
}
}
else if ( ((LA116_13>=FORCED_END_OF_LINE && LA116_13<=WIKI)||(LA116_13>=POUND && LA116_13<=48)||(LA116_13>=50 && LA116_13<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 13, input);
throw nvae;
}
}
break;
case 76:
{
int LA116_14 = input.LA(2);
if ( (LA116_14==48) ) {
int LA116_33 = input.LA(3);
if ( (LA116_33==49) ) {
int LA116_53 = input.LA(4);
if ( (LA116_53==46) ) {
int LA116_73 = input.LA(5);
if ( (LA116_73==49) ) {
int LA116_92 = input.LA(6);
if ( ((LA116_92>=FORCED_END_OF_LINE && LA116_92<=WIKI)||(LA116_92>=POUND && LA116_92<=INSIGNIFICANT_CHAR)||(LA116_92>=42 && LA116_92<=80)) ) {
alt116=2;
}
else if ( (LA116_92==41) ) {
int LA116_34 = input.LA(7);
if ( ((LA116_34>=FORCED_END_OF_LINE && LA116_34<=WIKI)||(LA116_34>=POUND && LA116_34<=EQUAL)||(LA116_34>=ITAL && LA116_34<=NOWIKI_CLOSE)||(LA116_34>=IMAGE_CLOSE && LA116_34<=80)) ) {
alt116=1;
}
else if ( (LA116_34==PIPE||LA116_34==LINK_CLOSE) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 34, input);
throw nvae;
}
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 92, input);
throw nvae;
}
}
else if ( ((LA116_73>=FORCED_END_OF_LINE && LA116_73<=WIKI)||(LA116_73>=POUND && LA116_73<=48)||(LA116_73>=50 && LA116_73<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 73, input);
throw nvae;
}
}
else if ( ((LA116_53>=FORCED_END_OF_LINE && LA116_53<=WIKI)||(LA116_53>=POUND && LA116_53<=45)||(LA116_53>=47 && LA116_53<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 53, input);
throw nvae;
}
}
else if ( ((LA116_33>=FORCED_END_OF_LINE && LA116_33<=WIKI)||(LA116_33>=POUND && LA116_33<=48)||(LA116_33>=50 && LA116_33<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 33, input);
throw nvae;
}
}
else if ( ((LA116_14>=FORCED_END_OF_LINE && LA116_14<=WIKI)||(LA116_14>=POUND && LA116_14<=47)||(LA116_14>=49 && LA116_14<=80)) ) {
alt116=2;
}
else {
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 14, input);
throw nvae;
}
}
break;
case FORCED_END_OF_LINE:
case HEADING_SECTION:
case HORIZONTAL_SECTION:
case LIST_ITEM:
case LIST_ITEM_PART:
case NOWIKI_SECTION:
case SCAPE_NODE:
case TEXT_NODE:
case UNORDERED_LIST:
case UNFORMATTED_TEXT:
case WIKI:
case POUND:
case STAR:
case EQUAL:
case ITAL:
case LINK_OPEN:
case IMAGE_OPEN:
case NOWIKI_OPEN:
case EXTENSION:
case FORCED_LINEBREAK:
case ESCAPE:
case NOWIKI_BLOCK_CLOSE:
case NOWIKI_CLOSE:
case IMAGE_CLOSE:
case BLANKS:
case DASH:
case CR:
case LF:
case SPACE:
case TABULATOR:
case BRACE_CLOSE:
case COLON_SLASH:
case SLASH:
case INSIGNIFICANT_CHAR:
case 41:
case 43:
case 45:
case 46:
case 47:
case 49:
case 51:
case 52:
case 53:
case 55:
case 56:
case 61:
case 62:
case 63:
case 64:
case 65:
case 67:
case 68:
case 69:
case 70:
case 72:
case 74:
case 77:
case 78:
case 79:
case 80:
{
alt116=2;
}
break;
default:
if (backtracking>0) {failed=true; return link;}
NoViableAltException nvae =
new NoViableAltException("837:1: link_address returns [LinkNode link =null] : (li= link_interwiki_uri ':' p= link_interwiki_pagename | lu= link_uri );", 116, 0, input);
throw nvae;
}
switch (alt116) {
case 1 :
// Creole10.g:838:4: li= link_interwiki_uri ':' p= link_interwiki_pagename
{
pushFollow(FOLLOW_link_interwiki_uri_in_link_address3269);
li=link_interwiki_uri();
_fsp--;
if (failed) return link;
match(input,41,FOLLOW_41_in_link_address3272); if (failed) return link;
pushFollow(FOLLOW_link_interwiki_pagename_in_link_address3279);
p=link_interwiki_pagename();
_fsp--;
if (failed) return link;
if ( backtracking==0 ) {
li.setTitle(p.toString());
link = li;
}
}
break;
case 2 :
// Creole10.g:842:4: lu= link_uri
{
pushFollow(FOLLOW_link_uri_in_link_address3290);
lu=link_uri();
_fsp--;
if (failed) return link;
if ( backtracking==0 ) {
link = new LinkNode(lu.toString());
}
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return link;
}
// $ANTLR end link_address
// $ANTLR start link_interwiki_uri
// Creole10.g:844:1: link_interwiki_uri returns [InterwikiLinkNode interwiki = null] : ( 'C' '2' | 'D' 'o' 'k' 'u' 'W' 'i' 'k' 'i' | 'F' 'l' 'i' 'c' 'k' 'r' | 'G' 'o' 'o' 'g' 'l' 'e' | 'J' 'S' 'P' 'W' 'i' 'k' 'i' | 'M' 'e' 'a' 't' 'b' 'a' 'l' 'l' | 'M' 'e' 'd' 'i' 'a' 'W' 'i' 'k' 'i' | 'M' 'o' 'i' 'n' 'M' 'o' 'i' 'n' | 'O' 'd' 'd' 'm' 'u' 's' 'e' | 'O' 'h' 'a' 'n' 'a' | 'P' 'm' 'W' 'i' 'k' 'i' | 'P' 'u' 'k' 'i' 'W' 'i' 'k' 'i' | 'P' 'u' 'r' 'p' 'l' 'e' 'W' 'i' 'k' 'i' | 'R' 'a' 'd' 'e' 'o' 'x' | 'S' 'n' 'i' 'p' 'S' 'n' 'a' 'p' | 'T' 'i' 'd' 'd' 'l' 'y' 'W' 'i' 'k' 'i' | 'T' 'W' 'i' 'k' 'i' | 'U' 's' 'e' 'm' 'o' 'd' | 'W' 'i' 'k' 'i' 'p' 'e' 'd' 'i' 'a' | 'X' 'W' 'i' 'k' 'i' );
public final InterwikiLinkNode link_interwiki_uri() throws RecognitionException {
InterwikiLinkNode interwiki = null;
try {
// Creole10.g:845:4: ( 'C' '2' | 'D' 'o' 'k' 'u' 'W' 'i' 'k' 'i' | 'F' 'l' 'i' 'c' 'k' 'r' | 'G' 'o' 'o' 'g' 'l' 'e' | 'J' 'S' 'P' 'W' 'i' 'k' 'i' | 'M' 'e' 'a' 't' 'b' 'a' 'l' 'l' | 'M' 'e' 'd' 'i' 'a' 'W' 'i' 'k' 'i' | 'M' 'o' 'i' 'n' 'M' 'o' 'i' 'n' | 'O' 'd' 'd' 'm' 'u' 's' 'e' | 'O' 'h' 'a' 'n' 'a' | 'P' 'm' 'W' 'i' 'k' 'i' | 'P' 'u' 'k' 'i' 'W' 'i' 'k' 'i' | 'P' 'u' 'r' 'p' 'l' 'e' 'W' 'i' 'k' 'i' | 'R' 'a' 'd' 'e' 'o' 'x' | 'S' 'n' 'i' 'p' 'S' 'n' 'a' 'p' | 'T' 'i' 'd' 'd' 'l' 'y' 'W' 'i' 'k' 'i' | 'T' 'W' 'i' 'k' 'i' | 'U' 's' 'e' 'm' 'o' 'd' | 'W' 'i' 'k' 'i' 'p' 'e' 'd' 'i' 'a' | 'X' 'W' 'i' 'k' 'i' )
int alt117=20;
switch ( input.LA(1) ) {
case 42:
{
alt117=1;
}
break;
case 44:
{
alt117=2;
}
break;
case 50:
{
alt117=3;
}
break;
case 54:
{
alt117=4;
}
break;
case 57:
{
alt117=5;
}
break;
case 60:
{
int LA117_6 = input.LA(2);
if ( (LA117_6==56) ) {
int LA117_15 = input.LA(3);
if ( (LA117_15==61) ) {
alt117=6;
}
else if ( (LA117_15==64) ) {
alt117=7;
}
else {
if (backtracking>0) {failed=true; return interwiki;}
NoViableAltException nvae =
new NoViableAltException("844:1: link_interwiki_uri returns [InterwikiLinkNode interwiki = null] : ( 'C' '2' | 'D' 'o' 'k' 'u' 'W' 'i' 'k' 'i' | 'F' 'l' 'i' 'c' 'k' 'r' | 'G' 'o' 'o' 'g' 'l' 'e' | 'J' 'S' 'P' 'W' 'i' 'k' 'i' | 'M' 'e' 'a' 't' 'b' 'a' 'l' 'l' | 'M' 'e' 'd' 'i' 'a' 'W' 'i' 'k' 'i' | 'M' 'o' 'i' 'n' 'M' 'o' 'i' 'n' | 'O' 'd' 'd' 'm' 'u' 's' 'e' | 'O' 'h' 'a' 'n' 'a' | 'P' 'm' 'W' 'i' 'k' 'i' | 'P' 'u' 'k' 'i' 'W' 'i' 'k' 'i' | 'P' 'u' 'r' 'p' 'l' 'e' 'W' 'i' 'k' 'i' | 'R' 'a' 'd' 'e' 'o' 'x' | 'S' 'n' 'i' 'p' 'S' 'n' 'a' 'p' | 'T' 'i' 'd' 'd' 'l' 'y' 'W' 'i' 'k' 'i' | 'T' 'W' 'i' 'k' 'i' | 'U' 's' 'e' 'm' 'o' 'd' | 'W' 'i' 'k' 'i' 'p' 'e' 'd' 'i' 'a' | 'X' 'W' 'i' 'k' 'i' );", 117, 15, input);
throw nvae;
}
}
else if ( (LA117_6==45) ) {
alt117=8;
}
else {
if (backtracking>0) {failed=true; return interwiki;}
NoViableAltException nvae =
new NoViableAltException("844:1: link_interwiki_uri returns [InterwikiLinkNode interwiki = null] : ( 'C' '2' | 'D' 'o' 'k' 'u' 'W' 'i' 'k' 'i' | 'F' 'l' 'i' 'c' 'k' 'r' | 'G' 'o' 'o' 'g' 'l' 'e' | 'J' 'S' 'P' 'W' 'i' 'k' 'i' | 'M' 'e' 'a' 't' 'b' 'a' 'l' 'l' | 'M' 'e' 'd' 'i' 'a' 'W' 'i' 'k' 'i' | 'M' 'o' 'i' 'n' 'M' 'o' 'i' 'n' | 'O' 'd' 'd' 'm' 'u' 's' 'e' | 'O' 'h' 'a' 'n' 'a' | 'P' 'm' 'W' 'i' 'k' 'i' | 'P' 'u' 'k' 'i' 'W' 'i' 'k' 'i' | 'P' 'u' 'r' 'p' 'l' 'e' 'W' 'i' 'k' 'i' | 'R' 'a' 'd' 'e' 'o' 'x' | 'S' 'n' 'i' 'p' 'S' 'n' 'a' 'p' | 'T' 'i' 'd' 'd' 'l' 'y' 'W' 'i' 'k' 'i' | 'T' 'W' 'i' 'k' 'i' | 'U' 's' 'e' 'm' 'o' 'd' | 'W' 'i' 'k' 'i' 'p' 'e' 'd' 'i' 'a' | 'X' 'W' 'i' 'k' 'i' );", 117, 6, input);
throw nvae;
}
}
break;
case 66:
{
int LA117_7 = input.LA(2);
if ( (LA117_7==69) ) {
alt117=10;
}
else if ( (LA117_7==64) ) {
alt117=9;
}
else {
if (backtracking>0) {failed=true; return interwiki;}
NoViableAltException nvae =
new NoViableAltException("844:1: link_interwiki_uri returns [InterwikiLinkNode interwiki = null] : ( 'C' '2' | 'D' 'o' 'k' 'u' 'W' 'i' 'k' 'i' | 'F' 'l' 'i' 'c' 'k' 'r' | 'G' 'o' 'o' 'g' 'l' 'e' | 'J' 'S' 'P' 'W' 'i' 'k' 'i' | 'M' 'e' 'a' 't' 'b' 'a' 'l' 'l' | 'M' 'e' 'd' 'i' 'a' 'W' 'i' 'k' 'i' | 'M' 'o' 'i' 'n' 'M' 'o' 'i' 'n' | 'O' 'd' 'd' 'm' 'u' 's' 'e' | 'O' 'h' 'a' 'n' 'a' | 'P' 'm' 'W' 'i' 'k' 'i' | 'P' 'u' 'k' 'i' 'W' 'i' 'k' 'i' | 'P' 'u' 'r' 'p' 'l' 'e' 'W' 'i' 'k' 'i' | 'R' 'a' 'd' 'e' 'o' 'x' | 'S' 'n' 'i' 'p' 'S' 'n' 'a' 'p' | 'T' 'i' 'd' 'd' 'l' 'y' 'W' 'i' 'k' 'i' | 'T' 'W' 'i' 'k' 'i' | 'U' 's' 'e' 'm' 'o' 'd' | 'W' 'i' 'k' 'i' 'p' 'e' 'd' 'i' 'a' | 'X' 'W' 'i' 'k' 'i' );", 117, 7, input);
throw nvae;
}
}
break;
case 59:
{
int LA117_8 = input.LA(2);
if ( (LA117_8==47) ) {
int LA117_19 = input.LA(3);
if ( (LA117_19==46) ) {
alt117=12;
}
else if ( (LA117_19==53) ) {
alt117=13;
}
else {
if (backtracking>0) {failed=true; return interwiki;}
NoViableAltException nvae =
new NoViableAltException("844:1: link_interwiki_uri returns [InterwikiLinkNode interwiki = null] : ( 'C' '2' | 'D' 'o' 'k' 'u' 'W' 'i' 'k' 'i' | 'F' 'l' 'i' 'c' 'k' 'r' | 'G' 'o' 'o' 'g' 'l' 'e' | 'J' 'S' 'P' 'W' 'i' 'k' 'i' | 'M' 'e' 'a' 't' 'b' 'a' 'l' 'l' | 'M' 'e' 'd' 'i' 'a' 'W' 'i' 'k' 'i' | 'M' 'o' 'i' 'n' 'M' 'o' 'i' 'n' | 'O' 'd' 'd' 'm' 'u' 's' 'e' | 'O' 'h' 'a' 'n' 'a' | 'P' 'm' 'W' 'i' 'k' 'i' | 'P' 'u' 'k' 'i' 'W' 'i' 'k' 'i' | 'P' 'u' 'r' 'p' 'l' 'e' 'W' 'i' 'k' 'i' | 'R' 'a' 'd' 'e' 'o' 'x' | 'S' 'n' 'i' 'p' 'S' 'n' 'a' 'p' | 'T' 'i' 'd' 'd' 'l' 'y' 'W' 'i' 'k' 'i' | 'T' 'W' 'i' 'k' 'i' | 'U' 's' 'e' 'm' 'o' 'd' | 'W' 'i' 'k' 'i' 'p' 'e' 'd' 'i' 'a' | 'X' 'W' 'i' 'k' 'i' );", 117, 19, input);
throw nvae;
}
}
else if ( (LA117_8==67) ) {
alt117=11;
}
else {
if (backtracking>0) {failed=true; return interwiki;}
NoViableAltException nvae =
new NoViableAltException("844:1: link_interwiki_uri returns [InterwikiLinkNode interwiki = null] : ( 'C' '2' | 'D' 'o' 'k' 'u' 'W' 'i' 'k' 'i' | 'F' 'l' 'i' 'c' 'k' 'r' | 'G' 'o' 'o' 'g' 'l' 'e' | 'J' 'S' 'P' 'W' 'i' 'k' 'i' | 'M' 'e' 'a' 't' 'b' 'a' 'l' 'l' | 'M' 'e' 'd' 'i' 'a' 'W' 'i' 'k' 'i' | 'M' 'o' 'i' 'n' 'M' 'o' 'i' 'n' | 'O' 'd' 'd' 'm' 'u' 's' 'e' | 'O' 'h' 'a' 'n' 'a' | 'P' 'm' 'W' 'i' 'k' 'i' | 'P' 'u' 'k' 'i' 'W' 'i' 'k' 'i' | 'P' 'u' 'r' 'p' 'l' 'e' 'W' 'i' 'k' 'i' | 'R' 'a' 'd' 'e' 'o' 'x' | 'S' 'n' 'i' 'p' 'S' 'n' 'a' 'p' | 'T' 'i' 'd' 'd' 'l' 'y' 'W' 'i' 'k' 'i' | 'T' 'W' 'i' 'k' 'i' | 'U' 's' 'e' 'm' 'o' 'd' | 'W' 'i' 'k' 'i' 'p' 'e' 'd' 'i' 'a' | 'X' 'W' 'i' 'k' 'i' );", 117, 8, input);
throw nvae;
}
}
break;
case 71:
{
alt117=14;
}
break;
case 58:
{
alt117=15;
}
break;
case 73:
{
int LA117_11 = input.LA(2);
if ( (LA117_11==49) ) {
alt117=16;
}
else if ( (LA117_11==48) ) {
alt117=17;
}
else {
if (backtracking>0) {failed=true; return interwiki;}
NoViableAltException nvae =
new NoViableAltException("844:1: link_interwiki_uri returns [InterwikiLinkNode interwiki = null] : ( 'C' '2' | 'D' 'o' 'k' 'u' 'W' 'i' 'k' 'i' | 'F' 'l' 'i' 'c' 'k' 'r' | 'G' 'o' 'o' 'g' 'l' 'e' | 'J' 'S' 'P' 'W' 'i' 'k' 'i' | 'M' 'e' 'a' 't' 'b' 'a' 'l' 'l' | 'M' 'e' 'd' 'i' 'a' 'W' 'i' 'k' 'i' | 'M' 'o' 'i' 'n' 'M' 'o' 'i' 'n' | 'O' 'd' 'd' 'm' 'u' 's' 'e' | 'O' 'h' 'a' 'n' 'a' | 'P' 'm' 'W' 'i' 'k' 'i' | 'P' 'u' 'k' 'i' 'W' 'i' 'k' 'i' | 'P' 'u' 'r' 'p' 'l' 'e' 'W' 'i' 'k' 'i' | 'R' 'a' 'd' 'e' 'o' 'x' | 'S' 'n' 'i' 'p' 'S' 'n' 'a' 'p' | 'T' 'i' 'd' 'd' 'l' 'y' 'W' 'i' 'k' 'i' | 'T' 'W' 'i' 'k' 'i' | 'U' 's' 'e' 'm' 'o' 'd' | 'W' 'i' 'k' 'i' 'p' 'e' 'd' 'i' 'a' | 'X' 'W' 'i' 'k' 'i' );", 117, 11, input);
throw nvae;
}
}
break;
case 75:
{
alt117=18;
}
break;
case 48:
{
alt117=19;
}
break;
case 76:
{
alt117=20;
}
break;
default:
if (backtracking>0) {failed=true; return interwiki;}
NoViableAltException nvae =
new NoViableAltException("844:1: link_interwiki_uri returns [InterwikiLinkNode interwiki = null] : ( 'C' '2' | 'D' 'o' 'k' 'u' 'W' 'i' 'k' 'i' | 'F' 'l' 'i' 'c' 'k' 'r' | 'G' 'o' 'o' 'g' 'l' 'e' | 'J' 'S' 'P' 'W' 'i' 'k' 'i' | 'M' 'e' 'a' 't' 'b' 'a' 'l' 'l' | 'M' 'e' 'd' 'i' 'a' 'W' 'i' 'k' 'i' | 'M' 'o' 'i' 'n' 'M' 'o' 'i' 'n' | 'O' 'd' 'd' 'm' 'u' 's' 'e' | 'O' 'h' 'a' 'n' 'a' | 'P' 'm' 'W' 'i' 'k' 'i' | 'P' 'u' 'k' 'i' 'W' 'i' 'k' 'i' | 'P' 'u' 'r' 'p' 'l' 'e' 'W' 'i' 'k' 'i' | 'R' 'a' 'd' 'e' 'o' 'x' | 'S' 'n' 'i' 'p' 'S' 'n' 'a' 'p' | 'T' 'i' 'd' 'd' 'l' 'y' 'W' 'i' 'k' 'i' | 'T' 'W' 'i' 'k' 'i' | 'U' 's' 'e' 'm' 'o' 'd' | 'W' 'i' 'k' 'i' 'p' 'e' 'd' 'i' 'a' | 'X' 'W' 'i' 'k' 'i' );", 117, 0, input);
throw nvae;
}
switch (alt117) {
case 1 :
// Creole10.g:845:4: 'C' '2'
{
match(input,42,FOLLOW_42_in_link_interwiki_uri3306); if (failed) return interwiki;
match(input,43,FOLLOW_43_in_link_interwiki_uri3308); if (failed) return interwiki;
if ( backtracking==0 ) {
interwiki = new C2InterwikiLinkNode();
}
}
break;
case 2 :
// Creole10.g:846:4: 'D' 'o' 'k' 'u' 'W' 'i' 'k' 'i'
{
match(input,44,FOLLOW_44_in_link_interwiki_uri3315); if (failed) return interwiki;
match(input,45,FOLLOW_45_in_link_interwiki_uri3317); if (failed) return interwiki;
match(input,46,FOLLOW_46_in_link_interwiki_uri3319); if (failed) return interwiki;
match(input,47,FOLLOW_47_in_link_interwiki_uri3321); if (failed) return interwiki;
match(input,48,FOLLOW_48_in_link_interwiki_uri3323); if (failed) return interwiki;
match(input,49,FOLLOW_49_in_link_interwiki_uri3325); if (failed) return interwiki;
match(input,46,FOLLOW_46_in_link_interwiki_uri3327); if (failed) return interwiki;
match(input,49,FOLLOW_49_in_link_interwiki_uri3329); if (failed) return interwiki;
if ( backtracking==0 ) {
interwiki = new DokuWikiInterwikiLinkNode();
}
}
break;
case 3 :
// Creole10.g:847:4: 'F' 'l' 'i' 'c' 'k' 'r'
{
match(input,50,FOLLOW_50_in_link_interwiki_uri3336); if (failed) return interwiki;
match(input,51,FOLLOW_51_in_link_interwiki_uri3338); if (failed) return interwiki;
match(input,49,FOLLOW_49_in_link_interwiki_uri3340); if (failed) return interwiki;
match(input,52,FOLLOW_52_in_link_interwiki_uri3342); if (failed) return interwiki;
match(input,46,FOLLOW_46_in_link_interwiki_uri3344); if (failed) return interwiki;
match(input,53,FOLLOW_53_in_link_interwiki_uri3346); if (failed) return interwiki;
if ( backtracking==0 ) {
interwiki = new FlickrInterwikiLinkNode();
}
}
break;
case 4 :
// Creole10.g:848:4: 'G' 'o' 'o' 'g' 'l' 'e'
{
match(input,54,FOLLOW_54_in_link_interwiki_uri3354); if (failed) return interwiki;
match(input,45,FOLLOW_45_in_link_interwiki_uri3356); if (failed) return interwiki;
match(input,45,FOLLOW_45_in_link_interwiki_uri3358); if (failed) return interwiki;
match(input,55,FOLLOW_55_in_link_interwiki_uri3360); if (failed) return interwiki;
match(input,51,FOLLOW_51_in_link_interwiki_uri3362); if (failed) return interwiki;
match(input,56,FOLLOW_56_in_link_interwiki_uri3364); if (failed) return interwiki;
if ( backtracking==0 ) {
interwiki = new GoogleInterwikiLinkNode();
}
}
break;
case 5 :
// Creole10.g:849:4: 'J' 'S' 'P' 'W' 'i' 'k' 'i'
{
match(input,57,FOLLOW_57_in_link_interwiki_uri3371); if (failed) return interwiki;
match(input,58,FOLLOW_58_in_link_interwiki_uri3373); if (failed) return interwiki;
match(input,59,FOLLOW_59_in_link_interwiki_uri3375); if (failed) return interwiki;
match(input,48,FOLLOW_48_in_link_interwiki_uri3377); if (failed) return interwiki;
match(input,49,FOLLOW_49_in_link_interwiki_uri3379); if (failed) return interwiki;
match(input,46,FOLLOW_46_in_link_interwiki_uri3381); if (failed) return interwiki;
match(input,49,FOLLOW_49_in_link_interwiki_uri3383); if (failed) return interwiki;
if ( backtracking==0 ) {
interwiki = new JSPWikiInterwikiLinkNode();
}
}
break;
case 6 :
// Creole10.g:850:4: 'M' 'e' 'a' 't' 'b' 'a' 'l' 'l'
{
match(input,60,FOLLOW_60_in_link_interwiki_uri3390); if (failed) return interwiki;
match(input,56,FOLLOW_56_in_link_interwiki_uri3392); if (failed) return interwiki;
match(input,61,FOLLOW_61_in_link_interwiki_uri3394); if (failed) return interwiki;
match(input,62,FOLLOW_62_in_link_interwiki_uri3396); if (failed) return interwiki;
match(input,63,FOLLOW_63_in_link_interwiki_uri3398); if (failed) return interwiki;
match(input,61,FOLLOW_61_in_link_interwiki_uri3400); if (failed) return interwiki;
match(input,51,FOLLOW_51_in_link_interwiki_uri3402); if (failed) return interwiki;
match(input,51,FOLLOW_51_in_link_interwiki_uri3404); if (failed) return interwiki;
if ( backtracking==0 ) {
interwiki = new MeatballInterwikiLinkNode();
}
}
break;
case 7 :
// Creole10.g:851:4: 'M' 'e' 'd' 'i' 'a' 'W' 'i' 'k' 'i'
{
match(input,60,FOLLOW_60_in_link_interwiki_uri3411); if (failed) return interwiki;
match(input,56,FOLLOW_56_in_link_interwiki_uri3413); if (failed) return interwiki;
match(input,64,FOLLOW_64_in_link_interwiki_uri3415); if (failed) return interwiki;
match(input,49,FOLLOW_49_in_link_interwiki_uri3417); if (failed) return interwiki;
match(input,61,FOLLOW_61_in_link_interwiki_uri3419); if (failed) return interwiki;
match(input,48,FOLLOW_48_in_link_interwiki_uri3421); if (failed) return interwiki;
match(input,49,FOLLOW_49_in_link_interwiki_uri3423); if (failed) return interwiki;
match(input,46,FOLLOW_46_in_link_interwiki_uri3425); if (failed) return interwiki;
match(input,49,FOLLOW_49_in_link_interwiki_uri3427); if (failed) return interwiki;
if ( backtracking==0 ) {
interwiki = new MediaWikiInterwikiLinkNode();
}
}
break;
case 8 :
// Creole10.g:852:4: 'M' 'o' 'i' 'n' 'M' 'o' 'i' 'n'
{
match(input,60,FOLLOW_60_in_link_interwiki_uri3434); if (failed) return interwiki;
match(input,45,FOLLOW_45_in_link_interwiki_uri3436); if (failed) return interwiki;
match(input,49,FOLLOW_49_in_link_interwiki_uri3438); if (failed) return interwiki;
match(input,65,FOLLOW_65_in_link_interwiki_uri3440); if (failed) return interwiki;
match(input,60,FOLLOW_60_in_link_interwiki_uri3442); if (failed) return interwiki;
match(input,45,FOLLOW_45_in_link_interwiki_uri3444); if (failed) return interwiki;
match(input,49,FOLLOW_49_in_link_interwiki_uri3446); if (failed) return interwiki;
match(input,65,FOLLOW_65_in_link_interwiki_uri3448); if (failed) return interwiki;
if ( backtracking==0 ) {
interwiki = new MoinMoinInterwikiLinkNode();
}
}
break;
case 9 :
// Creole10.g:853:4: 'O' 'd' 'd' 'm' 'u' 's' 'e'
{
match(input,66,FOLLOW_66_in_link_interwiki_uri3456); if (failed) return interwiki;
match(input,64,FOLLOW_64_in_link_interwiki_uri3458); if (failed) return interwiki;
match(input,64,FOLLOW_64_in_link_interwiki_uri3460); if (failed) return interwiki;
match(input,67,FOLLOW_67_in_link_interwiki_uri3462); if (failed) return interwiki;
match(input,47,FOLLOW_47_in_link_interwiki_uri3464); if (failed) return interwiki;
match(input,68,FOLLOW_68_in_link_interwiki_uri3466); if (failed) return interwiki;
match(input,56,FOLLOW_56_in_link_interwiki_uri3468); if (failed) return interwiki;
if ( backtracking==0 ) {
interwiki = new OddmuseInterwikiLinkNode();
}
}
break;
case 10 :
// Creole10.g:854:4: 'O' 'h' 'a' 'n' 'a'
{
match(input,66,FOLLOW_66_in_link_interwiki_uri3476); if (failed) return interwiki;
match(input,69,FOLLOW_69_in_link_interwiki_uri3478); if (failed) return interwiki;
match(input,61,FOLLOW_61_in_link_interwiki_uri3480); if (failed) return interwiki;
match(input,65,FOLLOW_65_in_link_interwiki_uri3482); if (failed) return interwiki;
match(input,61,FOLLOW_61_in_link_interwiki_uri3484); if (failed) return interwiki;
if ( backtracking==0 ) {
interwiki = new OhanaInterwikiLinkNode();
}
}
break;
case 11 :
// Creole10.g:855:4: 'P' 'm' 'W' 'i' 'k' 'i'
{
match(input,59,FOLLOW_59_in_link_interwiki_uri3491); if (failed) return interwiki;
match(input,67,FOLLOW_67_in_link_interwiki_uri3493); if (failed) return interwiki;
match(input,48,FOLLOW_48_in_link_interwiki_uri3495); if (failed) return interwiki;
match(input,49,FOLLOW_49_in_link_interwiki_uri3497); if (failed) return interwiki;
match(input,46,FOLLOW_46_in_link_interwiki_uri3499); if (failed) return interwiki;
match(input,49,FOLLOW_49_in_link_interwiki_uri3501); if (failed) return interwiki;
if ( backtracking==0 ) {
interwiki = new PmWikiInterwikiLinkNode();
}
}
break;
case 12 :
// Creole10.g:856:4: 'P' 'u' 'k' 'i' 'W' 'i' 'k' 'i'
{
match(input,59,FOLLOW_59_in_link_interwiki_uri3509); if (failed) return interwiki;
match(input,47,FOLLOW_47_in_link_interwiki_uri3511); if (failed) return interwiki;
match(input,46,FOLLOW_46_in_link_interwiki_uri3513); if (failed) return interwiki;
match(input,49,FOLLOW_49_in_link_interwiki_uri3515); if (failed) return interwiki;
match(input,48,FOLLOW_48_in_link_interwiki_uri3517); if (failed) return interwiki;
match(input,49,FOLLOW_49_in_link_interwiki_uri3519); if (failed) return interwiki;
match(input,46,FOLLOW_46_in_link_interwiki_uri3521); if (failed) return interwiki;
match(input,49,FOLLOW_49_in_link_interwiki_uri3523); if (failed) return interwiki;
if ( backtracking==0 ) {
interwiki = new PukiWikiInterwikiLinkNode();
}
}
break;
case 13 :
// Creole10.g:857:4: 'P' 'u' 'r' 'p' 'l' 'e' 'W' 'i' 'k' 'i'
{
match(input,59,FOLLOW_59_in_link_interwiki_uri3531); if (failed) return interwiki;
match(input,47,FOLLOW_47_in_link_interwiki_uri3533); if (failed) return interwiki;
match(input,53,FOLLOW_53_in_link_interwiki_uri3535); if (failed) return interwiki;
match(input,70,FOLLOW_70_in_link_interwiki_uri3537); if (failed) return interwiki;
match(input,51,FOLLOW_51_in_link_interwiki_uri3539); if (failed) return interwiki;
match(input,56,FOLLOW_56_in_link_interwiki_uri3541); if (failed) return interwiki;
match(input,48,FOLLOW_48_in_link_interwiki_uri3543); if (failed) return interwiki;
match(input,49,FOLLOW_49_in_link_interwiki_uri3545); if (failed) return interwiki;
match(input,46,FOLLOW_46_in_link_interwiki_uri3547); if (failed) return interwiki;
match(input,49,FOLLOW_49_in_link_interwiki_uri3549); if (failed) return interwiki;
if ( backtracking==0 ) {
interwiki = new PurpleWikiInterwikiLinkNode();
}
}
break;
case 14 :
// Creole10.g:858:4: 'R' 'a' 'd' 'e' 'o' 'x'
{
match(input,71,FOLLOW_71_in_link_interwiki_uri3556); if (failed) return interwiki;
match(input,61,FOLLOW_61_in_link_interwiki_uri3558); if (failed) return interwiki;
match(input,64,FOLLOW_64_in_link_interwiki_uri3560); if (failed) return interwiki;
match(input,56,FOLLOW_56_in_link_interwiki_uri3562); if (failed) return interwiki;
match(input,45,FOLLOW_45_in_link_interwiki_uri3564); if (failed) return interwiki;
match(input,72,FOLLOW_72_in_link_interwiki_uri3566); if (failed) return interwiki;
if ( backtracking==0 ) {
interwiki = new RadeoxInterwikiLinkNode();
}
}
break;
case 15 :
// Creole10.g:859:4: 'S' 'n' 'i' 'p' 'S' 'n' 'a' 'p'
{
match(input,58,FOLLOW_58_in_link_interwiki_uri3573); if (failed) return interwiki;
match(input,65,FOLLOW_65_in_link_interwiki_uri3575); if (failed) return interwiki;
match(input,49,FOLLOW_49_in_link_interwiki_uri3577); if (failed) return interwiki;
match(input,70,FOLLOW_70_in_link_interwiki_uri3579); if (failed) return interwiki;
match(input,58,FOLLOW_58_in_link_interwiki_uri3581); if (failed) return interwiki;
match(input,65,FOLLOW_65_in_link_interwiki_uri3583); if (failed) return interwiki;
match(input,61,FOLLOW_61_in_link_interwiki_uri3585); if (failed) return interwiki;
match(input,70,FOLLOW_70_in_link_interwiki_uri3587); if (failed) return interwiki;
if ( backtracking==0 ) {
interwiki = new SnipSnapInterwikiLinkNode();
}
}
break;
case 16 :
// Creole10.g:860:4: 'T' 'i' 'd' 'd' 'l' 'y' 'W' 'i' 'k' 'i'
{
match(input,73,FOLLOW_73_in_link_interwiki_uri3594); if (failed) return interwiki;
match(input,49,FOLLOW_49_in_link_interwiki_uri3596); if (failed) return interwiki;
match(input,64,FOLLOW_64_in_link_interwiki_uri3598); if (failed) return interwiki;
match(input,64,FOLLOW_64_in_link_interwiki_uri3600); if (failed) return interwiki;
match(input,51,FOLLOW_51_in_link_interwiki_uri3602); if (failed) return interwiki;
match(input,74,FOLLOW_74_in_link_interwiki_uri3604); if (failed) return interwiki;
match(input,48,FOLLOW_48_in_link_interwiki_uri3606); if (failed) return interwiki;
match(input,49,FOLLOW_49_in_link_interwiki_uri3608); if (failed) return interwiki;
match(input,46,FOLLOW_46_in_link_interwiki_uri3610); if (failed) return interwiki;
match(input,49,FOLLOW_49_in_link_interwiki_uri3612); if (failed) return interwiki;
if ( backtracking==0 ) {
interwiki = new TiddlyWikiInterwikiLinkNode();
}
}
break;
case 17 :
// Creole10.g:861:4: 'T' 'W' 'i' 'k' 'i'
{
match(input,73,FOLLOW_73_in_link_interwiki_uri3619); if (failed) return interwiki;
match(input,48,FOLLOW_48_in_link_interwiki_uri3621); if (failed) return interwiki;
match(input,49,FOLLOW_49_in_link_interwiki_uri3623); if (failed) return interwiki;
match(input,46,FOLLOW_46_in_link_interwiki_uri3625); if (failed) return interwiki;
match(input,49,FOLLOW_49_in_link_interwiki_uri3627); if (failed) return interwiki;
if ( backtracking==0 ) {
interwiki = new TWikiInterwikiLinkNode();
}
}
break;
case 18 :
// Creole10.g:862:4: 'U' 's' 'e' 'm' 'o' 'd'
{
match(input,75,FOLLOW_75_in_link_interwiki_uri3634); if (failed) return interwiki;
match(input,68,FOLLOW_68_in_link_interwiki_uri3636); if (failed) return interwiki;
match(input,56,FOLLOW_56_in_link_interwiki_uri3638); if (failed) return interwiki;
match(input,67,FOLLOW_67_in_link_interwiki_uri3640); if (failed) return interwiki;
match(input,45,FOLLOW_45_in_link_interwiki_uri3642); if (failed) return interwiki;
match(input,64,FOLLOW_64_in_link_interwiki_uri3644); if (failed) return interwiki;
if ( backtracking==0 ) {
interwiki = new UsemodInterwikiLinkNode();
}
}
break;
case 19 :
// Creole10.g:863:4: 'W' 'i' 'k' 'i' 'p' 'e' 'd' 'i' 'a'
{
match(input,48,FOLLOW_48_in_link_interwiki_uri3651); if (failed) return interwiki;
match(input,49,FOLLOW_49_in_link_interwiki_uri3653); if (failed) return interwiki;
match(input,46,FOLLOW_46_in_link_interwiki_uri3655); if (failed) return interwiki;
match(input,49,FOLLOW_49_in_link_interwiki_uri3657); if (failed) return interwiki;
match(input,70,FOLLOW_70_in_link_interwiki_uri3659); if (failed) return interwiki;
match(input,56,FOLLOW_56_in_link_interwiki_uri3661); if (failed) return interwiki;
match(input,64,FOLLOW_64_in_link_interwiki_uri3663); if (failed) return interwiki;
match(input,49,FOLLOW_49_in_link_interwiki_uri3665); if (failed) return interwiki;
match(input,61,FOLLOW_61_in_link_interwiki_uri3667); if (failed) return interwiki;
if ( backtracking==0 ) {
interwiki = new WikipediaInterwikiLinkNode();
}
}
break;
case 20 :
// Creole10.g:864:4: 'X' 'W' 'i' 'k' 'i'
{
match(input,76,FOLLOW_76_in_link_interwiki_uri3674); if (failed) return interwiki;
match(input,48,FOLLOW_48_in_link_interwiki_uri3676); if (failed) return interwiki;
match(input,49,FOLLOW_49_in_link_interwiki_uri3678); if (failed) return interwiki;
match(input,46,FOLLOW_46_in_link_interwiki_uri3680); if (failed) return interwiki;
match(input,49,FOLLOW_49_in_link_interwiki_uri3682); if (failed) return interwiki;
if ( backtracking==0 ) {
interwiki = new XWikiInterwikiLinkNode();
}
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return interwiki;
}
// $ANTLR end link_interwiki_uri
// $ANTLR start link_interwiki_pagename
// Creole10.g:866:1: link_interwiki_pagename returns [StringBundler text = new StringBundler()] : (c=~ ( PIPE | LINK_CLOSE | NEWLINE | EOF ) )+ ;
public final StringBundler link_interwiki_pagename() throws RecognitionException {
StringBundler text = new StringBundler();
Token c=null;
try {
// Creole10.g:867:4: ( (c=~ ( PIPE | LINK_CLOSE | NEWLINE | EOF ) )+ )
// Creole10.g:867:4: (c=~ ( PIPE | LINK_CLOSE | NEWLINE | EOF ) )+
{
// Creole10.g:867:4: (c=~ ( PIPE | LINK_CLOSE | NEWLINE | EOF ) )+
int cnt118=0;
loop118:
do {
int alt118=2;
int LA118_0 = input.LA(1);
if ( ((LA118_0>=FORCED_END_OF_LINE && LA118_0<=WIKI)||(LA118_0>=POUND && LA118_0<=EQUAL)||(LA118_0>=ITAL && LA118_0<=NOWIKI_CLOSE)||(LA118_0>=IMAGE_CLOSE && LA118_0<=80)) ) {
alt118=1;
}
switch (alt118) {
case 1 :
// Creole10.g:867:6: c=~ ( PIPE | LINK_CLOSE | NEWLINE | EOF )
{
c=(Token)input.LT(1);
if ( (input.LA(1)>=FORCED_END_OF_LINE && input.LA(1)<=WIKI)||(input.LA(1)>=POUND && input.LA(1)<=EQUAL)||(input.LA(1)>=ITAL && input.LA(1)<=NOWIKI_CLOSE)||(input.LA(1)>=IMAGE_CLOSE && input.LA(1)<=80) ) {
input.consume();
errorRecovery=false;failed=false;
}
else {
if (backtracking>0) {failed=true; return text;}
MismatchedSetException mse =
new MismatchedSetException(null,input);
recoverFromMismatchedSet(input,mse,FOLLOW_set_in_link_interwiki_pagename3704); throw mse;
}
if ( backtracking==0 ) {
text.append(c.getText());
}
}
break;
default :
if ( cnt118 >= 1 ) break loop118;
if (backtracking>0) {failed=true; return text;}
EarlyExitException eee =
new EarlyExitException(118, input);
throw eee;
}
cnt118++;
} while (true);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return text;
}
// $ANTLR end link_interwiki_pagename
// $ANTLR start link_description
// Creole10.g:869:1: link_description returns [CollectionNode node = new CollectionNode()] : (l= link_descriptionpart | i= image )+ ;
public final CollectionNode link_description() throws RecognitionException {
CollectionNode node = new CollectionNode();
ASTNode l = null;
ImageNode i = null;
try {
// Creole10.g:870:4: ( (l= link_descriptionpart | i= image )+ )
// Creole10.g:870:4: (l= link_descriptionpart | i= image )+
{
// Creole10.g:870:4: (l= link_descriptionpart | i= image )+
int cnt119=0;
loop119:
do {
int alt119=3;
int LA119_0 = input.LA(1);
if ( ((LA119_0>=FORCED_END_OF_LINE && LA119_0<=WIKI)||(LA119_0>=POUND && LA119_0<=ITAL)||(LA119_0>=FORCED_LINEBREAK && LA119_0<=NOWIKI_CLOSE)||(LA119_0>=IMAGE_CLOSE && LA119_0<=80)) ) {
alt119=1;
}
else if ( (LA119_0==IMAGE_OPEN) ) {
alt119=2;
}
switch (alt119) {
case 1 :
// Creole10.g:870:6: l= link_descriptionpart
{
pushFollow(FOLLOW_link_descriptionpart_in_link_description3747);
l=link_descriptionpart();
_fsp--;
if (failed) return node;
if ( backtracking==0 ) {
// Recover code: some bad syntax could include null elements in the collection
if (l != null) {
node.add(l);
}
}
}
break;
case 2 :
// Creole10.g:876:5: i= image
{
pushFollow(FOLLOW_image_in_link_description3759);
i=image();
_fsp--;
if (failed) return node;
if ( backtracking==0 ) {
node.add(i);
}
}
break;
default :
if ( cnt119 >= 1 ) break loop119;
if (backtracking>0) {failed=true; return node;}
EarlyExitException eee =
new EarlyExitException(119, input);
throw eee;
}
cnt119++;
} while (true);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return node;
}
// $ANTLR end link_description
protected static class link_descriptionpart_scope {
CollectionNode element;
}
protected Stack link_descriptionpart_stack = new Stack();
// $ANTLR start link_descriptionpart
// Creole10.g:878:1: link_descriptionpart returns [ASTNode text = null] : ( bold_markup onestar (lb= link_bold_descriptionpart onestar )+ bold_markup | ital_markup onestar (li= link_ital_descriptionpart onestar )+ ital_markup | onestar (t= link_descriptiontext onestar )+ );
public final ASTNode link_descriptionpart() throws RecognitionException {
link_descriptionpart_stack.push(new link_descriptionpart_scope());
ASTNode text = null;
ASTNode lb = null;
ASTNode li = null;
CollectionNode t = null;
((link_descriptionpart_scope)link_descriptionpart_stack.peek()).element = new CollectionNode();
try {
// Creole10.g:885:4: ( bold_markup onestar (lb= link_bold_descriptionpart onestar )+ bold_markup | ital_markup onestar (li= link_ital_descriptionpart onestar )+ ital_markup | onestar (t= link_descriptiontext onestar )+ )
int alt123=3;
switch ( input.LA(1) ) {
case STAR:
{
int LA123_1 = input.LA(2);
if ( (LA123_1==STAR) ) {
alt123=1;
}
else if ( ((LA123_1>=FORCED_END_OF_LINE && LA123_1<=WIKI)||LA123_1==POUND||(LA123_1>=EQUAL && LA123_1<=PIPE)||(LA123_1>=FORCED_LINEBREAK && LA123_1<=NOWIKI_CLOSE)||(LA123_1>=IMAGE_CLOSE && LA123_1<=80)) ) {
alt123=3;
}
else {
if (backtracking>0) {failed=true; return text;}
NoViableAltException nvae =
new NoViableAltException("878:1: link_descriptionpart returns [ASTNode text = null] : ( bold_markup onestar (lb= link_bold_descriptionpart onestar )+ bold_markup | ital_markup onestar (li= link_ital_descriptionpart onestar )+ ital_markup | onestar (t= link_descriptiontext onestar )+ );", 123, 1, input);
throw nvae;
}
}
break;
case ITAL:
{
alt123=2;
}
break;
case FORCED_END_OF_LINE:
case HEADING_SECTION:
case HORIZONTAL_SECTION:
case LIST_ITEM:
case LIST_ITEM_PART:
case NOWIKI_SECTION:
case SCAPE_NODE:
case TEXT_NODE:
case UNORDERED_LIST:
case UNFORMATTED_TEXT:
case WIKI:
case POUND:
case EQUAL:
case PIPE:
case FORCED_LINEBREAK:
case ESCAPE:
case NOWIKI_BLOCK_CLOSE:
case NOWIKI_CLOSE:
case IMAGE_CLOSE:
case BLANKS:
case DASH:
case CR:
case LF:
case SPACE:
case TABULATOR:
case BRACE_CLOSE:
case COLON_SLASH:
case SLASH:
case INSIGNIFICANT_CHAR:
case 41:
case 42:
case 43:
case 44:
case 45:
case 46:
case 47:
case 48:
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 56:
case 57:
case 58:
case 59:
case 60:
case 61:
case 62:
case 63:
case 64:
case 65:
case 66:
case 67:
case 68:
case 69:
case 70:
case 71:
case 72:
case 73:
case 74:
case 75:
case 76:
case 77:
case 78:
case 79:
case 80:
{
alt123=3;
}
break;
default:
if (backtracking>0) {failed=true; return text;}
NoViableAltException nvae =
new NoViableAltException("878:1: link_descriptionpart returns [ASTNode text = null] : ( bold_markup onestar (lb= link_bold_descriptionpart onestar )+ bold_markup | ital_markup onestar (li= link_ital_descriptionpart onestar )+ ital_markup | onestar (t= link_descriptiontext onestar )+ );", 123, 0, input);
throw nvae;
}
switch (alt123) {
case 1 :
// Creole10.g:885:4: bold_markup onestar (lb= link_bold_descriptionpart onestar )+ bold_markup
{
pushFollow(FOLLOW_bold_markup_in_link_descriptionpart3784);
bold_markup();
_fsp--;
if (failed) return text;
pushFollow(FOLLOW_onestar_in_link_descriptionpart3787);
onestar();
_fsp--;
if (failed) return text;
// Creole10.g:885:25: (lb= link_bold_descriptionpart onestar )+
int cnt120=0;
loop120:
do {
int alt120=2;
int LA120_0 = input.LA(1);
if ( ((LA120_0>=FORCED_END_OF_LINE && LA120_0<=WIKI)||LA120_0==POUND||(LA120_0>=EQUAL && LA120_0<=ITAL)||(LA120_0>=FORCED_LINEBREAK && LA120_0<=NOWIKI_CLOSE)||(LA120_0>=IMAGE_CLOSE && LA120_0<=80)) ) {
alt120=1;
}
switch (alt120) {
case 1 :
// Creole10.g:885:27: lb= link_bold_descriptionpart onestar
{
pushFollow(FOLLOW_link_bold_descriptionpart_in_link_descriptionpart3795);
lb=link_bold_descriptionpart();
_fsp--;
if (failed) return text;
if ( backtracking==0 ) {
((link_descriptionpart_scope)link_descriptionpart_stack.peek()).element.add(lb);
}
pushFollow(FOLLOW_onestar_in_link_descriptionpart3800);
onestar();
_fsp--;
if (failed) return text;
}
break;
default :
if ( cnt120 >= 1 ) break loop120;
if (backtracking>0) {failed=true; return text;}
EarlyExitException eee =
new EarlyExitException(120, input);
throw eee;
}
cnt120++;
} while (true);
if ( backtracking==0 ) {
text = new BoldTextNode(((link_descriptionpart_scope)link_descriptionpart_stack.peek()).element);
}
pushFollow(FOLLOW_bold_markup_in_link_descriptionpart3810);
bold_markup();
_fsp--;
if (failed) return text;
}
break;
case 2 :
// Creole10.g:887:4: ital_markup onestar (li= link_ital_descriptionpart onestar )+ ital_markup
{
pushFollow(FOLLOW_ital_markup_in_link_descriptionpart3815);
ital_markup();
_fsp--;
if (failed) return text;
pushFollow(FOLLOW_onestar_in_link_descriptionpart3818);
onestar();
_fsp--;
if (failed) return text;
// Creole10.g:887:26: (li= link_ital_descriptionpart onestar )+
int cnt121=0;
loop121:
do {
int alt121=2;
int LA121_0 = input.LA(1);
if ( ((LA121_0>=FORCED_END_OF_LINE && LA121_0<=WIKI)||(LA121_0>=POUND && LA121_0<=PIPE)||(LA121_0>=FORCED_LINEBREAK && LA121_0<=NOWIKI_CLOSE)||(LA121_0>=IMAGE_CLOSE && LA121_0<=80)) ) {
alt121=1;
}
switch (alt121) {
case 1 :
// Creole10.g:887:28: li= link_ital_descriptionpart onestar
{
pushFollow(FOLLOW_link_ital_descriptionpart_in_link_descriptionpart3827);
li=link_ital_descriptionpart();
_fsp--;
if (failed) return text;
if ( backtracking==0 ) {
((link_descriptionpart_scope)link_descriptionpart_stack.peek()).element.add(li);
}
pushFollow(FOLLOW_onestar_in_link_descriptionpart3832);
onestar();
_fsp--;
if (failed) return text;
}
break;
default :
if ( cnt121 >= 1 ) break loop121;
if (backtracking>0) {failed=true; return text;}
EarlyExitException eee =
new EarlyExitException(121, input);
throw eee;
}
cnt121++;
} while (true);
if ( backtracking==0 ) {
text = new ItalicTextNode(((link_descriptionpart_scope)link_descriptionpart_stack.peek()).element);
}
pushFollow(FOLLOW_ital_markup_in_link_descriptionpart3841);
ital_markup();
_fsp--;
if (failed) return text;
}
break;
case 3 :
// Creole10.g:889:4: onestar (t= link_descriptiontext onestar )+
{
pushFollow(FOLLOW_onestar_in_link_descriptionpart3846);
onestar();
_fsp--;
if (failed) return text;
// Creole10.g:889:13: (t= link_descriptiontext onestar )+
int cnt122=0;
loop122:
do {
int alt122=2;
switch ( input.LA(1) ) {
case FORCED_END_OF_LINE:
case HEADING_SECTION:
case HORIZONTAL_SECTION:
case LIST_ITEM:
case LIST_ITEM_PART:
case NOWIKI_SECTION:
case SCAPE_NODE:
case TEXT_NODE:
case UNORDERED_LIST:
case UNFORMATTED_TEXT:
case WIKI:
case POUND:
case EQUAL:
case PIPE:
case NOWIKI_BLOCK_CLOSE:
case NOWIKI_CLOSE:
case IMAGE_CLOSE:
case BLANKS:
case DASH:
case CR:
case LF:
case SPACE:
case TABULATOR:
case BRACE_CLOSE:
case COLON_SLASH:
case SLASH:
case INSIGNIFICANT_CHAR:
case 41:
case 42:
case 43:
case 44:
case 45:
case 46:
case 47:
case 48:
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 56:
case 57:
case 58:
case 59:
case 60:
case 61:
case 62:
case 63:
case 64:
case 65:
case 66:
case 67:
case 68:
case 69:
case 70:
case 71:
case 72:
case 73:
case 74:
case 75:
case 76:
case 77:
case 78:
case 79:
case 80:
{
alt122=1;
}
break;
case FORCED_LINEBREAK:
{
alt122=1;
}
break;
case ESCAPE:
{
alt122=1;
}
break;
}
switch (alt122) {
case 1 :
// Creole10.g:889:15: t= link_descriptiontext onestar
{
pushFollow(FOLLOW_link_descriptiontext_in_link_descriptionpart3855);
t=link_descriptiontext();
_fsp--;
if (failed) return text;
pushFollow(FOLLOW_onestar_in_link_descriptionpart3858);
onestar();
_fsp--;
if (failed) return text;
if ( backtracking==0 ) {
((link_descriptionpart_scope)link_descriptionpart_stack.peek()).element.add(t);
}
}
break;
default :
if ( cnt122 >= 1 ) break loop122;
if (backtracking>0) {failed=true; return text;}
EarlyExitException eee =
new EarlyExitException(122, input);
throw eee;
}
cnt122++;
} while (true);
if ( backtracking==0 ) {
text = new UnformattedTextNode(((link_descriptionpart_scope)link_descriptionpart_stack.peek()).element);
}
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
link_descriptionpart_stack.pop();
}
return text;
}
// $ANTLR end link_descriptionpart
// $ANTLR start link_bold_descriptionpart
// Creole10.g:891:1: link_bold_descriptionpart returns [ASTNode text = null] : ( ital_markup t= link_boldital_description ital_markup | ld= link_descriptiontext );
public final ASTNode link_bold_descriptionpart() throws RecognitionException {
ASTNode text = null;
CollectionNode t = null;
CollectionNode ld = null;
try {
// Creole10.g:892:4: ( ital_markup t= link_boldital_description ital_markup | ld= link_descriptiontext )
int alt124=2;
int LA124_0 = input.LA(1);
if ( (LA124_0==ITAL) ) {
alt124=1;
}
else if ( ((LA124_0>=FORCED_END_OF_LINE && LA124_0<=WIKI)||LA124_0==POUND||(LA124_0>=EQUAL && LA124_0<=PIPE)||(LA124_0>=FORCED_LINEBREAK && LA124_0<=NOWIKI_CLOSE)||(LA124_0>=IMAGE_CLOSE && LA124_0<=80)) ) {
alt124=2;
}
else {
if (backtracking>0) {failed=true; return text;}
NoViableAltException nvae =
new NoViableAltException("891:1: link_bold_descriptionpart returns [ASTNode text = null] : ( ital_markup t= link_boldital_description ital_markup | ld= link_descriptiontext );", 124, 0, input);
throw nvae;
}
switch (alt124) {
case 1 :
// Creole10.g:892:4: ital_markup t= link_boldital_description ital_markup
{
pushFollow(FOLLOW_ital_markup_in_link_bold_descriptionpart3878);
ital_markup();
_fsp--;
if (failed) return text;
pushFollow(FOLLOW_link_boldital_description_in_link_bold_descriptionpart3885);
t=link_boldital_description();
_fsp--;
if (failed) return text;
if ( backtracking==0 ) {
text = new ItalicTextNode(t);
}
pushFollow(FOLLOW_ital_markup_in_link_bold_descriptionpart3890);
ital_markup();
_fsp--;
if (failed) return text;
}
break;
case 2 :
// Creole10.g:893:4: ld= link_descriptiontext
{
pushFollow(FOLLOW_link_descriptiontext_in_link_bold_descriptionpart3899);
ld=link_descriptiontext();
_fsp--;
if (failed) return text;
if ( backtracking==0 ) {
text =ld;
}
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return text;
}
// $ANTLR end link_bold_descriptionpart
// $ANTLR start link_ital_descriptionpart
// Creole10.g:895:1: link_ital_descriptionpart returns [ASTNode text = null] : ( bold_markup td= link_boldital_description bold_markup | t= link_descriptiontext );
public final ASTNode link_ital_descriptionpart() throws RecognitionException {
ASTNode text = null;
CollectionNode td = null;
CollectionNode t = null;
try {
// Creole10.g:896:4: ( bold_markup td= link_boldital_description bold_markup | t= link_descriptiontext )
int alt125=2;
int LA125_0 = input.LA(1);
if ( (LA125_0==STAR) ) {
alt125=1;
}
else if ( ((LA125_0>=FORCED_END_OF_LINE && LA125_0<=WIKI)||LA125_0==POUND||(LA125_0>=EQUAL && LA125_0<=PIPE)||(LA125_0>=FORCED_LINEBREAK && LA125_0<=NOWIKI_CLOSE)||(LA125_0>=IMAGE_CLOSE && LA125_0<=80)) ) {
alt125=2;
}
else {
if (backtracking>0) {failed=true; return text;}
NoViableAltException nvae =
new NoViableAltException("895:1: link_ital_descriptionpart returns [ASTNode text = null] : ( bold_markup td= link_boldital_description bold_markup | t= link_descriptiontext );", 125, 0, input);
throw nvae;
}
switch (alt125) {
case 1 :
// Creole10.g:896:4: bold_markup td= link_boldital_description bold_markup
{
pushFollow(FOLLOW_bold_markup_in_link_ital_descriptionpart3915);
bold_markup();
_fsp--;
if (failed) return text;
pushFollow(FOLLOW_link_boldital_description_in_link_ital_descriptionpart3922);
td=link_boldital_description();
_fsp--;
if (failed) return text;
pushFollow(FOLLOW_bold_markup_in_link_ital_descriptionpart3925);
bold_markup();
_fsp--;
if (failed) return text;
if ( backtracking==0 ) {
text = new BoldTextNode(td);
}
}
break;
case 2 :
// Creole10.g:897:4: t= link_descriptiontext
{
pushFollow(FOLLOW_link_descriptiontext_in_link_ital_descriptionpart3936);
t=link_descriptiontext();
_fsp--;
if (failed) return text;
if ( backtracking==0 ) {
text = t;
}
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return text;
}
// $ANTLR end link_ital_descriptionpart
// $ANTLR start link_boldital_description
// Creole10.g:899:1: link_boldital_description returns [CollectionNode text = new CollectionNode()] : onestar (t= link_descriptiontext onestar )+ ;
public final CollectionNode link_boldital_description() throws RecognitionException {
CollectionNode text = new CollectionNode();
CollectionNode t = null;
try {
// Creole10.g:900:4: ( onestar (t= link_descriptiontext onestar )+ )
// Creole10.g:900:4: onestar (t= link_descriptiontext onestar )+
{
pushFollow(FOLLOW_onestar_in_link_boldital_description3952);
onestar();
_fsp--;
if (failed) return text;
// Creole10.g:900:13: (t= link_descriptiontext onestar )+
int cnt126=0;
loop126:
do {
int alt126=2;
int LA126_0 = input.LA(1);
if ( ((LA126_0>=FORCED_END_OF_LINE && LA126_0<=WIKI)||LA126_0==POUND||(LA126_0>=EQUAL && LA126_0<=PIPE)||(LA126_0>=FORCED_LINEBREAK && LA126_0<=NOWIKI_CLOSE)||(LA126_0>=IMAGE_CLOSE && LA126_0<=80)) ) {
alt126=1;
}
switch (alt126) {
case 1 :
// Creole10.g:900:15: t= link_descriptiontext onestar
{
pushFollow(FOLLOW_link_descriptiontext_in_link_boldital_description3961);
t=link_descriptiontext();
_fsp--;
if (failed) return text;
pushFollow(FOLLOW_onestar_in_link_boldital_description3964);
onestar();
_fsp--;
if (failed) return text;
if ( backtracking==0 ) {
for (ASTNode item:t.getASTNodes()) {
text.add(item);
}
}
}
break;
default :
if ( cnt126 >= 1 ) break loop126;
if (backtracking>0) {failed=true; return text;}
EarlyExitException eee =
new EarlyExitException(126, input);
throw eee;
}
cnt126++;
} while (true);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return text;
}
// $ANTLR end link_boldital_description
// $ANTLR start link_descriptiontext
// Creole10.g:906:1: link_descriptiontext returns [CollectionNode text = new CollectionNode()] : (t= link_descriptiontext_simple | ( forced_linebreak | e= escaped )+ );
public final CollectionNode link_descriptiontext() throws RecognitionException {
CollectionNode text = new CollectionNode();
StringBundler t = null;
ScapedNode e = null;
try {
// Creole10.g:907:5: (t= link_descriptiontext_simple | ( forced_linebreak | e= escaped )+ )
int alt128=2;
int LA128_0 = input.LA(1);
if ( ((LA128_0>=FORCED_END_OF_LINE && LA128_0<=WIKI)||LA128_0==POUND||(LA128_0>=EQUAL && LA128_0<=PIPE)||(LA128_0>=NOWIKI_BLOCK_CLOSE && LA128_0<=NOWIKI_CLOSE)||(LA128_0>=IMAGE_CLOSE && LA128_0<=80)) ) {
alt128=1;
}
else if ( ((LA128_0>=FORCED_LINEBREAK && LA128_0<=ESCAPE)) ) {
alt128=2;
}
else {
if (backtracking>0) {failed=true; return text;}
NoViableAltException nvae =
new NoViableAltException("906:1: link_descriptiontext returns [CollectionNode text = new CollectionNode()] : (t= link_descriptiontext_simple | ( forced_linebreak | e= escaped )+ );", 128, 0, input);
throw nvae;
}
switch (alt128) {
case 1 :
// Creole10.g:907:5: t= link_descriptiontext_simple
{
pushFollow(FOLLOW_link_descriptiontext_simple_in_link_descriptiontext3987);
t=link_descriptiontext_simple();
_fsp--;
if (failed) return text;
if ( backtracking==0 ) {
text.add(new UnformattedTextNode(t.toString()));
}
}
break;
case 2 :
// Creole10.g:908:5: ( forced_linebreak | e= escaped )+
{
// Creole10.g:908:5: ( forced_linebreak | e= escaped )+
int cnt127=0;
loop127:
do {
int alt127=3;
int LA127_0 = input.LA(1);
if ( (LA127_0==FORCED_LINEBREAK) ) {
alt127=1;
}
else if ( (LA127_0==ESCAPE) ) {
alt127=2;
}
switch (alt127) {
case 1 :
// Creole10.g:908:7: forced_linebreak
{
pushFollow(FOLLOW_forced_linebreak_in_link_descriptiontext3997);
forced_linebreak();
_fsp--;
if (failed) return text;
if ( backtracking==0 ) {
text.add(new ForcedEndOfLineNode());
}
}
break;
case 2 :
// Creole10.g:909:5: e= escaped
{
pushFollow(FOLLOW_escaped_in_link_descriptiontext4009);
e=escaped();
_fsp--;
if (failed) return text;
if ( backtracking==0 ) {
text.add(e);
}
}
break;
default :
if ( cnt127 >= 1 ) break loop127;
if (backtracking>0) {failed=true; return text;}
EarlyExitException eee =
new EarlyExitException(127, input);
throw eee;
}
cnt127++;
} while (true);
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return text;
}
// $ANTLR end link_descriptiontext
// $ANTLR start link_descriptiontext_simple
// Creole10.g:911:1: link_descriptiontext_simple returns [StringBundler text = new StringBundler()] : (c=~ ( LINK_CLOSE | ITAL | STAR | LINK_OPEN | IMAGE_OPEN | NOWIKI_OPEN | EXTENSION | FORCED_LINEBREAK | ESCAPE | NEWLINE | EOF ) )+ ;
public final StringBundler link_descriptiontext_simple() throws RecognitionException {
StringBundler text = new StringBundler();
Token c=null;
try {
// Creole10.g:912:4: ( (c=~ ( LINK_CLOSE | ITAL | STAR | LINK_OPEN | IMAGE_OPEN | NOWIKI_OPEN | EXTENSION | FORCED_LINEBREAK | ESCAPE | NEWLINE | EOF ) )+ )
// Creole10.g:912:4: (c=~ ( LINK_CLOSE | ITAL | STAR | LINK_OPEN | IMAGE_OPEN | NOWIKI_OPEN | EXTENSION | FORCED_LINEBREAK | ESCAPE | NEWLINE | EOF ) )+
{
// Creole10.g:912:4: (c=~ ( LINK_CLOSE | ITAL | STAR | LINK_OPEN | IMAGE_OPEN | NOWIKI_OPEN | EXTENSION | FORCED_LINEBREAK | ESCAPE | NEWLINE | EOF ) )+
int cnt129=0;
loop129:
do {
int alt129=2;
int LA129_0 = input.LA(1);
if ( ((LA129_0>=FORCED_END_OF_LINE && LA129_0<=WIKI)||LA129_0==POUND||(LA129_0>=EQUAL && LA129_0<=PIPE)||(LA129_0>=NOWIKI_BLOCK_CLOSE && LA129_0<=NOWIKI_CLOSE)||(LA129_0>=IMAGE_CLOSE && LA129_0<=80)) ) {
alt129=1;
}
switch (alt129) {
case 1 :
// Creole10.g:912:6: c=~ ( LINK_CLOSE | ITAL | STAR | LINK_OPEN | IMAGE_OPEN | NOWIKI_OPEN | EXTENSION | FORCED_LINEBREAK | ESCAPE | NEWLINE | EOF )
{
c=(Token)input.LT(1);
if ( (input.LA(1)>=FORCED_END_OF_LINE && input.LA(1)<=WIKI)||input.LA(1)==POUND||(input.LA(1)>=EQUAL && input.LA(1)<=PIPE)||(input.LA(1)>=NOWIKI_BLOCK_CLOSE && input.LA(1)<=NOWIKI_CLOSE)||(input.LA(1)>=IMAGE_CLOSE && input.LA(1)<=80) ) {
input.consume();
errorRecovery=false;failed=false;
}
else {
if (backtracking>0) {failed=true; return text;}
MismatchedSetException mse =
new MismatchedSetException(null,input);
recoverFromMismatchedSet(input,mse,FOLLOW_set_in_link_descriptiontext_simple4034); throw mse;
}
if ( backtracking==0 ) {
text.append(c.getText());
}
}
break;
default :
if ( cnt129 >= 1 ) break loop129;
if (backtracking>0) {failed=true; return text;}
EarlyExitException eee =
new EarlyExitException(129, input);
throw eee;
}
cnt129++;
} while (true);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return text;
}
// $ANTLR end link_descriptiontext_simple
// $ANTLR start link_uri
// Creole10.g:924:1: link_uri returns [StringBundler text = new StringBundler()] : (c=~ ( PIPE | LINK_CLOSE | NEWLINE | EOF ) )+ ;
public final StringBundler link_uri() throws RecognitionException {
StringBundler text = new StringBundler();
Token c=null;
try {
// Creole10.g:925:4: ( (c=~ ( PIPE | LINK_CLOSE | NEWLINE | EOF ) )+ )
// Creole10.g:925:4: (c=~ ( PIPE | LINK_CLOSE | NEWLINE | EOF ) )+
{
// Creole10.g:925:4: (c=~ ( PIPE | LINK_CLOSE | NEWLINE | EOF ) )+
int cnt130=0;
loop130:
do {
int alt130=2;
int LA130_0 = input.LA(1);
if ( ((LA130_0>=FORCED_END_OF_LINE && LA130_0<=WIKI)||(LA130_0>=POUND && LA130_0<=EQUAL)||(LA130_0>=ITAL && LA130_0<=NOWIKI_CLOSE)||(LA130_0>=IMAGE_CLOSE && LA130_0<=80)) ) {
alt130=1;
}
switch (alt130) {
case 1 :
// Creole10.g:925:6: c=~ ( PIPE | LINK_CLOSE | NEWLINE | EOF )
{
c=(Token)input.LT(1);
if ( (input.LA(1)>=FORCED_END_OF_LINE && input.LA(1)<=WIKI)||(input.LA(1)>=POUND && input.LA(1)<=EQUAL)||(input.LA(1)>=ITAL && input.LA(1)<=NOWIKI_CLOSE)||(input.LA(1)>=IMAGE_CLOSE && input.LA(1)<=80) ) {
input.consume();
errorRecovery=false;failed=false;
}
else {
if (backtracking>0) {failed=true; return text;}
MismatchedSetException mse =
new MismatchedSetException(null,input);
recoverFromMismatchedSet(input,mse,FOLLOW_set_in_link_uri4133); throw mse;
}
if ( backtracking==0 ) {
text.append(c.getText());
}
}
break;
default :
if ( cnt130 >= 1 ) break loop130;
if (backtracking>0) {failed=true; return text;}
EarlyExitException eee =
new EarlyExitException(130, input);
throw eee;
}
cnt130++;
} while (true);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return text;
}
// $ANTLR end link_uri
// $ANTLR start image
// Creole10.g:932:1: image returns [ImageNode image = new ImageNode()] : image_open_markup uri= image_uri (alt= image_alternative )? image_close_markup ;
public final ImageNode image() throws RecognitionException {
ImageNode image = new ImageNode();
StringBundler uri = null;
CollectionNode alt = null;
try {
// Creole10.g:933:4: ( image_open_markup uri= image_uri (alt= image_alternative )? image_close_markup )
// Creole10.g:933:4: image_open_markup uri= image_uri (alt= image_alternative )? image_close_markup
{
pushFollow(FOLLOW_image_open_markup_in_image4174);
image_open_markup();
_fsp--;
if (failed) return image;
pushFollow(FOLLOW_image_uri_in_image4180);
uri=image_uri();
_fsp--;
if (failed) return image;
if ( backtracking==0 ) {
image.setLink(uri.toString());
}
// Creole10.g:933:79: (alt= image_alternative )?
int alt131=2;
int LA131_0 = input.LA(1);
if ( (LA131_0==PIPE) ) {
alt131=1;
}
switch (alt131) {
case 1 :
// Creole10.g:933:81: alt= image_alternative
{
pushFollow(FOLLOW_image_alternative_in_image4190);
alt=image_alternative();
_fsp--;
if (failed) return image;
if ( backtracking==0 ) {
image.setAltCollectionNode(alt);
}
}
break;
}
pushFollow(FOLLOW_image_close_markup_in_image4199);
image_close_markup();
_fsp--;
if (failed) return image;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return image;
}
// $ANTLR end image
// $ANTLR start image_uri
// Creole10.g:936:1: image_uri returns [StringBundler link = new StringBundler()] : (c=~ ( PIPE | IMAGE_CLOSE | NEWLINE | EOF ) )+ ;
public final StringBundler image_uri() throws RecognitionException {
StringBundler link = new StringBundler();
Token c=null;
try {
// Creole10.g:937:4: ( (c=~ ( PIPE | IMAGE_CLOSE | NEWLINE | EOF ) )+ )
// Creole10.g:937:4: (c=~ ( PIPE | IMAGE_CLOSE | NEWLINE | EOF ) )+
{
// Creole10.g:937:4: (c=~ ( PIPE | IMAGE_CLOSE | NEWLINE | EOF ) )+
int cnt132=0;
loop132:
do {
int alt132=2;
int LA132_0 = input.LA(1);
if ( ((LA132_0>=FORCED_END_OF_LINE && LA132_0<=WIKI)||(LA132_0>=POUND && LA132_0<=EQUAL)||(LA132_0>=ITAL && LA132_0<=LINK_CLOSE)||(LA132_0>=BLANKS && LA132_0<=80)) ) {
alt132=1;
}
switch (alt132) {
case 1 :
// Creole10.g:937:5: c=~ ( PIPE | IMAGE_CLOSE | NEWLINE | EOF )
{
c=(Token)input.LT(1);
if ( (input.LA(1)>=FORCED_END_OF_LINE && input.LA(1)<=WIKI)||(input.LA(1)>=POUND && input.LA(1)<=EQUAL)||(input.LA(1)>=ITAL && input.LA(1)<=LINK_CLOSE)||(input.LA(1)>=BLANKS && input.LA(1)<=80) ) {
input.consume();
errorRecovery=false;failed=false;
}
else {
if (backtracking>0) {failed=true; return link;}
MismatchedSetException mse =
new MismatchedSetException(null,input);
recoverFromMismatchedSet(input,mse,FOLLOW_set_in_image_uri4218); throw mse;
}
if ( backtracking==0 ) {
link.append(c.getText());
}
}
break;
default :
if ( cnt132 >= 1 ) break loop132;
if (backtracking>0) {failed=true; return link;}
EarlyExitException eee =
new EarlyExitException(132, input);
throw eee;
}
cnt132++;
} while (true);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return link;
}
// $ANTLR end image_uri
// $ANTLR start image_alternative
// Creole10.g:939:1: image_alternative returns [CollectionNode alternative = new CollectionNode()] : image_alternative_markup (p= image_alternativepart )+ ;
public final CollectionNode image_alternative() throws RecognitionException {
CollectionNode alternative = new CollectionNode();
ASTNode p = null;
try {
// Creole10.g:940:4: ( image_alternative_markup (p= image_alternativepart )+ )
// Creole10.g:940:4: image_alternative_markup (p= image_alternativepart )+
{
pushFollow(FOLLOW_image_alternative_markup_in_image_alternative4253);
image_alternative_markup();
_fsp--;
if (failed) return alternative;
// Creole10.g:940:30: (p= image_alternativepart )+
int cnt133=0;
loop133:
do {
int alt133=2;
int LA133_0 = input.LA(1);
if ( ((LA133_0>=FORCED_END_OF_LINE && LA133_0<=WIKI)||(LA133_0>=POUND && LA133_0<=ITAL)||(LA133_0>=FORCED_LINEBREAK && LA133_0<=LINK_CLOSE)||(LA133_0>=BLANKS && LA133_0<=80)) ) {
alt133=1;
}
switch (alt133) {
case 1 :
// Creole10.g:940:32: p= image_alternativepart
{
pushFollow(FOLLOW_image_alternativepart_in_image_alternative4262);
p=image_alternativepart();
_fsp--;
if (failed) return alternative;
if ( backtracking==0 ) {
alternative.add(p);
}
}
break;
default :
if ( cnt133 >= 1 ) break loop133;
if (backtracking>0) {failed=true; return alternative;}
EarlyExitException eee =
new EarlyExitException(133, input);
throw eee;
}
cnt133++;
} while (true);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return alternative;
}
// $ANTLR end image_alternative
protected static class image_alternativepart_scope {
CollectionNode elements;
}
protected Stack image_alternativepart_stack = new Stack();
// $ANTLR start image_alternativepart
// Creole10.g:942:1: image_alternativepart returns [ASTNode item = null] : ( bold_markup onestar (t1= image_bold_alternativepart onestar )+ bold_markup | ital_markup onestar (t2= image_ital_alternativepart onestar )+ ital_markup | onestar (t3= image_alternativetext onestar )+ );
public final ASTNode image_alternativepart() throws RecognitionException {
image_alternativepart_stack.push(new image_alternativepart_scope());
ASTNode item = null;
ASTNode t1 = null;
ASTNode t2 = null;
CollectionNode t3 = null;
((image_alternativepart_scope)image_alternativepart_stack.peek()).elements = new CollectionNode();
try {
// Creole10.g:949:4: ( bold_markup onestar (t1= image_bold_alternativepart onestar )+ bold_markup | ital_markup onestar (t2= image_ital_alternativepart onestar )+ ital_markup | onestar (t3= image_alternativetext onestar )+ )
int alt137=3;
switch ( input.LA(1) ) {
case STAR:
{
int LA137_1 = input.LA(2);
if ( (LA137_1==STAR) ) {
alt137=1;
}
else if ( ((LA137_1>=FORCED_END_OF_LINE && LA137_1<=WIKI)||LA137_1==POUND||(LA137_1>=EQUAL && LA137_1<=PIPE)||(LA137_1>=FORCED_LINEBREAK && LA137_1<=LINK_CLOSE)||(LA137_1>=BLANKS && LA137_1<=80)) ) {
alt137=3;
}
else {
if (backtracking>0) {failed=true; return item;}
NoViableAltException nvae =
new NoViableAltException("942:1: image_alternativepart returns [ASTNode item = null] : ( bold_markup onestar (t1= image_bold_alternativepart onestar )+ bold_markup | ital_markup onestar (t2= image_ital_alternativepart onestar )+ ital_markup | onestar (t3= image_alternativetext onestar )+ );", 137, 1, input);
throw nvae;
}
}
break;
case ITAL:
{
alt137=2;
}
break;
case FORCED_END_OF_LINE:
case HEADING_SECTION:
case HORIZONTAL_SECTION:
case LIST_ITEM:
case LIST_ITEM_PART:
case NOWIKI_SECTION:
case SCAPE_NODE:
case TEXT_NODE:
case UNORDERED_LIST:
case UNFORMATTED_TEXT:
case WIKI:
case POUND:
case EQUAL:
case PIPE:
case FORCED_LINEBREAK:
case ESCAPE:
case NOWIKI_BLOCK_CLOSE:
case NOWIKI_CLOSE:
case LINK_CLOSE:
case BLANKS:
case DASH:
case CR:
case LF:
case SPACE:
case TABULATOR:
case BRACE_CLOSE:
case COLON_SLASH:
case SLASH:
case INSIGNIFICANT_CHAR:
case 41:
case 42:
case 43:
case 44:
case 45:
case 46:
case 47:
case 48:
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 56:
case 57:
case 58:
case 59:
case 60:
case 61:
case 62:
case 63:
case 64:
case 65:
case 66:
case 67:
case 68:
case 69:
case 70:
case 71:
case 72:
case 73:
case 74:
case 75:
case 76:
case 77:
case 78:
case 79:
case 80:
{
alt137=3;
}
break;
default:
if (backtracking>0) {failed=true; return item;}
NoViableAltException nvae =
new NoViableAltException("942:1: image_alternativepart returns [ASTNode item = null] : ( bold_markup onestar (t1= image_bold_alternativepart onestar )+ bold_markup | ital_markup onestar (t2= image_ital_alternativepart onestar )+ ital_markup | onestar (t3= image_alternativetext onestar )+ );", 137, 0, input);
throw nvae;
}
switch (alt137) {
case 1 :
// Creole10.g:949:4: bold_markup onestar (t1= image_bold_alternativepart onestar )+ bold_markup
{
pushFollow(FOLLOW_bold_markup_in_image_alternativepart4288);
bold_markup();
_fsp--;
if (failed) return item;
pushFollow(FOLLOW_onestar_in_image_alternativepart4291);
onestar();
_fsp--;
if (failed) return item;
// Creole10.g:949:26: (t1= image_bold_alternativepart onestar )+
int cnt134=0;
loop134:
do {
int alt134=2;
int LA134_0 = input.LA(1);
if ( (LA134_0==STAR) ) {
int LA134_1 = input.LA(2);
if ( ((LA134_1>=FORCED_END_OF_LINE && LA134_1<=WIKI)||LA134_1==POUND||(LA134_1>=EQUAL && LA134_1<=PIPE)||(LA134_1>=FORCED_LINEBREAK && LA134_1<=LINK_CLOSE)||(LA134_1>=BLANKS && LA134_1<=80)) ) {
alt134=1;
}
}
else if ( ((LA134_0>=FORCED_END_OF_LINE && LA134_0<=WIKI)||LA134_0==POUND||(LA134_0>=EQUAL && LA134_0<=ITAL)||(LA134_0>=FORCED_LINEBREAK && LA134_0<=LINK_CLOSE)||(LA134_0>=BLANKS && LA134_0<=80)) ) {
alt134=1;
}
switch (alt134) {
case 1 :
// Creole10.g:949:28: t1= image_bold_alternativepart onestar
{
pushFollow(FOLLOW_image_bold_alternativepart_in_image_alternativepart4300);
t1=image_bold_alternativepart();
_fsp--;
if (failed) return item;
if ( backtracking==0 ) {
((image_alternativepart_scope)image_alternativepart_stack.peek()).elements.add(t1);
}
pushFollow(FOLLOW_onestar_in_image_alternativepart4305);
onestar();
_fsp--;
if (failed) return item;
}
break;
default :
if ( cnt134 >= 1 ) break loop134;
if (backtracking>0) {failed=true; return item;}
EarlyExitException eee =
new EarlyExitException(134, input);
throw eee;
}
cnt134++;
} while (true);
pushFollow(FOLLOW_bold_markup_in_image_alternativepart4312);
bold_markup();
_fsp--;
if (failed) return item;
if ( backtracking==0 ) {
item = new BoldTextNode(((image_alternativepart_scope)image_alternativepart_stack.peek()).elements);
}
}
break;
case 2 :
// Creole10.g:951:4: ital_markup onestar (t2= image_ital_alternativepart onestar )+ ital_markup
{
pushFollow(FOLLOW_ital_markup_in_image_alternativepart4319);
ital_markup();
_fsp--;
if (failed) return item;
pushFollow(FOLLOW_onestar_in_image_alternativepart4322);
onestar();
_fsp--;
if (failed) return item;
// Creole10.g:951:26: (t2= image_ital_alternativepart onestar )+
int cnt135=0;
loop135:
do {
int alt135=2;
int LA135_0 = input.LA(1);
if ( ((LA135_0>=FORCED_END_OF_LINE && LA135_0<=WIKI)||(LA135_0>=POUND && LA135_0<=PIPE)||(LA135_0>=FORCED_LINEBREAK && LA135_0<=LINK_CLOSE)||(LA135_0>=BLANKS && LA135_0<=80)) ) {
alt135=1;
}
switch (alt135) {
case 1 :
// Creole10.g:951:29: t2= image_ital_alternativepart onestar
{
pushFollow(FOLLOW_image_ital_alternativepart_in_image_alternativepart4332);
t2=image_ital_alternativepart();
_fsp--;
if (failed) return item;
if ( backtracking==0 ) {
((image_alternativepart_scope)image_alternativepart_stack.peek()).elements.add(t2);
}
pushFollow(FOLLOW_onestar_in_image_alternativepart4337);
onestar();
_fsp--;
if (failed) return item;
}
break;
default :
if ( cnt135 >= 1 ) break loop135;
if (backtracking>0) {failed=true; return item;}
EarlyExitException eee =
new EarlyExitException(135, input);
throw eee;
}
cnt135++;
} while (true);
pushFollow(FOLLOW_ital_markup_in_image_alternativepart4344);
ital_markup();
_fsp--;
if (failed) return item;
if ( backtracking==0 ) {
item = new ItalicTextNode(((image_alternativepart_scope)image_alternativepart_stack.peek()).elements);
}
}
break;
case 3 :
// Creole10.g:953:4: onestar (t3= image_alternativetext onestar )+
{
pushFollow(FOLLOW_onestar_in_image_alternativepart4351);
onestar();
_fsp--;
if (failed) return item;
// Creole10.g:953:13: (t3= image_alternativetext onestar )+
int cnt136=0;
loop136:
do {
int alt136=2;
int LA136_0 = input.LA(1);
if ( ((LA136_0>=FORCED_END_OF_LINE && LA136_0<=WIKI)||LA136_0==POUND||(LA136_0>=EQUAL && LA136_0<=PIPE)||(LA136_0>=ESCAPE && LA136_0<=LINK_CLOSE)||(LA136_0>=BLANKS && LA136_0<=80)) ) {
alt136=1;
}
else if ( (LA136_0==FORCED_LINEBREAK) ) {
alt136=1;
}
switch (alt136) {
case 1 :
// Creole10.g:953:15: t3= image_alternativetext onestar
{
pushFollow(FOLLOW_image_alternativetext_in_image_alternativepart4358);
t3=image_alternativetext();
_fsp--;
if (failed) return item;
if ( backtracking==0 ) {
for (ASTNode n: t3.getASTNodes()) {
((image_alternativepart_scope)image_alternativepart_stack.peek()).elements.add(n);
}
}
pushFollow(FOLLOW_onestar_in_image_alternativepart4363);
onestar();
_fsp--;
if (failed) return item;
}
break;
default :
if ( cnt136 >= 1 ) break loop136;
if (backtracking>0) {failed=true; return item;}
EarlyExitException eee =
new EarlyExitException(136, input);
throw eee;
}
cnt136++;
} while (true);
if ( backtracking==0 ) {
item =new UnformattedTextNode(((image_alternativepart_scope)image_alternativepart_stack.peek()).elements);
}
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
image_alternativepart_stack.pop();
}
return item;
}
// $ANTLR end image_alternativepart
protected static class image_bold_alternativepart_scope {
CollectionNode elements;
}
protected Stack image_bold_alternativepart_stack = new Stack();
// $ANTLR start image_bold_alternativepart
// Creole10.g:959:1: image_bold_alternativepart returns [ASTNode text = null] : ( ital_markup t= link_boldital_description ital_markup | onestar (i= image_alternativetext onestar )+ );
public final ASTNode image_bold_alternativepart() throws RecognitionException {
image_bold_alternativepart_stack.push(new image_bold_alternativepart_scope());
ASTNode text = null;
CollectionNode t = null;
CollectionNode i = null;
((image_bold_alternativepart_scope)image_bold_alternativepart_stack.peek()).elements = new CollectionNode();
try {
// Creole10.g:966:4: ( ital_markup t= link_boldital_description ital_markup | onestar (i= image_alternativetext onestar )+ )
int alt139=2;
int LA139_0 = input.LA(1);
if ( (LA139_0==ITAL) ) {
alt139=1;
}
else if ( ((LA139_0>=FORCED_END_OF_LINE && LA139_0<=WIKI)||(LA139_0>=POUND && LA139_0<=PIPE)||(LA139_0>=FORCED_LINEBREAK && LA139_0<=LINK_CLOSE)||(LA139_0>=BLANKS && LA139_0<=80)) ) {
alt139=2;
}
else {
if (backtracking>0) {failed=true; return text;}
NoViableAltException nvae =
new NoViableAltException("959:1: image_bold_alternativepart returns [ASTNode text = null] : ( ital_markup t= link_boldital_description ital_markup | onestar (i= image_alternativetext onestar )+ );", 139, 0, input);
throw nvae;
}
switch (alt139) {
case 1 :
// Creole10.g:966:4: ital_markup t= link_boldital_description ital_markup
{
pushFollow(FOLLOW_ital_markup_in_image_bold_alternativepart4389);
ital_markup();
_fsp--;
if (failed) return text;
pushFollow(FOLLOW_link_boldital_description_in_image_bold_alternativepart4396);
t=link_boldital_description();
_fsp--;
if (failed) return text;
if ( backtracking==0 ) {
text = new ItalicTextNode(t);
}
pushFollow(FOLLOW_ital_markup_in_image_bold_alternativepart4401);
ital_markup();
_fsp--;
if (failed) return text;
}
break;
case 2 :
// Creole10.g:967:4: onestar (i= image_alternativetext onestar )+
{
pushFollow(FOLLOW_onestar_in_image_bold_alternativepart4406);
onestar();
_fsp--;
if (failed) return text;
// Creole10.g:967:13: (i= image_alternativetext onestar )+
int cnt138=0;
loop138:
do {
int alt138=2;
int LA138_0 = input.LA(1);
if ( ((LA138_0>=FORCED_END_OF_LINE && LA138_0<=WIKI)||LA138_0==POUND||(LA138_0>=EQUAL && LA138_0<=PIPE)||(LA138_0>=ESCAPE && LA138_0<=LINK_CLOSE)||(LA138_0>=BLANKS && LA138_0<=80)) ) {
alt138=1;
}
else if ( (LA138_0==FORCED_LINEBREAK) ) {
alt138=1;
}
switch (alt138) {
case 1 :
// Creole10.g:967:15: i= image_alternativetext onestar
{
pushFollow(FOLLOW_image_alternativetext_in_image_bold_alternativepart4415);
i=image_alternativetext();
_fsp--;
if (failed) return text;
pushFollow(FOLLOW_onestar_in_image_bold_alternativepart4418);
onestar();
_fsp--;
if (failed) return text;
if ( backtracking==0 ) {
for (ASTNode item:i.getASTNodes()) {
((image_ital_alternativepart_scope)image_ital_alternativepart_stack.peek()).elements.add(item);
}
}
}
break;
default :
if ( cnt138 >= 1 ) break loop138;
if (backtracking>0) {failed=true; return text;}
EarlyExitException eee =
new EarlyExitException(138, input);
throw eee;
}
cnt138++;
} while (true);
if ( backtracking==0 ) {
text = new UnformattedTextNode(((image_bold_alternativepart_scope)image_bold_alternativepart_stack.peek()).elements);
}
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
image_bold_alternativepart_stack.pop();
}
return text;
}
// $ANTLR end image_bold_alternativepart
protected static class image_ital_alternativepart_scope {
CollectionNode elements;
}
protected Stack image_ital_alternativepart_stack = new Stack();
// $ANTLR start image_ital_alternativepart
// Creole10.g:974:1: image_ital_alternativepart returns [ASTNode text = null] : ( bold_markup t= link_boldital_description bold_markup | onestar (i= image_alternativetext onestar )+ );
public final ASTNode image_ital_alternativepart() throws RecognitionException {
image_ital_alternativepart_stack.push(new image_ital_alternativepart_scope());
ASTNode text = null;
CollectionNode t = null;
CollectionNode i = null;
((image_ital_alternativepart_scope)image_ital_alternativepart_stack.peek()).elements = new CollectionNode();
try {
// Creole10.g:981:4: ( bold_markup t= link_boldital_description bold_markup | onestar (i= image_alternativetext onestar )+ )
int alt141=2;
int LA141_0 = input.LA(1);
if ( (LA141_0==STAR) ) {
int LA141_1 = input.LA(2);
if ( (LA141_1==STAR) ) {
alt141=1;
}
else if ( ((LA141_1>=FORCED_END_OF_LINE && LA141_1<=WIKI)||LA141_1==POUND||(LA141_1>=EQUAL && LA141_1<=PIPE)||(LA141_1>=FORCED_LINEBREAK && LA141_1<=LINK_CLOSE)||(LA141_1>=BLANKS && LA141_1<=80)) ) {
alt141=2;
}
else {
if (backtracking>0) {failed=true; return text;}
NoViableAltException nvae =
new NoViableAltException("974:1: image_ital_alternativepart returns [ASTNode text = null] : ( bold_markup t= link_boldital_description bold_markup | onestar (i= image_alternativetext onestar )+ );", 141, 1, input);
throw nvae;
}
}
else if ( ((LA141_0>=FORCED_END_OF_LINE && LA141_0<=WIKI)||LA141_0==POUND||(LA141_0>=EQUAL && LA141_0<=PIPE)||(LA141_0>=FORCED_LINEBREAK && LA141_0<=LINK_CLOSE)||(LA141_0>=BLANKS && LA141_0<=80)) ) {
alt141=2;
}
else {
if (backtracking>0) {failed=true; return text;}
NoViableAltException nvae =
new NoViableAltException("974:1: image_ital_alternativepart returns [ASTNode text = null] : ( bold_markup t= link_boldital_description bold_markup | onestar (i= image_alternativetext onestar )+ );", 141, 0, input);
throw nvae;
}
switch (alt141) {
case 1 :
// Creole10.g:981:4: bold_markup t= link_boldital_description bold_markup
{
pushFollow(FOLLOW_bold_markup_in_image_ital_alternativepart4446);
bold_markup();
_fsp--;
if (failed) return text;
pushFollow(FOLLOW_link_boldital_description_in_image_ital_alternativepart4453);
t=link_boldital_description();
_fsp--;
if (failed) return text;
if ( backtracking==0 ) {
text = new BoldTextNode(t);
}
pushFollow(FOLLOW_bold_markup_in_image_ital_alternativepart4458);
bold_markup();
_fsp--;
if (failed) return text;
}
break;
case 2 :
// Creole10.g:982:4: onestar (i= image_alternativetext onestar )+
{
pushFollow(FOLLOW_onestar_in_image_ital_alternativepart4463);
onestar();
_fsp--;
if (failed) return text;
// Creole10.g:982:13: (i= image_alternativetext onestar )+
int cnt140=0;
loop140:
do {
int alt140=2;
int LA140_0 = input.LA(1);
if ( ((LA140_0>=FORCED_END_OF_LINE && LA140_0<=WIKI)||LA140_0==POUND||(LA140_0>=EQUAL && LA140_0<=PIPE)||(LA140_0>=ESCAPE && LA140_0<=LINK_CLOSE)||(LA140_0>=BLANKS && LA140_0<=80)) ) {
alt140=1;
}
else if ( (LA140_0==FORCED_LINEBREAK) ) {
alt140=1;
}
switch (alt140) {
case 1 :
// Creole10.g:982:14: i= image_alternativetext onestar
{
pushFollow(FOLLOW_image_alternativetext_in_image_ital_alternativepart4472);
i=image_alternativetext();
_fsp--;
if (failed) return text;
pushFollow(FOLLOW_onestar_in_image_ital_alternativepart4475);
onestar();
_fsp--;
if (failed) return text;
if ( backtracking==0 ) {
for (ASTNode item:i.getASTNodes()) {
((image_ital_alternativepart_scope)image_ital_alternativepart_stack.peek()).elements.add(item);
}
}
}
break;
default :
if ( cnt140 >= 1 ) break loop140;
if (backtracking>0) {failed=true; return text;}
EarlyExitException eee =
new EarlyExitException(140, input);
throw eee;
}
cnt140++;
} while (true);
if ( backtracking==0 ) {
text = new UnformattedTextNode(((image_ital_alternativepart_scope)image_ital_alternativepart_stack.peek()).elements);
}
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
image_ital_alternativepart_stack.pop();
}
return text;
}
// $ANTLR end image_ital_alternativepart
// $ANTLR start image_boldital_alternative
// Creole10.g:988:1: image_boldital_alternative returns [CollectionNode text = new CollectionNode()] : onestar (i= image_alternativetext onestar )+ ;
public final CollectionNode image_boldital_alternative() throws RecognitionException {
CollectionNode text = new CollectionNode();
CollectionNode i = null;
try {
// Creole10.g:989:4: ( onestar (i= image_alternativetext onestar )+ )
// Creole10.g:989:4: onestar (i= image_alternativetext onestar )+
{
pushFollow(FOLLOW_onestar_in_image_boldital_alternative4496);
onestar();
_fsp--;
if (failed) return text;
// Creole10.g:989:13: (i= image_alternativetext onestar )+
int cnt142=0;
loop142:
do {
int alt142=2;
int LA142_0 = input.LA(1);
if ( ((LA142_0>=FORCED_END_OF_LINE && LA142_0<=WIKI)||LA142_0==POUND||(LA142_0>=EQUAL && LA142_0<=PIPE)||(LA142_0>=FORCED_LINEBREAK && LA142_0<=LINK_CLOSE)||(LA142_0>=BLANKS && LA142_0<=80)) ) {
alt142=1;
}
switch (alt142) {
case 1 :
// Creole10.g:989:15: i= image_alternativetext onestar
{
pushFollow(FOLLOW_image_alternativetext_in_image_boldital_alternative4505);
i=image_alternativetext();
_fsp--;
if (failed) return text;
pushFollow(FOLLOW_onestar_in_image_boldital_alternative4508);
onestar();
_fsp--;
if (failed) return text;
if ( backtracking==0 ) {
for (ASTNode item:i.getASTNodes()) {
text.add(item);
}
}
}
break;
default :
if ( cnt142 >= 1 ) break loop142;
if (backtracking>0) {failed=true; return text;}
EarlyExitException eee =
new EarlyExitException(142, input);
throw eee;
}
cnt142++;
} while (true);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return text;
}
// $ANTLR end image_boldital_alternative
// $ANTLR start image_alternativetext
// Creole10.g:995:1: image_alternativetext returns [CollectionNode items = new CollectionNode()] : (contents= image_alternative_simple_text | ( forced_linebreak )+ );
public final CollectionNode image_alternativetext() throws RecognitionException {
CollectionNode items = new CollectionNode();
StringBundler contents = null;
try {
// Creole10.g:996:4: (contents= image_alternative_simple_text | ( forced_linebreak )+ )
int alt144=2;
int LA144_0 = input.LA(1);
if ( ((LA144_0>=FORCED_END_OF_LINE && LA144_0<=WIKI)||LA144_0==POUND||(LA144_0>=EQUAL && LA144_0<=PIPE)||(LA144_0>=ESCAPE && LA144_0<=LINK_CLOSE)||(LA144_0>=BLANKS && LA144_0<=80)) ) {
alt144=1;
}
else if ( (LA144_0==FORCED_LINEBREAK) ) {
alt144=2;
}
else {
if (backtracking>0) {failed=true; return items;}
NoViableAltException nvae =
new NoViableAltException("995:1: image_alternativetext returns [CollectionNode items = new CollectionNode()] : (contents= image_alternative_simple_text | ( forced_linebreak )+ );", 144, 0, input);
throw nvae;
}
switch (alt144) {
case 1 :
// Creole10.g:996:4: contents= image_alternative_simple_text
{
pushFollow(FOLLOW_image_alternative_simple_text_in_image_alternativetext4530);
contents=image_alternative_simple_text();
_fsp--;
if (failed) return items;
if ( backtracking==0 ) {
items.add(new UnformattedTextNode(contents.toString()));
}
}
break;
case 2 :
// Creole10.g:997:4: ( forced_linebreak )+
{
// Creole10.g:997:4: ( forced_linebreak )+
int cnt143=0;
loop143:
do {
int alt143=2;
int LA143_0 = input.LA(1);
if ( (LA143_0==FORCED_LINEBREAK) ) {
alt143=1;
}
switch (alt143) {
case 1 :
// Creole10.g:997:5: forced_linebreak
{
pushFollow(FOLLOW_forced_linebreak_in_image_alternativetext4538);
forced_linebreak();
_fsp--;
if (failed) return items;
if ( backtracking==0 ) {
items.add(new ForcedEndOfLineNode());
}
}
break;
default :
if ( cnt143 >= 1 ) break loop143;
if (backtracking>0) {failed=true; return items;}
EarlyExitException eee =
new EarlyExitException(143, input);
throw eee;
}
cnt143++;
} while (true);
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return items;
}
// $ANTLR end image_alternativetext
// $ANTLR start image_alternative_simple_text
// Creole10.g:1000:1: image_alternative_simple_text returns [StringBundler text = new StringBundler()] : (c=~ ( IMAGE_CLOSE | ITAL | STAR | LINK_OPEN | IMAGE_OPEN | NOWIKI_OPEN | EXTENSION | FORCED_LINEBREAK | NEWLINE | EOF ) )+ ;
public final StringBundler image_alternative_simple_text() throws RecognitionException {
StringBundler text = new StringBundler();
Token c=null;
try {
// Creole10.g:1002:2: ( (c=~ ( IMAGE_CLOSE | ITAL | STAR | LINK_OPEN | IMAGE_OPEN | NOWIKI_OPEN | EXTENSION | FORCED_LINEBREAK | NEWLINE | EOF ) )+ )
// Creole10.g:1002:2: (c=~ ( IMAGE_CLOSE | ITAL | STAR | LINK_OPEN | IMAGE_OPEN | NOWIKI_OPEN | EXTENSION | FORCED_LINEBREAK | NEWLINE | EOF ) )+
{
// Creole10.g:1002:2: (c=~ ( IMAGE_CLOSE | ITAL | STAR | LINK_OPEN | IMAGE_OPEN | NOWIKI_OPEN | EXTENSION | FORCED_LINEBREAK | NEWLINE | EOF ) )+
int cnt145=0;
loop145:
do {
int alt145=2;
int LA145_0 = input.LA(1);
if ( ((LA145_0>=FORCED_END_OF_LINE && LA145_0<=WIKI)||LA145_0==POUND||(LA145_0>=EQUAL && LA145_0<=PIPE)||(LA145_0>=ESCAPE && LA145_0<=LINK_CLOSE)||(LA145_0>=BLANKS && LA145_0<=80)) ) {
alt145=1;
}
switch (alt145) {
case 1 :
// Creole10.g:1002:4: c=~ ( IMAGE_CLOSE | ITAL | STAR | LINK_OPEN | IMAGE_OPEN | NOWIKI_OPEN | EXTENSION | FORCED_LINEBREAK | NEWLINE | EOF )
{
c=(Token)input.LT(1);
if ( (input.LA(1)>=FORCED_END_OF_LINE && input.LA(1)<=WIKI)||input.LA(1)==POUND||(input.LA(1)>=EQUAL && input.LA(1)<=PIPE)||(input.LA(1)>=ESCAPE && input.LA(1)<=LINK_CLOSE)||(input.LA(1)>=BLANKS && input.LA(1)<=80) ) {
input.consume();
errorRecovery=false;failed=false;
}
else {
if (backtracking>0) {failed=true; return text;}
MismatchedSetException mse =
new MismatchedSetException(null,input);
recoverFromMismatchedSet(input,mse,FOLLOW_set_in_image_alternative_simple_text4564); throw mse;
}
if ( backtracking==0 ) {
text.append(c.getText());
}
}
break;
default :
if ( cnt145 >= 1 ) break loop145;
if (backtracking>0) {failed=true; return text;}
EarlyExitException eee =
new EarlyExitException(145, input);
throw eee;
}
cnt145++;
} while (true);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return text;
}
// $ANTLR end image_alternative_simple_text
// $ANTLR start extension
// Creole10.g:1016:1: extension returns [ASTNode node = null] : extension_markup extension_handler blanks extension_statement extension_markup ;
public final ASTNode extension() throws RecognitionException {
ASTNode node = null;
try {
// Creole10.g:1017:4: ( extension_markup extension_handler blanks extension_statement extension_markup )
// Creole10.g:1017:4: extension_markup extension_handler blanks extension_statement extension_markup
{
pushFollow(FOLLOW_extension_markup_in_extension4656);
extension_markup();
_fsp--;
if (failed) return node;
pushFollow(FOLLOW_extension_handler_in_extension4659);
extension_handler();
_fsp--;
if (failed) return node;
pushFollow(FOLLOW_blanks_in_extension4662);
blanks();
_fsp--;
if (failed) return node;
pushFollow(FOLLOW_extension_statement_in_extension4665);
extension_statement();
_fsp--;
if (failed) return node;
pushFollow(FOLLOW_extension_markup_in_extension4669);
extension_markup();
_fsp--;
if (failed) return node;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return node;
}
// $ANTLR end extension
// $ANTLR start extension_handler
// Creole10.g:1021:1: extension_handler : (~ ( EXTENSION | BLANKS | ESCAPE | NEWLINE | EOF ) | escaped )+ ;
public final void extension_handler() throws RecognitionException {
try {
// Creole10.g:1022:4: ( (~ ( EXTENSION | BLANKS | ESCAPE | NEWLINE | EOF ) | escaped )+ )
// Creole10.g:1022:4: (~ ( EXTENSION | BLANKS | ESCAPE | NEWLINE | EOF ) | escaped )+
{
// Creole10.g:1022:4: (~ ( EXTENSION | BLANKS | ESCAPE | NEWLINE | EOF ) | escaped )+
int cnt146=0;
loop146:
do {
int alt146=3;
int LA146_0 = input.LA(1);
if ( ((LA146_0>=FORCED_END_OF_LINE && LA146_0<=WIKI)||(LA146_0>=POUND && LA146_0<=NOWIKI_OPEN)||LA146_0==FORCED_LINEBREAK||(LA146_0>=NOWIKI_BLOCK_CLOSE && LA146_0<=IMAGE_CLOSE)||(LA146_0>=DASH && LA146_0<=80)) ) {
alt146=1;
}
else if ( (LA146_0==ESCAPE) ) {
alt146=2;
}
switch (alt146) {
case 1 :
// Creole10.g:1022:5: ~ ( EXTENSION | BLANKS | ESCAPE | NEWLINE | EOF )
{
if ( (input.LA(1)>=FORCED_END_OF_LINE && input.LA(1)<=WIKI)||(input.LA(1)>=POUND && input.LA(1)<=NOWIKI_OPEN)||input.LA(1)==FORCED_LINEBREAK||(input.LA(1)>=NOWIKI_BLOCK_CLOSE && input.LA(1)<=IMAGE_CLOSE)||(input.LA(1)>=DASH && input.LA(1)<=80) ) {
input.consume();
errorRecovery=false;failed=false;
}
else {
if (backtracking>0) {failed=true; return ;}
MismatchedSetException mse =
new MismatchedSetException(null,input);
recoverFromMismatchedSet(input,mse,FOLLOW_set_in_extension_handler4681); throw mse;
}
}
break;
case 2 :
// Creole10.g:1022:64: escaped
{
pushFollow(FOLLOW_escaped_in_extension_handler4714);
escaped();
_fsp--;
if (failed) return ;
}
break;
default :
if ( cnt146 >= 1 ) break loop146;
if (backtracking>0) {failed=true; return ;}
EarlyExitException eee =
new EarlyExitException(146, input);
throw eee;
}
cnt146++;
} while (true);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return ;
}
// $ANTLR end extension_handler
// $ANTLR start extension_statement
// Creole10.g:1025:1: extension_statement : (~ ( EXTENSION | ESCAPE | EOF ) | escaped )* ;
public final void extension_statement() throws RecognitionException {
try {
// Creole10.g:1026:4: ( (~ ( EXTENSION | ESCAPE | EOF ) | escaped )* )
// Creole10.g:1026:4: (~ ( EXTENSION | ESCAPE | EOF ) | escaped )*
{
// Creole10.g:1026:4: (~ ( EXTENSION | ESCAPE | EOF ) | escaped )*
loop147:
do {
int alt147=3;
int LA147_0 = input.LA(1);
if ( ((LA147_0>=FORCED_END_OF_LINE && LA147_0<=NOWIKI_OPEN)||LA147_0==FORCED_LINEBREAK||(LA147_0>=NOWIKI_BLOCK_CLOSE && LA147_0<=80)) ) {
alt147=1;
}
else if ( (LA147_0==ESCAPE) ) {
alt147=2;
}
switch (alt147) {
case 1 :
// Creole10.g:1026:5: ~ ( EXTENSION | ESCAPE | EOF )
{
if ( (input.LA(1)>=FORCED_END_OF_LINE && input.LA(1)<=NOWIKI_OPEN)||input.LA(1)==FORCED_LINEBREAK||(input.LA(1)>=NOWIKI_BLOCK_CLOSE && input.LA(1)<=80) ) {
input.consume();
errorRecovery=false;failed=false;
}
else {
if (backtracking>0) {failed=true; return ;}
MismatchedSetException mse =
new MismatchedSetException(null,input);
recoverFromMismatchedSet(input,mse,FOLLOW_set_in_extension_statement4729); throw mse;
}
}
break;
case 2 :
// Creole10.g:1026:41: escaped
{
pushFollow(FOLLOW_escaped_in_extension_statement4750);
escaped();
_fsp--;
if (failed) return ;
}
break;
default :
break loop147;
}
} while (true);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return ;
}
// $ANTLR end extension_statement
// $ANTLR start table_of_contents
// Creole10.g:1032:1: table_of_contents returns [TableOfContentsNode tableOfContents = new TableOfContentsNode()] : ( '<<TableOfContents>>' | '<<TableOfContents title=' '\\\"' t= table_of_contents_title_text '\\\"' '>>' ) ;
public final TableOfContentsNode table_of_contents() throws RecognitionException {
TableOfContentsNode tableOfContents = new TableOfContentsNode();
StringBundler t = null;
try {
// Creole10.g:1034:3: ( ( '<<TableOfContents>>' | '<<TableOfContents title=' '\\\"' t= table_of_contents_title_text '\\\"' '>>' ) )
// Creole10.g:1034:3: ( '<<TableOfContents>>' | '<<TableOfContents title=' '\\\"' t= table_of_contents_title_text '\\\"' '>>' )
{
// Creole10.g:1034:3: ( '<<TableOfContents>>' | '<<TableOfContents title=' '\\\"' t= table_of_contents_title_text '\\\"' '>>' )
int alt148=2;
int LA148_0 = input.LA(1);
if ( (LA148_0==77) ) {
alt148=1;
}
else if ( (LA148_0==78) ) {
alt148=2;
}
else {
if (backtracking>0) {failed=true; return tableOfContents;}
NoViableAltException nvae =
new NoViableAltException("1034:3: ( '<<TableOfContents>>' | '<<TableOfContents title=' '\\\"' t= table_of_contents_title_text '\\\"' '>>' )", 148, 0, input);
throw nvae;
}
switch (alt148) {
case 1 :
// Creole10.g:1035:4: '<<TableOfContents>>'
{
match(input,77,FOLLOW_77_in_table_of_contents4778); if (failed) return tableOfContents;
}
break;
case 2 :
// Creole10.g:1037:4: '<<TableOfContents title=' '\\\"' t= table_of_contents_title_text '\\\"' '>>'
{
match(input,78,FOLLOW_78_in_table_of_contents4788); if (failed) return tableOfContents;
match(input,79,FOLLOW_79_in_table_of_contents4793); if (failed) return tableOfContents;
pushFollow(FOLLOW_table_of_contents_title_text_in_table_of_contents4802);
t=table_of_contents_title_text();
_fsp--;
if (failed) return tableOfContents;
if ( backtracking==0 ) {
tableOfContents.setTitle(t.toString());
}
match(input,79,FOLLOW_79_in_table_of_contents4809); if (failed) return tableOfContents;
match(input,80,FOLLOW_80_in_table_of_contents4814); if (failed) return tableOfContents;
}
break;
}
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return tableOfContents;
}
// $ANTLR end table_of_contents
// $ANTLR start table_of_contents_title_text
// Creole10.g:1046:1: table_of_contents_title_text returns [StringBundler text = new StringBundler()] : (c=~ ( LINK_OPEN | IMAGE_OPEN | NOWIKI_OPEN | EQUAL | ESCAPE | NEWLINE | EOF | '>>' ) )+ ;
public final StringBundler table_of_contents_title_text() throws RecognitionException {
StringBundler text = new StringBundler();
Token c=null;
try {
// Creole10.g:1047:4: ( (c=~ ( LINK_OPEN | IMAGE_OPEN | NOWIKI_OPEN | EQUAL | ESCAPE | NEWLINE | EOF | '>>' ) )+ )
// Creole10.g:1047:4: (c=~ ( LINK_OPEN | IMAGE_OPEN | NOWIKI_OPEN | EQUAL | ESCAPE | NEWLINE | EOF | '>>' ) )+
{
// Creole10.g:1047:4: (c=~ ( LINK_OPEN | IMAGE_OPEN | NOWIKI_OPEN | EQUAL | ESCAPE | NEWLINE | EOF | '>>' ) )+
int cnt149=0;
loop149:
do {
int alt149=2;
int LA149_0 = input.LA(1);
if ( (LA149_0==79) ) {
int LA149_1 = input.LA(2);
if ( ((LA149_1>=FORCED_END_OF_LINE && LA149_1<=WIKI)||(LA149_1>=POUND && LA149_1<=STAR)||(LA149_1>=PIPE && LA149_1<=ITAL)||(LA149_1>=EXTENSION && LA149_1<=FORCED_LINEBREAK)||(LA149_1>=NOWIKI_BLOCK_CLOSE && LA149_1<=79)) ) {
alt149=1;
}
}
else if ( ((LA149_0>=FORCED_END_OF_LINE && LA149_0<=WIKI)||(LA149_0>=POUND && LA149_0<=STAR)||(LA149_0>=PIPE && LA149_0<=ITAL)||(LA149_0>=EXTENSION && LA149_0<=FORCED_LINEBREAK)||(LA149_0>=NOWIKI_BLOCK_CLOSE && LA149_0<=78)) ) {
alt149=1;
}
switch (alt149) {
case 1 :
// Creole10.g:1047:6: c=~ ( LINK_OPEN | IMAGE_OPEN | NOWIKI_OPEN | EQUAL | ESCAPE | NEWLINE | EOF | '>>' )
{
c=(Token)input.LT(1);
if ( (input.LA(1)>=FORCED_END_OF_LINE && input.LA(1)<=WIKI)||(input.LA(1)>=POUND && input.LA(1)<=STAR)||(input.LA(1)>=PIPE && input.LA(1)<=ITAL)||(input.LA(1)>=EXTENSION && input.LA(1)<=FORCED_LINEBREAK)||(input.LA(1)>=NOWIKI_BLOCK_CLOSE && input.LA(1)<=79) ) {
input.consume();
errorRecovery=false;failed=false;
}
else {
if (backtracking>0) {failed=true; return text;}
MismatchedSetException mse =
new MismatchedSetException(null,input);
recoverFromMismatchedSet(input,mse,FOLLOW_set_in_table_of_contents_title_text4840); throw mse;
}
if ( backtracking==0 ) {
text.append(c.getText());
}
}
break;
default :
if ( cnt149 >= 1 ) break loop149;
if (backtracking>0) {failed=true; return text;}
EarlyExitException eee =
new EarlyExitException(149, input);
throw eee;
}
cnt149++;
} while (true);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return text;
}
// $ANTLR end table_of_contents_title_text
// $ANTLR start onestar
// Creole10.g:1050:1: onestar : ( ({...}? ( STAR )? ) | );
public final void onestar() throws RecognitionException {
try {
// Creole10.g:1051:4: ( ({...}? ( STAR )? ) | )
int alt151=2;
switch ( input.LA(1) ) {
case STAR:
{
int LA151_1 = input.LA(2);
if ( ( input.LA(2) != STAR ) ) {
alt151=1;
}
else if ( (true) ) {
alt151=2;
}
else {
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
new NoViableAltException("1050:1: onestar : ( ({...}? ( STAR )? ) | );", 151, 1, input);
throw nvae;
}
}
break;
case BLANKS:
{
int LA151_2 = input.LA(2);
if ( ( input.LA(2) != STAR ) ) {
alt151=1;
}
else if ( (true) ) {
alt151=2;
}
else {
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
new NoViableAltException("1050:1: onestar : ( ({...}? ( STAR )? ) | );", 151, 2, input);
throw nvae;
}
}
break;
case FORCED_LINEBREAK:
{
int LA151_3 = input.LA(2);
if ( ( input.LA(2) != STAR ) ) {
alt151=1;
}
else if ( (true) ) {
alt151=2;
}
else {
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
new NoViableAltException("1050:1: onestar : ( ({...}? ( STAR )? ) | );", 151, 3, input);
throw nvae;
}
}
break;
case ESCAPE:
{
int LA151_4 = input.LA(2);
if ( ( input.LA(2) != STAR ) ) {
alt151=1;
}
else if ( (true) ) {
alt151=2;
}
else {
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
new NoViableAltException("1050:1: onestar : ( ({...}? ( STAR )? ) | );", 151, 4, input);
throw nvae;
}
}
break;
case LINK_OPEN:
{
int LA151_5 = input.LA(2);
if ( ( input.LA(2) != STAR ) ) {
alt151=1;
}
else if ( (true) ) {
alt151=2;
}
else {
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
new NoViableAltException("1050:1: onestar : ( ({...}? ( STAR )? ) | );", 151, 5, input);
throw nvae;
}
}
break;
case IMAGE_OPEN:
{
int LA151_6 = input.LA(2);
if ( ( input.LA(2) != STAR ) ) {
alt151=1;
}
else if ( (true) ) {
alt151=2;
}
else {
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
new NoViableAltException("1050:1: onestar : ( ({...}? ( STAR )? ) | );", 151, 6, input);
throw nvae;
}
}
break;
case EXTENSION:
{
int LA151_7 = input.LA(2);
if ( ( input.LA(2) != STAR ) ) {
alt151=1;
}
else if ( (true) ) {
alt151=2;
}
else {
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
new NoViableAltException("1050:1: onestar : ( ({...}? ( STAR )? ) | );", 151, 7, input);
throw nvae;
}
}
break;
case NOWIKI_OPEN:
{
int LA151_8 = input.LA(2);
if ( ( input.LA(2) != STAR ) ) {
alt151=1;
}
else if ( (true) ) {
alt151=2;
}
else {
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
new NoViableAltException("1050:1: onestar : ( ({...}? ( STAR )? ) | );", 151, 8, input);
throw nvae;
}
}
break;
case NEWLINE:
{
int LA151_9 = input.LA(2);
if ( (( input.LA(2) != STAR ||( input.LA(2) != STAR && input.LA(2) != DASH && input.LA(2) != POUND &&
input.LA(2) != EQUAL && input.LA(2) != NEWLINE ))) ) {
alt151=1;
}
else if ( (true) ) {
alt151=2;
}
else {
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
new NoViableAltException("1050:1: onestar : ( ({...}? ( STAR )? ) | );", 151, 9, input);
throw nvae;
}
}
break;
case EOF:
{
int LA151_10 = input.LA(2);
if ( (( input.LA(2) != STAR ||( input.LA(2) != STAR && input.LA(2) != DASH && input.LA(2) != POUND &&
input.LA(2) != EQUAL && input.LA(2) != NEWLINE ))) ) {
alt151=1;
}
else if ( (true) ) {
alt151=2;
}
else {
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
new NoViableAltException("1050:1: onestar : ( ({...}? ( STAR )? ) | );", 151, 10, input);
throw nvae;
}
}
break;
case ITAL:
{
int LA151_11 = input.LA(2);
if ( ( input.LA(2) != STAR ) ) {
alt151=1;
}
else if ( (true) ) {
alt151=2;
}
else {
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
new NoViableAltException("1050:1: onestar : ( ({...}? ( STAR )? ) | );", 151, 11, input);
throw nvae;
}
}
break;
case EQUAL:
{
int LA151_12 = input.LA(2);
if ( ( input.LA(2) != STAR ) ) {
alt151=1;
}
else if ( (true) ) {
alt151=2;
}
else {
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
new NoViableAltException("1050:1: onestar : ( ({...}? ( STAR )? ) | );", 151, 12, input);
throw nvae;
}
}
break;
case FORCED_END_OF_LINE:
case HEADING_SECTION:
case HORIZONTAL_SECTION:
case LIST_ITEM:
case LIST_ITEM_PART:
case NOWIKI_SECTION:
case SCAPE_NODE:
case TEXT_NODE:
case UNORDERED_LIST:
case UNFORMATTED_TEXT:
case WIKI:
case POUND:
case NOWIKI_BLOCK_CLOSE:
case NOWIKI_CLOSE:
case DASH:
case CR:
case LF:
case SPACE:
case TABULATOR:
case BRACE_CLOSE:
case COLON_SLASH:
case SLASH:
case INSIGNIFICANT_CHAR:
case 41:
case 42:
case 43:
case 44:
case 45:
case 46:
case 47:
case 48:
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 56:
case 57:
case 58:
case 59:
case 60:
case 61:
case 62:
case 63:
case 64:
case 65:
case 66:
case 67:
case 68:
case 69:
case 70:
case 71:
case 72:
case 73:
case 74:
case 75:
case 76:
case 77:
case 78:
case 79:
case 80:
{
int LA151_13 = input.LA(2);
if ( ( input.LA(2) != STAR ) ) {
alt151=1;
}
else if ( (true) ) {
alt151=2;
}
else {
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
new NoViableAltException("1050:1: onestar : ( ({...}? ( STAR )? ) | );", 151, 13, input);
throw nvae;
}
}
break;
case PIPE:
{
int LA151_14 = input.LA(2);
if ( ((( input.LA(2) != STAR && input.LA(2) == EQUAL )||( input.LA(2) != STAR && input.LA(1) == PIPE && input.LA(2) == PIPE )|| input.LA(2) != STAR ||(( input.LA(2) != STAR && input.LA(1) == PIPE && input.LA(2) == PIPE )&& input.LA(2) == EQUAL ))) ) {
alt151=1;
}
else if ( (true) ) {
alt151=2;
}
else {
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
new NoViableAltException("1050:1: onestar : ( ({...}? ( STAR )? ) | );", 151, 14, input);
throw nvae;
}
}
break;
case LINK_CLOSE:
{
int LA151_15 = input.LA(2);
if ( ( input.LA(2) != STAR ) ) {
alt151=1;
}
else if ( (true) ) {
alt151=2;
}
else {
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
new NoViableAltException("1050:1: onestar : ( ({...}? ( STAR )? ) | );", 151, 15, input);
throw nvae;
}
}
break;
case IMAGE_CLOSE:
{
int LA151_16 = input.LA(2);
if ( ( input.LA(2) != STAR ) ) {
alt151=1;
}
else if ( (true) ) {
alt151=2;
}
else {
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
new NoViableAltException("1050:1: onestar : ( ({...}? ( STAR )? ) | );", 151, 16, input);
throw nvae;
}
}
break;
default:
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
new NoViableAltException("1050:1: onestar : ( ({...}? ( STAR )? ) | );", 151, 0, input);
throw nvae;
}
switch (alt151) {
case 1 :
// Creole10.g:1051:4: ({...}? ( STAR )? )
{
// Creole10.g:1051:4: ({...}? ( STAR )? )
// Creole10.g:1051:6: {...}? ( STAR )?
{
if ( !( input.LA(2) != STAR ) ) {
if (backtracking>0) {failed=true; return ;}
throw new FailedPredicateException(input, "onestar", " input.LA(2) != STAR ");
}
// Creole10.g:1051:32: ( STAR )?
int alt150=2;
int LA150_0 = input.LA(1);
if ( (LA150_0==STAR) ) {
alt150=1;
}
switch (alt150) {
case 1 :
// Creole10.g:1051:34: STAR
{
match(input,STAR,FOLLOW_STAR_in_onestar4895); if (failed) return ;
}
break;
}
}
}
break;
case 2 :
// Creole10.g:1053:2:
{
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return ;
}
// $ANTLR end onestar
// $ANTLR start escaped
// Creole10.g:1054:1: escaped returns [ScapedNode scaped = new ScapedNode()] : ESCAPE c= . ;
public final ScapedNode escaped() throws RecognitionException {
ScapedNode scaped = new ScapedNode();
Token c=null;
try {
// Creole10.g:1055:4: ( ESCAPE c= . )
// Creole10.g:1055:4: ESCAPE c= .
{
match(input,ESCAPE,FOLLOW_ESCAPE_in_escaped4916); if (failed) return scaped;
c=(Token)input.LT(1);
matchAny(input); if (failed) return scaped;
if ( backtracking==0 ) {
scaped.setContent(c.getText()) ;
}
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return scaped;
}
// $ANTLR end escaped
// $ANTLR start paragraph_separator
// Creole10.g:1058:1: paragraph_separator : ( ( newline )+ | EOF );
public final void paragraph_separator() throws RecognitionException {
try {
// Creole10.g:1059:4: ( ( newline )+ | EOF )
int alt153=2;
int LA153_0 = input.LA(1);
if ( (LA153_0==NEWLINE) ) {
alt153=1;
}
else if ( (LA153_0==EOF) ) {
alt153=2;
}
else {
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
new NoViableAltException("1058:1: paragraph_separator : ( ( newline )+ | EOF );", 153, 0, input);
throw nvae;
}
switch (alt153) {
case 1 :
// Creole10.g:1059:4: ( newline )+
{
// Creole10.g:1059:4: ( newline )+
int cnt152=0;
loop152:
do {
int alt152=2;
int LA152_0 = input.LA(1);
if ( (LA152_0==NEWLINE) ) {
alt152=1;
}
switch (alt152) {
case 1 :
// Creole10.g:1059:6: newline
{
pushFollow(FOLLOW_newline_in_paragraph_separator4940);
newline();
_fsp--;
if (failed) return ;
}
break;
default :
if ( cnt152 >= 1 ) break loop152;
if (backtracking>0) {failed=true; return ;}
EarlyExitException eee =
new EarlyExitException(152, input);
throw eee;
}
cnt152++;
} while (true);
}
break;
case 2 :
// Creole10.g:1060:4: EOF
{
match(input,EOF,FOLLOW_EOF_in_paragraph_separator4948); if (failed) return ;
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return ;
}
// $ANTLR end paragraph_separator
// $ANTLR start whitespaces
// Creole10.g:1062:1: whitespaces : ( blanks | newline )+ ;
public final void whitespaces() throws RecognitionException {
try {
// Creole10.g:1063:4: ( ( blanks | newline )+ )
// Creole10.g:1063:4: ( blanks | newline )+
{
// Creole10.g:1063:4: ( blanks | newline )+
int cnt154=0;
loop154:
do {
int alt154=3;
int LA154_0 = input.LA(1);
if ( (LA154_0==BLANKS) ) {
alt154=1;
}
else if ( (LA154_0==NEWLINE) ) {
alt154=2;
}
switch (alt154) {
case 1 :
// Creole10.g:1063:6: blanks
{
pushFollow(FOLLOW_blanks_in_whitespaces4960);
blanks();
_fsp--;
if (failed) return ;
}
break;
case 2 :
// Creole10.g:1063:15: newline
{
pushFollow(FOLLOW_newline_in_whitespaces4964);
newline();
_fsp--;
if (failed) return ;
}
break;
default :
if ( cnt154 >= 1 ) break loop154;
if (backtracking>0) {failed=true; return ;}
EarlyExitException eee =
new EarlyExitException(154, input);
throw eee;
}
cnt154++;
} while (true);
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return ;
}
// $ANTLR end whitespaces
// $ANTLR start blanks
// Creole10.g:1065:1: blanks : BLANKS ;
public final void blanks() throws RecognitionException {
try {
// Creole10.g:1066:4: ( BLANKS )
// Creole10.g:1066:4: BLANKS
{
match(input,BLANKS,FOLLOW_BLANKS_in_blanks4977); if (failed) return ;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return ;
}
// $ANTLR end blanks
// $ANTLR start text_lineseparator
// Creole10.g:1068:1: text_lineseparator : ( newline ( blanks )? | EOF );
public final void text_lineseparator() throws RecognitionException {
try {
// Creole10.g:1069:4: ( newline ( blanks )? | EOF )
int alt156=2;
int LA156_0 = input.LA(1);
if ( (LA156_0==NEWLINE) ) {
alt156=1;
}
else if ( (LA156_0==EOF) ) {
alt156=2;
}
else {
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
new NoViableAltException("1068:1: text_lineseparator : ( newline ( blanks )? | EOF );", 156, 0, input);
throw nvae;
}
switch (alt156) {
case 1 :
// Creole10.g:1069:4: newline ( blanks )?
{
pushFollow(FOLLOW_newline_in_text_lineseparator4987);
newline();
_fsp--;
if (failed) return ;
// Creole10.g:1069:13: ( blanks )?
int alt155=2;
int LA155_0 = input.LA(1);
if ( (LA155_0==BLANKS) ) {
alt155=1;
}
switch (alt155) {
case 1 :
// Creole10.g:1069:15: blanks
{
pushFollow(FOLLOW_blanks_in_text_lineseparator4992);
blanks();
_fsp--;
if (failed) return ;
}
break;
}
}
break;
case 2 :
// Creole10.g:1070:4: EOF
{
match(input,EOF,FOLLOW_EOF_in_text_lineseparator5000); if (failed) return ;
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return ;
}
// $ANTLR end text_lineseparator
// $ANTLR start newline
// Creole10.g:1072:1: newline : NEWLINE ;
public final void newline() throws RecognitionException {
try {
// Creole10.g:1073:4: ( NEWLINE )
// Creole10.g:1073:4: NEWLINE
{
match(input,NEWLINE,FOLLOW_NEWLINE_in_newline5010); if (failed) return ;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return ;
}
// $ANTLR end newline
// $ANTLR start bold_markup
// Creole10.g:1075:1: bold_markup : STAR STAR ;
public final void bold_markup() throws RecognitionException {
try {
// Creole10.g:1076:4: ( STAR STAR )
// Creole10.g:1076:4: STAR STAR
{
match(input,STAR,FOLLOW_STAR_in_bold_markup5020); if (failed) return ;
match(input,STAR,FOLLOW_STAR_in_bold_markup5023); if (failed) return ;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return ;
}
// $ANTLR end bold_markup
// $ANTLR start ital_markup
// Creole10.g:1078:1: ital_markup : ITAL ;
public final void ital_markup() throws RecognitionException {
try {
// Creole10.g:1079:4: ( ITAL )
// Creole10.g:1079:4: ITAL
{
match(input,ITAL,FOLLOW_ITAL_in_ital_markup5033); if (failed) return ;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return ;
}
// $ANTLR end ital_markup
// $ANTLR start heading_markup
// Creole10.g:1081:1: heading_markup : EQUAL ;
public final void heading_markup() throws RecognitionException {
try {
// Creole10.g:1082:4: ( EQUAL )
// Creole10.g:1082:4: EQUAL
{
match(input,EQUAL,FOLLOW_EQUAL_in_heading_markup5043); if (failed) return ;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return ;
}
// $ANTLR end heading_markup
public static class list_ordelem_markup_return extends ParserRuleReturnScope {
};
// $ANTLR start list_ordelem_markup
// Creole10.g:1084:1: list_ordelem_markup : POUND ;
public final list_ordelem_markup_return list_ordelem_markup() throws RecognitionException {
list_ordelem_markup_return retval = new list_ordelem_markup_return();
retval.start = input.LT(1);
try {
// Creole10.g:1085:4: ( POUND )
// Creole10.g:1085:4: POUND
{
match(input,POUND,FOLLOW_POUND_in_list_ordelem_markup5053); if (failed) return retval;
}
retval.stop = input.LT(-1);
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return retval;
}
// $ANTLR end list_ordelem_markup
public static class list_unordelem_markup_return extends ParserRuleReturnScope {
};
// $ANTLR start list_unordelem_markup
// Creole10.g:1087:1: list_unordelem_markup : STAR ;
public final list_unordelem_markup_return list_unordelem_markup() throws RecognitionException {
list_unordelem_markup_return retval = new list_unordelem_markup_return();
retval.start = input.LT(1);
try {
// Creole10.g:1088:4: ( STAR )
// Creole10.g:1088:4: STAR
{
match(input,STAR,FOLLOW_STAR_in_list_unordelem_markup5063); if (failed) return retval;
}
retval.stop = input.LT(-1);
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return retval;
}
// $ANTLR end list_unordelem_markup
// $ANTLR start list_elemseparator
// Creole10.g:1090:1: list_elemseparator : ( newline ( blanks )? | EOF );
public final void list_elemseparator() throws RecognitionException {
try {
// Creole10.g:1091:4: ( newline ( blanks )? | EOF )
int alt158=2;
int LA158_0 = input.LA(1);
if ( (LA158_0==NEWLINE) ) {
alt158=1;
}
else if ( (LA158_0==EOF) ) {
alt158=2;
}
else {
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
new NoViableAltException("1090:1: list_elemseparator : ( newline ( blanks )? | EOF );", 158, 0, input);
throw nvae;
}
switch (alt158) {
case 1 :
// Creole10.g:1091:4: newline ( blanks )?
{
pushFollow(FOLLOW_newline_in_list_elemseparator5073);
newline();
_fsp--;
if (failed) return ;
// Creole10.g:1091:13: ( blanks )?
int alt157=2;
int LA157_0 = input.LA(1);
if ( (LA157_0==BLANKS) ) {
alt157=1;
}
switch (alt157) {
case 1 :
// Creole10.g:1091:15: blanks
{
pushFollow(FOLLOW_blanks_in_list_elemseparator5078);
blanks();
_fsp--;
if (failed) return ;
}
break;
}
}
break;
case 2 :
// Creole10.g:1092:4: EOF
{
match(input,EOF,FOLLOW_EOF_in_list_elemseparator5086); if (failed) return ;
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return ;
}
// $ANTLR end list_elemseparator
// $ANTLR start end_of_list
// Creole10.g:1094:1: end_of_list : ( newline | EOF );
public final void end_of_list() throws RecognitionException {
try {
// Creole10.g:1095:4: ( newline | EOF )
int alt159=2;
int LA159_0 = input.LA(1);
if ( (LA159_0==NEWLINE) ) {
alt159=1;
}
else if ( (LA159_0==EOF) ) {
alt159=2;
}
else {
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
new NoViableAltException("1094:1: end_of_list : ( newline | EOF );", 159, 0, input);
throw nvae;
}
switch (alt159) {
case 1 :
// Creole10.g:1095:4: newline
{
pushFollow(FOLLOW_newline_in_end_of_list5096);
newline();
_fsp--;
if (failed) return ;
}
break;
case 2 :
// Creole10.g:1096:4: EOF
{
match(input,EOF,FOLLOW_EOF_in_end_of_list5101); if (failed) return ;
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return ;
}
// $ANTLR end end_of_list
// $ANTLR start table_cell_markup
// Creole10.g:1098:1: table_cell_markup : PIPE ;
public final void table_cell_markup() throws RecognitionException {
try {
// Creole10.g:1099:4: ( PIPE )
// Creole10.g:1099:4: PIPE
{
match(input,PIPE,FOLLOW_PIPE_in_table_cell_markup5111); if (failed) return ;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return ;
}
// $ANTLR end table_cell_markup
// $ANTLR start table_headercell_markup
// Creole10.g:1101:1: table_headercell_markup : PIPE EQUAL ;
public final void table_headercell_markup() throws RecognitionException {
try {
// Creole10.g:1102:4: ( PIPE EQUAL )
// Creole10.g:1102:4: PIPE EQUAL
{
match(input,PIPE,FOLLOW_PIPE_in_table_headercell_markup5121); if (failed) return ;
match(input,EQUAL,FOLLOW_EQUAL_in_table_headercell_markup5124); if (failed) return ;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return ;
}
// $ANTLR end table_headercell_markup
// $ANTLR start table_rowseparator
// Creole10.g:1104:1: table_rowseparator : ( newline | EOF );
public final void table_rowseparator() throws RecognitionException {
try {
// Creole10.g:1105:4: ( newline | EOF )
int alt160=2;
int LA160_0 = input.LA(1);
if ( (LA160_0==NEWLINE) ) {
alt160=1;
}
else if ( (LA160_0==EOF) ) {
alt160=2;
}
else {
if (backtracking>0) {failed=true; return ;}
NoViableAltException nvae =
new NoViableAltException("1104:1: table_rowseparator : ( newline | EOF );", 160, 0, input);
throw nvae;
}
switch (alt160) {
case 1 :
// Creole10.g:1105:4: newline
{
pushFollow(FOLLOW_newline_in_table_rowseparator5134);
newline();
_fsp--;
if (failed) return ;
}
break;
case 2 :
// Creole10.g:1106:4: EOF
{
match(input,EOF,FOLLOW_EOF_in_table_rowseparator5139); if (failed) return ;
}
break;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return ;
}
// $ANTLR end table_rowseparator
// $ANTLR start nowiki_open_markup
// Creole10.g:1108:1: nowiki_open_markup : NOWIKI_OPEN ;
public final void nowiki_open_markup() throws RecognitionException {
try {
// Creole10.g:1109:4: ( NOWIKI_OPEN )
// Creole10.g:1109:4: NOWIKI_OPEN
{
match(input,NOWIKI_OPEN,FOLLOW_NOWIKI_OPEN_in_nowiki_open_markup5149); if (failed) return ;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return ;
}
// $ANTLR end nowiki_open_markup
// $ANTLR start nowiki_close_markup
// Creole10.g:1111:1: nowiki_close_markup : NOWIKI_CLOSE ;
public final void nowiki_close_markup() throws RecognitionException {
try {
// Creole10.g:1112:4: ( NOWIKI_CLOSE )
// Creole10.g:1112:4: NOWIKI_CLOSE
{
match(input,NOWIKI_CLOSE,FOLLOW_NOWIKI_CLOSE_in_nowiki_close_markup5159); if (failed) return ;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return ;
}
// $ANTLR end nowiki_close_markup
// $ANTLR start horizontalrule_markup
// Creole10.g:1114:1: horizontalrule_markup : DASH DASH DASH DASH ;
public final void horizontalrule_markup() throws RecognitionException {
try {
// Creole10.g:1115:4: ( DASH DASH DASH DASH )
// Creole10.g:1115:4: DASH DASH DASH DASH
{
match(input,DASH,FOLLOW_DASH_in_horizontalrule_markup5169); if (failed) return ;
match(input,DASH,FOLLOW_DASH_in_horizontalrule_markup5172); if (failed) return ;
match(input,DASH,FOLLOW_DASH_in_horizontalrule_markup5175); if (failed) return ;
match(input,DASH,FOLLOW_DASH_in_horizontalrule_markup5178); if (failed) return ;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return ;
}
// $ANTLR end horizontalrule_markup
// $ANTLR start link_open_markup
// Creole10.g:1117:1: link_open_markup : LINK_OPEN ;
public final void link_open_markup() throws RecognitionException {
try {
// Creole10.g:1118:4: ( LINK_OPEN )
// Creole10.g:1118:4: LINK_OPEN
{
match(input,LINK_OPEN,FOLLOW_LINK_OPEN_in_link_open_markup5188); if (failed) return ;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return ;
}
// $ANTLR end link_open_markup
// $ANTLR start link_close_markup
// Creole10.g:1120:1: link_close_markup : LINK_CLOSE ;
public final void link_close_markup() throws RecognitionException {
try {
// Creole10.g:1121:4: ( LINK_CLOSE )
// Creole10.g:1121:4: LINK_CLOSE
{
match(input,LINK_CLOSE,FOLLOW_LINK_CLOSE_in_link_close_markup5198); if (failed) return ;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return ;
}
// $ANTLR end link_close_markup
// $ANTLR start link_description_markup
// Creole10.g:1123:1: link_description_markup : PIPE ;
public final void link_description_markup() throws RecognitionException {
try {
// Creole10.g:1124:4: ( PIPE )
// Creole10.g:1124:4: PIPE
{
match(input,PIPE,FOLLOW_PIPE_in_link_description_markup5208); if (failed) return ;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return ;
}
// $ANTLR end link_description_markup
// $ANTLR start image_open_markup
// Creole10.g:1126:1: image_open_markup : IMAGE_OPEN ;
public final void image_open_markup() throws RecognitionException {
try {
// Creole10.g:1127:4: ( IMAGE_OPEN )
// Creole10.g:1127:4: IMAGE_OPEN
{
match(input,IMAGE_OPEN,FOLLOW_IMAGE_OPEN_in_image_open_markup5218); if (failed) return ;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return ;
}
// $ANTLR end image_open_markup
// $ANTLR start image_close_markup
// Creole10.g:1129:1: image_close_markup : IMAGE_CLOSE ;
public final void image_close_markup() throws RecognitionException {
try {
// Creole10.g:1130:4: ( IMAGE_CLOSE )
// Creole10.g:1130:4: IMAGE_CLOSE
{
match(input,IMAGE_CLOSE,FOLLOW_IMAGE_CLOSE_in_image_close_markup5228); if (failed) return ;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return ;
}
// $ANTLR end image_close_markup
// $ANTLR start image_alternative_markup
// Creole10.g:1132:1: image_alternative_markup : PIPE ;
public final void image_alternative_markup() throws RecognitionException {
try {
// Creole10.g:1133:4: ( PIPE )
// Creole10.g:1133:4: PIPE
{
match(input,PIPE,FOLLOW_PIPE_in_image_alternative_markup5238); if (failed) return ;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return ;
}
// $ANTLR end image_alternative_markup
// $ANTLR start extension_markup
// Creole10.g:1135:1: extension_markup : EXTENSION ;
public final void extension_markup() throws RecognitionException {
try {
// Creole10.g:1136:4: ( EXTENSION )
// Creole10.g:1136:4: EXTENSION
{
match(input,EXTENSION,FOLLOW_EXTENSION_in_extension_markup5248); if (failed) return ;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return ;
}
// $ANTLR end extension_markup
// $ANTLR start forced_linebreak
// Creole10.g:1138:1: forced_linebreak : FORCED_LINEBREAK ;
public final void forced_linebreak() throws RecognitionException {
try {
// Creole10.g:1139:4: ( FORCED_LINEBREAK )
// Creole10.g:1139:4: FORCED_LINEBREAK
{
match(input,FORCED_LINEBREAK,FOLLOW_FORCED_LINEBREAK_in_forced_linebreak5258); if (failed) return ;
}
}
catch (RecognitionException re) {
reportError(re);
recover(input,re);
}
finally {
}
return ;
}
// $ANTLR end forced_linebreak
// $ANTLR start synpred1
public final void synpred1_fragment() throws RecognitionException {
// Creole10.g:199:5: ( NOWIKI_OPEN ~ ( NEWLINE ) )
// Creole10.g:199:7: NOWIKI_OPEN ~ ( NEWLINE )
{
match(input,NOWIKI_OPEN,FOLLOW_NOWIKI_OPEN_in_synpred1317); if (failed) return ;
if ( (input.LA(1)>=FORCED_END_OF_LINE && input.LA(1)<=WIKI)||(input.LA(1)>=POUND && input.LA(1)<=80) ) {
input.consume();
errorRecovery=false;failed=false;
}
else {
if (backtracking>0) {failed=true; return ;}
MismatchedSetException mse =
new MismatchedSetException(null,input);
recoverFromMismatchedSet(input,mse,FOLLOW_set_in_synpred1320); throw mse;
}
}
}
// $ANTLR end synpred1
public final boolean synpred1() {
backtracking++;
int start = input.mark();
try {
synpred1_fragment(); // can never throw exception
} catch (RecognitionException re) {
System.err.println("impossible: "+re);
}
boolean success = !failed;
input.rewind(start);
backtracking--;
failed=false;
return success;
}
public static final BitSet FOLLOW_whitespaces_in_wikipage111 = new BitSet(new long[]{0xFFFFFFFFFFFF7FF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_paragraphs_in_wikipage119 = new BitSet(new long[]{0x0000000000000000L});
public static final BitSet FOLLOW_EOF_in_wikipage124 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_paragraph_in_paragraphs142 = new BitSet(new long[]{0xFFFFFFFFFFFF7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_nowiki_block_in_paragraph163 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_blanks_in_paragraph170 = new BitSet(new long[]{0x0000000000008000L});
public static final BitSet FOLLOW_paragraph_separator_in_paragraph173 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_blanks_in_paragraph180 = new BitSet(new long[]{0xFFFFFFFFFFFF7FF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_table_of_contents_in_paragraph194 = new BitSet(new long[]{0x0000000000008002L});
public static final BitSet FOLLOW_heading_in_paragraph208 = new BitSet(new long[]{0x0000000000008002L});
public static final BitSet FOLLOW_horizontalrule_in_paragraph227 = new BitSet(new long[]{0x0000000000008002L});
public static final BitSet FOLLOW_list_in_paragraph240 = new BitSet(new long[]{0x0000000000008002L});
public static final BitSet FOLLOW_table_in_paragraph253 = new BitSet(new long[]{0x0000000000008002L});
public static final BitSet FOLLOW_text_paragraph_in_paragraph266 = new BitSet(new long[]{0x0000000000008002L});
public static final BitSet FOLLOW_paragraph_separator_in_paragraph279 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_text_line_in_text_paragraph307 = new BitSet(new long[]{0xFFFFFFFFFFF27FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_nowiki_inline_in_text_paragraph339 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_text_element_in_text_paragraph350 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_text_lineseparator_in_text_paragraph359 = new BitSet(new long[]{0xFFFFFFFFFFF27FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_text_firstelement_in_text_line382 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_text_element_in_text_line401 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_text_lineseparator_in_text_line415 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_text_formattedelement_in_text_firstelement437 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_text_first_unformattedelement_in_text_firstelement448 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_ital_markup_in_text_formattedelement464 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_text_italcontent_in_text_formattedelement470 = new BitSet(new long[]{0x0000000000108002L});
public static final BitSet FOLLOW_NEWLINE_in_text_formattedelement479 = new BitSet(new long[]{0x0000000000100000L});
public static final BitSet FOLLOW_ital_markup_in_text_formattedelement485 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_bold_markup_in_text_formattedelement493 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_text_boldcontent_in_text_formattedelement500 = new BitSet(new long[]{0x0000000000028002L});
public static final BitSet FOLLOW_NEWLINE_in_text_formattedelement509 = new BitSet(new long[]{0x0000000000020000L});
public static final BitSet FOLLOW_bold_markup_in_text_formattedelement515 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_NEWLINE_in_text_boldcontent534 = new BitSet(new long[]{0xFFFFFFFFFFFF7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_text_boldcontentpart_in_text_boldcontent546 = new BitSet(new long[]{0xFFFFFFFFFFFF7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_EOF_in_text_boldcontent557 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_NEWLINE_in_text_italcontent573 = new BitSet(new long[]{0xFFFFFFFFFFEF7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_text_italcontentpart_in_text_italcontent585 = new BitSet(new long[]{0xFFFFFFFFFFEF7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_EOF_in_text_italcontent596 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_onestar_in_text_element610 = new BitSet(new long[]{0xFFFFFFFFFFED7FF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_text_unformattedelement_in_text_element617 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_text_unformattedelement_in_text_element628 = new BitSet(new long[]{0x0000000000020002L});
public static final BitSet FOLLOW_onestar_in_text_element631 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_text_formattedelement_in_text_element642 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_ital_markup_in_text_boldcontentpart659 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_text_bolditalcontent_in_text_boldcontentpart666 = new BitSet(new long[]{0x0000000000100002L});
public static final BitSet FOLLOW_ital_markup_in_text_boldcontentpart673 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_text_formattedcontent_in_text_boldcontentpart685 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_bold_markup_in_text_italcontentpart701 = new BitSet(new long[]{0xFFFFFFFFFFEFFFF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_text_bolditalcontent_in_text_italcontentpart708 = new BitSet(new long[]{0x0000000000020002L});
public static final BitSet FOLLOW_bold_markup_in_text_italcontentpart714 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_text_formattedcontent_in_text_italcontentpart725 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_NEWLINE_in_text_bolditalcontent743 = new BitSet(new long[]{0xFFFFFFFFFFEF7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_text_formattedcontent_in_text_bolditalcontent754 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_EOF_in_text_bolditalcontent764 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_onestar_in_text_formattedcontent778 = new BitSet(new long[]{0xFFFFFFFFFFED7FF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_text_unformattedelement_in_text_formattedcontent787 = new BitSet(new long[]{0xFFFFFFFFFFEFFFF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_onestar_in_text_formattedcontent792 = new BitSet(new long[]{0xFFFFFFFFFFEDFFF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_text_linebreak_in_text_formattedcontent797 = new BitSet(new long[]{0xFFFFFFFFFFED7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_text_lineseparator_in_text_linebreak817 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_text_first_inlineelement_in_text_inlineelement835 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_nowiki_inline_in_text_inlineelement846 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_link_in_text_first_inlineelement867 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_image_in_text_first_inlineelement878 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_extension_in_text_first_inlineelement888 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_text_first_unformatted_in_text_first_unformattedelement908 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_text_first_inlineelement_in_text_first_unformattedelement919 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_text_first_unformmatted_text_in_text_first_unformatted941 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_forced_linebreak_in_text_first_unformatted950 = new BitSet(new long[]{0x0000000006000002L});
public static final BitSet FOLLOW_escaped_in_text_first_unformatted962 = new BitSet(new long[]{0x0000000006000002L});
public static final BitSet FOLLOW_set_in_text_first_unformmatted_text990 = new BitSet(new long[]{0xFFFFFFFFF8007FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_text_unformatted_in_text_unformattedelement1104 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_text_inlineelement_in_text_unformattedelement1115 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_text_unformated_text_in_text_unformatted1137 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_forced_linebreak_in_text_unformatted1146 = new BitSet(new long[]{0x0000000006000002L});
public static final BitSet FOLLOW_escaped_in_text_unformatted1158 = new BitSet(new long[]{0x0000000006000002L});
public static final BitSet FOLLOW_set_in_text_unformated_text1183 = new BitSet(new long[]{0xFFFFFFFFF80D7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_heading_markup_in_heading1285 = new BitSet(new long[]{0xFFFFFFFFFBFFFFF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_heading_content_in_heading1290 = new BitSet(new long[]{0x0000000080048000L});
public static final BitSet FOLLOW_heading_markup_in_heading1297 = new BitSet(new long[]{0x0000000080008000L});
public static final BitSet FOLLOW_blanks_in_heading1305 = new BitSet(new long[]{0x0000000000008000L});
public static final BitSet FOLLOW_paragraph_separator_in_heading1312 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_heading_markup_in_heading_content1322 = new BitSet(new long[]{0xFFFFFFFFFBFF7FF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_heading_content_in_heading_content1327 = new BitSet(new long[]{0x0000000000040002L});
public static final BitSet FOLLOW_heading_markup_in_heading_content1332 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_heading_text_in_heading_content1344 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_heading_cellcontent_in_heading_text1365 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_onestar_in_heading_cellcontent1382 = new BitSet(new long[]{0xFFFFFFFFFBFB7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_heading_cellcontentpart_in_heading_cellcontent1391 = new BitSet(new long[]{0xFFFFFFFFFBFB7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_onestar_in_heading_cellcontent1402 = new BitSet(new long[]{0xFFFFFFFFFBFB7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_heading_formattedelement_in_heading_cellcontentpart1423 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_heading_unformattedelement_in_heading_cellcontentpart1434 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_ital_markup_in_heading_formattedelement1450 = new BitSet(new long[]{0xFFFFFFFFFBFB7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_heading_italcontent_in_heading_formattedelement1460 = new BitSet(new long[]{0x0000000000100002L});
public static final BitSet FOLLOW_ital_markup_in_heading_formattedelement1469 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_bold_markup_in_heading_formattedelement1477 = new BitSet(new long[]{0xFFFFFFFFFBFB7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_heading_boldcontent_in_heading_formattedelement1484 = new BitSet(new long[]{0x0000000000020002L});
public static final BitSet FOLLOW_bold_markup_in_heading_formattedelement1494 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_onestar_in_heading_boldcontent1511 = new BitSet(new long[]{0xFFFFFFFFFBFB7FF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_heading_boldcontentpart_in_heading_boldcontent1520 = new BitSet(new long[]{0xFFFFFFFFFBFB7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_onestar_in_heading_boldcontent1525 = new BitSet(new long[]{0xFFFFFFFFFBFB7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_EOF_in_heading_boldcontent1533 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_onestar_in_heading_italcontent1547 = new BitSet(new long[]{0xFFFFFFFFFBFB7FF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_heading_italcontentpart_in_heading_italcontent1556 = new BitSet(new long[]{0xFFFFFFFFFBFB7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_onestar_in_heading_italcontent1561 = new BitSet(new long[]{0xFFFFFFFFFBFB7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_EOF_in_heading_italcontent1569 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_heading_formattedcontent_in_heading_boldcontentpart1587 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_ital_markup_in_heading_boldcontentpart1594 = new BitSet(new long[]{0xFFFFFFFFFBFB7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_heading_bolditalcontent_in_heading_boldcontentpart1601 = new BitSet(new long[]{0x0000000000100002L});
public static final BitSet FOLLOW_ital_markup_in_heading_boldcontentpart1608 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_bold_markup_in_heading_italcontentpart1625 = new BitSet(new long[]{0xFFFFFFFFFBFB7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_heading_bolditalcontent_in_heading_italcontentpart1632 = new BitSet(new long[]{0x0000000000020002L});
public static final BitSet FOLLOW_bold_markup_in_heading_italcontentpart1639 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_heading_formattedcontent_in_heading_italcontentpart1651 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_onestar_in_heading_bolditalcontent1667 = new BitSet(new long[]{0xFFFFFFFFFBFB7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_heading_formattedcontent_in_heading_bolditalcontent1676 = new BitSet(new long[]{0x0000000000020002L});
public static final BitSet FOLLOW_onestar_in_heading_bolditalcontent1681 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_EOF_in_heading_bolditalcontent1689 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_heading_unformattedelement_in_heading_formattedcontent1709 = new BitSet(new long[]{0xFFFFFFFFFBFB7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_heading_unformatted_text_in_heading_unformattedelement1732 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_heading_inlineelement_in_heading_unformattedelement1744 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_link_in_heading_inlineelement1764 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_image_in_heading_inlineelement1774 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_nowiki_inline_in_heading_inlineelement1785 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_set_in_heading_unformatted_text1808 = new BitSet(new long[]{0xFFFFFFFFFB1B7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_list_elems_in_list1882 = new BitSet(new long[]{0x0000000000038002L});
public static final BitSet FOLLOW_end_of_list_in_list1890 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_list_ordelem_markup_in_list_elems1920 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_list_elem_in_list_elems1930 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_list_unordelem_markup_in_list_elems1941 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_list_elem_in_list_elems1951 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_list_elem_markup_in_list_elem1974 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_list_elemcontent_in_list_elem1985 = new BitSet(new long[]{0x0000000000008000L});
public static final BitSet FOLLOW_list_elemseparator_in_list_elem1990 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_list_ordelem_markup_in_list_elem_markup2000 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_list_unordelem_markup_in_list_elem_markup2005 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_onestar_in_list_elemcontent2019 = new BitSet(new long[]{0xFFFFFFFFFFFF7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_list_elemcontentpart_in_list_elemcontent2028 = new BitSet(new long[]{0xFFFFFFFFFFFF7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_onestar_in_list_elemcontent2033 = new BitSet(new long[]{0xFFFFFFFFFFFF7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_text_unformattedelement_in_list_elemcontentpart2054 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_list_formatted_elem_in_list_elemcontentpart2065 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_bold_markup_in_list_formatted_elem2081 = new BitSet(new long[]{0xFFFFFFFFFFFF7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_onestar_in_list_formatted_elem2084 = new BitSet(new long[]{0xFFFFFFFFFFFF7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_list_boldcontentpart_in_list_formatted_elem2093 = new BitSet(new long[]{0xFFFFFFFFFFFF7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_onestar_in_list_formatted_elem2102 = new BitSet(new long[]{0xFFFFFFFFFFFF7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_bold_markup_in_list_formatted_elem2111 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_ital_markup_in_list_formatted_elem2119 = new BitSet(new long[]{0xFFFFFFFFFFFF7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_onestar_in_list_formatted_elem2124 = new BitSet(new long[]{0xFFFFFFFFFFFF7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_list_italcontentpart_in_list_formatted_elem2133 = new BitSet(new long[]{0xFFFFFFFFFFFF7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_onestar_in_list_formatted_elem2142 = new BitSet(new long[]{0xFFFFFFFFFFFF7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_ital_markup_in_list_formatted_elem2151 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_ital_markup_in_list_boldcontentpart2177 = new BitSet(new long[]{0xFFFFFFFFFFED7FF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_list_bolditalcontent_in_list_boldcontentpart2184 = new BitSet(new long[]{0x0000000000100002L});
public static final BitSet FOLLOW_ital_markup_in_list_boldcontentpart2191 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_text_unformattedelement_in_list_boldcontentpart2205 = new BitSet(new long[]{0xFFFFFFFFFFED7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_text_unformattedelement_in_list_bolditalcontent2236 = new BitSet(new long[]{0xFFFFFFFFFFED7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_bold_markup_in_list_italcontentpart2264 = new BitSet(new long[]{0xFFFFFFFFFFED7FF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_list_bolditalcontent_in_list_italcontentpart2271 = new BitSet(new long[]{0x0000000000020002L});
public static final BitSet FOLLOW_bold_markup_in_list_italcontentpart2278 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_text_unformattedelement_in_list_italcontentpart2292 = new BitSet(new long[]{0xFFFFFFFFFFED7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_table_row_in_table2320 = new BitSet(new long[]{0x0000000000080002L});
public static final BitSet FOLLOW_table_cell_in_table_row2346 = new BitSet(new long[]{0x0000000000088000L});
public static final BitSet FOLLOW_table_cell_in_table_row2359 = new BitSet(new long[]{0x0000000000088000L});
public static final BitSet FOLLOW_table_rowseparator_in_table_row2368 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_table_headercell_in_table_cell2389 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_table_normalcell_in_table_cell2400 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_table_headercell_markup_in_table_headercell2416 = new BitSet(new long[]{0xFFFFFFFFFFF77FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_table_cellcontent_in_table_headercell2423 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_table_cell_markup_in_table_normalcell2439 = new BitSet(new long[]{0xFFFFFFFFFFF77FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_table_cellcontent_in_table_normalcell2446 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_onestar_in_table_cellcontent2462 = new BitSet(new long[]{0xFFFFFFFFFFF77FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_table_cellcontentpart_in_table_cellcontent2471 = new BitSet(new long[]{0xFFFFFFFFFFF77FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_onestar_in_table_cellcontent2478 = new BitSet(new long[]{0xFFFFFFFFFFF77FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_table_formattedelement_in_table_cellcontentpart2499 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_table_unformattedelement_in_table_cellcontentpart2510 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_ital_markup_in_table_formattedelement2526 = new BitSet(new long[]{0xFFFFFFFFFFF77FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_table_italcontent_in_table_formattedelement2536 = new BitSet(new long[]{0x0000000000100002L});
public static final BitSet FOLLOW_ital_markup_in_table_formattedelement2545 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_bold_markup_in_table_formattedelement2553 = new BitSet(new long[]{0xFFFFFFFFFFF77FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_table_boldcontent_in_table_formattedelement2560 = new BitSet(new long[]{0x0000000000020002L});
public static final BitSet FOLLOW_bold_markup_in_table_formattedelement2570 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_onestar_in_table_boldcontent2587 = new BitSet(new long[]{0xFFFFFFFFFFF57FF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_table_boldcontentpart_in_table_boldcontent2596 = new BitSet(new long[]{0xFFFFFFFFFFF77FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_onestar_in_table_boldcontent2601 = new BitSet(new long[]{0xFFFFFFFFFFF57FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_EOF_in_table_boldcontent2609 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_onestar_in_table_italcontent2623 = new BitSet(new long[]{0xFFFFFFFFFFE77FF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_table_italcontentpart_in_table_italcontent2632 = new BitSet(new long[]{0xFFFFFFFFFFE77FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_onestar_in_table_italcontent2637 = new BitSet(new long[]{0xFFFFFFFFFFE77FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_EOF_in_table_italcontent2645 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_table_formattedcontent_in_table_boldcontentpart2663 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_ital_markup_in_table_boldcontentpart2670 = new BitSet(new long[]{0xFFFFFFFFFFF77FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_table_bolditalcontent_in_table_boldcontentpart2677 = new BitSet(new long[]{0x0000000000100002L});
public static final BitSet FOLLOW_ital_markup_in_table_boldcontentpart2684 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_bold_markup_in_table_italcontentpart2701 = new BitSet(new long[]{0xFFFFFFFFFFE77FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_table_bolditalcontent_in_table_italcontentpart2708 = new BitSet(new long[]{0x0000000000020002L});
public static final BitSet FOLLOW_bold_markup_in_table_italcontentpart2715 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_table_formattedcontent_in_table_italcontentpart2727 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_onestar_in_table_bolditalcontent2743 = new BitSet(new long[]{0xFFFFFFFFFFE57FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_table_formattedcontent_in_table_bolditalcontent2752 = new BitSet(new long[]{0x0000000000020002L});
public static final BitSet FOLLOW_onestar_in_table_bolditalcontent2757 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_EOF_in_table_bolditalcontent2765 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_table_unformattedelement_in_table_formattedcontent2785 = new BitSet(new long[]{0xFFFFFFFFFFE57FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_table_unformatted_in_table_unformattedelement2808 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_table_inlineelement_in_table_unformattedelement2820 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_link_in_table_inlineelement2840 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_image_in_table_inlineelement2850 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_extension_in_table_inlineelement2861 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_nowiki_inline_in_table_inlineelement2871 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_table_unformatted_text_in_table_unformatted2892 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_forced_linebreak_in_table_unformatted2901 = new BitSet(new long[]{0x0000000006000002L});
public static final BitSet FOLLOW_escaped_in_table_unformatted2913 = new BitSet(new long[]{0x0000000006000002L});
public static final BitSet FOLLOW_set_in_table_unformatted_text2939 = new BitSet(new long[]{0xFFFFFFFFF8057FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_nowikiblock_open_markup_in_nowiki_block3036 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_nowiki_block_contents_in_nowiki_block3043 = new BitSet(new long[]{0x0000000008000000L});
public static final BitSet FOLLOW_nowikiblock_close_markup_in_nowiki_block3049 = new BitSet(new long[]{0x0000000000008000L});
public static final BitSet FOLLOW_paragraph_separator_in_nowiki_block3052 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_nowiki_open_markup_in_nowikiblock_open_markup3063 = new BitSet(new long[]{0x0000000000008000L});
public static final BitSet FOLLOW_newline_in_nowikiblock_open_markup3066 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_NOWIKI_BLOCK_CLOSE_in_nowikiblock_close_markup3077 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_nowiki_open_markup_in_nowiki_inline3092 = new BitSet(new long[]{0xFFFFFFFFFFFF7FF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_nowiki_inline_contents_in_nowiki_inline3099 = new BitSet(new long[]{0x0000000010000000L});
public static final BitSet FOLLOW_nowiki_close_markup_in_nowiki_inline3103 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_set_in_nowiki_block_contents3121 = new BitSet(new long[]{0xFFFFFFFFF7FFFFF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_set_in_nowiki_inline_contents3154 = new BitSet(new long[]{0xFFFFFFFFEFFF7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_horizontalrule_markup_in_horizontalrule3190 = new BitSet(new long[]{0x0000000080008000L});
public static final BitSet FOLLOW_blanks_in_horizontalrule3195 = new BitSet(new long[]{0x0000000000008000L});
public static final BitSet FOLLOW_paragraph_separator_in_horizontalrule3201 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_link_open_markup_in_link3222 = new BitSet(new long[]{0xFFFFFFFFDFF77FF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_link_address_in_link3228 = new BitSet(new long[]{0x0000000020080000L});
public static final BitSet FOLLOW_link_description_markup_in_link3234 = new BitSet(new long[]{0xFFFFFFFFDE5F7FF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_link_description_in_link3242 = new BitSet(new long[]{0x0000000020000000L});
public static final BitSet FOLLOW_link_close_markup_in_link3250 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_link_interwiki_uri_in_link_address3269 = new BitSet(new long[]{0x0000020000000000L});
public static final BitSet FOLLOW_41_in_link_address3272 = new BitSet(new long[]{0xFFFFFFFFDFF77FF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_link_interwiki_pagename_in_link_address3279 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_link_uri_in_link_address3290 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_42_in_link_interwiki_uri3306 = new BitSet(new long[]{0x0000080000000000L});
public static final BitSet FOLLOW_43_in_link_interwiki_uri3308 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_44_in_link_interwiki_uri3315 = new BitSet(new long[]{0x0000200000000000L});
public static final BitSet FOLLOW_45_in_link_interwiki_uri3317 = new BitSet(new long[]{0x0000400000000000L});
public static final BitSet FOLLOW_46_in_link_interwiki_uri3319 = new BitSet(new long[]{0x0000800000000000L});
public static final BitSet FOLLOW_47_in_link_interwiki_uri3321 = new BitSet(new long[]{0x0001000000000000L});
public static final BitSet FOLLOW_48_in_link_interwiki_uri3323 = new BitSet(new long[]{0x0002000000000000L});
public static final BitSet FOLLOW_49_in_link_interwiki_uri3325 = new BitSet(new long[]{0x0000400000000000L});
public static final BitSet FOLLOW_46_in_link_interwiki_uri3327 = new BitSet(new long[]{0x0002000000000000L});
public static final BitSet FOLLOW_49_in_link_interwiki_uri3329 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_50_in_link_interwiki_uri3336 = new BitSet(new long[]{0x0008000000000000L});
public static final BitSet FOLLOW_51_in_link_interwiki_uri3338 = new BitSet(new long[]{0x0002000000000000L});
public static final BitSet FOLLOW_49_in_link_interwiki_uri3340 = new BitSet(new long[]{0x0010000000000000L});
public static final BitSet FOLLOW_52_in_link_interwiki_uri3342 = new BitSet(new long[]{0x0000400000000000L});
public static final BitSet FOLLOW_46_in_link_interwiki_uri3344 = new BitSet(new long[]{0x0020000000000000L});
public static final BitSet FOLLOW_53_in_link_interwiki_uri3346 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_54_in_link_interwiki_uri3354 = new BitSet(new long[]{0x0000200000000000L});
public static final BitSet FOLLOW_45_in_link_interwiki_uri3356 = new BitSet(new long[]{0x0000200000000000L});
public static final BitSet FOLLOW_45_in_link_interwiki_uri3358 = new BitSet(new long[]{0x0080000000000000L});
public static final BitSet FOLLOW_55_in_link_interwiki_uri3360 = new BitSet(new long[]{0x0008000000000000L});
public static final BitSet FOLLOW_51_in_link_interwiki_uri3362 = new BitSet(new long[]{0x0100000000000000L});
public static final BitSet FOLLOW_56_in_link_interwiki_uri3364 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_57_in_link_interwiki_uri3371 = new BitSet(new long[]{0x0400000000000000L});
public static final BitSet FOLLOW_58_in_link_interwiki_uri3373 = new BitSet(new long[]{0x0800000000000000L});
public static final BitSet FOLLOW_59_in_link_interwiki_uri3375 = new BitSet(new long[]{0x0001000000000000L});
public static final BitSet FOLLOW_48_in_link_interwiki_uri3377 = new BitSet(new long[]{0x0002000000000000L});
public static final BitSet FOLLOW_49_in_link_interwiki_uri3379 = new BitSet(new long[]{0x0000400000000000L});
public static final BitSet FOLLOW_46_in_link_interwiki_uri3381 = new BitSet(new long[]{0x0002000000000000L});
public static final BitSet FOLLOW_49_in_link_interwiki_uri3383 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_60_in_link_interwiki_uri3390 = new BitSet(new long[]{0x0100000000000000L});
public static final BitSet FOLLOW_56_in_link_interwiki_uri3392 = new BitSet(new long[]{0x2000000000000000L});
public static final BitSet FOLLOW_61_in_link_interwiki_uri3394 = new BitSet(new long[]{0x4000000000000000L});
public static final BitSet FOLLOW_62_in_link_interwiki_uri3396 = new BitSet(new long[]{0x8000000000000000L});
public static final BitSet FOLLOW_63_in_link_interwiki_uri3398 = new BitSet(new long[]{0x2000000000000000L});
public static final BitSet FOLLOW_61_in_link_interwiki_uri3400 = new BitSet(new long[]{0x0008000000000000L});
public static final BitSet FOLLOW_51_in_link_interwiki_uri3402 = new BitSet(new long[]{0x0008000000000000L});
public static final BitSet FOLLOW_51_in_link_interwiki_uri3404 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_60_in_link_interwiki_uri3411 = new BitSet(new long[]{0x0100000000000000L});
public static final BitSet FOLLOW_56_in_link_interwiki_uri3413 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000001L});
public static final BitSet FOLLOW_64_in_link_interwiki_uri3415 = new BitSet(new long[]{0x0002000000000000L});
public static final BitSet FOLLOW_49_in_link_interwiki_uri3417 = new BitSet(new long[]{0x2000000000000000L});
public static final BitSet FOLLOW_61_in_link_interwiki_uri3419 = new BitSet(new long[]{0x0001000000000000L});
public static final BitSet FOLLOW_48_in_link_interwiki_uri3421 = new BitSet(new long[]{0x0002000000000000L});
public static final BitSet FOLLOW_49_in_link_interwiki_uri3423 = new BitSet(new long[]{0x0000400000000000L});
public static final BitSet FOLLOW_46_in_link_interwiki_uri3425 = new BitSet(new long[]{0x0002000000000000L});
public static final BitSet FOLLOW_49_in_link_interwiki_uri3427 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_60_in_link_interwiki_uri3434 = new BitSet(new long[]{0x0000200000000000L});
public static final BitSet FOLLOW_45_in_link_interwiki_uri3436 = new BitSet(new long[]{0x0002000000000000L});
public static final BitSet FOLLOW_49_in_link_interwiki_uri3438 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000002L});
public static final BitSet FOLLOW_65_in_link_interwiki_uri3440 = new BitSet(new long[]{0x1000000000000000L});
public static final BitSet FOLLOW_60_in_link_interwiki_uri3442 = new BitSet(new long[]{0x0000200000000000L});
public static final BitSet FOLLOW_45_in_link_interwiki_uri3444 = new BitSet(new long[]{0x0002000000000000L});
public static final BitSet FOLLOW_49_in_link_interwiki_uri3446 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000002L});
public static final BitSet FOLLOW_65_in_link_interwiki_uri3448 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_66_in_link_interwiki_uri3456 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000001L});
public static final BitSet FOLLOW_64_in_link_interwiki_uri3458 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000001L});
public static final BitSet FOLLOW_64_in_link_interwiki_uri3460 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000008L});
public static final BitSet FOLLOW_67_in_link_interwiki_uri3462 = new BitSet(new long[]{0x0000800000000000L});
public static final BitSet FOLLOW_47_in_link_interwiki_uri3464 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000010L});
public static final BitSet FOLLOW_68_in_link_interwiki_uri3466 = new BitSet(new long[]{0x0100000000000000L});
public static final BitSet FOLLOW_56_in_link_interwiki_uri3468 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_66_in_link_interwiki_uri3476 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000020L});
public static final BitSet FOLLOW_69_in_link_interwiki_uri3478 = new BitSet(new long[]{0x2000000000000000L});
public static final BitSet FOLLOW_61_in_link_interwiki_uri3480 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000002L});
public static final BitSet FOLLOW_65_in_link_interwiki_uri3482 = new BitSet(new long[]{0x2000000000000000L});
public static final BitSet FOLLOW_61_in_link_interwiki_uri3484 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_59_in_link_interwiki_uri3491 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000008L});
public static final BitSet FOLLOW_67_in_link_interwiki_uri3493 = new BitSet(new long[]{0x0001000000000000L});
public static final BitSet FOLLOW_48_in_link_interwiki_uri3495 = new BitSet(new long[]{0x0002000000000000L});
public static final BitSet FOLLOW_49_in_link_interwiki_uri3497 = new BitSet(new long[]{0x0000400000000000L});
public static final BitSet FOLLOW_46_in_link_interwiki_uri3499 = new BitSet(new long[]{0x0002000000000000L});
public static final BitSet FOLLOW_49_in_link_interwiki_uri3501 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_59_in_link_interwiki_uri3509 = new BitSet(new long[]{0x0000800000000000L});
public static final BitSet FOLLOW_47_in_link_interwiki_uri3511 = new BitSet(new long[]{0x0000400000000000L});
public static final BitSet FOLLOW_46_in_link_interwiki_uri3513 = new BitSet(new long[]{0x0002000000000000L});
public static final BitSet FOLLOW_49_in_link_interwiki_uri3515 = new BitSet(new long[]{0x0001000000000000L});
public static final BitSet FOLLOW_48_in_link_interwiki_uri3517 = new BitSet(new long[]{0x0002000000000000L});
public static final BitSet FOLLOW_49_in_link_interwiki_uri3519 = new BitSet(new long[]{0x0000400000000000L});
public static final BitSet FOLLOW_46_in_link_interwiki_uri3521 = new BitSet(new long[]{0x0002000000000000L});
public static final BitSet FOLLOW_49_in_link_interwiki_uri3523 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_59_in_link_interwiki_uri3531 = new BitSet(new long[]{0x0000800000000000L});
public static final BitSet FOLLOW_47_in_link_interwiki_uri3533 = new BitSet(new long[]{0x0020000000000000L});
public static final BitSet FOLLOW_53_in_link_interwiki_uri3535 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000040L});
public static final BitSet FOLLOW_70_in_link_interwiki_uri3537 = new BitSet(new long[]{0x0008000000000000L});
public static final BitSet FOLLOW_51_in_link_interwiki_uri3539 = new BitSet(new long[]{0x0100000000000000L});
public static final BitSet FOLLOW_56_in_link_interwiki_uri3541 = new BitSet(new long[]{0x0001000000000000L});
public static final BitSet FOLLOW_48_in_link_interwiki_uri3543 = new BitSet(new long[]{0x0002000000000000L});
public static final BitSet FOLLOW_49_in_link_interwiki_uri3545 = new BitSet(new long[]{0x0000400000000000L});
public static final BitSet FOLLOW_46_in_link_interwiki_uri3547 = new BitSet(new long[]{0x0002000000000000L});
public static final BitSet FOLLOW_49_in_link_interwiki_uri3549 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_71_in_link_interwiki_uri3556 = new BitSet(new long[]{0x2000000000000000L});
public static final BitSet FOLLOW_61_in_link_interwiki_uri3558 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000001L});
public static final BitSet FOLLOW_64_in_link_interwiki_uri3560 = new BitSet(new long[]{0x0100000000000000L});
public static final BitSet FOLLOW_56_in_link_interwiki_uri3562 = new BitSet(new long[]{0x0000200000000000L});
public static final BitSet FOLLOW_45_in_link_interwiki_uri3564 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000100L});
public static final BitSet FOLLOW_72_in_link_interwiki_uri3566 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_58_in_link_interwiki_uri3573 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000002L});
public static final BitSet FOLLOW_65_in_link_interwiki_uri3575 = new BitSet(new long[]{0x0002000000000000L});
public static final BitSet FOLLOW_49_in_link_interwiki_uri3577 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000040L});
public static final BitSet FOLLOW_70_in_link_interwiki_uri3579 = new BitSet(new long[]{0x0400000000000000L});
public static final BitSet FOLLOW_58_in_link_interwiki_uri3581 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000002L});
public static final BitSet FOLLOW_65_in_link_interwiki_uri3583 = new BitSet(new long[]{0x2000000000000000L});
public static final BitSet FOLLOW_61_in_link_interwiki_uri3585 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000040L});
public static final BitSet FOLLOW_70_in_link_interwiki_uri3587 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_73_in_link_interwiki_uri3594 = new BitSet(new long[]{0x0002000000000000L});
public static final BitSet FOLLOW_49_in_link_interwiki_uri3596 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000001L});
public static final BitSet FOLLOW_64_in_link_interwiki_uri3598 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000001L});
public static final BitSet FOLLOW_64_in_link_interwiki_uri3600 = new BitSet(new long[]{0x0008000000000000L});
public static final BitSet FOLLOW_51_in_link_interwiki_uri3602 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000400L});
public static final BitSet FOLLOW_74_in_link_interwiki_uri3604 = new BitSet(new long[]{0x0001000000000000L});
public static final BitSet FOLLOW_48_in_link_interwiki_uri3606 = new BitSet(new long[]{0x0002000000000000L});
public static final BitSet FOLLOW_49_in_link_interwiki_uri3608 = new BitSet(new long[]{0x0000400000000000L});
public static final BitSet FOLLOW_46_in_link_interwiki_uri3610 = new BitSet(new long[]{0x0002000000000000L});
public static final BitSet FOLLOW_49_in_link_interwiki_uri3612 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_73_in_link_interwiki_uri3619 = new BitSet(new long[]{0x0001000000000000L});
public static final BitSet FOLLOW_48_in_link_interwiki_uri3621 = new BitSet(new long[]{0x0002000000000000L});
public static final BitSet FOLLOW_49_in_link_interwiki_uri3623 = new BitSet(new long[]{0x0000400000000000L});
public static final BitSet FOLLOW_46_in_link_interwiki_uri3625 = new BitSet(new long[]{0x0002000000000000L});
public static final BitSet FOLLOW_49_in_link_interwiki_uri3627 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_75_in_link_interwiki_uri3634 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000010L});
public static final BitSet FOLLOW_68_in_link_interwiki_uri3636 = new BitSet(new long[]{0x0100000000000000L});
public static final BitSet FOLLOW_56_in_link_interwiki_uri3638 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000008L});
public static final BitSet FOLLOW_67_in_link_interwiki_uri3640 = new BitSet(new long[]{0x0000200000000000L});
public static final BitSet FOLLOW_45_in_link_interwiki_uri3642 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000001L});
public static final BitSet FOLLOW_64_in_link_interwiki_uri3644 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_48_in_link_interwiki_uri3651 = new BitSet(new long[]{0x0002000000000000L});
public static final BitSet FOLLOW_49_in_link_interwiki_uri3653 = new BitSet(new long[]{0x0000400000000000L});
public static final BitSet FOLLOW_46_in_link_interwiki_uri3655 = new BitSet(new long[]{0x0002000000000000L});
public static final BitSet FOLLOW_49_in_link_interwiki_uri3657 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000040L});
public static final BitSet FOLLOW_70_in_link_interwiki_uri3659 = new BitSet(new long[]{0x0100000000000000L});
public static final BitSet FOLLOW_56_in_link_interwiki_uri3661 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000001L});
public static final BitSet FOLLOW_64_in_link_interwiki_uri3663 = new BitSet(new long[]{0x0002000000000000L});
public static final BitSet FOLLOW_49_in_link_interwiki_uri3665 = new BitSet(new long[]{0x2000000000000000L});
public static final BitSet FOLLOW_61_in_link_interwiki_uri3667 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_76_in_link_interwiki_uri3674 = new BitSet(new long[]{0x0001000000000000L});
public static final BitSet FOLLOW_48_in_link_interwiki_uri3676 = new BitSet(new long[]{0x0002000000000000L});
public static final BitSet FOLLOW_49_in_link_interwiki_uri3678 = new BitSet(new long[]{0x0000400000000000L});
public static final BitSet FOLLOW_46_in_link_interwiki_uri3680 = new BitSet(new long[]{0x0002000000000000L});
public static final BitSet FOLLOW_49_in_link_interwiki_uri3682 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_set_in_link_interwiki_pagename3704 = new BitSet(new long[]{0xFFFFFFFFDFF77FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_link_descriptionpart_in_link_description3747 = new BitSet(new long[]{0xFFFFFFFFDE5F7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_image_in_link_description3759 = new BitSet(new long[]{0xFFFFFFFFDE5F7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_bold_markup_in_link_descriptionpart3784 = new BitSet(new long[]{0xFFFFFFFFDE1F7FF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_onestar_in_link_descriptionpart3787 = new BitSet(new long[]{0xFFFFFFFFDE1D7FF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_link_bold_descriptionpart_in_link_descriptionpart3795 = new BitSet(new long[]{0xFFFFFFFFDE1F7FF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_onestar_in_link_descriptionpart3800 = new BitSet(new long[]{0xFFFFFFFFDE1F7FF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_bold_markup_in_link_descriptionpart3810 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_ital_markup_in_link_descriptionpart3815 = new BitSet(new long[]{0xFFFFFFFFDE0F7FF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_onestar_in_link_descriptionpart3818 = new BitSet(new long[]{0xFFFFFFFFDE0F7FF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_link_ital_descriptionpart_in_link_descriptionpart3827 = new BitSet(new long[]{0xFFFFFFFFDE1F7FF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_onestar_in_link_descriptionpart3832 = new BitSet(new long[]{0xFFFFFFFFDE1F7FF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_ital_markup_in_link_descriptionpart3841 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_onestar_in_link_descriptionpart3846 = new BitSet(new long[]{0xFFFFFFFFDE0D7FF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_link_descriptiontext_in_link_descriptionpart3855 = new BitSet(new long[]{0xFFFFFFFFDE0F7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_onestar_in_link_descriptionpart3858 = new BitSet(new long[]{0xFFFFFFFFDE0D7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_ital_markup_in_link_bold_descriptionpart3878 = new BitSet(new long[]{0xFFFFFFFFDE0F7FF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_link_boldital_description_in_link_bold_descriptionpart3885 = new BitSet(new long[]{0x0000000000100000L});
public static final BitSet FOLLOW_ital_markup_in_link_bold_descriptionpart3890 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_link_descriptiontext_in_link_bold_descriptionpart3899 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_bold_markup_in_link_ital_descriptionpart3915 = new BitSet(new long[]{0xFFFFFFFFDE0F7FF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_link_boldital_description_in_link_ital_descriptionpart3922 = new BitSet(new long[]{0x0000000000020000L});
public static final BitSet FOLLOW_bold_markup_in_link_ital_descriptionpart3925 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_link_descriptiontext_in_link_ital_descriptionpart3936 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_onestar_in_link_boldital_description3952 = new BitSet(new long[]{0xFFFFFFFFDE0D7FF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_link_descriptiontext_in_link_boldital_description3961 = new BitSet(new long[]{0xFFFFFFFFDE0F7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_onestar_in_link_boldital_description3964 = new BitSet(new long[]{0xFFFFFFFFDE0D7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_link_descriptiontext_simple_in_link_descriptiontext3987 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_forced_linebreak_in_link_descriptiontext3997 = new BitSet(new long[]{0x0000000006000002L});
public static final BitSet FOLLOW_escaped_in_link_descriptiontext4009 = new BitSet(new long[]{0x0000000006000002L});
public static final BitSet FOLLOW_set_in_link_descriptiontext_simple4034 = new BitSet(new long[]{0xFFFFFFFFD80D7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_set_in_link_uri4133 = new BitSet(new long[]{0xFFFFFFFFDFF77FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_image_open_markup_in_image4174 = new BitSet(new long[]{0xFFFFFFFFBFF77FF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_image_uri_in_image4180 = new BitSet(new long[]{0x0000000040080000L});
public static final BitSet FOLLOW_image_alternative_in_image4190 = new BitSet(new long[]{0x0000000040000000L});
public static final BitSet FOLLOW_image_close_markup_in_image4199 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_set_in_image_uri4218 = new BitSet(new long[]{0xFFFFFFFFBFF77FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_image_alternative_markup_in_image_alternative4253 = new BitSet(new long[]{0xFFFFFFFFBE1F7FF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_image_alternativepart_in_image_alternative4262 = new BitSet(new long[]{0xFFFFFFFFBE1F7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_bold_markup_in_image_alternativepart4288 = new BitSet(new long[]{0x0000000000120000L});
public static final BitSet FOLLOW_onestar_in_image_alternativepart4291 = new BitSet(new long[]{0xFFFFFFFFBE1F7FF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_image_bold_alternativepart_in_image_alternativepart4300 = new BitSet(new long[]{0x0000000000120000L});
public static final BitSet FOLLOW_onestar_in_image_alternativepart4305 = new BitSet(new long[]{0xFFFFFFFFBE1F7FF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_bold_markup_in_image_alternativepart4312 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_ital_markup_in_image_alternativepart4319 = new BitSet(new long[]{0x0000000000020000L});
public static final BitSet FOLLOW_onestar_in_image_alternativepart4322 = new BitSet(new long[]{0xFFFFFFFFBE0F7FF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_image_ital_alternativepart_in_image_alternativepart4332 = new BitSet(new long[]{0x0000000000120000L});
public static final BitSet FOLLOW_onestar_in_image_alternativepart4337 = new BitSet(new long[]{0xFFFFFFFFBE1F7FF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_ital_markup_in_image_alternativepart4344 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_onestar_in_image_alternativepart4351 = new BitSet(new long[]{0xFFFFFFFFBE0D7FF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_image_alternativetext_in_image_alternativepart4358 = new BitSet(new long[]{0xFFFFFFFFBE0F7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_onestar_in_image_alternativepart4363 = new BitSet(new long[]{0xFFFFFFFFBE0D7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_ital_markup_in_image_bold_alternativepart4389 = new BitSet(new long[]{0xFFFFFFFFDE0F7FF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_link_boldital_description_in_image_bold_alternativepart4396 = new BitSet(new long[]{0x0000000000100000L});
public static final BitSet FOLLOW_ital_markup_in_image_bold_alternativepart4401 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_onestar_in_image_bold_alternativepart4406 = new BitSet(new long[]{0xFFFFFFFFBE0D7FF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_image_alternativetext_in_image_bold_alternativepart4415 = new BitSet(new long[]{0xFFFFFFFFBE0F7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_onestar_in_image_bold_alternativepart4418 = new BitSet(new long[]{0xFFFFFFFFBE0D7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_bold_markup_in_image_ital_alternativepart4446 = new BitSet(new long[]{0xFFFFFFFFDE0F7FF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_link_boldital_description_in_image_ital_alternativepart4453 = new BitSet(new long[]{0x0000000000020000L});
public static final BitSet FOLLOW_bold_markup_in_image_ital_alternativepart4458 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_onestar_in_image_ital_alternativepart4463 = new BitSet(new long[]{0xFFFFFFFFBE0D7FF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_image_alternativetext_in_image_ital_alternativepart4472 = new BitSet(new long[]{0xFFFFFFFFBE0F7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_onestar_in_image_ital_alternativepart4475 = new BitSet(new long[]{0xFFFFFFFFBE0D7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_onestar_in_image_boldital_alternative4496 = new BitSet(new long[]{0xFFFFFFFFBE0D7FF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_image_alternativetext_in_image_boldital_alternative4505 = new BitSet(new long[]{0xFFFFFFFFBE0F7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_onestar_in_image_boldital_alternative4508 = new BitSet(new long[]{0xFFFFFFFFBE0D7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_image_alternative_simple_text_in_image_alternativetext4530 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_forced_linebreak_in_image_alternativetext4538 = new BitSet(new long[]{0x0000000002000002L});
public static final BitSet FOLLOW_set_in_image_alternative_simple_text4564 = new BitSet(new long[]{0xFFFFFFFFBC0D7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_extension_markup_in_extension4656 = new BitSet(new long[]{0xFFFFFFFF7EFF7FF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_extension_handler_in_extension4659 = new BitSet(new long[]{0x0000000080000000L});
public static final BitSet FOLLOW_blanks_in_extension4662 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_extension_statement_in_extension4665 = new BitSet(new long[]{0x0000000001000000L});
public static final BitSet FOLLOW_extension_markup_in_extension4669 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_set_in_extension_handler4681 = new BitSet(new long[]{0xFFFFFFFF7EFF7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_escaped_in_extension_handler4714 = new BitSet(new long[]{0xFFFFFFFF7EFF7FF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_set_in_extension_statement4729 = new BitSet(new long[]{0xFFFFFFFFFEFFFFF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_escaped_in_extension_statement4750 = new BitSet(new long[]{0xFFFFFFFFFEFFFFF2L,0x000000000001FFFFL});
public static final BitSet FOLLOW_77_in_table_of_contents4778 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_78_in_table_of_contents4788 = new BitSet(new long[]{0x0000000000000000L,0x0000000000008000L});
public static final BitSet FOLLOW_79_in_table_of_contents4793 = new BitSet(new long[]{0xFFFFFFFFFB1B7FF0L,0x000000000000FFFFL});
public static final BitSet FOLLOW_table_of_contents_title_text_in_table_of_contents4802 = new BitSet(new long[]{0x0000000000000000L,0x0000000000008000L});
public static final BitSet FOLLOW_79_in_table_of_contents4809 = new BitSet(new long[]{0x0000000000000000L,0x0000000000010000L});
public static final BitSet FOLLOW_80_in_table_of_contents4814 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_set_in_table_of_contents_title_text4840 = new BitSet(new long[]{0xFFFFFFFFFB1B7FF2L,0x000000000000FFFFL});
public static final BitSet FOLLOW_STAR_in_onestar4895 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_ESCAPE_in_escaped4916 = new BitSet(new long[]{0xFFFFFFFFFFFFFFF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_newline_in_paragraph_separator4940 = new BitSet(new long[]{0x0000000000008002L});
public static final BitSet FOLLOW_EOF_in_paragraph_separator4948 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_blanks_in_whitespaces4960 = new BitSet(new long[]{0x0000000080008002L});
public static final BitSet FOLLOW_newline_in_whitespaces4964 = new BitSet(new long[]{0x0000000080008002L});
public static final BitSet FOLLOW_BLANKS_in_blanks4977 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_newline_in_text_lineseparator4987 = new BitSet(new long[]{0x0000000080000002L});
public static final BitSet FOLLOW_blanks_in_text_lineseparator4992 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_EOF_in_text_lineseparator5000 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_NEWLINE_in_newline5010 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_STAR_in_bold_markup5020 = new BitSet(new long[]{0x0000000000020000L});
public static final BitSet FOLLOW_STAR_in_bold_markup5023 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_ITAL_in_ital_markup5033 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_EQUAL_in_heading_markup5043 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_POUND_in_list_ordelem_markup5053 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_STAR_in_list_unordelem_markup5063 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_newline_in_list_elemseparator5073 = new BitSet(new long[]{0x0000000080000002L});
public static final BitSet FOLLOW_blanks_in_list_elemseparator5078 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_EOF_in_list_elemseparator5086 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_newline_in_end_of_list5096 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_EOF_in_end_of_list5101 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_PIPE_in_table_cell_markup5111 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_PIPE_in_table_headercell_markup5121 = new BitSet(new long[]{0x0000000000040000L});
public static final BitSet FOLLOW_EQUAL_in_table_headercell_markup5124 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_newline_in_table_rowseparator5134 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_EOF_in_table_rowseparator5139 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_NOWIKI_OPEN_in_nowiki_open_markup5149 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_NOWIKI_CLOSE_in_nowiki_close_markup5159 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_DASH_in_horizontalrule_markup5169 = new BitSet(new long[]{0x0000000100000000L});
public static final BitSet FOLLOW_DASH_in_horizontalrule_markup5172 = new BitSet(new long[]{0x0000000100000000L});
public static final BitSet FOLLOW_DASH_in_horizontalrule_markup5175 = new BitSet(new long[]{0x0000000100000000L});
public static final BitSet FOLLOW_DASH_in_horizontalrule_markup5178 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_LINK_OPEN_in_link_open_markup5188 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_LINK_CLOSE_in_link_close_markup5198 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_PIPE_in_link_description_markup5208 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_IMAGE_OPEN_in_image_open_markup5218 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_IMAGE_CLOSE_in_image_close_markup5228 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_PIPE_in_image_alternative_markup5238 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_EXTENSION_in_extension_markup5248 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_FORCED_LINEBREAK_in_forced_linebreak5258 = new BitSet(new long[]{0x0000000000000002L});
public static final BitSet FOLLOW_NOWIKI_OPEN_in_synpred1317 = new BitSet(new long[]{0xFFFFFFFFFFFF7FF0L,0x000000000001FFFFL});
public static final BitSet FOLLOW_set_in_synpred1320 = new BitSet(new long[]{0x0000000000000002L});
}