1
2 package eu.simuline.relana.parser;
3 import org.antlr.v4.runtime.Lexer;
4 import org.antlr.v4.runtime.CharStream;
5 import org.antlr.v4.runtime.Token;
6 import org.antlr.v4.runtime.TokenStream;
7 import org.antlr.v4.runtime.*;
8 import org.antlr.v4.runtime.atn.*;
9 import org.antlr.v4.runtime.dfa.DFA;
10 import org.antlr.v4.runtime.misc.*;
11
12 @SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast"})
13 public class FormulaLexer extends Lexer {
14 static { RuntimeMetaData.checkVersion("4.7", RuntimeMetaData.VERSION); }
15
16 protected static final DFA[] _decisionToDFA;
17 protected static final PredictionContextCache _sharedContextCache =
18 new PredictionContextCache();
19 public static final int
20 T__0=1, T__1=2, T__2=3, T__3=4, T__4=5, T__5=6, WS=7, SingleLineComment=8,
21 MultiLineComment=9, INV=10, COV=11, CONT=12, END=13, SEP=14, UNION=15,
22 INTERSECT=16, COMPLEMENT=17, NAME=18;
23 public static String[] channelNames = {
24 "DEFAULT_TOKEN_CHANNEL", "HIDDEN"
25 };
26
27 public static String[] modeNames = {
28 "DEFAULT_MODE"
29 };
30
31 public static final String[] ruleNames = {
32 "T__0", "T__1", "T__2", "T__3", "T__4", "T__5", "WS", "SingleLineComment",
33 "MultiLineComment", "INV", "COV", "CONT", "END", "SEP", "UNION", "INTERSECT",
34 "COMPLEMENT", "NAME", "IDENTIFIER", "LETTER", "DIGIT", "SMALL_LETTER",
35 "CAPITAL_LETTER"
36 };
37
38 private static final String[] _LITERAL_NAMES = {
39 null, "'<'", "'>'", "'{'", "'}'", "'('", "')'", null, null, null, "'!'",
40 "','", "'''", "';'", "'.'", "'|'", "'&'", "'~'"
41 };
42 private static final String[] _SYMBOLIC_NAMES = {
43 null, null, null, null, null, null, null, "WS", "SingleLineComment", "MultiLineComment",
44 "INV", "COV", "CONT", "END", "SEP", "UNION", "INTERSECT", "COMPLEMENT",
45 "NAME"
46 };
47 public static final Vocabulary VOCABULARY = new VocabularyImpl(_LITERAL_NAMES, _SYMBOLIC_NAMES);
48
49
50
51
52 @Deprecated
53 public static final String[] tokenNames;
54 static {
55 tokenNames = new String[_SYMBOLIC_NAMES.length];
56 for (int i = 0; i < tokenNames.length; i++) {
57 tokenNames[i] = VOCABULARY.getLiteralName(i);
58 if (tokenNames[i] == null) {
59 tokenNames[i] = VOCABULARY.getSymbolicName(i);
60 }
61
62 if (tokenNames[i] == null) {
63 tokenNames[i] = "<INVALID>";
64 }
65 }
66 }
67
68 @Override
69 @Deprecated
70 public String[] getTokenNames() {
71 return tokenNames;
72 }
73
74 @Override
75
76 public Vocabulary getVocabulary() {
77 return VOCABULARY;
78 }
79
80
81 public FormulaLexer(CharStream input) {
82 super(input);
83 _interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
84 }
85
86 @Override
87 public String getGrammarFileName() { return "Formula.g4"; }
88
89 @Override
90 public String[] getRuleNames() { return ruleNames; }
91
92 @Override
93 public String getSerializedATN() { return _serializedATN; }
94
95 @Override
96 public String[] getChannelNames() { return channelNames; }
97
98 @Override
99 public String[] getModeNames() { return modeNames; }
100
101 @Override
102 public ATN getATN() { return _ATN; }
103
104 public static final String _serializedATN =
105 "\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\2\24\u0082\b\1\4\2"+
106 "\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"+
107 "\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"+
108 "\t\22\4\23\t\23\4\24\t\24\4\25\t\25\4\26\t\26\4\27\t\27\4\30\t\30\3\2"+
109 "\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\b\3\b\3\t\3\t\3"+
110 "\t\3\t\7\tF\n\t\f\t\16\tI\13\t\3\t\3\t\3\n\3\n\3\n\3\n\3\n\3\n\7\nS\n"+
111 "\n\f\n\16\nV\13\n\3\n\3\n\3\n\3\n\3\n\3\13\3\13\3\f\3\f\3\r\3\r\3\16\3"+
112 "\16\3\17\3\17\3\20\3\20\3\21\3\21\3\22\3\22\3\23\3\23\7\23o\n\23\f\23"+
113 "\16\23r\13\23\3\24\3\24\3\24\5\24w\n\24\3\25\3\25\5\25{\n\25\3\26\3\26"+
114 "\3\27\3\27\3\30\3\30\2\2\31\3\3\5\4\7\5\t\6\13\7\r\b\17\t\21\n\23\13\25"+
115 "\f\27\r\31\16\33\17\35\20\37\21!\22#\23%\24\'\2)\2+\2-\2/\2\3\2\6\5\2"+
116 "\13\f\16\17\"\"\4\2\f\f\17\17\3\2,,\3\2\61\61\2\u0083\2\3\3\2\2\2\2\5"+
117 "\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"+
118 "\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"+
119 "\3\2\2\2\2\35\3\2\2\2\2\37\3\2\2\2\2!\3\2\2\2\2#\3\2\2\2\2%\3\2\2\2\3"+
120 "\61\3\2\2\2\5\63\3\2\2\2\7\65\3\2\2\2\t\67\3\2\2\2\139\3\2\2\2\r;\3\2"+
121 "\2\2\17=\3\2\2\2\21A\3\2\2\2\23L\3\2\2\2\25\\\3\2\2\2\27^\3\2\2\2\31`"+
122 "\3\2\2\2\33b\3\2\2\2\35d\3\2\2\2\37f\3\2\2\2!h\3\2\2\2#j\3\2\2\2%l\3\2"+
123 "\2\2\'v\3\2\2\2)z\3\2\2\2+|\3\2\2\2-~\3\2\2\2/\u0080\3\2\2\2\61\62\7>"+
124 "\2\2\62\4\3\2\2\2\63\64\7@\2\2\64\6\3\2\2\2\65\66\7}\2\2\66\b\3\2\2\2"+
125 "\678\7\177\2\28\n\3\2\2\29:\7*\2\2:\f\3\2\2\2;<\7+\2\2<\16\3\2\2\2=>\t"+
126 "\2\2\2>?\3\2\2\2?@\b\b\2\2@\20\3\2\2\2AB\7\61\2\2BC\7\61\2\2CG\3\2\2\2"+
127 "DF\n\3\2\2ED\3\2\2\2FI\3\2\2\2GE\3\2\2\2GH\3\2\2\2HJ\3\2\2\2IG\3\2\2\2"+
128 "JK\b\t\2\2K\22\3\2\2\2LM\7\61\2\2MN\7,\2\2NT\3\2\2\2OS\n\4\2\2PQ\7,\2"+
129 "\2QS\n\5\2\2RO\3\2\2\2RP\3\2\2\2SV\3\2\2\2TR\3\2\2\2TU\3\2\2\2UW\3\2\2"+
130 "\2VT\3\2\2\2WX\7,\2\2XY\7\61\2\2YZ\3\2\2\2Z[\b\n\2\2[\24\3\2\2\2\\]\7"+
131 "#\2\2]\26\3\2\2\2^_\7.\2\2_\30\3\2\2\2`a\7)\2\2a\32\3\2\2\2bc\7=\2\2c"+
132 "\34\3\2\2\2de\7\60\2\2e\36\3\2\2\2fg\7~\2\2g \3\2\2\2hi\7(\2\2i\"\3\2"+
133 "\2\2jk\7\u0080\2\2k$\3\2\2\2lp\5)\25\2mo\5\'\24\2nm\3\2\2\2or\3\2\2\2"+
134 "pn\3\2\2\2pq\3\2\2\2q&\3\2\2\2rp\3\2\2\2sw\5)\25\2tw\5+\26\2uw\7a\2\2"+
135 "vs\3\2\2\2vt\3\2\2\2vu\3\2\2\2w(\3\2\2\2x{\5/\30\2y{\5-\27\2zx\3\2\2\2"+
136 "zy\3\2\2\2{*\3\2\2\2|}\4\62;\2},\3\2\2\2~\177\4c|\2\177.\3\2\2\2\u0080"+
137 "\u0081\4C\\\2\u0081\60\3\2\2\2\t\2GRTpvz\3\b\2\2";
138 public static final ATN _ATN =
139 new ATNDeserializer().deserialize(_serializedATN.toCharArray());
140 static {
141 _decisionToDFA = new DFA[_ATN.getNumberOfDecisions()];
142 for (int i = 0; i < _ATN.getNumberOfDecisions(); i++) {
143 _decisionToDFA[i] = new DFA(_ATN.getDecisionState(i), i);
144 }
145 }
146 }