Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
annis.visualizers.htmlvis.HTMLVisConfigParser Maven / Gradle / Ivy
// Generated from annis/visualizers/htmlvis/HTMLVisConfig.g4 by ANTLR 4.2.2
package annis.visualizers.htmlvis;
import org.antlr.v4.runtime.atn.*;
import org.antlr.v4.runtime.dfa.DFA;
import org.antlr.v4.runtime.*;
import org.antlr.v4.runtime.misc.*;
import org.antlr.v4.runtime.tree.*;
import java.util.List;
import java.util.Iterator;
import java.util.ArrayList;
@SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast"})
public class HTMLVisConfigParser extends Parser {
protected static final DFA[] _decisionToDFA;
protected static final PredictionContextCache _sharedContextCache =
new PredictionContextCache();
public static final int
WS=1, SEMICOLON=2, EQUALS=3, TOK=4, VALUE=5, ESCAPED_VALUE=6, ANNO=7,
META=8, STYLE=9, COLON=10, BEGIN=11, END=12, ALL=13, QUOTE=14, NEWLINE=15,
COMMENT=16, ID=17, TXT=18, TEMPVALUE=19, TEMPANNO=20;
public static final String[] tokenNames = {
"", "WS", "';'", "'='", "'tok'", "'value'", "'escaped_value'",
"'anno'", "'meta'", "'style'", "':'", "'annis:BEGIN'", "'annis:END'",
"'annis:ALL'", "'\"'", "'\n'", "COMMENT", "ID", "TXT", "'%%value%%'",
"'%%anno%%'"
};
public static final int
RULE_innervalue = 0, RULE_value = 1, RULE_temp = 2, RULE_innertype = 3,
RULE_innerhtmltemp = 4, RULE_innermeta = 5, RULE_type = 6, RULE_element = 7,
RULE_qName = 8, RULE_condition = 9, RULE_vis = 10, RULE_start = 11;
public static final String[] ruleNames = {
"innervalue", "value", "temp", "innertype", "innerhtmltemp", "innermeta",
"type", "element", "qName", "condition", "vis", "start"
};
@Override
public String getGrammarFileName() { return "HTMLVisConfig.g4"; }
@Override
public String[] getTokenNames() { return tokenNames; }
@Override
public String[] getRuleNames() { return ruleNames; }
@Override
public String getSerializedATN() { return _serializedATN; }
@Override
public ATN getATN() { return _ATN; }
public HTMLVisConfigParser(TokenStream input) {
super(input);
_interp = new ParserATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
}
public static class InnervalueContext extends ParserRuleContext {
public List QUOTE() { return getTokens(HTMLVisConfigParser.QUOTE); }
public TerminalNode QUOTE(int i) {
return getToken(HTMLVisConfigParser.QUOTE, i);
}
public InnervalueContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_innervalue; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).enterInnervalue(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).exitInnervalue(this);
}
}
public final InnervalueContext innervalue() throws RecognitionException {
InnervalueContext _localctx = new InnervalueContext(_ctx, getState());
enterRule(_localctx, 0, RULE_innervalue);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(25);
_errHandler.sync(this);
_la = _input.LA(1);
do {
{
{
setState(24);
_la = _input.LA(1);
if ( _la <= 0 || (_la==QUOTE) ) {
_errHandler.recoverInline(this);
}
consume();
}
}
setState(27);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( (((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << WS) | (1L << SEMICOLON) | (1L << EQUALS) | (1L << TOK) | (1L << VALUE) | (1L << ESCAPED_VALUE) | (1L << ANNO) | (1L << META) | (1L << STYLE) | (1L << COLON) | (1L << BEGIN) | (1L << END) | (1L << ALL) | (1L << NEWLINE) | (1L << COMMENT) | (1L << ID) | (1L << TXT) | (1L << TEMPVALUE) | (1L << TEMPANNO))) != 0) );
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class ValueContext extends ParserRuleContext {
public InnervalueContext innervalue() {
return getRuleContext(InnervalueContext.class,0);
}
public List QUOTE() { return getTokens(HTMLVisConfigParser.QUOTE); }
public TerminalNode QUOTE(int i) {
return getToken(HTMLVisConfigParser.QUOTE, i);
}
public ValueContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_value; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).enterValue(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).exitValue(this);
}
}
public final ValueContext value() throws RecognitionException {
ValueContext _localctx = new ValueContext(_ctx, getState());
enterRule(_localctx, 2, RULE_value);
try {
enterOuterAlt(_localctx, 1);
{
setState(29); match(QUOTE);
setState(30); innervalue();
setState(31); match(QUOTE);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class TempContext extends ParserRuleContext {
public TerminalNode TEMPANNO() { return getToken(HTMLVisConfigParser.TEMPANNO, 0); }
public TerminalNode TEMPVALUE() { return getToken(HTMLVisConfigParser.TEMPVALUE, 0); }
public TempContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_temp; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).enterTemp(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).exitTemp(this);
}
}
public final TempContext temp() throws RecognitionException {
TempContext _localctx = new TempContext(_ctx, getState());
enterRule(_localctx, 4, RULE_temp);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(33);
_la = _input.LA(1);
if ( !(_la==TEMPVALUE || _la==TEMPANNO) ) {
_errHandler.recoverInline(this);
}
consume();
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class InnertypeContext extends ParserRuleContext {
public TerminalNode TEMPANNO(int i) {
return getToken(HTMLVisConfigParser.TEMPANNO, i);
}
public List TEMPANNO() { return getTokens(HTMLVisConfigParser.TEMPANNO); }
public List TEMPVALUE() { return getTokens(HTMLVisConfigParser.TEMPVALUE); }
public TerminalNode TEMPVALUE(int i) {
return getToken(HTMLVisConfigParser.TEMPVALUE, i);
}
public List QUOTE() { return getTokens(HTMLVisConfigParser.QUOTE); }
public TerminalNode QUOTE(int i) {
return getToken(HTMLVisConfigParser.QUOTE, i);
}
public InnertypeContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_innertype; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).enterInnertype(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).exitInnertype(this);
}
}
public final InnertypeContext innertype() throws RecognitionException {
InnertypeContext _localctx = new InnertypeContext(_ctx, getState());
enterRule(_localctx, 6, RULE_innertype);
int _la;
try {
int _alt;
enterOuterAlt(_localctx, 1);
{
setState(36);
_errHandler.sync(this);
_alt = 1;
do {
switch (_alt) {
case 1:
{
{
setState(35);
_la = _input.LA(1);
if ( _la <= 0 || ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << QUOTE) | (1L << TEMPVALUE) | (1L << TEMPANNO))) != 0)) ) {
_errHandler.recoverInline(this);
}
consume();
}
}
break;
default:
throw new NoViableAltException(this);
}
setState(38);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,1,_ctx);
} while ( _alt!=2 && _alt!=ATN.INVALID_ALT_NUMBER );
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class InnerhtmltempContext extends ParserRuleContext {
public InnertypeContext innertype(int i) {
return getRuleContext(InnertypeContext.class,i);
}
public List temp() {
return getRuleContexts(TempContext.class);
}
public List innertype() {
return getRuleContexts(InnertypeContext.class);
}
public TempContext temp(int i) {
return getRuleContext(TempContext.class,i);
}
public InnerhtmltempContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_innerhtmltemp; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).enterInnerhtmltemp(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).exitInnerhtmltemp(this);
}
}
public final InnerhtmltempContext innerhtmltemp() throws RecognitionException {
InnerhtmltempContext _localctx = new InnerhtmltempContext(_ctx, getState());
enterRule(_localctx, 8, RULE_innerhtmltemp);
int _la;
try {
int _alt;
enterOuterAlt(_localctx, 1);
{
setState(53);
_errHandler.sync(this);
_la = _input.LA(1);
do {
{
{
setState(43);
_errHandler.sync(this);
_la = _input.LA(1);
while ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << WS) | (1L << SEMICOLON) | (1L << EQUALS) | (1L << TOK) | (1L << VALUE) | (1L << ESCAPED_VALUE) | (1L << ANNO) | (1L << META) | (1L << STYLE) | (1L << COLON) | (1L << BEGIN) | (1L << END) | (1L << ALL) | (1L << NEWLINE) | (1L << COMMENT) | (1L << ID) | (1L << TXT))) != 0)) {
{
{
setState(40); innertype();
}
}
setState(45);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(46); temp();
setState(50);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,3,_ctx);
while ( _alt!=2 && _alt!=ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
{
setState(47); innertype();
}
}
}
setState(52);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,3,_ctx);
}
}
}
setState(55);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( (((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << WS) | (1L << SEMICOLON) | (1L << EQUALS) | (1L << TOK) | (1L << VALUE) | (1L << ESCAPED_VALUE) | (1L << ANNO) | (1L << META) | (1L << STYLE) | (1L << COLON) | (1L << BEGIN) | (1L << END) | (1L << ALL) | (1L << NEWLINE) | (1L << COMMENT) | (1L << ID) | (1L << TXT) | (1L << TEMPVALUE) | (1L << TEMPANNO))) != 0) );
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class InnermetaContext extends ParserRuleContext {
public TerminalNode WS(int i) {
return getToken(HTMLVisConfigParser.WS, i);
}
public List WS() { return getTokens(HTMLVisConfigParser.WS); }
public List NEWLINE() { return getTokens(HTMLVisConfigParser.NEWLINE); }
public TerminalNode NEWLINE(int i) {
return getToken(HTMLVisConfigParser.NEWLINE, i);
}
public List QUOTE() { return getTokens(HTMLVisConfigParser.QUOTE); }
public TerminalNode QUOTE(int i) {
return getToken(HTMLVisConfigParser.QUOTE, i);
}
public InnermetaContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_innermeta; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).enterInnermeta(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).exitInnermeta(this);
}
}
public final InnermetaContext innermeta() throws RecognitionException {
InnermetaContext _localctx = new InnermetaContext(_ctx, getState());
enterRule(_localctx, 10, RULE_innermeta);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(58);
_errHandler.sync(this);
_la = _input.LA(1);
do {
{
{
setState(57);
_la = _input.LA(1);
if ( _la <= 0 || ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << WS) | (1L << QUOTE) | (1L << NEWLINE))) != 0)) ) {
_errHandler.recoverInline(this);
}
consume();
}
}
setState(60);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( (((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << SEMICOLON) | (1L << EQUALS) | (1L << TOK) | (1L << VALUE) | (1L << ESCAPED_VALUE) | (1L << ANNO) | (1L << META) | (1L << STYLE) | (1L << COLON) | (1L << BEGIN) | (1L << END) | (1L << ALL) | (1L << COMMENT) | (1L << ID) | (1L << TXT) | (1L << TEMPVALUE) | (1L << TEMPANNO))) != 0) );
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class TypeContext extends ParserRuleContext {
public TypeContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_type; }
public TypeContext() { }
public void copyFrom(TypeContext ctx) {
super.copyFrom(ctx);
}
}
public static class TypeHtmlTempContext extends TypeContext {
public InnerhtmltempContext innerhtmltemp() {
return getRuleContext(InnerhtmltempContext.class,0);
}
public List QUOTE() { return getTokens(HTMLVisConfigParser.QUOTE); }
public TerminalNode QUOTE(int i) {
return getToken(HTMLVisConfigParser.QUOTE, i);
}
public TypeHtmlTempContext(TypeContext ctx) { copyFrom(ctx); }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).enterTypeHtmlTemp(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).exitTypeHtmlTemp(this);
}
}
public static class TypeMetaContext extends TypeContext {
public TerminalNode COLON(int i) {
return getToken(HTMLVisConfigParser.COLON, i);
}
public List COLON() { return getTokens(HTMLVisConfigParser.COLON); }
public InnermetaContext innermeta() {
return getRuleContext(InnermetaContext.class,0);
}
public TerminalNode META() { return getToken(HTMLVisConfigParser.META, 0); }
public TypeMetaContext(TypeContext ctx) { copyFrom(ctx); }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).enterTypeMeta(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).exitTypeMeta(this);
}
}
public static class TypeConstantContext extends TypeContext {
public InnertypeContext innertype() {
return getRuleContext(InnertypeContext.class,0);
}
public List QUOTE() { return getTokens(HTMLVisConfigParser.QUOTE); }
public TerminalNode QUOTE(int i) {
return getToken(HTMLVisConfigParser.QUOTE, i);
}
public TypeConstantContext(TypeContext ctx) { copyFrom(ctx); }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).enterTypeConstant(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).exitTypeConstant(this);
}
}
public static class TypeEscapedValueContext extends TypeContext {
public TerminalNode ESCAPED_VALUE() { return getToken(HTMLVisConfigParser.ESCAPED_VALUE, 0); }
public TypeEscapedValueContext(TypeContext ctx) { copyFrom(ctx); }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).enterTypeEscapedValue(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).exitTypeEscapedValue(this);
}
}
public static class TypeValueContext extends TypeContext {
public TerminalNode VALUE() { return getToken(HTMLVisConfigParser.VALUE, 0); }
public TypeValueContext(TypeContext ctx) { copyFrom(ctx); }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).enterTypeValue(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).exitTypeValue(this);
}
}
public static class TypeAnnoContext extends TypeContext {
public TerminalNode ANNO() { return getToken(HTMLVisConfigParser.ANNO, 0); }
public TypeAnnoContext(TypeContext ctx) { copyFrom(ctx); }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).enterTypeAnno(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).exitTypeAnno(this);
}
}
public final TypeContext type() throws RecognitionException {
TypeContext _localctx = new TypeContext(_ctx, getState());
enterRule(_localctx, 12, RULE_type);
try {
setState(77);
switch ( getInterpreter().adaptivePredict(_input,6,_ctx) ) {
case 1:
_localctx = new TypeValueContext(_localctx);
enterOuterAlt(_localctx, 1);
{
setState(62); match(VALUE);
}
break;
case 2:
_localctx = new TypeEscapedValueContext(_localctx);
enterOuterAlt(_localctx, 2);
{
setState(63); match(ESCAPED_VALUE);
}
break;
case 3:
_localctx = new TypeAnnoContext(_localctx);
enterOuterAlt(_localctx, 3);
{
setState(64); match(ANNO);
}
break;
case 4:
_localctx = new TypeHtmlTempContext(_localctx);
enterOuterAlt(_localctx, 4);
{
setState(65); match(QUOTE);
setState(66); innerhtmltemp();
setState(67); match(QUOTE);
}
break;
case 5:
_localctx = new TypeConstantContext(_localctx);
enterOuterAlt(_localctx, 5);
{
setState(69); match(QUOTE);
setState(70); innertype();
setState(71); match(QUOTE);
}
break;
case 6:
_localctx = new TypeMetaContext(_localctx);
enterOuterAlt(_localctx, 6);
{
setState(73); match(META);
setState(74); match(COLON);
setState(75); match(COLON);
setState(76); innermeta();
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class ElementContext extends ParserRuleContext {
public ElementContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_element; }
public ElementContext() { }
public void copyFrom(ElementContext ctx) {
super.copyFrom(ctx);
}
}
public static class ElementWithStyleContext extends ElementContext {
public TerminalNode ID() { return getToken(HTMLVisConfigParser.ID, 0); }
public TerminalNode SEMICOLON() { return getToken(HTMLVisConfigParser.SEMICOLON, 0); }
public TerminalNode EQUALS() { return getToken(HTMLVisConfigParser.EQUALS, 0); }
public ValueContext value() {
return getRuleContext(ValueContext.class,0);
}
public TerminalNode STYLE() { return getToken(HTMLVisConfigParser.STYLE, 0); }
public TerminalNode WS() { return getToken(HTMLVisConfigParser.WS, 0); }
public ElementWithStyleContext(ElementContext ctx) { copyFrom(ctx); }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).enterElementWithStyle(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).exitElementWithStyle(this);
}
}
public static class ElementWithStyleAttributeContext extends ElementContext {
public List ID() { return getTokens(HTMLVisConfigParser.ID); }
public TerminalNode SEMICOLON() { return getToken(HTMLVisConfigParser.SEMICOLON, 0); }
public TerminalNode EQUALS() { return getToken(HTMLVisConfigParser.EQUALS, 0); }
public ValueContext value() {
return getRuleContext(ValueContext.class,0);
}
public TerminalNode STYLE() { return getToken(HTMLVisConfigParser.STYLE, 0); }
public TerminalNode WS() { return getToken(HTMLVisConfigParser.WS, 0); }
public TerminalNode COLON() { return getToken(HTMLVisConfigParser.COLON, 0); }
public TerminalNode ID(int i) {
return getToken(HTMLVisConfigParser.ID, i);
}
public ElementWithStyleAttributeContext(ElementContext ctx) { copyFrom(ctx); }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).enterElementWithStyleAttribute(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).exitElementWithStyleAttribute(this);
}
}
public static class ElementNoStyleAttributeContext extends ElementContext {
public List ID() { return getTokens(HTMLVisConfigParser.ID); }
public TerminalNode COLON() { return getToken(HTMLVisConfigParser.COLON, 0); }
public TerminalNode ID(int i) {
return getToken(HTMLVisConfigParser.ID, i);
}
public ElementNoStyleAttributeContext(ElementContext ctx) { copyFrom(ctx); }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).enterElementNoStyleAttribute(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).exitElementNoStyleAttribute(this);
}
}
public static class ElementNoStyleContext extends ElementContext {
public TerminalNode ID() { return getToken(HTMLVisConfigParser.ID, 0); }
public ElementNoStyleContext(ElementContext ctx) { copyFrom(ctx); }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).enterElementNoStyle(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).exitElementNoStyle(this);
}
}
public final ElementContext element() throws RecognitionException {
ElementContext _localctx = new ElementContext(_ctx, getState());
enterRule(_localctx, 14, RULE_element);
int _la;
try {
setState(101);
switch ( getInterpreter().adaptivePredict(_input,9,_ctx) ) {
case 1:
_localctx = new ElementNoStyleContext(_localctx);
enterOuterAlt(_localctx, 1);
{
setState(79); match(ID);
}
break;
case 2:
_localctx = new ElementNoStyleAttributeContext(_localctx);
enterOuterAlt(_localctx, 2);
{
setState(80); match(ID);
setState(81); match(COLON);
setState(82); match(ID);
}
break;
case 3:
_localctx = new ElementWithStyleContext(_localctx);
enterOuterAlt(_localctx, 3);
{
setState(83); match(ID);
setState(84); match(SEMICOLON);
setState(86);
_la = _input.LA(1);
if (_la==WS) {
{
setState(85); match(WS);
}
}
setState(88); match(STYLE);
setState(89); match(EQUALS);
setState(90); value();
}
break;
case 4:
_localctx = new ElementWithStyleAttributeContext(_localctx);
enterOuterAlt(_localctx, 4);
{
setState(91); match(ID);
setState(92); match(COLON);
setState(93); match(ID);
setState(94); match(SEMICOLON);
setState(96);
_la = _input.LA(1);
if (_la==WS) {
{
setState(95); match(WS);
}
}
setState(98); match(STYLE);
setState(99); match(EQUALS);
setState(100); value();
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class QNameContext extends ParserRuleContext {
public Token namespace;
public Token name;
public List ID() { return getTokens(HTMLVisConfigParser.ID); }
public TerminalNode COLON() { return getToken(HTMLVisConfigParser.COLON, 0); }
public TerminalNode ID(int i) {
return getToken(HTMLVisConfigParser.ID, i);
}
public QNameContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_qName; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).enterQName(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).exitQName(this);
}
}
public final QNameContext qName() throws RecognitionException {
QNameContext _localctx = new QNameContext(_ctx, getState());
enterRule(_localctx, 16, RULE_qName);
try {
enterOuterAlt(_localctx, 1);
{
setState(105);
switch ( getInterpreter().adaptivePredict(_input,10,_ctx) ) {
case 1:
{
setState(103); ((QNameContext)_localctx).namespace = match(ID);
setState(104); match(COLON);
}
break;
}
setState(107); ((QNameContext)_localctx).name = match(ID);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class ConditionContext extends ParserRuleContext {
public ConditionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_condition; }
public ConditionContext() { }
public void copyFrom(ConditionContext ctx) {
super.copyFrom(ctx);
}
}
public static class ConditionEndContext extends ConditionContext {
public TerminalNode END() { return getToken(HTMLVisConfigParser.END, 0); }
public ConditionEndContext(ConditionContext ctx) { copyFrom(ctx); }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).enterConditionEnd(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).exitConditionEnd(this);
}
}
public static class ConditionTokContext extends ConditionContext {
public TerminalNode TOK() { return getToken(HTMLVisConfigParser.TOK, 0); }
public ConditionTokContext(ConditionContext ctx) { copyFrom(ctx); }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).enterConditionTok(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).exitConditionTok(this);
}
}
public static class ConditionNameAndValueContext extends ConditionContext {
public TerminalNode EQUALS() { return getToken(HTMLVisConfigParser.EQUALS, 0); }
public ValueContext value() {
return getRuleContext(ValueContext.class,0);
}
public QNameContext qName() {
return getRuleContext(QNameContext.class,0);
}
public ConditionNameAndValueContext(ConditionContext ctx) { copyFrom(ctx); }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).enterConditionNameAndValue(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).exitConditionNameAndValue(this);
}
}
public static class ConditionAllContext extends ConditionContext {
public TerminalNode ALL() { return getToken(HTMLVisConfigParser.ALL, 0); }
public ConditionAllContext(ConditionContext ctx) { copyFrom(ctx); }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).enterConditionAll(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).exitConditionAll(this);
}
}
public static class ConditionBeginContext extends ConditionContext {
public TerminalNode BEGIN() { return getToken(HTMLVisConfigParser.BEGIN, 0); }
public ConditionBeginContext(ConditionContext ctx) { copyFrom(ctx); }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).enterConditionBegin(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).exitConditionBegin(this);
}
}
public static class ConditionValueContext extends ConditionContext {
public TerminalNode EQUALS() { return getToken(HTMLVisConfigParser.EQUALS, 0); }
public ValueContext value() {
return getRuleContext(ValueContext.class,0);
}
public ConditionValueContext(ConditionContext ctx) { copyFrom(ctx); }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).enterConditionValue(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).exitConditionValue(this);
}
}
public static class ConditionNameContext extends ConditionContext {
public QNameContext qName() {
return getRuleContext(QNameContext.class,0);
}
public ConditionNameContext(ConditionContext ctx) { copyFrom(ctx); }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).enterConditionName(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).exitConditionName(this);
}
}
public final ConditionContext condition() throws RecognitionException {
ConditionContext _localctx = new ConditionContext(_ctx, getState());
enterRule(_localctx, 18, RULE_condition);
try {
setState(120);
switch ( getInterpreter().adaptivePredict(_input,11,_ctx) ) {
case 1:
_localctx = new ConditionBeginContext(_localctx);
enterOuterAlt(_localctx, 1);
{
setState(109); match(BEGIN);
}
break;
case 2:
_localctx = new ConditionEndContext(_localctx);
enterOuterAlt(_localctx, 2);
{
setState(110); match(END);
}
break;
case 3:
_localctx = new ConditionAllContext(_localctx);
enterOuterAlt(_localctx, 3);
{
setState(111); match(ALL);
}
break;
case 4:
_localctx = new ConditionNameContext(_localctx);
enterOuterAlt(_localctx, 4);
{
setState(112); qName();
}
break;
case 5:
_localctx = new ConditionTokContext(_localctx);
enterOuterAlt(_localctx, 5);
{
setState(113); match(TOK);
}
break;
case 6:
_localctx = new ConditionNameAndValueContext(_localctx);
enterOuterAlt(_localctx, 6);
{
setState(114); qName();
setState(115); match(EQUALS);
setState(116); value();
}
break;
case 7:
_localctx = new ConditionValueContext(_localctx);
enterOuterAlt(_localctx, 7);
{
setState(118); match(EQUALS);
setState(119); value();
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class VisContext extends ParserRuleContext {
public TerminalNode WS(int i) {
return getToken(HTMLVisConfigParser.WS, i);
}
public ElementContext element() {
return getRuleContext(ElementContext.class,0);
}
public List WS() { return getTokens(HTMLVisConfigParser.WS); }
public List NEWLINE() { return getTokens(HTMLVisConfigParser.NEWLINE); }
public TerminalNode NEWLINE(int i) {
return getToken(HTMLVisConfigParser.NEWLINE, i);
}
public TypeContext type() {
return getRuleContext(TypeContext.class,0);
}
public ConditionContext condition() {
return getRuleContext(ConditionContext.class,0);
}
public VisContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_vis; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).enterVis(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).exitVis(this);
}
}
public final VisContext vis() throws RecognitionException {
VisContext _localctx = new VisContext(_ctx, getState());
enterRule(_localctx, 20, RULE_vis);
int _la;
try {
int _alt;
enterOuterAlt(_localctx, 1);
{
setState(122); condition();
setState(123); match(WS);
setState(124); element();
setState(127);
switch ( getInterpreter().adaptivePredict(_input,12,_ctx) ) {
case 1:
{
setState(125); match(WS);
setState(126); type();
}
break;
}
setState(130);
_la = _input.LA(1);
if (_la==WS) {
{
setState(129); match(WS);
}
}
setState(135);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,14,_ctx);
while ( _alt!=2 && _alt!=ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
{
setState(132); match(NEWLINE);
}
}
}
setState(137);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,14,_ctx);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class StartContext extends ParserRuleContext {
public List vis() {
return getRuleContexts(VisContext.class);
}
public TerminalNode EOF() { return getToken(HTMLVisConfigParser.EOF, 0); }
public List NEWLINE() { return getTokens(HTMLVisConfigParser.NEWLINE); }
public TerminalNode NEWLINE(int i) {
return getToken(HTMLVisConfigParser.NEWLINE, i);
}
public VisContext vis(int i) {
return getRuleContext(VisContext.class,i);
}
public StartContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_start; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).enterStart(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof HTMLVisConfigListener ) ((HTMLVisConfigListener)listener).exitStart(this);
}
}
public final StartContext start() throws RecognitionException {
StartContext _localctx = new StartContext(_ctx, getState());
enterRule(_localctx, 22, RULE_start);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(141);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==NEWLINE) {
{
{
setState(138); match(NEWLINE);
}
}
setState(143);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(144); vis();
setState(153);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==NEWLINE) {
{
{
setState(146);
_errHandler.sync(this);
_la = _input.LA(1);
do {
{
{
setState(145); match(NEWLINE);
}
}
setState(148);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( _la==NEWLINE );
setState(150); vis();
}
}
setState(155);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(156); match(EOF);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static final String _serializedATN =
"\3\u0430\ud6d1\u8206\uad2d\u4417\uaef1\u8d80\uaadd\3\26\u00a1\4\2\t\2"+
"\4\3\t\3\4\4\t\4\4\5\t\5\4\6\t\6\4\7\t\7\4\b\t\b\4\t\t\t\4\n\t\n\4\13"+
"\t\13\4\f\t\f\4\r\t\r\3\2\6\2\34\n\2\r\2\16\2\35\3\3\3\3\3\3\3\3\3\4\3"+
"\4\3\5\6\5\'\n\5\r\5\16\5(\3\6\7\6,\n\6\f\6\16\6/\13\6\3\6\3\6\7\6\63"+
"\n\6\f\6\16\6\66\13\6\6\68\n\6\r\6\16\69\3\7\6\7=\n\7\r\7\16\7>\3\b\3"+
"\b\3\b\3\b\3\b\3\b\3\b\3\b\3\b\3\b\3\b\3\b\3\b\3\b\3\b\5\bP\n\b\3\t\3"+
"\t\3\t\3\t\3\t\3\t\3\t\5\tY\n\t\3\t\3\t\3\t\3\t\3\t\3\t\3\t\3\t\5\tc\n"+
"\t\3\t\3\t\3\t\5\th\n\t\3\n\3\n\5\nl\n\n\3\n\3\n\3\13\3\13\3\13\3\13\3"+
"\13\3\13\3\13\3\13\3\13\3\13\3\13\5\13{\n\13\3\f\3\f\3\f\3\f\3\f\5\f\u0082"+
"\n\f\3\f\5\f\u0085\n\f\3\f\7\f\u0088\n\f\f\f\16\f\u008b\13\f\3\r\7\r\u008e"+
"\n\r\f\r\16\r\u0091\13\r\3\r\3\r\6\r\u0095\n\r\r\r\16\r\u0096\3\r\7\r"+
"\u009a\n\r\f\r\16\r\u009d\13\r\3\r\3\r\3\r\2\2\16\2\4\6\b\n\f\16\20\22"+
"\24\26\30\2\6\3\2\20\20\3\2\25\26\4\2\20\20\25\26\4\2\3\3\20\21\u00b1"+
"\2\33\3\2\2\2\4\37\3\2\2\2\6#\3\2\2\2\b&\3\2\2\2\n\67\3\2\2\2\f<\3\2\2"+
"\2\16O\3\2\2\2\20g\3\2\2\2\22k\3\2\2\2\24z\3\2\2\2\26|\3\2\2\2\30\u008f"+
"\3\2\2\2\32\34\n\2\2\2\33\32\3\2\2\2\34\35\3\2\2\2\35\33\3\2\2\2\35\36"+
"\3\2\2\2\36\3\3\2\2\2\37 \7\20\2\2 !\5\2\2\2!\"\7\20\2\2\"\5\3\2\2\2#"+
"$\t\3\2\2$\7\3\2\2\2%\'\n\4\2\2&%\3\2\2\2\'(\3\2\2\2(&\3\2\2\2()\3\2\2"+
"\2)\t\3\2\2\2*,\5\b\5\2+*\3\2\2\2,/\3\2\2\2-+\3\2\2\2-.\3\2\2\2.\60\3"+
"\2\2\2/-\3\2\2\2\60\64\5\6\4\2\61\63\5\b\5\2\62\61\3\2\2\2\63\66\3\2\2"+
"\2\64\62\3\2\2\2\64\65\3\2\2\2\658\3\2\2\2\66\64\3\2\2\2\67-\3\2\2\28"+
"9\3\2\2\29\67\3\2\2\29:\3\2\2\2:\13\3\2\2\2;=\n\5\2\2<;\3\2\2\2=>\3\2"+
"\2\2><\3\2\2\2>?\3\2\2\2?\r\3\2\2\2@P\7\7\2\2AP\7\b\2\2BP\7\t\2\2CD\7"+
"\20\2\2DE\5\n\6\2EF\7\20\2\2FP\3\2\2\2GH\7\20\2\2HI\5\b\5\2IJ\7\20\2\2"+
"JP\3\2\2\2KL\7\n\2\2LM\7\f\2\2MN\7\f\2\2NP\5\f\7\2O@\3\2\2\2OA\3\2\2\2"+
"OB\3\2\2\2OC\3\2\2\2OG\3\2\2\2OK\3\2\2\2P\17\3\2\2\2Qh\7\23\2\2RS\7\23"+
"\2\2ST\7\f\2\2Th\7\23\2\2UV\7\23\2\2VX\7\4\2\2WY\7\3\2\2XW\3\2\2\2XY\3"+
"\2\2\2YZ\3\2\2\2Z[\7\13\2\2[\\\7\5\2\2\\h\5\4\3\2]^\7\23\2\2^_\7\f\2\2"+
"_`\7\23\2\2`b\7\4\2\2ac\7\3\2\2ba\3\2\2\2bc\3\2\2\2cd\3\2\2\2de\7\13\2"+
"\2ef\7\5\2\2fh\5\4\3\2gQ\3\2\2\2gR\3\2\2\2gU\3\2\2\2g]\3\2\2\2h\21\3\2"+
"\2\2ij\7\23\2\2jl\7\f\2\2ki\3\2\2\2kl\3\2\2\2lm\3\2\2\2mn\7\23\2\2n\23"+
"\3\2\2\2o{\7\r\2\2p{\7\16\2\2q{\7\17\2\2r{\5\22\n\2s{\7\6\2\2tu\5\22\n"+
"\2uv\7\5\2\2vw\5\4\3\2w{\3\2\2\2xy\7\5\2\2y{\5\4\3\2zo\3\2\2\2zp\3\2\2"+
"\2zq\3\2\2\2zr\3\2\2\2zs\3\2\2\2zt\3\2\2\2zx\3\2\2\2{\25\3\2\2\2|}\5\24"+
"\13\2}~\7\3\2\2~\u0081\5\20\t\2\177\u0080\7\3\2\2\u0080\u0082\5\16\b\2"+
"\u0081\177\3\2\2\2\u0081\u0082\3\2\2\2\u0082\u0084\3\2\2\2\u0083\u0085"+
"\7\3\2\2\u0084\u0083\3\2\2\2\u0084\u0085\3\2\2\2\u0085\u0089\3\2\2\2\u0086"+
"\u0088\7\21\2\2\u0087\u0086\3\2\2\2\u0088\u008b\3\2\2\2\u0089\u0087\3"+
"\2\2\2\u0089\u008a\3\2\2\2\u008a\27\3\2\2\2\u008b\u0089\3\2\2\2\u008c"+
"\u008e\7\21\2\2\u008d\u008c\3\2\2\2\u008e\u0091\3\2\2\2\u008f\u008d\3"+
"\2\2\2\u008f\u0090\3\2\2\2\u0090\u0092\3\2\2\2\u0091\u008f\3\2\2\2\u0092"+
"\u009b\5\26\f\2\u0093\u0095\7\21\2\2\u0094\u0093\3\2\2\2\u0095\u0096\3"+
"\2\2\2\u0096\u0094\3\2\2\2\u0096\u0097\3\2\2\2\u0097\u0098\3\2\2\2\u0098"+
"\u009a\5\26\f\2\u0099\u0094\3\2\2\2\u009a\u009d\3\2\2\2\u009b\u0099\3"+
"\2\2\2\u009b\u009c\3\2\2\2\u009c\u009e\3\2\2\2\u009d\u009b\3\2\2\2\u009e"+
"\u009f\7\2\2\3\u009f\31\3\2\2\2\24\35(-\649>OXbgkz\u0081\u0084\u0089\u008f"+
"\u0096\u009b";
public static final ATN _ATN =
new ATNDeserializer().deserialize(_serializedATN.toCharArray());
static {
_decisionToDFA = new DFA[_ATN.getNumberOfDecisions()];
for (int i = 0; i < _ATN.getNumberOfDecisions(); i++) {
_decisionToDFA[i] = new DFA(_ATN.getDecisionState(i), i);
}
}
}