org.opendaylight.yangtools.yang.parser.antlr.LeafRefPathLexer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yang-parser-rfc7950 Show documentation
Show all versions of yang-parser-rfc7950 Show documentation
RFC6020/RFC7950 parser support
// Generated from org/opendaylight/yangtools/yang/parser/antlr/LeafRefPathLexer.g4 by ANTLR 4.13.2
package org.opendaylight.yangtools.yang.parser.antlr;
import org.antlr.v4.runtime.Lexer;
import org.antlr.v4.runtime.CharStream;
import org.antlr.v4.runtime.Token;
import org.antlr.v4.runtime.TokenStream;
import org.antlr.v4.runtime.*;
import org.antlr.v4.runtime.atn.*;
import org.antlr.v4.runtime.dfa.DFA;
import org.antlr.v4.runtime.misc.*;
@SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast", "CheckReturnValue", "this-escape"})
public class LeafRefPathLexer extends Lexer {
static { RuntimeMetaData.checkVersion("4.13.2", 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 String[] channelNames = {
"DEFAULT_TOKEN_CHANNEL", "HIDDEN"
};
public static String[] modeNames = {
"DEFAULT_MODE"
};
private static String[] makeRuleNames() {
return new String[] {
"COLON", "SLASH", "DOTS", "EQUAL", "LEFT_SQUARE_BRACKET", "RIGHT_SQUARE_BRACKET",
"LEFT_PARENTHESIS", "RIGHT_PARENTHESIS", "CURRENT_KEYWORD", "DEREF_KEYWORD",
"SEP", "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;
}
public LeafRefPathLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
}
@Override
public String getGrammarFileName() { return "LeafRefPathLexer.g4"; }
@Override
public String[] getRuleNames() { return ruleNames; }
@Override
public String getSerializedATN() { return _serializedATN; }
@Override
public String[] getChannelNames() { return channelNames; }
@Override
public String[] getModeNames() { return modeNames; }
@Override
public ATN getATN() { return _ATN; }
public static final String _serializedATN =
"\u0004\u0000\fD\u0006\uffff\uffff\u0002\u0000\u0007\u0000\u0002\u0001"+
"\u0007\u0001\u0002\u0002\u0007\u0002\u0002\u0003\u0007\u0003\u0002\u0004"+
"\u0007\u0004\u0002\u0005\u0007\u0005\u0002\u0006\u0007\u0006\u0002\u0007"+
"\u0007\u0007\u0002\b\u0007\b\u0002\t\u0007\t\u0002\n\u0007\n\u0002\u000b"+
"\u0007\u000b\u0001\u0000\u0001\u0000\u0001\u0001\u0001\u0001\u0001\u0002"+
"\u0001\u0002\u0001\u0002\u0001\u0003\u0001\u0003\u0001\u0004\u0001\u0004"+
"\u0001\u0005\u0001\u0005\u0001\u0006\u0001\u0006\u0001\u0007\u0001\u0007"+
"\u0001\b\u0001\b\u0001\b\u0001\b\u0001\b\u0001\b\u0001\b\u0001\b\u0001"+
"\t\u0001\t\u0001\t\u0001\t\u0001\t\u0001\t\u0001\n\u0004\n:\b\n\u000b"+
"\n\f\n;\u0001\u000b\u0001\u000b\u0005\u000b@\b\u000b\n\u000b\f\u000bC"+
"\t\u000b\u0000\u0000\f\u0001\u0001\u0003\u0002\u0005\u0003\u0007\u0004"+
"\t\u0005\u000b\u0006\r\u0007\u000f\b\u0011\t\u0013\n\u0015\u000b\u0017"+
"\f\u0001\u0000\u0003\u0003\u0000\t\n\r\r \u0003\u0000AZ__az\u0005\u0000"+
"-.09AZ__azE\u0000\u0001\u0001\u0000\u0000\u0000\u0000\u0003\u0001\u0000"+
"\u0000\u0000\u0000\u0005\u0001\u0000\u0000\u0000\u0000\u0007\u0001\u0000"+
"\u0000\u0000\u0000\t\u0001\u0000\u0000\u0000\u0000\u000b\u0001\u0000\u0000"+
"\u0000\u0000\r\u0001\u0000\u0000\u0000\u0000\u000f\u0001\u0000\u0000\u0000"+
"\u0000\u0011\u0001\u0000\u0000\u0000\u0000\u0013\u0001\u0000\u0000\u0000"+
"\u0000\u0015\u0001\u0000\u0000\u0000\u0000\u0017\u0001\u0000\u0000\u0000"+
"\u0001\u0019\u0001\u0000\u0000\u0000\u0003\u001b\u0001\u0000\u0000\u0000"+
"\u0005\u001d\u0001\u0000\u0000\u0000\u0007 \u0001\u0000\u0000\u0000\t"+
"\"\u0001\u0000\u0000\u0000\u000b$\u0001\u0000\u0000\u0000\r&\u0001\u0000"+
"\u0000\u0000\u000f(\u0001\u0000\u0000\u0000\u0011*\u0001\u0000\u0000\u0000"+
"\u00132\u0001\u0000\u0000\u0000\u00159\u0001\u0000\u0000\u0000\u0017="+
"\u0001\u0000\u0000\u0000\u0019\u001a\u0005:\u0000\u0000\u001a\u0002\u0001"+
"\u0000\u0000\u0000\u001b\u001c\u0005/\u0000\u0000\u001c\u0004\u0001\u0000"+
"\u0000\u0000\u001d\u001e\u0005.\u0000\u0000\u001e\u001f\u0005.\u0000\u0000"+
"\u001f\u0006\u0001\u0000\u0000\u0000 !\u0005=\u0000\u0000!\b\u0001\u0000"+
"\u0000\u0000\"#\u0005[\u0000\u0000#\n\u0001\u0000\u0000\u0000$%\u0005"+
"]\u0000\u0000%\f\u0001\u0000\u0000\u0000&\'\u0005(\u0000\u0000\'\u000e"+
"\u0001\u0000\u0000\u0000()\u0005)\u0000\u0000)\u0010\u0001\u0000\u0000"+
"\u0000*+\u0005c\u0000\u0000+,\u0005u\u0000\u0000,-\u0005r\u0000\u0000"+
"-.\u0005r\u0000\u0000./\u0005e\u0000\u0000/0\u0005n\u0000\u000001\u0005"+
"t\u0000\u00001\u0012\u0001\u0000\u0000\u000023\u0005d\u0000\u000034\u0005"+
"e\u0000\u000045\u0005r\u0000\u000056\u0005e\u0000\u000067\u0005f\u0000"+
"\u00007\u0014\u0001\u0000\u0000\u00008:\u0007\u0000\u0000\u000098\u0001"+
"\u0000\u0000\u0000:;\u0001\u0000\u0000\u0000;9\u0001\u0000\u0000\u0000"+
";<\u0001\u0000\u0000\u0000<\u0016\u0001\u0000\u0000\u0000=A\u0007\u0001"+
"\u0000\u0000>@\u0007\u0002\u0000\u0000?>\u0001\u0000\u0000\u0000@C\u0001"+
"\u0000\u0000\u0000A?\u0001\u0000\u0000\u0000AB\u0001\u0000\u0000\u0000"+
"B\u0018\u0001\u0000\u0000\u0000CA\u0001\u0000\u0000\u0000\u0003\u0000"+
";A\u0000";
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);
}
}
}