EvaluatorLexer.java
// Generated from /home/gsinai/git/microspace/src/main/resources/Evaluator.g4 by ANTLR 4.7
package org.microspace.evaluator;
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 EvaluatorLexer extends Lexer {
static { RuntimeMetaData.checkVersion("4.7", RuntimeMetaData.VERSION); }
protected static final DFA[] _decisionToDFA;
protected static final PredictionContextCache _sharedContextCache =
new PredictionContextCache();
public static final int
WHITE_SPACE=1, RPAREN=2, LPAREN=3, TIMES=4, SLASH=5, PLUS=6, MINUS=7,
DOT=8, TIMES_SLASH=9, PLUS_MINUS=10, INTEGER_NUM=11, REAL_NUMBER=12, VARIABLE=13;
public static String[] channelNames = {
"DEFAULT_TOKEN_CHANNEL", "HIDDEN"
};
public static String[] modeNames = {
"DEFAULT_MODE"
};
public static final String[] ruleNames = {
"WHITE_SPACE", "RPAREN", "LPAREN", "TIMES", "SLASH", "PLUS", "MINUS",
"DOT", "TIMES_SLASH", "PLUS_MINUS", "INTEGER_NUM", "REAL_NUMBER", "VARIABLE"
};
private static final String[] _LITERAL_NAMES = {
null, null, "')'", "'('", "'*'", "'/'", "'+'", "'-'", "'.'"
};
private static final String[] _SYMBOLIC_NAMES = {
null, "WHITE_SPACE", "RPAREN", "LPAREN", "TIMES", "SLASH", "PLUS", "MINUS",
"DOT", "TIMES_SLASH", "PLUS_MINUS", "INTEGER_NUM", "REAL_NUMBER", "VARIABLE"
};
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] = "<INVALID>";
}
}
}
@Override
@Deprecated
public String[] getTokenNames() {
return tokenNames;
}
@Override
public Vocabulary getVocabulary() {
return VOCABULARY;
}
@Override
public void recover(RecognitionException ex)
{
throw new IllegalArgumentException(ex.getMessage());
}
public EvaluatorLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
}
@Override
public String getGrammarFileName() { return "Evaluator.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\17[\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\3\2\6\2\37\n\2\r\2\16\2 \3\2\3\2\3\3\3\3"+
"\3\4\3\4\3\5\3\5\3\6\3\6\3\7\3\7\3\b\3\b\3\t\3\t\3\n\3\n\5\n\65\n\n\3"+
"\13\3\13\5\139\n\13\3\f\6\f<\n\f\r\f\16\f=\3\r\3\r\3\r\3\r\3\r\3\r\3\r"+
"\3\r\3\r\3\r\3\r\5\rK\n\r\3\r\3\r\3\r\5\rP\n\r\3\r\5\rS\n\r\3\16\3\16"+
"\7\16W\n\16\f\16\16\16Z\13\16\2\2\17\3\3\5\4\7\5\t\6\13\7\r\b\17\t\21"+
"\n\23\13\25\f\27\r\31\16\33\17\3\2\6\5\2\13\f\17\17\"\"\4\2GGgg\5\2C\\"+
"aac|\6\2\62;C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RS\3\2\2\2S\32\3\2\2\2TX\t\4\2\2UW\t\5\2\2VU\3\2\2\2WZ\3\2\2\2XV\3"+
"\2\2\2XY\3\2\2\2Y\34\3\2\2\2ZX\3\2\2\2\13\2 \648=JORX\3\b\2\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);
}
}
}