eu.rssw.antlr.profiler.ProfilerGrammarLexer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of profiler-parser Show documentation
Show all versions of profiler-parser Show documentation
OpenEdge profiler files parser
// Generated from eu/rssw/antlr/profiler/ProfilerGrammar.g4 by ANTLR 4.13.0
package eu.rssw.antlr.profiler;
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"})
public class ProfilerGrammarLexer extends Lexer {
static { RuntimeMetaData.checkVersion("4.13.0", RuntimeMetaData.VERSION); }
protected static final DFA[] _decisionToDFA;
protected static final PredictionContextCache _sharedContextCache =
new PredictionContextCache();
public static final int
JSON=1, NUMBER=2, FLOAT=3, DATE=4, TIME=5, STRING=6, CHR_DOT=7, NEWLINE=8,
WS=9;
public static String[] channelNames = {
"DEFAULT_TOKEN_CHANNEL", "HIDDEN"
};
public static String[] modeNames = {
"DEFAULT_MODE"
};
private static String[] makeRuleNames() {
return new String[] {
"JSON", "INT", "NUMBER", "FLOAT", "DATE", "TIME", "STRING", "CHR_DOT",
"NEWLINE", "WS"
};
}
public static final String[] ruleNames = makeRuleNames();
private static String[] makeLiteralNames() {
return new String[] {
null, null, null, null, null, null, null, "'.'"
};
}
private static final String[] _LITERAL_NAMES = makeLiteralNames();
private static String[] makeSymbolicNames() {
return new String[] {
null, "JSON", "NUMBER", "FLOAT", "DATE", "TIME", "STRING", "CHR_DOT",
"NEWLINE", "WS"
};
}
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 ProfilerGrammarLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
}
@Override
public String getGrammarFileName() { return "ProfilerGrammar.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; }
@Override
public void action(RuleContext _localctx, int ruleIndex, int actionIndex) {
switch (ruleIndex) {
case 6:
STRING_action((RuleContext)_localctx, actionIndex);
break;
}
}
private void STRING_action(RuleContext _localctx, int actionIndex) {
switch (actionIndex) {
case 0:
setText(getText().substring(1, getText().length() - 1));
break;
}
}
public static final String _serializedATN =
"\u0004\u0000\t_\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\u0001\u0000\u0001\u0000\u0005"+
"\u0000\u0018\b\u0000\n\u0000\f\u0000\u001b\t\u0000\u0001\u0000\u0001\u0000"+
"\u0005\u0000\u001f\b\u0000\n\u0000\f\u0000\"\t\u0000\u0001\u0000\u0001"+
"\u0000\u0001\u0001\u0001\u0001\u0001\u0002\u0003\u0002)\b\u0002\u0001"+
"\u0002\u0004\u0002,\b\u0002\u000b\u0002\f\u0002-\u0001\u0003\u0001\u0003"+
"\u0001\u0003\u0001\u0003\u0001\u0004\u0001\u0004\u0001\u0004\u0001\u0004"+
"\u0001\u0004\u0001\u0004\u0001\u0004\u0001\u0004\u0001\u0004\u0001\u0004"+
"\u0001\u0004\u0001\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0001\u0005"+
"\u0001\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0001\u0006\u0001\u0006"+
"\u0005\u0006J\b\u0006\n\u0006\f\u0006M\t\u0006\u0001\u0006\u0001\u0006"+
"\u0001\u0006\u0001\u0007\u0001\u0007\u0001\b\u0003\bU\b\b\u0001\b\u0001"+
"\b\u0001\t\u0004\tZ\b\t\u000b\t\f\t[\u0001\t\u0001\t\u0002\u0019K\u0000"+
"\n\u0001\u0001\u0003\u0000\u0005\u0002\u0007\u0003\t\u0004\u000b\u0005"+
"\r\u0006\u000f\u0007\u0011\b\u0013\t\u0001\u0000\u0001\u0002\u0000\t\t"+
" d\u0000\u0001\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\u0001\u0015\u0001\u0000\u0000\u0000\u0003"+
"%\u0001\u0000\u0000\u0000\u0005(\u0001\u0000\u0000\u0000\u0007/\u0001"+
"\u0000\u0000\u0000\t3\u0001\u0000\u0000\u0000\u000b>\u0001\u0000\u0000"+
"\u0000\rG\u0001\u0000\u0000\u0000\u000fQ\u0001\u0000\u0000\u0000\u0011"+
"T\u0001\u0000\u0000\u0000\u0013Y\u0001\u0000\u0000\u0000\u0015\u0019\u0005"+
"{\u0000\u0000\u0016\u0018\t\u0000\u0000\u0000\u0017\u0016\u0001\u0000"+
"\u0000\u0000\u0018\u001b\u0001\u0000\u0000\u0000\u0019\u001a\u0001\u0000"+
"\u0000\u0000\u0019\u0017\u0001\u0000\u0000\u0000\u001a\u001c\u0001\u0000"+
"\u0000\u0000\u001b\u0019\u0001\u0000\u0000\u0000\u001c \u0005}\u0000\u0000"+
"\u001d\u001f\u0003\u0013\t\u0000\u001e\u001d\u0001\u0000\u0000\u0000\u001f"+
"\"\u0001\u0000\u0000\u0000 \u001e\u0001\u0000\u0000\u0000 !\u0001\u0000"+
"\u0000\u0000!#\u0001\u0000\u0000\u0000\" \u0001\u0000\u0000\u0000#$\u0003"+
"\u0011\b\u0000$\u0002\u0001\u0000\u0000\u0000%&\u000209\u0000&\u0004\u0001"+
"\u0000\u0000\u0000\')\u0005-\u0000\u0000(\'\u0001\u0000\u0000\u0000()"+
"\u0001\u0000\u0000\u0000)+\u0001\u0000\u0000\u0000*,\u0003\u0003\u0001"+
"\u0000+*\u0001\u0000\u0000\u0000,-\u0001\u0000\u0000\u0000-+\u0001\u0000"+
"\u0000\u0000-.\u0001\u0000\u0000\u0000.\u0006\u0001\u0000\u0000\u0000"+
"/0\u0003\u0005\u0002\u000001\u0005.\u0000\u000012\u0003\u0005\u0002\u0000"+
"2\b\u0001\u0000\u0000\u000034\u000209\u000045\u000209\u000056\u0005/\u0000"+
"\u000067\u000209\u000078\u000209\u000089\u0005/\u0000\u00009:\u000209"+
"\u0000:;\u000209\u0000;<\u000209\u0000<=\u000209\u0000=\n\u0001\u0000"+
"\u0000\u0000>?\u000209\u0000?@\u000209\u0000@A\u0005:\u0000\u0000AB\u0002"+
"09\u0000BC\u000209\u0000CD\u0005:\u0000\u0000DE\u000209\u0000EF\u0002"+
"09\u0000F\f\u0001\u0000\u0000\u0000GK\u0005\"\u0000\u0000HJ\t\u0000\u0000"+
"\u0000IH\u0001\u0000\u0000\u0000JM\u0001\u0000\u0000\u0000KL\u0001\u0000"+
"\u0000\u0000KI\u0001\u0000\u0000\u0000LN\u0001\u0000\u0000\u0000MK\u0001"+
"\u0000\u0000\u0000NO\u0005\"\u0000\u0000OP\u0006\u0006\u0000\u0000P\u000e"+
"\u0001\u0000\u0000\u0000QR\u0005.\u0000\u0000R\u0010\u0001\u0000\u0000"+
"\u0000SU\u0005\r\u0000\u0000TS\u0001\u0000\u0000\u0000TU\u0001\u0000\u0000"+
"\u0000UV\u0001\u0000\u0000\u0000VW\u0005\n\u0000\u0000W\u0012\u0001\u0000"+
"\u0000\u0000XZ\u0007\u0000\u0000\u0000YX\u0001\u0000\u0000\u0000Z[\u0001"+
"\u0000\u0000\u0000[Y\u0001\u0000\u0000\u0000[\\\u0001\u0000\u0000\u0000"+
"\\]\u0001\u0000\u0000\u0000]^\u0006\t\u0001\u0000^\u0014\u0001\u0000\u0000"+
"\u0000\b\u0000\u0019 (-KT[\u0002\u0001\u0006\u0000\u0000\u0001\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);
}
}
}