1
|
|
|
// Generated from /home/dimakl/IdeaProjects/inflate-my-mind/src/main/java/com/inflatemymind/antlr/LogicalExpression.g4 by ANTLR 4.7.2 |
2
|
|
|
package yalep.antlr.generated; |
3
|
|
|
import org.antlr.v4.runtime.Lexer; |
4
|
|
|
import org.antlr.v4.runtime.CharStream; |
5
|
|
|
import org.antlr.v4.runtime.*; |
6
|
|
|
import org.antlr.v4.runtime.atn.*; |
7
|
|
|
import org.antlr.v4.runtime.dfa.DFA; |
8
|
|
|
|
9
|
|
|
@SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast"}) |
10
|
|
|
public class LogicalExpressionLexer extends Lexer { |
11
|
|
|
static { RuntimeMetaData.checkVersion("4.7.2", RuntimeMetaData.VERSION); } |
12
|
|
|
|
13
|
|
|
protected static final DFA[] _decisionToDFA; |
14
|
|
|
protected static final PredictionContextCache _sharedContextCache = |
15
|
|
|
new PredictionContextCache(); |
16
|
|
|
public static final int |
17
|
|
|
LPAREN=1, RPAREN=2, NOT=3, AND=4, OR=5, XOR=6, VARIABLE=7; |
18
|
|
|
public static String[] channelNames = { |
19
|
|
|
"DEFAULT_TOKEN_CHANNEL", "HIDDEN" |
20
|
|
|
}; |
21
|
|
|
|
22
|
|
|
public static String[] modeNames = { |
23
|
|
|
"DEFAULT_MODE" |
24
|
|
|
}; |
25
|
|
|
|
26
|
|
|
private static String[] makeRuleNames() { |
27
|
|
|
return new String[] { |
28
|
|
|
"LPAREN", "RPAREN", "NOT", "AND", "OR", "XOR", "VARIABLE" |
29
|
|
|
}; |
30
|
|
|
} |
31
|
|
|
public static final String[] ruleNames = makeRuleNames(); |
32
|
|
|
|
33
|
|
|
private static String[] makeLiteralNames() { |
34
|
|
|
return new String[] { |
35
|
|
|
null, "'('", "')'", "'!'", "'&'", "'|'", "'^'" |
36
|
|
|
}; |
37
|
|
|
} |
38
|
|
|
private static final String[] _LITERAL_NAMES = makeLiteralNames(); |
39
|
|
|
private static String[] makeSymbolicNames() { |
40
|
|
|
return new String[] { |
41
|
|
|
null, "LPAREN", "RPAREN", "NOT", "AND", "OR", "XOR", "VARIABLE" |
42
|
|
|
}; |
43
|
|
|
} |
44
|
|
|
private static final String[] _SYMBOLIC_NAMES = makeSymbolicNames(); |
45
|
|
|
public static final Vocabulary VOCABULARY = new VocabularyImpl(_LITERAL_NAMES, _SYMBOLIC_NAMES); |
46
|
|
|
|
47
|
|
|
/** |
48
|
|
|
* @deprecated Use {@link #VOCABULARY} instead. |
49
|
|
|
*/ |
50
|
|
|
@Deprecated |
51
|
|
|
public static final String[] tokenNames; |
52
|
|
|
static { |
53
|
|
|
tokenNames = new String[_SYMBOLIC_NAMES.length]; |
54
|
|
View Code Duplication |
for (int i = 0; i < tokenNames.length; i++) { |
|
|
|
|
55
|
|
|
tokenNames[i] = VOCABULARY.getLiteralName(i); |
56
|
|
|
if (tokenNames[i] == null) { |
57
|
|
|
tokenNames[i] = VOCABULARY.getSymbolicName(i); |
58
|
|
|
} |
59
|
|
|
|
60
|
|
|
if (tokenNames[i] == null) { |
61
|
|
|
tokenNames[i] = "<INVALID>"; |
62
|
|
|
} |
63
|
|
|
} |
64
|
|
|
} |
65
|
|
|
|
66
|
|
|
@Override |
67
|
|
|
@Deprecated |
68
|
|
|
public String[] getTokenNames() { |
69
|
|
|
return tokenNames; |
70
|
|
|
} |
71
|
|
|
|
72
|
|
|
@Override |
73
|
|
|
|
74
|
|
|
public Vocabulary getVocabulary() { |
75
|
|
|
return VOCABULARY; |
76
|
|
|
} |
77
|
|
|
|
78
|
|
|
|
79
|
|
|
public LogicalExpressionLexer(CharStream input) { |
80
|
|
|
super(input); |
81
|
|
|
_interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache); |
82
|
|
|
} |
83
|
|
|
|
84
|
|
|
@Override |
85
|
|
|
public String getGrammarFileName() { return "LogicalExpression.g4"; } |
86
|
|
|
|
87
|
|
|
@Override |
88
|
|
|
public String[] getRuleNames() { return ruleNames; } |
89
|
|
|
|
90
|
|
|
@Override |
91
|
|
|
public String getSerializedATN() { return _serializedATN; } |
92
|
|
|
|
93
|
|
|
@Override |
94
|
|
|
public String[] getChannelNames() { return channelNames; } |
95
|
|
|
|
96
|
|
|
@Override |
97
|
|
|
public String[] getModeNames() { return modeNames; } |
98
|
|
|
|
99
|
|
|
@Override |
100
|
|
|
public ATN getATN() { return _ATN; } |
101
|
|
|
|
102
|
|
|
public static final String _serializedATN = |
103
|
|
|
"\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\2\t\37\b\1\4\2\t\2"+ |
104
|
|
|
"\4\3\t\3\4\4\t\4\4\5\t\5\4\6\t\6\4\7\t\7\4\b\t\b\3\2\3\2\3\3\3\3\3\4\3"+ |
105
|
|
|
"\4\3\5\3\5\3\6\3\6\3\7\3\7\3\b\3\b\2\2\t\3\3\5\4\7\5\t\6\13\7\r\b\17\t"+ |
106
|
|
|
"\3\2\3\3\2C\\\2\36\2\3\3\2\2\2\2\5\3\2\2\2\2\7\3\2\2\2\2\t\3\2\2\2\2\13"+ |
107
|
|
|
"\3\2\2\2\2\r\3\2\2\2\2\17\3\2\2\2\3\21\3\2\2\2\5\23\3\2\2\2\7\25\3\2\2"+ |
108
|
|
|
"\2\t\27\3\2\2\2\13\31\3\2\2\2\r\33\3\2\2\2\17\35\3\2\2\2\21\22\7*\2\2"+ |
109
|
|
|
"\22\4\3\2\2\2\23\24\7+\2\2\24\6\3\2\2\2\25\26\7#\2\2\26\b\3\2\2\2\27\30"+ |
110
|
|
|
"\7(\2\2\30\n\3\2\2\2\31\32\7~\2\2\32\f\3\2\2\2\33\34\7`\2\2\34\16\3\2"+ |
111
|
|
|
"\2\2\35\36\t\2\2\2\36\20\3\2\2\2\3\2\2"; |
112
|
|
|
public static final ATN _ATN = |
113
|
|
|
new ATNDeserializer().deserialize(_serializedATN.toCharArray()); |
114
|
|
|
static { |
115
|
|
|
_decisionToDFA = new DFA[_ATN.getNumberOfDecisions()]; |
116
|
|
|
for (int i = 0; i < _ATN.getNumberOfDecisions(); i++) { |
117
|
|
|
_decisionToDFA[i] = new DFA(_ATN.getDecisionState(i), i); |
118
|
|
|
} |
119
|
|
|
} |
120
|
|
|
} |