All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.inrupt.client.parser.WacAllowParser Maven / Gradle / Ivy

There is a newer version: 1.3.0
Show newest version
// Generated from com/inrupt/client/parser/WacAllow.g4 by ANTLR 4.13.0
package com.inrupt.client.parser;
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", "CheckReturnValue"})
public class WacAllowParser extends Parser {
	static { RuntimeMetaData.checkVersion("4.13.0", RuntimeMetaData.VERSION); }

	protected static final DFA[] _decisionToDFA;
	protected static final PredictionContextCache _sharedContextCache =
		new PredictionContextCache();
	public static final int
		T__0=1, AccessParam=2, WS=3, DQUOTE=4;
	public static final int
		RULE_wacAllow = 0;
	private static String[] makeRuleNames() {
		return new String[] {
			"wacAllow"
		};
	}
	public static final String[] ruleNames = makeRuleNames();

	private static String[] makeLiteralNames() {
		return new String[] {
			null, "','", null, null, "'\\u0022'"
		};
	}
	private static final String[] _LITERAL_NAMES = makeLiteralNames();
	private static String[] makeSymbolicNames() {
		return new String[] {
			null, null, "AccessParam", "WS", "DQUOTE"
		};
	}
	private static final String[] _SYMBOLIC_NAMES = makeSymbolicNames();
	public static final Vocabulary VOCABULARY = new VocabularyImpl(_LITERAL_NAMES, _SYMBOLIC_NAMES);

	/**
	 * @deprecated Use {@link #VOCABULARY} instead.
	 */
	@Deprecated
	public static final String[] tokenNames;
	static {
		tokenNames = new String[_SYMBOLIC_NAMES.length];
		for (int i = 0; i < tokenNames.length; i++) {
			tokenNames[i] = VOCABULARY.getLiteralName(i);
			if (tokenNames[i] == null) {
				tokenNames[i] = VOCABULARY.getSymbolicName(i);
			}

			if (tokenNames[i] == null) {
				tokenNames[i] = "";
			}
		}
	}

	@Override
	@Deprecated
	public String[] getTokenNames() {
		return tokenNames;
	}

	@Override

	public Vocabulary getVocabulary() {
		return VOCABULARY;
	}

	@Override
	public String getGrammarFileName() { return "WacAllow.g4"; }

	@Override
	public String[] getRuleNames() { return ruleNames; }

	@Override
	public String getSerializedATN() { return _serializedATN; }

	@Override
	public ATN getATN() { return _ATN; }

	public WacAllowParser(TokenStream input) {
		super(input);
		_interp = new ParserATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
	}

	@SuppressWarnings("CheckReturnValue")
	public static class WacAllowContext extends ParserRuleContext {
		public List AccessParam() { return getTokens(WacAllowParser.AccessParam); }
		public TerminalNode AccessParam(int i) {
			return getToken(WacAllowParser.AccessParam, i);
		}
		public List WS() { return getTokens(WacAllowParser.WS); }
		public TerminalNode WS(int i) {
			return getToken(WacAllowParser.WS, i);
		}
		public WacAllowContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_wacAllow; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof WacAllowListener ) ((WacAllowListener)listener).enterWacAllow(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof WacAllowListener ) ((WacAllowListener)listener).exitWacAllow(this);
		}
	}

	public final WacAllowContext wacAllow() throws RecognitionException {
		WacAllowContext _localctx = new WacAllowContext(_ctx, getState());
		enterRule(_localctx, 0, RULE_wacAllow);
		int _la;
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(2);
			match(AccessParam);
			setState(13);
			_errHandler.sync(this);
			_la = _input.LA(1);
			while (_la==T__0 || _la==WS) {
				{
				{
				setState(4);
				_errHandler.sync(this);
				_la = _input.LA(1);
				if (_la==WS) {
					{
					setState(3);
					match(WS);
					}
				}

				setState(6);
				match(T__0);
				setState(8);
				_errHandler.sync(this);
				_la = _input.LA(1);
				if (_la==WS) {
					{
					setState(7);
					match(WS);
					}
				}

				setState(10);
				match(AccessParam);
				}
				}
				setState(15);
				_errHandler.sync(this);
				_la = _input.LA(1);
			}
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static final String _serializedATN =
		"\u0004\u0001\u0004\u0011\u0002\u0000\u0007\u0000\u0001\u0000\u0001\u0000"+
		"\u0003\u0000\u0005\b\u0000\u0001\u0000\u0001\u0000\u0003\u0000\t\b\u0000"+
		"\u0001\u0000\u0005\u0000\f\b\u0000\n\u0000\f\u0000\u000f\t\u0000\u0001"+
		"\u0000\u0000\u0000\u0001\u0000\u0000\u0000\u0012\u0000\u0002\u0001\u0000"+
		"\u0000\u0000\u0002\r\u0005\u0002\u0000\u0000\u0003\u0005\u0005\u0003\u0000"+
		"\u0000\u0004\u0003\u0001\u0000\u0000\u0000\u0004\u0005\u0001\u0000\u0000"+
		"\u0000\u0005\u0006\u0001\u0000\u0000\u0000\u0006\b\u0005\u0001\u0000\u0000"+
		"\u0007\t\u0005\u0003\u0000\u0000\b\u0007\u0001\u0000\u0000\u0000\b\t\u0001"+
		"\u0000\u0000\u0000\t\n\u0001\u0000\u0000\u0000\n\f\u0005\u0002\u0000\u0000"+
		"\u000b\u0004\u0001\u0000\u0000\u0000\f\u000f\u0001\u0000\u0000\u0000\r"+
		"\u000b\u0001\u0000\u0000\u0000\r\u000e\u0001\u0000\u0000\u0000\u000e\u0001"+
		"\u0001\u0000\u0000\u0000\u000f\r\u0001\u0000\u0000\u0000\u0003\u0004\b"+
		"\r";
	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);
		}
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy