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

org.opendaylight.yangtools.yang.parser.antlr.LeafRefPathParser Maven / Gradle / Ivy

There is a newer version: 7.0.18
Show newest version
// Generated from org/opendaylight/yangtools/yang/parser/antlr/LeafRefPathParser.g4 by ANTLR 4.9.3
package org.opendaylight.yangtools.yang.parser.antlr;
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 LeafRefPathParser extends Parser {
	static { RuntimeMetaData.checkVersion("4.9.3", RuntimeMetaData.VERSION); }

	protected static final DFA[] _decisionToDFA;
	protected static final PredictionContextCache _sharedContextCache =
		new PredictionContextCache();
	public static final int
		COLON=1, SLASH=2, DOTS=3, EQUAL=4, LEFT_SQUARE_BRACKET=5, RIGHT_SQUARE_BRACKET=6, 
		LEFT_PARENTHESIS=7, RIGHT_PARENTHESIS=8, CURRENT_KEYWORD=9, DEREF_KEYWORD=10, 
		SEP=11, IDENTIFIER=12;
	public static final int
		RULE_path_arg = 0, RULE_deref_expr = 1, RULE_path_str = 2, RULE_absolute_path = 3, 
		RULE_relative_path = 4, RULE_descendant_path = 5, RULE_path_predicate = 6, 
		RULE_path_equality_expr = 7, RULE_path_key_expr = 8, RULE_rel_path_keyexpr = 9, 
		RULE_node_identifier = 10, RULE_current_function_invocation = 11, RULE_deref_function_invocation = 12, 
		RULE_prefix = 13, RULE_identifier = 14;
	private static String[] makeRuleNames() {
		return new String[] {
			"path_arg", "deref_expr", "path_str", "absolute_path", "relative_path", 
			"descendant_path", "path_predicate", "path_equality_expr", "path_key_expr", 
			"rel_path_keyexpr", "node_identifier", "current_function_invocation", 
			"deref_function_invocation", "prefix", "identifier"
		};
	}
	public static final String[] ruleNames = makeRuleNames();

	private static String[] makeLiteralNames() {
		return new String[] {
			null, "':'", "'/'", "'..'", "'='", "'['", "']'", "'('", "')'", "'current'", 
			"'deref'"
		};
	}
	private static final String[] _LITERAL_NAMES = makeLiteralNames();
	private static String[] makeSymbolicNames() {
		return new String[] {
			null, "COLON", "SLASH", "DOTS", "EQUAL", "LEFT_SQUARE_BRACKET", "RIGHT_SQUARE_BRACKET", 
			"LEFT_PARENTHESIS", "RIGHT_PARENTHESIS", "CURRENT_KEYWORD", "DEREF_KEYWORD", 
			"SEP", "IDENTIFIER"
		};
	}
	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 "LeafRefPathParser.g4"; }

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

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

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

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

	public static class Path_argContext extends ParserRuleContext {
		public TerminalNode EOF() { return getToken(LeafRefPathParser.EOF, 0); }
		public Deref_exprContext deref_expr() {
			return getRuleContext(Deref_exprContext.class,0);
		}
		public Path_strContext path_str() {
			return getRuleContext(Path_strContext.class,0);
		}
		public Path_argContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_path_arg; }
		@Override
		public  T accept(ParseTreeVisitor visitor) {
			if ( visitor instanceof LeafRefPathParserVisitor ) return ((LeafRefPathParserVisitor)visitor).visitPath_arg(this);
			else return visitor.visitChildren(this);
		}
	}

	public final Path_argContext path_arg() throws RecognitionException {
		Path_argContext _localctx = new Path_argContext(_ctx, getState());
		enterRule(_localctx, 0, RULE_path_arg);
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(32);
			_errHandler.sync(this);
			switch ( getInterpreter().adaptivePredict(_input,0,_ctx) ) {
			case 1:
				{
				setState(30);
				deref_expr();
				}
				break;
			case 2:
				{
				setState(31);
				path_str();
				}
				break;
			}
			setState(34);
			match(EOF);
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class Deref_exprContext extends ParserRuleContext {
		public Deref_function_invocationContext deref_function_invocation() {
			return getRuleContext(Deref_function_invocationContext.class,0);
		}
		public TerminalNode SLASH() { return getToken(LeafRefPathParser.SLASH, 0); }
		public Relative_pathContext relative_path() {
			return getRuleContext(Relative_pathContext.class,0);
		}
		public List SEP() { return getTokens(LeafRefPathParser.SEP); }
		public TerminalNode SEP(int i) {
			return getToken(LeafRefPathParser.SEP, i);
		}
		public Deref_exprContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_deref_expr; }
		@Override
		public  T accept(ParseTreeVisitor visitor) {
			if ( visitor instanceof LeafRefPathParserVisitor ) return ((LeafRefPathParserVisitor)visitor).visitDeref_expr(this);
			else return visitor.visitChildren(this);
		}
	}

	public final Deref_exprContext deref_expr() throws RecognitionException {
		Deref_exprContext _localctx = new Deref_exprContext(_ctx, getState());
		enterRule(_localctx, 2, RULE_deref_expr);
		int _la;
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(36);
			deref_function_invocation();
			setState(38);
			_errHandler.sync(this);
			_la = _input.LA(1);
			if (_la==SEP) {
				{
				setState(37);
				match(SEP);
				}
			}

			setState(40);
			match(SLASH);
			setState(42);
			_errHandler.sync(this);
			_la = _input.LA(1);
			if (_la==SEP) {
				{
				setState(41);
				match(SEP);
				}
			}

			setState(44);
			relative_path();
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class Path_strContext extends ParserRuleContext {
		public Absolute_pathContext absolute_path() {
			return getRuleContext(Absolute_pathContext.class,0);
		}
		public Relative_pathContext relative_path() {
			return getRuleContext(Relative_pathContext.class,0);
		}
		public Path_strContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_path_str; }
		@Override
		public  T accept(ParseTreeVisitor visitor) {
			if ( visitor instanceof LeafRefPathParserVisitor ) return ((LeafRefPathParserVisitor)visitor).visitPath_str(this);
			else return visitor.visitChildren(this);
		}
	}

	public final Path_strContext path_str() throws RecognitionException {
		Path_strContext _localctx = new Path_strContext(_ctx, getState());
		enterRule(_localctx, 4, RULE_path_str);
		try {
			setState(48);
			_errHandler.sync(this);
			switch (_input.LA(1)) {
			case SLASH:
				enterOuterAlt(_localctx, 1);
				{
				setState(46);
				absolute_path();
				}
				break;
			case DOTS:
			case CURRENT_KEYWORD:
			case DEREF_KEYWORD:
			case IDENTIFIER:
				enterOuterAlt(_localctx, 2);
				{
				setState(47);
				relative_path();
				}
				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 Absolute_pathContext extends ParserRuleContext {
		public List SLASH() { return getTokens(LeafRefPathParser.SLASH); }
		public TerminalNode SLASH(int i) {
			return getToken(LeafRefPathParser.SLASH, i);
		}
		public List node_identifier() {
			return getRuleContexts(Node_identifierContext.class);
		}
		public Node_identifierContext node_identifier(int i) {
			return getRuleContext(Node_identifierContext.class,i);
		}
		public List path_predicate() {
			return getRuleContexts(Path_predicateContext.class);
		}
		public Path_predicateContext path_predicate(int i) {
			return getRuleContext(Path_predicateContext.class,i);
		}
		public Absolute_pathContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_absolute_path; }
		@Override
		public  T accept(ParseTreeVisitor visitor) {
			if ( visitor instanceof LeafRefPathParserVisitor ) return ((LeafRefPathParserVisitor)visitor).visitAbsolute_path(this);
			else return visitor.visitChildren(this);
		}
	}

	public final Absolute_pathContext absolute_path() throws RecognitionException {
		Absolute_pathContext _localctx = new Absolute_pathContext(_ctx, getState());
		enterRule(_localctx, 6, RULE_absolute_path);
		int _la;
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(58); 
			_errHandler.sync(this);
			_la = _input.LA(1);
			do {
				{
				{
				setState(50);
				match(SLASH);
				setState(51);
				node_identifier();
				setState(55);
				_errHandler.sync(this);
				_la = _input.LA(1);
				while (_la==LEFT_SQUARE_BRACKET) {
					{
					{
					setState(52);
					path_predicate();
					}
					}
					setState(57);
					_errHandler.sync(this);
					_la = _input.LA(1);
				}
				}
				}
				setState(60); 
				_errHandler.sync(this);
				_la = _input.LA(1);
			} while ( _la==SLASH );
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class Relative_pathContext extends ParserRuleContext {
		public Descendant_pathContext descendant_path() {
			return getRuleContext(Descendant_pathContext.class,0);
		}
		public List DOTS() { return getTokens(LeafRefPathParser.DOTS); }
		public TerminalNode DOTS(int i) {
			return getToken(LeafRefPathParser.DOTS, i);
		}
		public List SLASH() { return getTokens(LeafRefPathParser.SLASH); }
		public TerminalNode SLASH(int i) {
			return getToken(LeafRefPathParser.SLASH, i);
		}
		public Relative_pathContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_relative_path; }
		@Override
		public  T accept(ParseTreeVisitor visitor) {
			if ( visitor instanceof LeafRefPathParserVisitor ) return ((LeafRefPathParserVisitor)visitor).visitRelative_path(this);
			else return visitor.visitChildren(this);
		}
	}

	public final Relative_pathContext relative_path() throws RecognitionException {
		Relative_pathContext _localctx = new Relative_pathContext(_ctx, getState());
		enterRule(_localctx, 8, RULE_relative_path);
		int _la;
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(66);
			_errHandler.sync(this);
			_la = _input.LA(1);
			while (_la==DOTS) {
				{
				{
				setState(62);
				match(DOTS);
				setState(63);
				match(SLASH);
				}
				}
				setState(68);
				_errHandler.sync(this);
				_la = _input.LA(1);
			}
			setState(69);
			descendant_path();
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class Descendant_pathContext extends ParserRuleContext {
		public Node_identifierContext node_identifier() {
			return getRuleContext(Node_identifierContext.class,0);
		}
		public Absolute_pathContext absolute_path() {
			return getRuleContext(Absolute_pathContext.class,0);
		}
		public List path_predicate() {
			return getRuleContexts(Path_predicateContext.class);
		}
		public Path_predicateContext path_predicate(int i) {
			return getRuleContext(Path_predicateContext.class,i);
		}
		public Descendant_pathContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_descendant_path; }
		@Override
		public  T accept(ParseTreeVisitor visitor) {
			if ( visitor instanceof LeafRefPathParserVisitor ) return ((LeafRefPathParserVisitor)visitor).visitDescendant_path(this);
			else return visitor.visitChildren(this);
		}
	}

	public final Descendant_pathContext descendant_path() throws RecognitionException {
		Descendant_pathContext _localctx = new Descendant_pathContext(_ctx, getState());
		enterRule(_localctx, 10, RULE_descendant_path);
		int _la;
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(71);
			node_identifier();
			setState(79);
			_errHandler.sync(this);
			_la = _input.LA(1);
			if (_la==SLASH || _la==LEFT_SQUARE_BRACKET) {
				{
				setState(75);
				_errHandler.sync(this);
				_la = _input.LA(1);
				while (_la==LEFT_SQUARE_BRACKET) {
					{
					{
					setState(72);
					path_predicate();
					}
					}
					setState(77);
					_errHandler.sync(this);
					_la = _input.LA(1);
				}
				setState(78);
				absolute_path();
				}
			}

			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class Path_predicateContext extends ParserRuleContext {
		public TerminalNode LEFT_SQUARE_BRACKET() { return getToken(LeafRefPathParser.LEFT_SQUARE_BRACKET, 0); }
		public Path_equality_exprContext path_equality_expr() {
			return getRuleContext(Path_equality_exprContext.class,0);
		}
		public TerminalNode RIGHT_SQUARE_BRACKET() { return getToken(LeafRefPathParser.RIGHT_SQUARE_BRACKET, 0); }
		public List SEP() { return getTokens(LeafRefPathParser.SEP); }
		public TerminalNode SEP(int i) {
			return getToken(LeafRefPathParser.SEP, i);
		}
		public Path_predicateContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_path_predicate; }
		@Override
		public  T accept(ParseTreeVisitor visitor) {
			if ( visitor instanceof LeafRefPathParserVisitor ) return ((LeafRefPathParserVisitor)visitor).visitPath_predicate(this);
			else return visitor.visitChildren(this);
		}
	}

	public final Path_predicateContext path_predicate() throws RecognitionException {
		Path_predicateContext _localctx = new Path_predicateContext(_ctx, getState());
		enterRule(_localctx, 12, RULE_path_predicate);
		int _la;
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(81);
			match(LEFT_SQUARE_BRACKET);
			setState(83);
			_errHandler.sync(this);
			_la = _input.LA(1);
			if (_la==SEP) {
				{
				setState(82);
				match(SEP);
				}
			}

			setState(85);
			path_equality_expr();
			setState(87);
			_errHandler.sync(this);
			_la = _input.LA(1);
			if (_la==SEP) {
				{
				setState(86);
				match(SEP);
				}
			}

			setState(89);
			match(RIGHT_SQUARE_BRACKET);
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class Path_equality_exprContext extends ParserRuleContext {
		public Node_identifierContext node_identifier() {
			return getRuleContext(Node_identifierContext.class,0);
		}
		public TerminalNode EQUAL() { return getToken(LeafRefPathParser.EQUAL, 0); }
		public Path_key_exprContext path_key_expr() {
			return getRuleContext(Path_key_exprContext.class,0);
		}
		public List SEP() { return getTokens(LeafRefPathParser.SEP); }
		public TerminalNode SEP(int i) {
			return getToken(LeafRefPathParser.SEP, i);
		}
		public Path_equality_exprContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_path_equality_expr; }
		@Override
		public  T accept(ParseTreeVisitor visitor) {
			if ( visitor instanceof LeafRefPathParserVisitor ) return ((LeafRefPathParserVisitor)visitor).visitPath_equality_expr(this);
			else return visitor.visitChildren(this);
		}
	}

	public final Path_equality_exprContext path_equality_expr() throws RecognitionException {
		Path_equality_exprContext _localctx = new Path_equality_exprContext(_ctx, getState());
		enterRule(_localctx, 14, RULE_path_equality_expr);
		int _la;
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(91);
			node_identifier();
			setState(93);
			_errHandler.sync(this);
			_la = _input.LA(1);
			if (_la==SEP) {
				{
				setState(92);
				match(SEP);
				}
			}

			setState(95);
			match(EQUAL);
			setState(97);
			_errHandler.sync(this);
			_la = _input.LA(1);
			if (_la==SEP) {
				{
				setState(96);
				match(SEP);
				}
			}

			setState(99);
			path_key_expr();
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class Path_key_exprContext extends ParserRuleContext {
		public Current_function_invocationContext current_function_invocation() {
			return getRuleContext(Current_function_invocationContext.class,0);
		}
		public TerminalNode SLASH() { return getToken(LeafRefPathParser.SLASH, 0); }
		public Rel_path_keyexprContext rel_path_keyexpr() {
			return getRuleContext(Rel_path_keyexprContext.class,0);
		}
		public List SEP() { return getTokens(LeafRefPathParser.SEP); }
		public TerminalNode SEP(int i) {
			return getToken(LeafRefPathParser.SEP, i);
		}
		public Path_key_exprContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_path_key_expr; }
		@Override
		public  T accept(ParseTreeVisitor visitor) {
			if ( visitor instanceof LeafRefPathParserVisitor ) return ((LeafRefPathParserVisitor)visitor).visitPath_key_expr(this);
			else return visitor.visitChildren(this);
		}
	}

	public final Path_key_exprContext path_key_expr() throws RecognitionException {
		Path_key_exprContext _localctx = new Path_key_exprContext(_ctx, getState());
		enterRule(_localctx, 16, RULE_path_key_expr);
		int _la;
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(101);
			current_function_invocation();
			setState(103);
			_errHandler.sync(this);
			_la = _input.LA(1);
			if (_la==SEP) {
				{
				setState(102);
				match(SEP);
				}
			}

			setState(105);
			match(SLASH);
			setState(107);
			_errHandler.sync(this);
			_la = _input.LA(1);
			if (_la==SEP) {
				{
				setState(106);
				match(SEP);
				}
			}

			setState(109);
			rel_path_keyexpr();
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class Rel_path_keyexprContext extends ParserRuleContext {
		public List node_identifier() {
			return getRuleContexts(Node_identifierContext.class);
		}
		public Node_identifierContext node_identifier(int i) {
			return getRuleContext(Node_identifierContext.class,i);
		}
		public List DOTS() { return getTokens(LeafRefPathParser.DOTS); }
		public TerminalNode DOTS(int i) {
			return getToken(LeafRefPathParser.DOTS, i);
		}
		public List SLASH() { return getTokens(LeafRefPathParser.SLASH); }
		public TerminalNode SLASH(int i) {
			return getToken(LeafRefPathParser.SLASH, i);
		}
		public List SEP() { return getTokens(LeafRefPathParser.SEP); }
		public TerminalNode SEP(int i) {
			return getToken(LeafRefPathParser.SEP, i);
		}
		public Rel_path_keyexprContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_rel_path_keyexpr; }
		@Override
		public  T accept(ParseTreeVisitor visitor) {
			if ( visitor instanceof LeafRefPathParserVisitor ) return ((LeafRefPathParserVisitor)visitor).visitRel_path_keyexpr(this);
			else return visitor.visitChildren(this);
		}
	}

	public final Rel_path_keyexprContext rel_path_keyexpr() throws RecognitionException {
		Rel_path_keyexprContext _localctx = new Rel_path_keyexprContext(_ctx, getState());
		enterRule(_localctx, 18, RULE_rel_path_keyexpr);
		int _la;
		try {
			int _alt;
			enterOuterAlt(_localctx, 1);
			{
			setState(121);
			_errHandler.sync(this);
			_la = _input.LA(1);
			while (_la==DOTS) {
				{
				{
				setState(111);
				match(DOTS);
				setState(113);
				_errHandler.sync(this);
				_la = _input.LA(1);
				if (_la==SEP) {
					{
					setState(112);
					match(SEP);
					}
				}

				setState(115);
				match(SLASH);
				setState(117);
				_errHandler.sync(this);
				_la = _input.LA(1);
				if (_la==SEP) {
					{
					setState(116);
					match(SEP);
					}
				}

				}
				}
				setState(123);
				_errHandler.sync(this);
				_la = _input.LA(1);
			}
			setState(134);
			_errHandler.sync(this);
			_alt = getInterpreter().adaptivePredict(_input,20,_ctx);
			while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
				if ( _alt==1 ) {
					{
					{
					setState(124);
					node_identifier();
					setState(126);
					_errHandler.sync(this);
					_la = _input.LA(1);
					if (_la==SEP) {
						{
						setState(125);
						match(SEP);
						}
					}

					setState(128);
					match(SLASH);
					setState(130);
					_errHandler.sync(this);
					_la = _input.LA(1);
					if (_la==SEP) {
						{
						setState(129);
						match(SEP);
						}
					}

					}
					} 
				}
				setState(136);
				_errHandler.sync(this);
				_alt = getInterpreter().adaptivePredict(_input,20,_ctx);
			}
			setState(137);
			node_identifier();
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class Node_identifierContext extends ParserRuleContext {
		public IdentifierContext identifier() {
			return getRuleContext(IdentifierContext.class,0);
		}
		public PrefixContext prefix() {
			return getRuleContext(PrefixContext.class,0);
		}
		public TerminalNode COLON() { return getToken(LeafRefPathParser.COLON, 0); }
		public Node_identifierContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_node_identifier; }
		@Override
		public  T accept(ParseTreeVisitor visitor) {
			if ( visitor instanceof LeafRefPathParserVisitor ) return ((LeafRefPathParserVisitor)visitor).visitNode_identifier(this);
			else return visitor.visitChildren(this);
		}
	}

	public final Node_identifierContext node_identifier() throws RecognitionException {
		Node_identifierContext _localctx = new Node_identifierContext(_ctx, getState());
		enterRule(_localctx, 20, RULE_node_identifier);
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(142);
			_errHandler.sync(this);
			switch ( getInterpreter().adaptivePredict(_input,21,_ctx) ) {
			case 1:
				{
				setState(139);
				prefix();
				setState(140);
				match(COLON);
				}
				break;
			}
			setState(144);
			identifier();
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class Current_function_invocationContext extends ParserRuleContext {
		public TerminalNode CURRENT_KEYWORD() { return getToken(LeafRefPathParser.CURRENT_KEYWORD, 0); }
		public TerminalNode LEFT_PARENTHESIS() { return getToken(LeafRefPathParser.LEFT_PARENTHESIS, 0); }
		public TerminalNode RIGHT_PARENTHESIS() { return getToken(LeafRefPathParser.RIGHT_PARENTHESIS, 0); }
		public List SEP() { return getTokens(LeafRefPathParser.SEP); }
		public TerminalNode SEP(int i) {
			return getToken(LeafRefPathParser.SEP, i);
		}
		public Current_function_invocationContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_current_function_invocation; }
		@Override
		public  T accept(ParseTreeVisitor visitor) {
			if ( visitor instanceof LeafRefPathParserVisitor ) return ((LeafRefPathParserVisitor)visitor).visitCurrent_function_invocation(this);
			else return visitor.visitChildren(this);
		}
	}

	public final Current_function_invocationContext current_function_invocation() throws RecognitionException {
		Current_function_invocationContext _localctx = new Current_function_invocationContext(_ctx, getState());
		enterRule(_localctx, 22, RULE_current_function_invocation);
		int _la;
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(146);
			match(CURRENT_KEYWORD);
			setState(148);
			_errHandler.sync(this);
			_la = _input.LA(1);
			if (_la==SEP) {
				{
				setState(147);
				match(SEP);
				}
			}

			setState(150);
			match(LEFT_PARENTHESIS);
			setState(152);
			_errHandler.sync(this);
			_la = _input.LA(1);
			if (_la==SEP) {
				{
				setState(151);
				match(SEP);
				}
			}

			setState(154);
			match(RIGHT_PARENTHESIS);
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class Deref_function_invocationContext extends ParserRuleContext {
		public TerminalNode DEREF_KEYWORD() { return getToken(LeafRefPathParser.DEREF_KEYWORD, 0); }
		public TerminalNode LEFT_PARENTHESIS() { return getToken(LeafRefPathParser.LEFT_PARENTHESIS, 0); }
		public Relative_pathContext relative_path() {
			return getRuleContext(Relative_pathContext.class,0);
		}
		public TerminalNode RIGHT_PARENTHESIS() { return getToken(LeafRefPathParser.RIGHT_PARENTHESIS, 0); }
		public List SEP() { return getTokens(LeafRefPathParser.SEP); }
		public TerminalNode SEP(int i) {
			return getToken(LeafRefPathParser.SEP, i);
		}
		public Deref_function_invocationContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_deref_function_invocation; }
		@Override
		public  T accept(ParseTreeVisitor visitor) {
			if ( visitor instanceof LeafRefPathParserVisitor ) return ((LeafRefPathParserVisitor)visitor).visitDeref_function_invocation(this);
			else return visitor.visitChildren(this);
		}
	}

	public final Deref_function_invocationContext deref_function_invocation() throws RecognitionException {
		Deref_function_invocationContext _localctx = new Deref_function_invocationContext(_ctx, getState());
		enterRule(_localctx, 24, RULE_deref_function_invocation);
		int _la;
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(156);
			match(DEREF_KEYWORD);
			setState(158);
			_errHandler.sync(this);
			_la = _input.LA(1);
			if (_la==SEP) {
				{
				setState(157);
				match(SEP);
				}
			}

			setState(160);
			match(LEFT_PARENTHESIS);
			setState(162);
			_errHandler.sync(this);
			_la = _input.LA(1);
			if (_la==SEP) {
				{
				setState(161);
				match(SEP);
				}
			}

			setState(164);
			relative_path();
			setState(166);
			_errHandler.sync(this);
			_la = _input.LA(1);
			if (_la==SEP) {
				{
				setState(165);
				match(SEP);
				}
			}

			setState(168);
			match(RIGHT_PARENTHESIS);
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class PrefixContext extends ParserRuleContext {
		public IdentifierContext identifier() {
			return getRuleContext(IdentifierContext.class,0);
		}
		public PrefixContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_prefix; }
		@Override
		public  T accept(ParseTreeVisitor visitor) {
			if ( visitor instanceof LeafRefPathParserVisitor ) return ((LeafRefPathParserVisitor)visitor).visitPrefix(this);
			else return visitor.visitChildren(this);
		}
	}

	public final PrefixContext prefix() throws RecognitionException {
		PrefixContext _localctx = new PrefixContext(_ctx, getState());
		enterRule(_localctx, 26, RULE_prefix);
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(170);
			identifier();
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class IdentifierContext extends ParserRuleContext {
		public TerminalNode IDENTIFIER() { return getToken(LeafRefPathParser.IDENTIFIER, 0); }
		public TerminalNode CURRENT_KEYWORD() { return getToken(LeafRefPathParser.CURRENT_KEYWORD, 0); }
		public TerminalNode DEREF_KEYWORD() { return getToken(LeafRefPathParser.DEREF_KEYWORD, 0); }
		public IdentifierContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_identifier; }
		@Override
		public  T accept(ParseTreeVisitor visitor) {
			if ( visitor instanceof LeafRefPathParserVisitor ) return ((LeafRefPathParserVisitor)visitor).visitIdentifier(this);
			else return visitor.visitChildren(this);
		}
	}

	public final IdentifierContext identifier() throws RecognitionException {
		IdentifierContext _localctx = new IdentifierContext(_ctx, getState());
		enterRule(_localctx, 28, RULE_identifier);
		int _la;
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(172);
			_la = _input.LA(1);
			if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << CURRENT_KEYWORD) | (1L << DEREF_KEYWORD) | (1L << IDENTIFIER))) != 0)) ) {
			_errHandler.recoverInline(this);
			}
			else {
				if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
				_errHandler.reportMatch(this);
				consume();
			}
			}
		}
		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\16\u00b1\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\4\17\t\17\4\20\t\20\3\2\3\2\5\2#\n\2\3"+
		"\2\3\2\3\3\3\3\5\3)\n\3\3\3\3\3\5\3-\n\3\3\3\3\3\3\4\3\4\5\4\63\n\4\3"+
		"\5\3\5\3\5\7\58\n\5\f\5\16\5;\13\5\6\5=\n\5\r\5\16\5>\3\6\3\6\7\6C\n\6"+
		"\f\6\16\6F\13\6\3\6\3\6\3\7\3\7\7\7L\n\7\f\7\16\7O\13\7\3\7\5\7R\n\7\3"+
		"\b\3\b\5\bV\n\b\3\b\3\b\5\bZ\n\b\3\b\3\b\3\t\3\t\5\t`\n\t\3\t\3\t\5\t"+
		"d\n\t\3\t\3\t\3\n\3\n\5\nj\n\n\3\n\3\n\5\nn\n\n\3\n\3\n\3\13\3\13\5\13"+
		"t\n\13\3\13\3\13\5\13x\n\13\7\13z\n\13\f\13\16\13}\13\13\3\13\3\13\5\13"+
		"\u0081\n\13\3\13\3\13\5\13\u0085\n\13\7\13\u0087\n\13\f\13\16\13\u008a"+
		"\13\13\3\13\3\13\3\f\3\f\3\f\5\f\u0091\n\f\3\f\3\f\3\r\3\r\5\r\u0097\n"+
		"\r\3\r\3\r\5\r\u009b\n\r\3\r\3\r\3\16\3\16\5\16\u00a1\n\16\3\16\3\16\5"+
		"\16\u00a5\n\16\3\16\3\16\5\16\u00a9\n\16\3\16\3\16\3\17\3\17\3\20\3\20"+
		"\3\20\2\2\21\2\4\6\b\n\f\16\20\22\24\26\30\32\34\36\2\3\4\2\13\f\16\16"+
		"\2\u00bc\2\"\3\2\2\2\4&\3\2\2\2\6\62\3\2\2\2\b<\3\2\2\2\nD\3\2\2\2\fI"+
		"\3\2\2\2\16S\3\2\2\2\20]\3\2\2\2\22g\3\2\2\2\24{\3\2\2\2\26\u0090\3\2"+
		"\2\2\30\u0094\3\2\2\2\32\u009e\3\2\2\2\34\u00ac\3\2\2\2\36\u00ae\3\2\2"+
		"\2 #\5\4\3\2!#\5\6\4\2\" \3\2\2\2\"!\3\2\2\2#$\3\2\2\2$%\7\2\2\3%\3\3"+
		"\2\2\2&(\5\32\16\2\')\7\r\2\2(\'\3\2\2\2()\3\2\2\2)*\3\2\2\2*,\7\4\2\2"+
		"+-\7\r\2\2,+\3\2\2\2,-\3\2\2\2-.\3\2\2\2./\5\n\6\2/\5\3\2\2\2\60\63\5"+
		"\b\5\2\61\63\5\n\6\2\62\60\3\2\2\2\62\61\3\2\2\2\63\7\3\2\2\2\64\65\7"+
		"\4\2\2\659\5\26\f\2\668\5\16\b\2\67\66\3\2\2\28;\3\2\2\29\67\3\2\2\29"+
		":\3\2\2\2:=\3\2\2\2;9\3\2\2\2<\64\3\2\2\2=>\3\2\2\2><\3\2\2\2>?\3\2\2"+
		"\2?\t\3\2\2\2@A\7\5\2\2AC\7\4\2\2B@\3\2\2\2CF\3\2\2\2DB\3\2\2\2DE\3\2"+
		"\2\2EG\3\2\2\2FD\3\2\2\2GH\5\f\7\2H\13\3\2\2\2IQ\5\26\f\2JL\5\16\b\2K"+
		"J\3\2\2\2LO\3\2\2\2MK\3\2\2\2MN\3\2\2\2NP\3\2\2\2OM\3\2\2\2PR\5\b\5\2"+
		"QM\3\2\2\2QR\3\2\2\2R\r\3\2\2\2SU\7\7\2\2TV\7\r\2\2UT\3\2\2\2UV\3\2\2"+
		"\2VW\3\2\2\2WY\5\20\t\2XZ\7\r\2\2YX\3\2\2\2YZ\3\2\2\2Z[\3\2\2\2[\\\7\b"+
		"\2\2\\\17\3\2\2\2]_\5\26\f\2^`\7\r\2\2_^\3\2\2\2_`\3\2\2\2`a\3\2\2\2a"+
		"c\7\6\2\2bd\7\r\2\2cb\3\2\2\2cd\3\2\2\2de\3\2\2\2ef\5\22\n\2f\21\3\2\2"+
		"\2gi\5\30\r\2hj\7\r\2\2ih\3\2\2\2ij\3\2\2\2jk\3\2\2\2km\7\4\2\2ln\7\r"+
		"\2\2ml\3\2\2\2mn\3\2\2\2no\3\2\2\2op\5\24\13\2p\23\3\2\2\2qs\7\5\2\2r"+
		"t\7\r\2\2sr\3\2\2\2st\3\2\2\2tu\3\2\2\2uw\7\4\2\2vx\7\r\2\2wv\3\2\2\2"+
		"wx\3\2\2\2xz\3\2\2\2yq\3\2\2\2z}\3\2\2\2{y\3\2\2\2{|\3\2\2\2|\u0088\3"+
		"\2\2\2}{\3\2\2\2~\u0080\5\26\f\2\177\u0081\7\r\2\2\u0080\177\3\2\2\2\u0080"+
		"\u0081\3\2\2\2\u0081\u0082\3\2\2\2\u0082\u0084\7\4\2\2\u0083\u0085\7\r"+
		"\2\2\u0084\u0083\3\2\2\2\u0084\u0085\3\2\2\2\u0085\u0087\3\2\2\2\u0086"+
		"~\3\2\2\2\u0087\u008a\3\2\2\2\u0088\u0086\3\2\2\2\u0088\u0089\3\2\2\2"+
		"\u0089\u008b\3\2\2\2\u008a\u0088\3\2\2\2\u008b\u008c\5\26\f\2\u008c\25"+
		"\3\2\2\2\u008d\u008e\5\34\17\2\u008e\u008f\7\3\2\2\u008f\u0091\3\2\2\2"+
		"\u0090\u008d\3\2\2\2\u0090\u0091\3\2\2\2\u0091\u0092\3\2\2\2\u0092\u0093"+
		"\5\36\20\2\u0093\27\3\2\2\2\u0094\u0096\7\13\2\2\u0095\u0097\7\r\2\2\u0096"+
		"\u0095\3\2\2\2\u0096\u0097\3\2\2\2\u0097\u0098\3\2\2\2\u0098\u009a\7\t"+
		"\2\2\u0099\u009b\7\r\2\2\u009a\u0099\3\2\2\2\u009a\u009b\3\2\2\2\u009b"+
		"\u009c\3\2\2\2\u009c\u009d\7\n\2\2\u009d\31\3\2\2\2\u009e\u00a0\7\f\2"+
		"\2\u009f\u00a1\7\r\2\2\u00a0\u009f\3\2\2\2\u00a0\u00a1\3\2\2\2\u00a1\u00a2"+
		"\3\2\2\2\u00a2\u00a4\7\t\2\2\u00a3\u00a5\7\r\2\2\u00a4\u00a3\3\2\2\2\u00a4"+
		"\u00a5\3\2\2\2\u00a5\u00a6\3\2\2\2\u00a6\u00a8\5\n\6\2\u00a7\u00a9\7\r"+
		"\2\2\u00a8\u00a7\3\2\2\2\u00a8\u00a9\3\2\2\2\u00a9\u00aa\3\2\2\2\u00aa"+
		"\u00ab\7\n\2\2\u00ab\33\3\2\2\2\u00ac\u00ad\5\36\20\2\u00ad\35\3\2\2\2"+
		"\u00ae\u00af\t\2\2\2\u00af\37\3\2\2\2\35\"(,\629>DMQUY_cimsw{\u0080\u0084"+
		"\u0088\u0090\u0096\u009a\u00a0\u00a4\u00a8";
	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