org.opendaylight.yangtools.yang.parser.antlr.YangStatementLexer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yang-parser-antlr Show documentation
Show all versions of yang-parser-antlr Show documentation
RFC6020/RFC7950 ANTLR grammars
// Generated from org/opendaylight/yangtools/yang/parser/antlr/YangStatementLexer.g4 by ANTLR 4.9.3
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"})
public class YangStatementLexer extends Lexer {
static { RuntimeMetaData.checkVersion("4.9.3", RuntimeMetaData.VERSION); }
protected static final DFA[] _decisionToDFA;
protected static final PredictionContextCache _sharedContextCache =
new PredictionContextCache();
public static final int
SEMICOLON=1, LEFT_BRACE=2, RIGHT_BRACE=3, SEP=4, IDENTIFIER=5, COLON=6,
PLUS=7, SLASH=8, STAR=9, DQUOT_STRING=10, SQUOT_STRING=11, UQUOT_STRING=12,
LINE_COMMENT=13, BLOCK_COMMENT=14, DQUOT_START=15, SQUOT_START=16, DQUOT_END=17,
SQUOT_END=18;
public static final int
DQUOT_STRING_MODE=1, SQUOT_STRING_MODE=2;
public static String[] channelNames = {
"DEFAULT_TOKEN_CHANNEL", "HIDDEN"
};
public static String[] modeNames = {
"DEFAULT_MODE", "DQUOT_STRING_MODE", "SQUOT_STRING_MODE"
};
private static String[] makeRuleNames() {
return new String[] {
"SEMICOLON", "LEFT_BRACE", "RIGHT_BRACE", "COLON", "PLUS", "LINE_COMMENT",
"BLOCK_COMMENT", "SEP", "IDENTIFIER", "SLASH", "STAR", "UQUOT_STRING",
"DQUOT_START", "SQUOT_START", "DQUOT_STRING", "DQUOT_END", "SQUOT_STRING",
"SQUOT_END"
};
}
public static final String[] ruleNames = makeRuleNames();
private static String[] makeLiteralNames() {
return new String[] {
null, "';'", "'{'", "'}'", null, null, "':'", "'+'", "'/'", "'*'"
};
}
private static final String[] _LITERAL_NAMES = makeLiteralNames();
private static String[] makeSymbolicNames() {
return new String[] {
null, "SEMICOLON", "LEFT_BRACE", "RIGHT_BRACE", "SEP", "IDENTIFIER",
"COLON", "PLUS", "SLASH", "STAR", "DQUOT_STRING", "SQUOT_STRING", "UQUOT_STRING",
"LINE_COMMENT", "BLOCK_COMMENT", "DQUOT_START", "SQUOT_START", "DQUOT_END",
"SQUOT_END"
};
}
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 YangStatementLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
}
@Override
public String getGrammarFileName() { return "YangStatementLexer.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 =
"\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\2\24\u009f\b\1\b\1"+
"\b\1\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\4\21\t"+
"\21\4\22\t\22\4\23\t\23\3\2\3\2\3\2\3\2\3\3\3\3\3\3\3\3\3\4\3\4\3\4\3"+
"\4\3\5\3\5\3\5\3\5\3\6\3\6\3\6\3\6\3\7\3\7\3\7\3\7\7\7B\n\7\f\7\16\7E"+
"\13\7\3\7\5\7H\n\7\3\7\5\7K\n\7\3\7\3\7\3\b\3\b\3\b\3\b\7\bS\n\b\f\b\16"+
"\bV\13\b\3\b\3\b\3\b\3\b\3\b\3\t\6\t^\n\t\r\t\16\t_\3\t\3\t\3\n\3\n\7"+
"\nf\n\n\f\n\16\ni\13\n\3\n\3\n\3\13\3\13\3\13\3\13\3\f\3\f\3\f\3\f\3\r"+
"\3\r\7\rw\n\r\f\r\16\rz\13\r\3\r\3\r\3\16\3\16\3\16\3\16\3\16\3\17\3\17"+
"\3\17\3\17\3\17\3\20\3\20\3\20\6\20\u008b\n\20\r\20\16\20\u008c\3\20\3"+
"\20\3\21\3\21\3\21\3\21\3\22\6\22\u0096\n\22\r\22\16\22\u0097\3\22\3\22"+
"\3\23\3\23\3\23\3\23\4CT\2\24\5\3\7\4\t\5\13\b\r\t\17\17\21\20\23\6\25"+
"\7\27\n\31\13\33\16\35\21\37\22!\f#\23%\r\'\24\5\2\3\4\n\3\3\f\f\5\2\13"+
"\f\17\17\"\"\5\2C\\aac|\7\2/\60\62;C\\aac|\f\2\13\f\17\17\"\"$$)),-\61"+
"\61<=}}\177\177\n\2\13\f\17\17\"\",-\61\61<=}}\177\177\4\2$$^^\3\2))\2"+
"\u00a5\2\5\3\2\2\2\2\7\3\2\2\2\2\t\3\2\2\2\2\13\3\2\2\2\2\r\3\2\2\2\2"+
"\17\3\2\2\2\2\21\3\2\2\2\2\23\3\2\2\2\2\25\3\2\2\2\2\27\3\2\2\2\2\31\3"+
"\2\2\2\2\33\3\2\2\2\2\35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"+
"\2\2\2hj\3\2\2\2ig\3\2\2\2jk\b\n\t\2k\26\3\2\2\2lm\7\61\2\2mn\3\2\2\2"+
"no\b\13\n\2o\30\3\2\2\2pq\7,\2\2qr\3\2\2\2rs\b\f\13\2s\32\3\2\2\2tx\n"+
"\6\2\2uw\n\7\2\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{|\b\r\f\2|\34\3\2\2\2}~\7$\2\2~\177\3\2\2\2\177\u0080\b\16\r\2"+
"\u0080\u0081\b\16\7\2\u0081\36\3\2\2\2\u0082\u0083\7)\2\2\u0083\u0084"+
"\3\2\2\2\u0084\u0085\b\17\16\2\u0085\u0086\b\17\7\2\u0086 \3\2\2\2\u0087"+
"\u008b\n\b\2\2\u0088\u0089\7^\2\2\u0089\u008b\13\2\2\2\u008a\u0087\3\2"+
"\2\2\u008a\u0088\3\2\2\2\u008b\u008c\3\2\2\2\u008c\u008a\3\2\2\2\u008c"+
"\u008d\3\2\2\2\u008d\u008e\3\2\2\2\u008e\u008f\b\20\17\2\u008f\"\3\2\2"+
"\2\u0090\u0091\7$\2\2\u0091\u0092\3\2\2\2\u0092\u0093\b\21\20\2\u0093"+
"$\3\2\2\2\u0094\u0096\n\t\2\2\u0095\u0094\3\2\2\2\u0096\u0097\3\2\2\2"+
"\u0097\u0095\3\2\2\2\u0097\u0098\3\2\2\2\u0098\u0099\3\2\2\2\u0099\u009a"+
"\b\22\21\2\u009a&\3\2\2\2\u009b\u009c\7)\2\2\u009c\u009d\3\2\2\2\u009d"+
"\u009e\b\23\20\2\u009e(\3\2\2\2\17\2\3\4CGJT_gx\u008a\u008c\u0097\22\t"+
"\3\2\t\4\2\t\5\2\t\b\2\t\t\2\b\2\2\t\6\2\t\7\2\t\n\2\t\13\2\t\16\2\7\3"+
"\2\7\4\2\t\f\2\6\2\2\t\r\2";
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);
}
}
}