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

org.lockss.tdb.TdbParser Maven / Gradle / Ivy

// Generated from org/lockss/tdb/TdbParser.g4 by ANTLR 4.7.2
package org.lockss.tdb;


/* ===================================================================

WARNING - WARNING - WARNING - WARNING - WARNING - WARNING - WARNING

If you are modifying a Java file with this warning in it, you are
making changes in the wrong place. This Java file was generated by
ANTLR from a grammar file. You should be editing the grammar file
instead.

=================================================================== */


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 TdbParser extends Parser {
	static { RuntimeMetaData.checkVersion("4.7.2", RuntimeMetaData.VERSION); }

	protected static final DFA[] _decisionToDFA;
	protected static final PredictionContextCache _sharedContextCache =
		new PredictionContextCache();
	public static final int
		STRING=1, PUBLISHER=2, TITLE=3, AU=4, IMPLICIT=5, CURLY_OPEN=6, CURLY_CLOSE=7, 
		ANGLE_OPEN=8, ANGLE_CLOSE=9, SEMICOLON=10, EQUALS=11, IDENTIFIER=12, WHITESPACE=13, 
		COMMENT=14;
	public static final int
		RULE_tdb = 0, RULE_publisherContainer = 1, RULE_publisher = 2, RULE_titleContainer = 3, 
		RULE_title = 4, RULE_auContainer = 5, RULE_au = 6, RULE_assignment = 7, 
		RULE_simpleAssignment = 8, RULE_implicit = 9, RULE_listOfSimpleAssignments = 10, 
		RULE_listOfStrings = 11, RULE_listOfIdentifiers = 12;
	private static String[] makeRuleNames() {
		return new String[] {
			"tdb", "publisherContainer", "publisher", "titleContainer", "title", 
			"auContainer", "au", "assignment", "simpleAssignment", "implicit", "listOfSimpleAssignments", 
			"listOfStrings", "listOfIdentifiers"
		};
	}
	public static final String[] ruleNames = makeRuleNames();

	private static String[] makeLiteralNames() {
		return new String[] {
			null, null, "'publisher'", "'title'", "'au'", "'implicit'", "'{'", "'}'", 
			"'<'", "'>'", "';'", "'='", null, null, "'#'"
		};
	}
	private static final String[] _LITERAL_NAMES = makeLiteralNames();
	private static String[] makeSymbolicNames() {
		return new String[] {
			null, "STRING", "PUBLISHER", "TITLE", "AU", "IMPLICIT", "CURLY_OPEN", 
			"CURLY_CLOSE", "ANGLE_OPEN", "ANGLE_CLOSE", "SEMICOLON", "EQUALS", "IDENTIFIER", 
			"WHITESPACE", "COMMENT"
		};
	}
	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 "TdbParser.g4"; }

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

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

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

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

	public static class TdbContext extends ParserRuleContext {
		public TerminalNode EOF() { return getToken(TdbParser.EOF, 0); }
		public List publisherContainer() {
			return getRuleContexts(PublisherContainerContext.class);
		}
		public PublisherContainerContext publisherContainer(int i) {
			return getRuleContext(PublisherContainerContext.class,i);
		}
		public TdbContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_tdb; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof TdbParserListener ) ((TdbParserListener)listener).enterTdb(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof TdbParserListener ) ((TdbParserListener)listener).exitTdb(this);
		}
	}

	public final TdbContext tdb() throws RecognitionException {
		TdbContext _localctx = new TdbContext(_ctx, getState());
		enterRule(_localctx, 0, RULE_tdb);
		int _la;
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(29);
			_errHandler.sync(this);
			_la = _input.LA(1);
			while (_la==CURLY_OPEN) {
				{
				{
				setState(26);
				publisherContainer();
				}
				}
				setState(31);
				_errHandler.sync(this);
				_la = _input.LA(1);
			}
			setState(32);
			match(EOF);
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class PublisherContainerContext extends ParserRuleContext {
		public TerminalNode CURLY_OPEN() { return getToken(TdbParser.CURLY_OPEN, 0); }
		public TerminalNode CURLY_CLOSE() { return getToken(TdbParser.CURLY_CLOSE, 0); }
		public List assignment() {
			return getRuleContexts(AssignmentContext.class);
		}
		public AssignmentContext assignment(int i) {
			return getRuleContext(AssignmentContext.class,i);
		}
		public List publisherContainer() {
			return getRuleContexts(PublisherContainerContext.class);
		}
		public PublisherContainerContext publisherContainer(int i) {
			return getRuleContext(PublisherContainerContext.class,i);
		}
		public PublisherContext publisher() {
			return getRuleContext(PublisherContext.class,0);
		}
		public List titleContainer() {
			return getRuleContexts(TitleContainerContext.class);
		}
		public TitleContainerContext titleContainer(int i) {
			return getRuleContext(TitleContainerContext.class,i);
		}
		public PublisherContainerContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_publisherContainer; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof TdbParserListener ) ((TdbParserListener)listener).enterPublisherContainer(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof TdbParserListener ) ((TdbParserListener)listener).exitPublisherContainer(this);
		}
	}

	public final PublisherContainerContext publisherContainer() throws RecognitionException {
		PublisherContainerContext _localctx = new PublisherContainerContext(_ctx, getState());
		enterRule(_localctx, 2, RULE_publisherContainer);
		int _la;
		try {
			setState(64);
			_errHandler.sync(this);
			switch ( getInterpreter().adaptivePredict(_input,5,_ctx) ) {
			case 1:
				enterOuterAlt(_localctx, 1);
				{
				setState(34);
				match(CURLY_OPEN);
				setState(38);
				_errHandler.sync(this);
				_la = _input.LA(1);
				while (_la==IMPLICIT || _la==IDENTIFIER) {
					{
					{
					setState(35);
					assignment();
					}
					}
					setState(40);
					_errHandler.sync(this);
					_la = _input.LA(1);
				}
				setState(44);
				_errHandler.sync(this);
				_la = _input.LA(1);
				while (_la==CURLY_OPEN) {
					{
					{
					setState(41);
					publisherContainer();
					}
					}
					setState(46);
					_errHandler.sync(this);
					_la = _input.LA(1);
				}
				setState(47);
				match(CURLY_CLOSE);
				}
				break;
			case 2:
				enterOuterAlt(_localctx, 2);
				{
				setState(48);
				match(CURLY_OPEN);
				setState(49);
				publisher();
				setState(53);
				_errHandler.sync(this);
				_la = _input.LA(1);
				while (_la==IMPLICIT || _la==IDENTIFIER) {
					{
					{
					setState(50);
					assignment();
					}
					}
					setState(55);
					_errHandler.sync(this);
					_la = _input.LA(1);
				}
				setState(59);
				_errHandler.sync(this);
				_la = _input.LA(1);
				while (_la==CURLY_OPEN) {
					{
					{
					setState(56);
					titleContainer();
					}
					}
					setState(61);
					_errHandler.sync(this);
					_la = _input.LA(1);
				}
				setState(62);
				match(CURLY_CLOSE);
				}
				break;
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class PublisherContext extends ParserRuleContext {
		public TerminalNode PUBLISHER() { return getToken(TdbParser.PUBLISHER, 0); }
		public TerminalNode ANGLE_OPEN() { return getToken(TdbParser.ANGLE_OPEN, 0); }
		public ListOfSimpleAssignmentsContext listOfSimpleAssignments() {
			return getRuleContext(ListOfSimpleAssignmentsContext.class,0);
		}
		public TerminalNode ANGLE_CLOSE() { return getToken(TdbParser.ANGLE_CLOSE, 0); }
		public PublisherContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_publisher; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof TdbParserListener ) ((TdbParserListener)listener).enterPublisher(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof TdbParserListener ) ((TdbParserListener)listener).exitPublisher(this);
		}
	}

	public final PublisherContext publisher() throws RecognitionException {
		PublisherContext _localctx = new PublisherContext(_ctx, getState());
		enterRule(_localctx, 4, RULE_publisher);
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(66);
			match(PUBLISHER);
			setState(67);
			match(ANGLE_OPEN);
			setState(68);
			listOfSimpleAssignments();
			setState(69);
			match(ANGLE_CLOSE);
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class TitleContainerContext extends ParserRuleContext {
		public TerminalNode CURLY_OPEN() { return getToken(TdbParser.CURLY_OPEN, 0); }
		public TerminalNode CURLY_CLOSE() { return getToken(TdbParser.CURLY_CLOSE, 0); }
		public List assignment() {
			return getRuleContexts(AssignmentContext.class);
		}
		public AssignmentContext assignment(int i) {
			return getRuleContext(AssignmentContext.class,i);
		}
		public List titleContainer() {
			return getRuleContexts(TitleContainerContext.class);
		}
		public TitleContainerContext titleContainer(int i) {
			return getRuleContext(TitleContainerContext.class,i);
		}
		public TitleContext title() {
			return getRuleContext(TitleContext.class,0);
		}
		public List auContainer() {
			return getRuleContexts(AuContainerContext.class);
		}
		public AuContainerContext auContainer(int i) {
			return getRuleContext(AuContainerContext.class,i);
		}
		public TitleContainerContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_titleContainer; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof TdbParserListener ) ((TdbParserListener)listener).enterTitleContainer(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof TdbParserListener ) ((TdbParserListener)listener).exitTitleContainer(this);
		}
	}

	public final TitleContainerContext titleContainer() throws RecognitionException {
		TitleContainerContext _localctx = new TitleContainerContext(_ctx, getState());
		enterRule(_localctx, 6, RULE_titleContainer);
		int _la;
		try {
			setState(101);
			_errHandler.sync(this);
			switch ( getInterpreter().adaptivePredict(_input,10,_ctx) ) {
			case 1:
				enterOuterAlt(_localctx, 1);
				{
				setState(71);
				match(CURLY_OPEN);
				setState(75);
				_errHandler.sync(this);
				_la = _input.LA(1);
				while (_la==IMPLICIT || _la==IDENTIFIER) {
					{
					{
					setState(72);
					assignment();
					}
					}
					setState(77);
					_errHandler.sync(this);
					_la = _input.LA(1);
				}
				setState(81);
				_errHandler.sync(this);
				_la = _input.LA(1);
				while (_la==CURLY_OPEN) {
					{
					{
					setState(78);
					titleContainer();
					}
					}
					setState(83);
					_errHandler.sync(this);
					_la = _input.LA(1);
				}
				setState(84);
				match(CURLY_CLOSE);
				}
				break;
			case 2:
				enterOuterAlt(_localctx, 2);
				{
				setState(85);
				match(CURLY_OPEN);
				setState(86);
				title();
				setState(90);
				_errHandler.sync(this);
				_la = _input.LA(1);
				while (_la==IMPLICIT || _la==IDENTIFIER) {
					{
					{
					setState(87);
					assignment();
					}
					}
					setState(92);
					_errHandler.sync(this);
					_la = _input.LA(1);
				}
				setState(96);
				_errHandler.sync(this);
				_la = _input.LA(1);
				while (_la==AU || _la==CURLY_OPEN) {
					{
					{
					setState(93);
					auContainer();
					}
					}
					setState(98);
					_errHandler.sync(this);
					_la = _input.LA(1);
				}
				setState(99);
				match(CURLY_CLOSE);
				}
				break;
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class TitleContext extends ParserRuleContext {
		public TerminalNode TITLE() { return getToken(TdbParser.TITLE, 0); }
		public TerminalNode ANGLE_OPEN() { return getToken(TdbParser.ANGLE_OPEN, 0); }
		public ListOfSimpleAssignmentsContext listOfSimpleAssignments() {
			return getRuleContext(ListOfSimpleAssignmentsContext.class,0);
		}
		public TerminalNode ANGLE_CLOSE() { return getToken(TdbParser.ANGLE_CLOSE, 0); }
		public TitleContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_title; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof TdbParserListener ) ((TdbParserListener)listener).enterTitle(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof TdbParserListener ) ((TdbParserListener)listener).exitTitle(this);
		}
	}

	public final TitleContext title() throws RecognitionException {
		TitleContext _localctx = new TitleContext(_ctx, getState());
		enterRule(_localctx, 8, RULE_title);
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(103);
			match(TITLE);
			setState(104);
			match(ANGLE_OPEN);
			setState(105);
			listOfSimpleAssignments();
			setState(106);
			match(ANGLE_CLOSE);
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class AuContainerContext extends ParserRuleContext {
		public TerminalNode CURLY_OPEN() { return getToken(TdbParser.CURLY_OPEN, 0); }
		public TerminalNode CURLY_CLOSE() { return getToken(TdbParser.CURLY_CLOSE, 0); }
		public List assignment() {
			return getRuleContexts(AssignmentContext.class);
		}
		public AssignmentContext assignment(int i) {
			return getRuleContext(AssignmentContext.class,i);
		}
		public List auContainer() {
			return getRuleContexts(AuContainerContext.class);
		}
		public AuContainerContext auContainer(int i) {
			return getRuleContext(AuContainerContext.class,i);
		}
		public AuContext au() {
			return getRuleContext(AuContext.class,0);
		}
		public AuContainerContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_auContainer; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof TdbParserListener ) ((TdbParserListener)listener).enterAuContainer(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof TdbParserListener ) ((TdbParserListener)listener).exitAuContainer(this);
		}
	}

	public final AuContainerContext auContainer() throws RecognitionException {
		AuContainerContext _localctx = new AuContainerContext(_ctx, getState());
		enterRule(_localctx, 10, RULE_auContainer);
		int _la;
		try {
			setState(123);
			_errHandler.sync(this);
			switch (_input.LA(1)) {
			case CURLY_OPEN:
				enterOuterAlt(_localctx, 1);
				{
				setState(108);
				match(CURLY_OPEN);
				setState(112);
				_errHandler.sync(this);
				_la = _input.LA(1);
				while (_la==IMPLICIT || _la==IDENTIFIER) {
					{
					{
					setState(109);
					assignment();
					}
					}
					setState(114);
					_errHandler.sync(this);
					_la = _input.LA(1);
				}
				setState(118);
				_errHandler.sync(this);
				_la = _input.LA(1);
				while (_la==AU || _la==CURLY_OPEN) {
					{
					{
					setState(115);
					auContainer();
					}
					}
					setState(120);
					_errHandler.sync(this);
					_la = _input.LA(1);
				}
				setState(121);
				match(CURLY_CLOSE);
				}
				break;
			case AU:
				enterOuterAlt(_localctx, 2);
				{
				setState(122);
				au();
				}
				break;
			default:
				throw new NoViableAltException(this);
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class AuContext extends ParserRuleContext {
		public TerminalNode AU() { return getToken(TdbParser.AU, 0); }
		public TerminalNode ANGLE_OPEN() { return getToken(TdbParser.ANGLE_OPEN, 0); }
		public ListOfStringsContext listOfStrings() {
			return getRuleContext(ListOfStringsContext.class,0);
		}
		public TerminalNode ANGLE_CLOSE() { return getToken(TdbParser.ANGLE_CLOSE, 0); }
		public AuContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_au; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof TdbParserListener ) ((TdbParserListener)listener).enterAu(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof TdbParserListener ) ((TdbParserListener)listener).exitAu(this);
		}
	}

	public final AuContext au() throws RecognitionException {
		AuContext _localctx = new AuContext(_ctx, getState());
		enterRule(_localctx, 12, RULE_au);
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(125);
			match(AU);
			setState(126);
			match(ANGLE_OPEN);
			setState(127);
			listOfStrings();
			setState(128);
			match(ANGLE_CLOSE);
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class AssignmentContext extends ParserRuleContext {
		public SimpleAssignmentContext simpleAssignment() {
			return getRuleContext(SimpleAssignmentContext.class,0);
		}
		public ImplicitContext implicit() {
			return getRuleContext(ImplicitContext.class,0);
		}
		public AssignmentContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_assignment; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof TdbParserListener ) ((TdbParserListener)listener).enterAssignment(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof TdbParserListener ) ((TdbParserListener)listener).exitAssignment(this);
		}
	}

	public final AssignmentContext assignment() throws RecognitionException {
		AssignmentContext _localctx = new AssignmentContext(_ctx, getState());
		enterRule(_localctx, 14, RULE_assignment);
		try {
			setState(132);
			_errHandler.sync(this);
			switch (_input.LA(1)) {
			case IDENTIFIER:
				enterOuterAlt(_localctx, 1);
				{
				setState(130);
				simpleAssignment();
				}
				break;
			case IMPLICIT:
				enterOuterAlt(_localctx, 2);
				{
				setState(131);
				implicit();
				}
				break;
			default:
				throw new NoViableAltException(this);
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class SimpleAssignmentContext extends ParserRuleContext {
		public TerminalNode IDENTIFIER() { return getToken(TdbParser.IDENTIFIER, 0); }
		public TerminalNode EQUALS() { return getToken(TdbParser.EQUALS, 0); }
		public TerminalNode STRING() { return getToken(TdbParser.STRING, 0); }
		public SimpleAssignmentContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_simpleAssignment; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof TdbParserListener ) ((TdbParserListener)listener).enterSimpleAssignment(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof TdbParserListener ) ((TdbParserListener)listener).exitSimpleAssignment(this);
		}
	}

	public final SimpleAssignmentContext simpleAssignment() throws RecognitionException {
		SimpleAssignmentContext _localctx = new SimpleAssignmentContext(_ctx, getState());
		enterRule(_localctx, 16, RULE_simpleAssignment);
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(134);
			match(IDENTIFIER);
			setState(135);
			match(EQUALS);
			setState(136);
			match(STRING);
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class ImplicitContext extends ParserRuleContext {
		public TerminalNode IMPLICIT() { return getToken(TdbParser.IMPLICIT, 0); }
		public TerminalNode ANGLE_OPEN() { return getToken(TdbParser.ANGLE_OPEN, 0); }
		public ListOfIdentifiersContext listOfIdentifiers() {
			return getRuleContext(ListOfIdentifiersContext.class,0);
		}
		public TerminalNode ANGLE_CLOSE() { return getToken(TdbParser.ANGLE_CLOSE, 0); }
		public ImplicitContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_implicit; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof TdbParserListener ) ((TdbParserListener)listener).enterImplicit(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof TdbParserListener ) ((TdbParserListener)listener).exitImplicit(this);
		}
	}

	public final ImplicitContext implicit() throws RecognitionException {
		ImplicitContext _localctx = new ImplicitContext(_ctx, getState());
		enterRule(_localctx, 18, RULE_implicit);
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(138);
			match(IMPLICIT);
			setState(139);
			match(ANGLE_OPEN);
			setState(140);
			listOfIdentifiers();
			setState(141);
			match(ANGLE_CLOSE);
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class ListOfSimpleAssignmentsContext extends ParserRuleContext {
		public List simpleAssignment() {
			return getRuleContexts(SimpleAssignmentContext.class);
		}
		public SimpleAssignmentContext simpleAssignment(int i) {
			return getRuleContext(SimpleAssignmentContext.class,i);
		}
		public List SEMICOLON() { return getTokens(TdbParser.SEMICOLON); }
		public TerminalNode SEMICOLON(int i) {
			return getToken(TdbParser.SEMICOLON, i);
		}
		public ListOfSimpleAssignmentsContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_listOfSimpleAssignments; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof TdbParserListener ) ((TdbParserListener)listener).enterListOfSimpleAssignments(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof TdbParserListener ) ((TdbParserListener)listener).exitListOfSimpleAssignments(this);
		}
	}

	public final ListOfSimpleAssignmentsContext listOfSimpleAssignments() throws RecognitionException {
		ListOfSimpleAssignmentsContext _localctx = new ListOfSimpleAssignmentsContext(_ctx, getState());
		enterRule(_localctx, 20, RULE_listOfSimpleAssignments);
		int _la;
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(143);
			simpleAssignment();
			setState(148);
			_errHandler.sync(this);
			_la = _input.LA(1);
			while (_la==SEMICOLON) {
				{
				{
				setState(144);
				match(SEMICOLON);
				setState(145);
				simpleAssignment();
				}
				}
				setState(150);
				_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 class ListOfStringsContext extends ParserRuleContext {
		public List STRING() { return getTokens(TdbParser.STRING); }
		public TerminalNode STRING(int i) {
			return getToken(TdbParser.STRING, i);
		}
		public List SEMICOLON() { return getTokens(TdbParser.SEMICOLON); }
		public TerminalNode SEMICOLON(int i) {
			return getToken(TdbParser.SEMICOLON, i);
		}
		public ListOfStringsContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_listOfStrings; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof TdbParserListener ) ((TdbParserListener)listener).enterListOfStrings(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof TdbParserListener ) ((TdbParserListener)listener).exitListOfStrings(this);
		}
	}

	public final ListOfStringsContext listOfStrings() throws RecognitionException {
		ListOfStringsContext _localctx = new ListOfStringsContext(_ctx, getState());
		enterRule(_localctx, 22, RULE_listOfStrings);
		int _la;
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(151);
			match(STRING);
			setState(156);
			_errHandler.sync(this);
			_la = _input.LA(1);
			while (_la==SEMICOLON) {
				{
				{
				setState(152);
				match(SEMICOLON);
				setState(153);
				match(STRING);
				}
				}
				setState(158);
				_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 class ListOfIdentifiersContext extends ParserRuleContext {
		public List IDENTIFIER() { return getTokens(TdbParser.IDENTIFIER); }
		public TerminalNode IDENTIFIER(int i) {
			return getToken(TdbParser.IDENTIFIER, i);
		}
		public List SEMICOLON() { return getTokens(TdbParser.SEMICOLON); }
		public TerminalNode SEMICOLON(int i) {
			return getToken(TdbParser.SEMICOLON, i);
		}
		public ListOfIdentifiersContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_listOfIdentifiers; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof TdbParserListener ) ((TdbParserListener)listener).enterListOfIdentifiers(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof TdbParserListener ) ((TdbParserListener)listener).exitListOfIdentifiers(this);
		}
	}

	public final ListOfIdentifiersContext listOfIdentifiers() throws RecognitionException {
		ListOfIdentifiersContext _localctx = new ListOfIdentifiersContext(_ctx, getState());
		enterRule(_localctx, 24, RULE_listOfIdentifiers);
		int _la;
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(159);
			match(IDENTIFIER);
			setState(164);
			_errHandler.sync(this);
			_la = _input.LA(1);
			while (_la==SEMICOLON) {
				{
				{
				setState(160);
				match(SEMICOLON);
				setState(161);
				match(IDENTIFIER);
				}
				}
				setState(166);
				_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 =
		"\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\3\20\u00aa\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\4\16\t\16\3\2\7\2\36\n\2\f\2\16\2!\13\2\3\2\3\2"+
		"\3\3\3\3\7\3\'\n\3\f\3\16\3*\13\3\3\3\7\3-\n\3\f\3\16\3\60\13\3\3\3\3"+
		"\3\3\3\3\3\7\3\66\n\3\f\3\16\39\13\3\3\3\7\3<\n\3\f\3\16\3?\13\3\3\3\3"+
		"\3\5\3C\n\3\3\4\3\4\3\4\3\4\3\4\3\5\3\5\7\5L\n\5\f\5\16\5O\13\5\3\5\7"+
		"\5R\n\5\f\5\16\5U\13\5\3\5\3\5\3\5\3\5\7\5[\n\5\f\5\16\5^\13\5\3\5\7\5"+
		"a\n\5\f\5\16\5d\13\5\3\5\3\5\5\5h\n\5\3\6\3\6\3\6\3\6\3\6\3\7\3\7\7\7"+
		"q\n\7\f\7\16\7t\13\7\3\7\7\7w\n\7\f\7\16\7z\13\7\3\7\3\7\5\7~\n\7\3\b"+
		"\3\b\3\b\3\b\3\b\3\t\3\t\5\t\u0087\n\t\3\n\3\n\3\n\3\n\3\13\3\13\3\13"+
		"\3\13\3\13\3\f\3\f\3\f\7\f\u0095\n\f\f\f\16\f\u0098\13\f\3\r\3\r\3\r\7"+
		"\r\u009d\n\r\f\r\16\r\u00a0\13\r\3\16\3\16\3\16\7\16\u00a5\n\16\f\16\16"+
		"\16\u00a8\13\16\3\16\2\2\17\2\4\6\b\n\f\16\20\22\24\26\30\32\2\2\2\u00ae"+
		"\2\37\3\2\2\2\4B\3\2\2\2\6D\3\2\2\2\bg\3\2\2\2\ni\3\2\2\2\f}\3\2\2\2\16"+
		"\177\3\2\2\2\20\u0086\3\2\2\2\22\u0088\3\2\2\2\24\u008c\3\2\2\2\26\u0091"+
		"\3\2\2\2\30\u0099\3\2\2\2\32\u00a1\3\2\2\2\34\36\5\4\3\2\35\34\3\2\2\2"+
		"\36!\3\2\2\2\37\35\3\2\2\2\37 \3\2\2\2 \"\3\2\2\2!\37\3\2\2\2\"#\7\2\2"+
		"\3#\3\3\2\2\2$(\7\b\2\2%\'\5\20\t\2&%\3\2\2\2\'*\3\2\2\2(&\3\2\2\2()\3"+
		"\2\2\2).\3\2\2\2*(\3\2\2\2+-\5\4\3\2,+\3\2\2\2-\60\3\2\2\2.,\3\2\2\2."+
		"/\3\2\2\2/\61\3\2\2\2\60.\3\2\2\2\61C\7\t\2\2\62\63\7\b\2\2\63\67\5\6"+
		"\4\2\64\66\5\20\t\2\65\64\3\2\2\2\669\3\2\2\2\67\65\3\2\2\2\678\3\2\2"+
		"\28=\3\2\2\29\67\3\2\2\2:<\5\b\5\2;:\3\2\2\2\3\2"+
		"\2\2>@\3\2\2\2?=\3\2\2\2@A\7\t\2\2AC\3\2\2\2B$\3\2\2\2B\62\3\2\2\2C\5"+
		"\3\2\2\2DE\7\4\2\2EF\7\n\2\2FG\5\26\f\2GH\7\13\2\2H\7\3\2\2\2IM\7\b\2"+
		"\2JL\5\20\t\2KJ\3\2\2\2LO\3\2\2\2MK\3\2\2\2MN\3\2\2\2NS\3\2\2\2OM\3\2"+
		"\2\2PR\5\b\5\2QP\3\2\2\2RU\3\2\2\2SQ\3\2\2\2ST\3\2\2\2TV\3\2\2\2US\3\2"+
		"\2\2Vh\7\t\2\2WX\7\b\2\2X\\\5\n\6\2Y[\5\20\t\2ZY\3\2\2\2[^\3\2\2\2\\Z"+
		"\3\2\2\2\\]\3\2\2\2]b\3\2\2\2^\\\3\2\2\2_a\5\f\7\2`_\3\2\2\2ad\3\2\2\2"+
		"b`\3\2\2\2bc\3\2\2\2ce\3\2\2\2db\3\2\2\2ef\7\t\2\2fh\3\2\2\2gI\3\2\2\2"+
		"gW\3\2\2\2h\t\3\2\2\2ij\7\5\2\2jk\7\n\2\2kl\5\26\f\2lm\7\13\2\2m\13\3"+
		"\2\2\2nr\7\b\2\2oq\5\20\t\2po\3\2\2\2qt\3\2\2\2rp\3\2\2\2rs\3\2\2\2sx"+
		"\3\2\2\2tr\3\2\2\2uw\5\f\7\2vu\3\2\2\2wz\3\2\2\2xv\3\2\2\2xy\3\2\2\2y"+
		"{\3\2\2\2zx\3\2\2\2{~\7\t\2\2|~\5\16\b\2}n\3\2\2\2}|\3\2\2\2~\r\3\2\2"+
		"\2\177\u0080\7\6\2\2\u0080\u0081\7\n\2\2\u0081\u0082\5\30\r\2\u0082\u0083"+
		"\7\13\2\2\u0083\17\3\2\2\2\u0084\u0087\5\22\n\2\u0085\u0087\5\24\13\2"+
		"\u0086\u0084\3\2\2\2\u0086\u0085\3\2\2\2\u0087\21\3\2\2\2\u0088\u0089"+
		"\7\16\2\2\u0089\u008a\7\r\2\2\u008a\u008b\7\3\2\2\u008b\23\3\2\2\2\u008c"+
		"\u008d\7\7\2\2\u008d\u008e\7\n\2\2\u008e\u008f\5\32\16\2\u008f\u0090\7"+
		"\13\2\2\u0090\25\3\2\2\2\u0091\u0096\5\22\n\2\u0092\u0093\7\f\2\2\u0093"+
		"\u0095\5\22\n\2\u0094\u0092\3\2\2\2\u0095\u0098\3\2\2\2\u0096\u0094\3"+
		"\2\2\2\u0096\u0097\3\2\2\2\u0097\27\3\2\2\2\u0098\u0096\3\2\2\2\u0099"+
		"\u009e\7\3\2\2\u009a\u009b\7\f\2\2\u009b\u009d\7\3\2\2\u009c\u009a\3\2"+
		"\2\2\u009d\u00a0\3\2\2\2\u009e\u009c\3\2\2\2\u009e\u009f\3\2\2\2\u009f"+
		"\31\3\2\2\2\u00a0\u009e\3\2\2\2\u00a1\u00a6\7\16\2\2\u00a2\u00a3\7\f\2"+
		"\2\u00a3\u00a5\7\16\2\2\u00a4\u00a2\3\2\2\2\u00a5\u00a8\3\2\2\2\u00a6"+
		"\u00a4\3\2\2\2\u00a6\u00a7\3\2\2\2\u00a7\33\3\2\2\2\u00a8\u00a6\3\2\2"+
		"\2\24\37(.\67=BMS\\bgrx}\u0086\u0096\u009e\u00a6";
	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