cariboujs 2.0.7 → 2.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/README.md +6 -4
  2. package/asm/asm8080/asm8080Lexer.js +253 -152
  3. package/asm/asm8080/asm8080Listener.js +72 -0
  4. package/asm/asm8080/asm8080Parser.js +1307 -289
  5. package/asm/asm8080/asm8080Visitor.js +48 -0
  6. package/asm/asmZ80/asmZ80Lexer.js +152 -128
  7. package/asm/asmZ80/asmZ80Listener.js +9 -0
  8. package/asm/asmZ80/asmZ80Parser.js +316 -170
  9. package/asm/asmZ80/asmZ80Visitor.js +6 -0
  10. package/c/CParser.js +1352 -1344
  11. package/clif/CLIFLexer.js +173 -0
  12. package/clif/CLIFListener.js +198 -0
  13. package/clif/CLIFParser.js +2440 -0
  14. package/clif/CLIFVisitor.js +136 -0
  15. package/cypher/CypherLexer.js +208 -205
  16. package/cypher/CypherParser.js +1180 -984
  17. package/cypher/CypherParserListener.js +18 -0
  18. package/cypher/CypherParserVisitor.js +12 -0
  19. package/javascript/javascript/JavaScriptParser.js +607 -658
  20. package/javascript/javascript/JavaScriptParserListener.js +0 -9
  21. package/javascript/javascript/JavaScriptParserVisitor.js +0 -6
  22. package/package.json +1 -1
  23. package/promql/PromQLLexer.js +147 -142
  24. package/python/python3_14/PythonLexer.js +1238 -0
  25. package/python/python3_14/PythonLexerBase.js +819 -0
  26. package/python/{python3_13 → python3_14}/PythonParser.js +4141 -3347
  27. package/python/{python3_13 → python3_14}/PythonParserListener.js +81 -0
  28. package/python/{python3_13 → python3_14}/PythonParserVisitor.js +54 -0
  29. package/sql/mysql/Oracle/MySQLParser.js +3934 -3927
  30. package/sql/plsql/PlSqlLexer.js +12212 -12202
  31. package/sql/plsql/PlSqlParser.js +45094 -39280
  32. package/sql/plsql/PlSqlParserBase.js +31 -0
  33. package/sql/plsql/PlSqlParserListener.js +76 -4
  34. package/sql/plsql/PlSqlParserVisitor.js +50 -2
  35. package/sysml-v2/SysMLv2Lexer.js +617 -605
  36. package/sysml-v2/SysMLv2Parser.js +7135 -10083
  37. package/sysml-v2/SysMLv2ParserListener.js +45 -423
  38. package/sysml-v2/SysMLv2ParserVisitor.js +30 -282
  39. package/wkt/wktLexer.js +502 -173
  40. package/wkt/wktParser.js +7220 -1311
  41. package/wkt/wktParserListener.js +756 -0
  42. package/wkt/wktParserVisitor.js +508 -0
  43. package/xpath/xpath4/XPath4Lexer.js +667 -0
  44. package/xpath/xpath4/XPath4Parser.js +17424 -0
  45. package/xpath/xpath4/XPath4ParserBase.js +34 -0
  46. package/xpath/xpath4/XPath4ParserListener.js +1521 -0
  47. package/xpath/xpath4/XPath4ParserVisitor.js +1018 -0
  48. package/xquery/xquery4/XQuery4Lexer.js +1396 -0
  49. package/xquery/xquery4/XQuery4LexerBase.js +42 -0
  50. package/xquery/xquery4/XQuery4Parser.js +27899 -0
  51. package/xquery/xquery4/XQuery4ParserBase.js +38 -0
  52. package/xquery/xquery4/XQuery4ParserListener.js +2322 -0
  53. package/xquery/xquery4/XQuery4ParserVisitor.js +1552 -0
  54. package/awk/awkLexer.js +0 -317
  55. package/awk/awkListener.js +0 -378
  56. package/awk/awkParser.js +0 -5859
  57. package/awk/awkVisitor.js +0 -256
  58. package/python/python3_13/PythonLexer.js +0 -974
  59. package/python/python3_13/PythonLexerBase.js +0 -676
  60. package/wkt/wktListener.js +0 -261
  61. package/wkt/wktVisitor.js +0 -178
@@ -0,0 +1,2440 @@
1
+ // Generated from CLIF.g4 by ANTLR 4.13.2
2
+ // jshint ignore: start
3
+ import antlr4 from 'antlr4';
4
+ import CLIFListener from './CLIFListener.js';
5
+ import CLIFVisitor from './CLIFVisitor.js';
6
+
7
+ const serializedATN = [4,1,28,229,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,
8
+ 4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,
9
+ 2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,
10
+ 20,7,20,1,0,5,0,44,8,0,10,0,12,0,47,9,0,1,0,1,0,1,1,1,1,5,1,53,8,1,10,1,
11
+ 12,1,56,9,1,1,2,1,2,1,3,1,3,1,4,1,4,3,4,64,8,4,1,5,1,5,1,5,1,5,1,5,1,5,1,
12
+ 5,1,5,1,5,1,5,1,5,1,5,3,5,78,8,5,1,6,1,6,1,7,1,7,1,7,1,7,1,7,1,7,1,8,1,8,
13
+ 1,8,1,8,3,8,92,8,8,1,9,1,9,3,9,96,8,9,1,10,1,10,1,10,1,10,1,10,1,10,1,10,
14
+ 1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,3,10,114,8,10,1,11,1,11,1,12,
15
+ 1,12,1,12,5,12,121,8,12,10,12,12,12,124,9,12,1,12,1,12,1,12,1,12,1,12,1,
16
+ 12,1,12,1,12,1,12,1,12,1,12,1,12,3,12,138,8,12,1,13,1,13,1,13,3,13,143,8,
17
+ 13,1,13,1,13,1,13,1,13,1,14,1,14,1,14,1,14,1,14,1,14,3,14,155,8,14,1,14,
18
+ 1,14,1,14,5,14,160,8,14,10,14,12,14,163,9,14,1,14,1,14,1,15,1,15,1,15,1,
19
+ 15,1,15,1,15,1,16,1,16,1,16,1,16,1,16,1,16,5,16,179,8,16,10,16,12,16,182,
20
+ 9,16,1,16,3,16,185,8,16,1,16,5,16,188,8,16,10,16,12,16,191,9,16,1,16,1,16,
21
+ 1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,3,17,206,8,17,1,17,
22
+ 3,17,209,8,17,1,18,4,18,212,8,18,11,18,12,18,213,1,19,1,19,1,19,3,19,219,
23
+ 8,19,1,20,1,20,1,20,1,20,3,20,225,8,20,1,20,1,20,1,20,0,0,21,0,2,4,6,8,10,
24
+ 12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,0,5,2,0,6,6,8,8,2,0,9,9,25,
25
+ 25,1,0,11,12,1,0,13,14,1,0,15,16,237,0,45,1,0,0,0,2,54,1,0,0,0,4,57,1,0,
26
+ 0,0,6,59,1,0,0,0,8,63,1,0,0,0,10,77,1,0,0,0,12,79,1,0,0,0,14,81,1,0,0,0,
27
+ 16,91,1,0,0,0,18,95,1,0,0,0,20,113,1,0,0,0,22,115,1,0,0,0,24,137,1,0,0,0,
28
+ 26,139,1,0,0,0,28,148,1,0,0,0,30,166,1,0,0,0,32,172,1,0,0,0,34,208,1,0,0,
29
+ 0,36,211,1,0,0,0,38,218,1,0,0,0,40,220,1,0,0,0,42,44,3,38,19,0,43,42,1,0,
30
+ 0,0,44,47,1,0,0,0,45,43,1,0,0,0,45,46,1,0,0,0,46,48,1,0,0,0,47,45,1,0,0,
31
+ 0,48,49,5,0,0,1,49,1,1,0,0,0,50,53,3,10,5,0,51,53,5,7,0,0,52,50,1,0,0,0,
32
+ 52,51,1,0,0,0,53,56,1,0,0,0,54,52,1,0,0,0,54,55,1,0,0,0,55,3,1,0,0,0,56,
33
+ 54,1,0,0,0,57,58,7,0,0,0,58,5,1,0,0,0,59,60,7,1,0,0,60,7,1,0,0,0,61,64,3,
34
+ 4,2,0,62,64,3,6,3,0,63,61,1,0,0,0,63,62,1,0,0,0,64,9,1,0,0,0,65,78,3,8,4,
35
+ 0,66,67,5,1,0,0,67,68,3,12,6,0,68,69,3,2,1,0,69,70,5,2,0,0,70,78,1,0,0,0,
36
+ 71,72,5,1,0,0,72,73,5,23,0,0,73,74,5,8,0,0,74,75,3,10,5,0,75,76,5,2,0,0,
37
+ 76,78,1,0,0,0,77,65,1,0,0,0,77,66,1,0,0,0,77,71,1,0,0,0,78,11,1,0,0,0,79,
38
+ 80,3,10,5,0,80,13,1,0,0,0,81,82,5,1,0,0,82,83,5,10,0,0,83,84,3,10,5,0,84,
39
+ 85,3,10,5,0,85,86,5,2,0,0,86,15,1,0,0,0,87,92,3,18,9,0,88,92,3,24,12,0,89,
40
+ 92,3,26,13,0,90,92,3,30,15,0,91,87,1,0,0,0,91,88,1,0,0,0,91,89,1,0,0,0,91,
41
+ 90,1,0,0,0,92,17,1,0,0,0,93,96,3,14,7,0,94,96,3,20,10,0,95,93,1,0,0,0,95,
42
+ 94,1,0,0,0,96,19,1,0,0,0,97,98,5,1,0,0,98,99,3,22,11,0,99,100,3,2,1,0,100,
43
+ 101,5,2,0,0,101,114,1,0,0,0,102,103,5,1,0,0,103,104,3,10,5,0,104,105,5,1,
44
+ 0,0,105,106,5,18,0,0,106,107,5,1,0,0,107,108,3,8,4,0,108,109,3,10,5,0,109,
45
+ 110,5,2,0,0,110,111,5,2,0,0,111,112,5,2,0,0,112,114,1,0,0,0,113,97,1,0,0,
46
+ 0,113,102,1,0,0,0,114,21,1,0,0,0,115,116,3,10,5,0,116,23,1,0,0,0,117,118,
47
+ 5,1,0,0,118,122,7,2,0,0,119,121,3,16,8,0,120,119,1,0,0,0,121,124,1,0,0,0,
48
+ 122,120,1,0,0,0,122,123,1,0,0,0,123,125,1,0,0,0,124,122,1,0,0,0,125,138,
49
+ 5,2,0,0,126,127,5,1,0,0,127,128,7,3,0,0,128,129,3,16,8,0,129,130,3,16,8,
50
+ 0,130,131,5,2,0,0,131,138,1,0,0,0,132,133,5,1,0,0,133,134,5,17,0,0,134,135,
51
+ 3,16,8,0,135,136,5,2,0,0,136,138,1,0,0,0,137,117,1,0,0,0,137,126,1,0,0,0,
52
+ 137,132,1,0,0,0,138,25,1,0,0,0,139,140,5,1,0,0,140,142,7,4,0,0,141,143,3,
53
+ 6,3,0,142,141,1,0,0,0,142,143,1,0,0,0,143,144,1,0,0,0,144,145,3,28,14,0,
54
+ 145,146,3,16,8,0,146,147,5,2,0,0,147,27,1,0,0,0,148,161,5,1,0,0,149,160,
55
+ 3,6,3,0,150,160,5,7,0,0,151,154,5,1,0,0,152,155,3,6,3,0,153,155,5,7,0,0,
56
+ 154,152,1,0,0,0,154,153,1,0,0,0,155,156,1,0,0,0,156,157,3,10,5,0,157,158,
57
+ 5,2,0,0,158,160,1,0,0,0,159,149,1,0,0,0,159,150,1,0,0,0,159,151,1,0,0,0,
58
+ 160,163,1,0,0,0,161,159,1,0,0,0,161,162,1,0,0,0,162,164,1,0,0,0,163,161,
59
+ 1,0,0,0,164,165,5,2,0,0,165,29,1,0,0,0,166,167,5,1,0,0,167,168,5,23,0,0,
60
+ 168,169,5,9,0,0,169,170,3,16,8,0,170,171,5,2,0,0,171,31,1,0,0,0,172,173,
61
+ 5,1,0,0,173,174,5,22,0,0,174,184,3,6,3,0,175,176,5,1,0,0,176,180,5,21,0,
62
+ 0,177,179,3,8,4,0,178,177,1,0,0,0,179,182,1,0,0,0,180,178,1,0,0,0,180,181,
63
+ 1,0,0,0,181,183,1,0,0,0,182,180,1,0,0,0,183,185,5,2,0,0,184,175,1,0,0,0,
64
+ 184,185,1,0,0,0,185,189,1,0,0,0,186,188,3,38,19,0,187,186,1,0,0,0,188,191,
65
+ 1,0,0,0,189,187,1,0,0,0,189,190,1,0,0,0,190,192,1,0,0,0,191,189,1,0,0,0,
66
+ 192,193,5,2,0,0,193,33,1,0,0,0,194,209,3,16,8,0,195,209,3,32,16,0,196,197,
67
+ 5,1,0,0,197,198,5,20,0,0,198,199,3,6,3,0,199,200,5,2,0,0,200,209,1,0,0,0,
68
+ 201,202,5,1,0,0,202,203,5,23,0,0,203,205,5,9,0,0,204,206,3,38,19,0,205,204,
69
+ 1,0,0,0,205,206,1,0,0,0,206,207,1,0,0,0,207,209,5,2,0,0,208,194,1,0,0,0,
70
+ 208,195,1,0,0,0,208,196,1,0,0,0,208,201,1,0,0,0,209,35,1,0,0,0,210,212,3,
71
+ 34,17,0,211,210,1,0,0,0,212,213,1,0,0,0,213,211,1,0,0,0,213,214,1,0,0,0,
72
+ 214,37,1,0,0,0,215,219,3,32,16,0,216,219,3,40,20,0,217,219,3,36,18,0,218,
73
+ 215,1,0,0,0,218,216,1,0,0,0,218,217,1,0,0,0,219,39,1,0,0,0,220,221,5,1,0,
74
+ 0,221,222,5,19,0,0,222,224,3,6,3,0,223,225,3,36,18,0,224,223,1,0,0,0,224,
75
+ 225,1,0,0,0,225,226,1,0,0,0,226,227,5,2,0,0,227,41,1,0,0,0,22,45,52,54,63,
76
+ 77,91,95,113,122,137,142,154,159,161,180,184,189,205,208,213,218,224];
77
+
78
+
79
+ const atn = new antlr4.atn.ATNDeserializer().deserialize(serializedATN);
80
+
81
+ const decisionsToDFA = atn.decisionToState.map( (ds, index) => new antlr4.dfa.DFA(ds, index) );
82
+
83
+ const sharedContextCache = new antlr4.atn.PredictionContextCache();
84
+
85
+ export default class CLIFParser extends antlr4.Parser {
86
+
87
+ static grammarFileName = "CLIF.g4";
88
+ static literalNames = [ null, "'('", "')'", "'''", "'\"'", "'\\'", null,
89
+ null, null, null, "'='", "'and'", "'or'", "'iff'",
90
+ "'if'", "'forall'", "'exists'", "'not'", "'cl-roleset'",
91
+ "'cl-text'", "'cl-imports'", "'cl-excludes'",
92
+ "'cl-module'", "'cl-comment'", "'cl-prefix'" ];
93
+ static symbolicNames = [ null, "OPEN", "CLOSE", "STRINGQUOTE", "NAMEQUOTE",
94
+ "BACKSLASH", "NUMERAL", "SEQMARK", "QUOTEDSTRING",
95
+ "ENCLOSEDNAME", "EQUAL", "AND", "OR", "IFF",
96
+ "IF", "FORALL", "EXISTS", "NOT", "CL_ROLESET",
97
+ "CL_TEXT", "CL_IMPORTS", "CL_EXCLUDES", "CL_MODULE",
98
+ "CL_COMMENT", "CL_PREFIX", "NAMECHARSEQUENCE",
99
+ "WHITE", "BLOCKCOMMENT", "LineComment" ];
100
+ static ruleNames = [ "start_", "termseq", "interpretedname", "interpretablename",
101
+ "name", "term", "operator_", "equation", "sentence",
102
+ "atomsent", "atom", "predicate", "boolsent", "quantsent",
103
+ "boundlist", "commentsent", "module", "phrase",
104
+ "text_", "cltext", "namedtext" ];
105
+
106
+ constructor(input) {
107
+ super(input);
108
+ this._interp = new antlr4.atn.ParserATNSimulator(this, atn, decisionsToDFA, sharedContextCache);
109
+ this.ruleNames = CLIFParser.ruleNames;
110
+ this.literalNames = CLIFParser.literalNames;
111
+ this.symbolicNames = CLIFParser.symbolicNames;
112
+ }
113
+
114
+
115
+
116
+ start_() {
117
+ let localctx = new Start_Context(this, this._ctx, this.state);
118
+ this.enterRule(localctx, 0, CLIFParser.RULE_start_);
119
+ var _la = 0;
120
+ try {
121
+ this.enterOuterAlt(localctx, 1);
122
+ this.state = 45;
123
+ this._errHandler.sync(this);
124
+ _la = this._input.LA(1);
125
+ while(_la===1) {
126
+ this.state = 42;
127
+ this.cltext();
128
+ this.state = 47;
129
+ this._errHandler.sync(this);
130
+ _la = this._input.LA(1);
131
+ }
132
+ this.state = 48;
133
+ this.match(CLIFParser.EOF);
134
+ } catch (re) {
135
+ if(re instanceof antlr4.error.RecognitionException) {
136
+ localctx.exception = re;
137
+ this._errHandler.reportError(this, re);
138
+ this._errHandler.recover(this, re);
139
+ } else {
140
+ throw re;
141
+ }
142
+ } finally {
143
+ this.exitRule();
144
+ }
145
+ return localctx;
146
+ }
147
+
148
+
149
+
150
+ termseq() {
151
+ let localctx = new TermseqContext(this, this._ctx, this.state);
152
+ this.enterRule(localctx, 2, CLIFParser.RULE_termseq);
153
+ var _la = 0;
154
+ try {
155
+ this.enterOuterAlt(localctx, 1);
156
+ this.state = 54;
157
+ this._errHandler.sync(this);
158
+ _la = this._input.LA(1);
159
+ while((((_la) & ~0x1f) === 0 && ((1 << _la) & 33555394) !== 0)) {
160
+ this.state = 52;
161
+ this._errHandler.sync(this);
162
+ switch(this._input.LA(1)) {
163
+ case 1:
164
+ case 6:
165
+ case 8:
166
+ case 9:
167
+ case 25:
168
+ this.state = 50;
169
+ this.term();
170
+ break;
171
+ case 7:
172
+ this.state = 51;
173
+ this.match(CLIFParser.SEQMARK);
174
+ break;
175
+ default:
176
+ throw new antlr4.error.NoViableAltException(this);
177
+ }
178
+ this.state = 56;
179
+ this._errHandler.sync(this);
180
+ _la = this._input.LA(1);
181
+ }
182
+ } catch (re) {
183
+ if(re instanceof antlr4.error.RecognitionException) {
184
+ localctx.exception = re;
185
+ this._errHandler.reportError(this, re);
186
+ this._errHandler.recover(this, re);
187
+ } else {
188
+ throw re;
189
+ }
190
+ } finally {
191
+ this.exitRule();
192
+ }
193
+ return localctx;
194
+ }
195
+
196
+
197
+
198
+ interpretedname() {
199
+ let localctx = new InterpretednameContext(this, this._ctx, this.state);
200
+ this.enterRule(localctx, 4, CLIFParser.RULE_interpretedname);
201
+ var _la = 0;
202
+ try {
203
+ this.enterOuterAlt(localctx, 1);
204
+ this.state = 57;
205
+ _la = this._input.LA(1);
206
+ if(!(_la===6 || _la===8)) {
207
+ this._errHandler.recoverInline(this);
208
+ }
209
+ else {
210
+ this._errHandler.reportMatch(this);
211
+ this.consume();
212
+ }
213
+ } catch (re) {
214
+ if(re instanceof antlr4.error.RecognitionException) {
215
+ localctx.exception = re;
216
+ this._errHandler.reportError(this, re);
217
+ this._errHandler.recover(this, re);
218
+ } else {
219
+ throw re;
220
+ }
221
+ } finally {
222
+ this.exitRule();
223
+ }
224
+ return localctx;
225
+ }
226
+
227
+
228
+
229
+ interpretablename() {
230
+ let localctx = new InterpretablenameContext(this, this._ctx, this.state);
231
+ this.enterRule(localctx, 6, CLIFParser.RULE_interpretablename);
232
+ var _la = 0;
233
+ try {
234
+ this.enterOuterAlt(localctx, 1);
235
+ this.state = 59;
236
+ _la = this._input.LA(1);
237
+ if(!(_la===9 || _la===25)) {
238
+ this._errHandler.recoverInline(this);
239
+ }
240
+ else {
241
+ this._errHandler.reportMatch(this);
242
+ this.consume();
243
+ }
244
+ } catch (re) {
245
+ if(re instanceof antlr4.error.RecognitionException) {
246
+ localctx.exception = re;
247
+ this._errHandler.reportError(this, re);
248
+ this._errHandler.recover(this, re);
249
+ } else {
250
+ throw re;
251
+ }
252
+ } finally {
253
+ this.exitRule();
254
+ }
255
+ return localctx;
256
+ }
257
+
258
+
259
+
260
+ name() {
261
+ let localctx = new NameContext(this, this._ctx, this.state);
262
+ this.enterRule(localctx, 8, CLIFParser.RULE_name);
263
+ try {
264
+ this.state = 63;
265
+ this._errHandler.sync(this);
266
+ switch(this._input.LA(1)) {
267
+ case 6:
268
+ case 8:
269
+ this.enterOuterAlt(localctx, 1);
270
+ this.state = 61;
271
+ this.interpretedname();
272
+ break;
273
+ case 9:
274
+ case 25:
275
+ this.enterOuterAlt(localctx, 2);
276
+ this.state = 62;
277
+ this.interpretablename();
278
+ break;
279
+ default:
280
+ throw new antlr4.error.NoViableAltException(this);
281
+ }
282
+ } catch (re) {
283
+ if(re instanceof antlr4.error.RecognitionException) {
284
+ localctx.exception = re;
285
+ this._errHandler.reportError(this, re);
286
+ this._errHandler.recover(this, re);
287
+ } else {
288
+ throw re;
289
+ }
290
+ } finally {
291
+ this.exitRule();
292
+ }
293
+ return localctx;
294
+ }
295
+
296
+
297
+
298
+ term() {
299
+ let localctx = new TermContext(this, this._ctx, this.state);
300
+ this.enterRule(localctx, 10, CLIFParser.RULE_term);
301
+ try {
302
+ this.state = 77;
303
+ this._errHandler.sync(this);
304
+ var la_ = this._interp.adaptivePredict(this._input,4,this._ctx);
305
+ switch(la_) {
306
+ case 1:
307
+ this.enterOuterAlt(localctx, 1);
308
+ this.state = 65;
309
+ this.name();
310
+ break;
311
+
312
+ case 2:
313
+ this.enterOuterAlt(localctx, 2);
314
+ this.state = 66;
315
+ this.match(CLIFParser.OPEN);
316
+ this.state = 67;
317
+ this.operator_();
318
+ this.state = 68;
319
+ this.termseq();
320
+ this.state = 69;
321
+ this.match(CLIFParser.CLOSE);
322
+ break;
323
+
324
+ case 3:
325
+ this.enterOuterAlt(localctx, 3);
326
+ this.state = 71;
327
+ this.match(CLIFParser.OPEN);
328
+ this.state = 72;
329
+ this.match(CLIFParser.CL_COMMENT);
330
+ this.state = 73;
331
+ this.match(CLIFParser.QUOTEDSTRING);
332
+ this.state = 74;
333
+ this.term();
334
+ this.state = 75;
335
+ this.match(CLIFParser.CLOSE);
336
+ break;
337
+
338
+ }
339
+ } catch (re) {
340
+ if(re instanceof antlr4.error.RecognitionException) {
341
+ localctx.exception = re;
342
+ this._errHandler.reportError(this, re);
343
+ this._errHandler.recover(this, re);
344
+ } else {
345
+ throw re;
346
+ }
347
+ } finally {
348
+ this.exitRule();
349
+ }
350
+ return localctx;
351
+ }
352
+
353
+
354
+
355
+ operator_() {
356
+ let localctx = new Operator_Context(this, this._ctx, this.state);
357
+ this.enterRule(localctx, 12, CLIFParser.RULE_operator_);
358
+ try {
359
+ this.enterOuterAlt(localctx, 1);
360
+ this.state = 79;
361
+ this.term();
362
+ } catch (re) {
363
+ if(re instanceof antlr4.error.RecognitionException) {
364
+ localctx.exception = re;
365
+ this._errHandler.reportError(this, re);
366
+ this._errHandler.recover(this, re);
367
+ } else {
368
+ throw re;
369
+ }
370
+ } finally {
371
+ this.exitRule();
372
+ }
373
+ return localctx;
374
+ }
375
+
376
+
377
+
378
+ equation() {
379
+ let localctx = new EquationContext(this, this._ctx, this.state);
380
+ this.enterRule(localctx, 14, CLIFParser.RULE_equation);
381
+ try {
382
+ this.enterOuterAlt(localctx, 1);
383
+ this.state = 81;
384
+ this.match(CLIFParser.OPEN);
385
+ this.state = 82;
386
+ this.match(CLIFParser.EQUAL);
387
+ this.state = 83;
388
+ this.term();
389
+ this.state = 84;
390
+ this.term();
391
+ this.state = 85;
392
+ this.match(CLIFParser.CLOSE);
393
+ } catch (re) {
394
+ if(re instanceof antlr4.error.RecognitionException) {
395
+ localctx.exception = re;
396
+ this._errHandler.reportError(this, re);
397
+ this._errHandler.recover(this, re);
398
+ } else {
399
+ throw re;
400
+ }
401
+ } finally {
402
+ this.exitRule();
403
+ }
404
+ return localctx;
405
+ }
406
+
407
+
408
+
409
+ sentence() {
410
+ let localctx = new SentenceContext(this, this._ctx, this.state);
411
+ this.enterRule(localctx, 16, CLIFParser.RULE_sentence);
412
+ try {
413
+ this.state = 91;
414
+ this._errHandler.sync(this);
415
+ var la_ = this._interp.adaptivePredict(this._input,5,this._ctx);
416
+ switch(la_) {
417
+ case 1:
418
+ this.enterOuterAlt(localctx, 1);
419
+ this.state = 87;
420
+ this.atomsent();
421
+ break;
422
+
423
+ case 2:
424
+ this.enterOuterAlt(localctx, 2);
425
+ this.state = 88;
426
+ this.boolsent();
427
+ break;
428
+
429
+ case 3:
430
+ this.enterOuterAlt(localctx, 3);
431
+ this.state = 89;
432
+ this.quantsent();
433
+ break;
434
+
435
+ case 4:
436
+ this.enterOuterAlt(localctx, 4);
437
+ this.state = 90;
438
+ this.commentsent();
439
+ break;
440
+
441
+ }
442
+ } catch (re) {
443
+ if(re instanceof antlr4.error.RecognitionException) {
444
+ localctx.exception = re;
445
+ this._errHandler.reportError(this, re);
446
+ this._errHandler.recover(this, re);
447
+ } else {
448
+ throw re;
449
+ }
450
+ } finally {
451
+ this.exitRule();
452
+ }
453
+ return localctx;
454
+ }
455
+
456
+
457
+
458
+ atomsent() {
459
+ let localctx = new AtomsentContext(this, this._ctx, this.state);
460
+ this.enterRule(localctx, 18, CLIFParser.RULE_atomsent);
461
+ try {
462
+ this.state = 95;
463
+ this._errHandler.sync(this);
464
+ var la_ = this._interp.adaptivePredict(this._input,6,this._ctx);
465
+ switch(la_) {
466
+ case 1:
467
+ this.enterOuterAlt(localctx, 1);
468
+ this.state = 93;
469
+ this.equation();
470
+ break;
471
+
472
+ case 2:
473
+ this.enterOuterAlt(localctx, 2);
474
+ this.state = 94;
475
+ this.atom();
476
+ break;
477
+
478
+ }
479
+ } catch (re) {
480
+ if(re instanceof antlr4.error.RecognitionException) {
481
+ localctx.exception = re;
482
+ this._errHandler.reportError(this, re);
483
+ this._errHandler.recover(this, re);
484
+ } else {
485
+ throw re;
486
+ }
487
+ } finally {
488
+ this.exitRule();
489
+ }
490
+ return localctx;
491
+ }
492
+
493
+
494
+
495
+ atom() {
496
+ let localctx = new AtomContext(this, this._ctx, this.state);
497
+ this.enterRule(localctx, 20, CLIFParser.RULE_atom);
498
+ try {
499
+ this.state = 113;
500
+ this._errHandler.sync(this);
501
+ var la_ = this._interp.adaptivePredict(this._input,7,this._ctx);
502
+ switch(la_) {
503
+ case 1:
504
+ this.enterOuterAlt(localctx, 1);
505
+ this.state = 97;
506
+ this.match(CLIFParser.OPEN);
507
+ this.state = 98;
508
+ this.predicate();
509
+ this.state = 99;
510
+ this.termseq();
511
+ this.state = 100;
512
+ this.match(CLIFParser.CLOSE);
513
+ break;
514
+
515
+ case 2:
516
+ this.enterOuterAlt(localctx, 2);
517
+ this.state = 102;
518
+ this.match(CLIFParser.OPEN);
519
+ this.state = 103;
520
+ this.term();
521
+ this.state = 104;
522
+ this.match(CLIFParser.OPEN);
523
+ this.state = 105;
524
+ this.match(CLIFParser.CL_ROLESET);
525
+ this.state = 106;
526
+ this.match(CLIFParser.OPEN);
527
+ this.state = 107;
528
+ this.name();
529
+ this.state = 108;
530
+ this.term();
531
+ this.state = 109;
532
+ this.match(CLIFParser.CLOSE);
533
+ this.state = 110;
534
+ this.match(CLIFParser.CLOSE);
535
+ this.state = 111;
536
+ this.match(CLIFParser.CLOSE);
537
+ break;
538
+
539
+ }
540
+ } catch (re) {
541
+ if(re instanceof antlr4.error.RecognitionException) {
542
+ localctx.exception = re;
543
+ this._errHandler.reportError(this, re);
544
+ this._errHandler.recover(this, re);
545
+ } else {
546
+ throw re;
547
+ }
548
+ } finally {
549
+ this.exitRule();
550
+ }
551
+ return localctx;
552
+ }
553
+
554
+
555
+
556
+ predicate() {
557
+ let localctx = new PredicateContext(this, this._ctx, this.state);
558
+ this.enterRule(localctx, 22, CLIFParser.RULE_predicate);
559
+ try {
560
+ this.enterOuterAlt(localctx, 1);
561
+ this.state = 115;
562
+ this.term();
563
+ } catch (re) {
564
+ if(re instanceof antlr4.error.RecognitionException) {
565
+ localctx.exception = re;
566
+ this._errHandler.reportError(this, re);
567
+ this._errHandler.recover(this, re);
568
+ } else {
569
+ throw re;
570
+ }
571
+ } finally {
572
+ this.exitRule();
573
+ }
574
+ return localctx;
575
+ }
576
+
577
+
578
+
579
+ boolsent() {
580
+ let localctx = new BoolsentContext(this, this._ctx, this.state);
581
+ this.enterRule(localctx, 24, CLIFParser.RULE_boolsent);
582
+ var _la = 0;
583
+ try {
584
+ this.state = 137;
585
+ this._errHandler.sync(this);
586
+ var la_ = this._interp.adaptivePredict(this._input,9,this._ctx);
587
+ switch(la_) {
588
+ case 1:
589
+ this.enterOuterAlt(localctx, 1);
590
+ this.state = 117;
591
+ this.match(CLIFParser.OPEN);
592
+ this.state = 118;
593
+ _la = this._input.LA(1);
594
+ if(!(_la===11 || _la===12)) {
595
+ this._errHandler.recoverInline(this);
596
+ }
597
+ else {
598
+ this._errHandler.reportMatch(this);
599
+ this.consume();
600
+ }
601
+ this.state = 122;
602
+ this._errHandler.sync(this);
603
+ _la = this._input.LA(1);
604
+ while(_la===1) {
605
+ this.state = 119;
606
+ this.sentence();
607
+ this.state = 124;
608
+ this._errHandler.sync(this);
609
+ _la = this._input.LA(1);
610
+ }
611
+ this.state = 125;
612
+ this.match(CLIFParser.CLOSE);
613
+ break;
614
+
615
+ case 2:
616
+ this.enterOuterAlt(localctx, 2);
617
+ this.state = 126;
618
+ this.match(CLIFParser.OPEN);
619
+ this.state = 127;
620
+ _la = this._input.LA(1);
621
+ if(!(_la===13 || _la===14)) {
622
+ this._errHandler.recoverInline(this);
623
+ }
624
+ else {
625
+ this._errHandler.reportMatch(this);
626
+ this.consume();
627
+ }
628
+ this.state = 128;
629
+ this.sentence();
630
+ this.state = 129;
631
+ this.sentence();
632
+ this.state = 130;
633
+ this.match(CLIFParser.CLOSE);
634
+ break;
635
+
636
+ case 3:
637
+ this.enterOuterAlt(localctx, 3);
638
+ this.state = 132;
639
+ this.match(CLIFParser.OPEN);
640
+ this.state = 133;
641
+ this.match(CLIFParser.NOT);
642
+ this.state = 134;
643
+ this.sentence();
644
+ this.state = 135;
645
+ this.match(CLIFParser.CLOSE);
646
+ break;
647
+
648
+ }
649
+ } catch (re) {
650
+ if(re instanceof antlr4.error.RecognitionException) {
651
+ localctx.exception = re;
652
+ this._errHandler.reportError(this, re);
653
+ this._errHandler.recover(this, re);
654
+ } else {
655
+ throw re;
656
+ }
657
+ } finally {
658
+ this.exitRule();
659
+ }
660
+ return localctx;
661
+ }
662
+
663
+
664
+
665
+ quantsent() {
666
+ let localctx = new QuantsentContext(this, this._ctx, this.state);
667
+ this.enterRule(localctx, 26, CLIFParser.RULE_quantsent);
668
+ var _la = 0;
669
+ try {
670
+ this.enterOuterAlt(localctx, 1);
671
+ this.state = 139;
672
+ this.match(CLIFParser.OPEN);
673
+ this.state = 140;
674
+ _la = this._input.LA(1);
675
+ if(!(_la===15 || _la===16)) {
676
+ this._errHandler.recoverInline(this);
677
+ }
678
+ else {
679
+ this._errHandler.reportMatch(this);
680
+ this.consume();
681
+ }
682
+ this.state = 142;
683
+ this._errHandler.sync(this);
684
+ _la = this._input.LA(1);
685
+ if(_la===9 || _la===25) {
686
+ this.state = 141;
687
+ this.interpretablename();
688
+ }
689
+
690
+ this.state = 144;
691
+ this.boundlist();
692
+ this.state = 145;
693
+ this.sentence();
694
+ this.state = 146;
695
+ this.match(CLIFParser.CLOSE);
696
+ } catch (re) {
697
+ if(re instanceof antlr4.error.RecognitionException) {
698
+ localctx.exception = re;
699
+ this._errHandler.reportError(this, re);
700
+ this._errHandler.recover(this, re);
701
+ } else {
702
+ throw re;
703
+ }
704
+ } finally {
705
+ this.exitRule();
706
+ }
707
+ return localctx;
708
+ }
709
+
710
+
711
+
712
+ boundlist() {
713
+ let localctx = new BoundlistContext(this, this._ctx, this.state);
714
+ this.enterRule(localctx, 28, CLIFParser.RULE_boundlist);
715
+ var _la = 0;
716
+ try {
717
+ this.enterOuterAlt(localctx, 1);
718
+ this.state = 148;
719
+ this.match(CLIFParser.OPEN);
720
+ this.state = 161;
721
+ this._errHandler.sync(this);
722
+ _la = this._input.LA(1);
723
+ while((((_la) & ~0x1f) === 0 && ((1 << _la) & 33555074) !== 0)) {
724
+ this.state = 159;
725
+ this._errHandler.sync(this);
726
+ switch(this._input.LA(1)) {
727
+ case 9:
728
+ case 25:
729
+ this.state = 149;
730
+ this.interpretablename();
731
+ break;
732
+ case 7:
733
+ this.state = 150;
734
+ this.match(CLIFParser.SEQMARK);
735
+ break;
736
+ case 1:
737
+ this.state = 151;
738
+ this.match(CLIFParser.OPEN);
739
+ this.state = 154;
740
+ this._errHandler.sync(this);
741
+ switch(this._input.LA(1)) {
742
+ case 9:
743
+ case 25:
744
+ this.state = 152;
745
+ this.interpretablename();
746
+ break;
747
+ case 7:
748
+ this.state = 153;
749
+ this.match(CLIFParser.SEQMARK);
750
+ break;
751
+ default:
752
+ throw new antlr4.error.NoViableAltException(this);
753
+ }
754
+ this.state = 156;
755
+ this.term();
756
+ this.state = 157;
757
+ this.match(CLIFParser.CLOSE);
758
+ break;
759
+ default:
760
+ throw new antlr4.error.NoViableAltException(this);
761
+ }
762
+ this.state = 163;
763
+ this._errHandler.sync(this);
764
+ _la = this._input.LA(1);
765
+ }
766
+ this.state = 164;
767
+ this.match(CLIFParser.CLOSE);
768
+ } catch (re) {
769
+ if(re instanceof antlr4.error.RecognitionException) {
770
+ localctx.exception = re;
771
+ this._errHandler.reportError(this, re);
772
+ this._errHandler.recover(this, re);
773
+ } else {
774
+ throw re;
775
+ }
776
+ } finally {
777
+ this.exitRule();
778
+ }
779
+ return localctx;
780
+ }
781
+
782
+
783
+
784
+ commentsent() {
785
+ let localctx = new CommentsentContext(this, this._ctx, this.state);
786
+ this.enterRule(localctx, 30, CLIFParser.RULE_commentsent);
787
+ try {
788
+ this.enterOuterAlt(localctx, 1);
789
+ this.state = 166;
790
+ this.match(CLIFParser.OPEN);
791
+ this.state = 167;
792
+ this.match(CLIFParser.CL_COMMENT);
793
+ this.state = 168;
794
+ this.match(CLIFParser.ENCLOSEDNAME);
795
+ this.state = 169;
796
+ this.sentence();
797
+ this.state = 170;
798
+ this.match(CLIFParser.CLOSE);
799
+ } catch (re) {
800
+ if(re instanceof antlr4.error.RecognitionException) {
801
+ localctx.exception = re;
802
+ this._errHandler.reportError(this, re);
803
+ this._errHandler.recover(this, re);
804
+ } else {
805
+ throw re;
806
+ }
807
+ } finally {
808
+ this.exitRule();
809
+ }
810
+ return localctx;
811
+ }
812
+
813
+
814
+
815
+ module() {
816
+ let localctx = new ModuleContext(this, this._ctx, this.state);
817
+ this.enterRule(localctx, 32, CLIFParser.RULE_module);
818
+ var _la = 0;
819
+ try {
820
+ this.enterOuterAlt(localctx, 1);
821
+ this.state = 172;
822
+ this.match(CLIFParser.OPEN);
823
+ this.state = 173;
824
+ this.match(CLIFParser.CL_MODULE);
825
+ this.state = 174;
826
+ this.interpretablename();
827
+ this.state = 184;
828
+ this._errHandler.sync(this);
829
+ var la_ = this._interp.adaptivePredict(this._input,15,this._ctx);
830
+ if(la_===1) {
831
+ this.state = 175;
832
+ this.match(CLIFParser.OPEN);
833
+ this.state = 176;
834
+ this.match(CLIFParser.CL_EXCLUDES);
835
+ this.state = 180;
836
+ this._errHandler.sync(this);
837
+ _la = this._input.LA(1);
838
+ while((((_la) & ~0x1f) === 0 && ((1 << _la) & 33555264) !== 0)) {
839
+ this.state = 177;
840
+ this.name();
841
+ this.state = 182;
842
+ this._errHandler.sync(this);
843
+ _la = this._input.LA(1);
844
+ }
845
+ this.state = 183;
846
+ this.match(CLIFParser.CLOSE);
847
+
848
+ }
849
+ this.state = 189;
850
+ this._errHandler.sync(this);
851
+ _la = this._input.LA(1);
852
+ while(_la===1) {
853
+ this.state = 186;
854
+ this.cltext();
855
+ this.state = 191;
856
+ this._errHandler.sync(this);
857
+ _la = this._input.LA(1);
858
+ }
859
+ this.state = 192;
860
+ this.match(CLIFParser.CLOSE);
861
+ } catch (re) {
862
+ if(re instanceof antlr4.error.RecognitionException) {
863
+ localctx.exception = re;
864
+ this._errHandler.reportError(this, re);
865
+ this._errHandler.recover(this, re);
866
+ } else {
867
+ throw re;
868
+ }
869
+ } finally {
870
+ this.exitRule();
871
+ }
872
+ return localctx;
873
+ }
874
+
875
+
876
+
877
+ phrase() {
878
+ let localctx = new PhraseContext(this, this._ctx, this.state);
879
+ this.enterRule(localctx, 34, CLIFParser.RULE_phrase);
880
+ var _la = 0;
881
+ try {
882
+ this.state = 208;
883
+ this._errHandler.sync(this);
884
+ var la_ = this._interp.adaptivePredict(this._input,18,this._ctx);
885
+ switch(la_) {
886
+ case 1:
887
+ this.enterOuterAlt(localctx, 1);
888
+ this.state = 194;
889
+ this.sentence();
890
+ break;
891
+
892
+ case 2:
893
+ this.enterOuterAlt(localctx, 2);
894
+ this.state = 195;
895
+ this.module();
896
+ break;
897
+
898
+ case 3:
899
+ this.enterOuterAlt(localctx, 3);
900
+ this.state = 196;
901
+ this.match(CLIFParser.OPEN);
902
+ this.state = 197;
903
+ this.match(CLIFParser.CL_IMPORTS);
904
+ this.state = 198;
905
+ this.interpretablename();
906
+ this.state = 199;
907
+ this.match(CLIFParser.CLOSE);
908
+ break;
909
+
910
+ case 4:
911
+ this.enterOuterAlt(localctx, 4);
912
+ this.state = 201;
913
+ this.match(CLIFParser.OPEN);
914
+ this.state = 202;
915
+ this.match(CLIFParser.CL_COMMENT);
916
+ this.state = 203;
917
+ this.match(CLIFParser.ENCLOSEDNAME);
918
+ this.state = 205;
919
+ this._errHandler.sync(this);
920
+ _la = this._input.LA(1);
921
+ if(_la===1) {
922
+ this.state = 204;
923
+ this.cltext();
924
+ }
925
+
926
+ this.state = 207;
927
+ this.match(CLIFParser.CLOSE);
928
+ break;
929
+
930
+ }
931
+ } catch (re) {
932
+ if(re instanceof antlr4.error.RecognitionException) {
933
+ localctx.exception = re;
934
+ this._errHandler.reportError(this, re);
935
+ this._errHandler.recover(this, re);
936
+ } else {
937
+ throw re;
938
+ }
939
+ } finally {
940
+ this.exitRule();
941
+ }
942
+ return localctx;
943
+ }
944
+
945
+
946
+
947
+ text_() {
948
+ let localctx = new Text_Context(this, this._ctx, this.state);
949
+ this.enterRule(localctx, 36, CLIFParser.RULE_text_);
950
+ try {
951
+ this.enterOuterAlt(localctx, 1);
952
+ this.state = 211;
953
+ this._errHandler.sync(this);
954
+ var _alt = 1;
955
+ do {
956
+ switch (_alt) {
957
+ case 1:
958
+ this.state = 210;
959
+ this.phrase();
960
+ break;
961
+ default:
962
+ throw new antlr4.error.NoViableAltException(this);
963
+ }
964
+ this.state = 213;
965
+ this._errHandler.sync(this);
966
+ _alt = this._interp.adaptivePredict(this._input,19, this._ctx);
967
+ } while ( _alt!=2 && _alt!=antlr4.atn.ATN.INVALID_ALT_NUMBER );
968
+ } catch (re) {
969
+ if(re instanceof antlr4.error.RecognitionException) {
970
+ localctx.exception = re;
971
+ this._errHandler.reportError(this, re);
972
+ this._errHandler.recover(this, re);
973
+ } else {
974
+ throw re;
975
+ }
976
+ } finally {
977
+ this.exitRule();
978
+ }
979
+ return localctx;
980
+ }
981
+
982
+
983
+
984
+ cltext() {
985
+ let localctx = new CltextContext(this, this._ctx, this.state);
986
+ this.enterRule(localctx, 38, CLIFParser.RULE_cltext);
987
+ try {
988
+ this.state = 218;
989
+ this._errHandler.sync(this);
990
+ var la_ = this._interp.adaptivePredict(this._input,20,this._ctx);
991
+ switch(la_) {
992
+ case 1:
993
+ this.enterOuterAlt(localctx, 1);
994
+ this.state = 215;
995
+ this.module();
996
+ break;
997
+
998
+ case 2:
999
+ this.enterOuterAlt(localctx, 2);
1000
+ this.state = 216;
1001
+ this.namedtext();
1002
+ break;
1003
+
1004
+ case 3:
1005
+ this.enterOuterAlt(localctx, 3);
1006
+ this.state = 217;
1007
+ this.text_();
1008
+ break;
1009
+
1010
+ }
1011
+ } catch (re) {
1012
+ if(re instanceof antlr4.error.RecognitionException) {
1013
+ localctx.exception = re;
1014
+ this._errHandler.reportError(this, re);
1015
+ this._errHandler.recover(this, re);
1016
+ } else {
1017
+ throw re;
1018
+ }
1019
+ } finally {
1020
+ this.exitRule();
1021
+ }
1022
+ return localctx;
1023
+ }
1024
+
1025
+
1026
+
1027
+ namedtext() {
1028
+ let localctx = new NamedtextContext(this, this._ctx, this.state);
1029
+ this.enterRule(localctx, 40, CLIFParser.RULE_namedtext);
1030
+ var _la = 0;
1031
+ try {
1032
+ this.enterOuterAlt(localctx, 1);
1033
+ this.state = 220;
1034
+ this.match(CLIFParser.OPEN);
1035
+ this.state = 221;
1036
+ this.match(CLIFParser.CL_TEXT);
1037
+ this.state = 222;
1038
+ this.interpretablename();
1039
+ this.state = 224;
1040
+ this._errHandler.sync(this);
1041
+ _la = this._input.LA(1);
1042
+ if(_la===1) {
1043
+ this.state = 223;
1044
+ this.text_();
1045
+ }
1046
+
1047
+ this.state = 226;
1048
+ this.match(CLIFParser.CLOSE);
1049
+ } catch (re) {
1050
+ if(re instanceof antlr4.error.RecognitionException) {
1051
+ localctx.exception = re;
1052
+ this._errHandler.reportError(this, re);
1053
+ this._errHandler.recover(this, re);
1054
+ } else {
1055
+ throw re;
1056
+ }
1057
+ } finally {
1058
+ this.exitRule();
1059
+ }
1060
+ return localctx;
1061
+ }
1062
+
1063
+
1064
+ }
1065
+
1066
+ CLIFParser.EOF = antlr4.Token.EOF;
1067
+ CLIFParser.OPEN = 1;
1068
+ CLIFParser.CLOSE = 2;
1069
+ CLIFParser.STRINGQUOTE = 3;
1070
+ CLIFParser.NAMEQUOTE = 4;
1071
+ CLIFParser.BACKSLASH = 5;
1072
+ CLIFParser.NUMERAL = 6;
1073
+ CLIFParser.SEQMARK = 7;
1074
+ CLIFParser.QUOTEDSTRING = 8;
1075
+ CLIFParser.ENCLOSEDNAME = 9;
1076
+ CLIFParser.EQUAL = 10;
1077
+ CLIFParser.AND = 11;
1078
+ CLIFParser.OR = 12;
1079
+ CLIFParser.IFF = 13;
1080
+ CLIFParser.IF = 14;
1081
+ CLIFParser.FORALL = 15;
1082
+ CLIFParser.EXISTS = 16;
1083
+ CLIFParser.NOT = 17;
1084
+ CLIFParser.CL_ROLESET = 18;
1085
+ CLIFParser.CL_TEXT = 19;
1086
+ CLIFParser.CL_IMPORTS = 20;
1087
+ CLIFParser.CL_EXCLUDES = 21;
1088
+ CLIFParser.CL_MODULE = 22;
1089
+ CLIFParser.CL_COMMENT = 23;
1090
+ CLIFParser.CL_PREFIX = 24;
1091
+ CLIFParser.NAMECHARSEQUENCE = 25;
1092
+ CLIFParser.WHITE = 26;
1093
+ CLIFParser.BLOCKCOMMENT = 27;
1094
+ CLIFParser.LineComment = 28;
1095
+
1096
+ CLIFParser.RULE_start_ = 0;
1097
+ CLIFParser.RULE_termseq = 1;
1098
+ CLIFParser.RULE_interpretedname = 2;
1099
+ CLIFParser.RULE_interpretablename = 3;
1100
+ CLIFParser.RULE_name = 4;
1101
+ CLIFParser.RULE_term = 5;
1102
+ CLIFParser.RULE_operator_ = 6;
1103
+ CLIFParser.RULE_equation = 7;
1104
+ CLIFParser.RULE_sentence = 8;
1105
+ CLIFParser.RULE_atomsent = 9;
1106
+ CLIFParser.RULE_atom = 10;
1107
+ CLIFParser.RULE_predicate = 11;
1108
+ CLIFParser.RULE_boolsent = 12;
1109
+ CLIFParser.RULE_quantsent = 13;
1110
+ CLIFParser.RULE_boundlist = 14;
1111
+ CLIFParser.RULE_commentsent = 15;
1112
+ CLIFParser.RULE_module = 16;
1113
+ CLIFParser.RULE_phrase = 17;
1114
+ CLIFParser.RULE_text_ = 18;
1115
+ CLIFParser.RULE_cltext = 19;
1116
+ CLIFParser.RULE_namedtext = 20;
1117
+
1118
+ class Start_Context extends antlr4.ParserRuleContext {
1119
+
1120
+ constructor(parser, parent, invokingState) {
1121
+ if(parent===undefined) {
1122
+ parent = null;
1123
+ }
1124
+ if(invokingState===undefined || invokingState===null) {
1125
+ invokingState = -1;
1126
+ }
1127
+ super(parent, invokingState);
1128
+ this.parser = parser;
1129
+ this.ruleIndex = CLIFParser.RULE_start_;
1130
+ }
1131
+
1132
+ EOF() {
1133
+ return this.getToken(CLIFParser.EOF, 0);
1134
+ };
1135
+
1136
+ cltext = function(i) {
1137
+ if(i===undefined) {
1138
+ i = null;
1139
+ }
1140
+ if(i===null) {
1141
+ return this.getTypedRuleContexts(CltextContext);
1142
+ } else {
1143
+ return this.getTypedRuleContext(CltextContext,i);
1144
+ }
1145
+ };
1146
+
1147
+ enterRule(listener) {
1148
+ if(listener instanceof CLIFListener ) {
1149
+ listener.enterStart_(this);
1150
+ }
1151
+ }
1152
+
1153
+ exitRule(listener) {
1154
+ if(listener instanceof CLIFListener ) {
1155
+ listener.exitStart_(this);
1156
+ }
1157
+ }
1158
+
1159
+ accept(visitor) {
1160
+ if ( visitor instanceof CLIFVisitor ) {
1161
+ return visitor.visitStart_(this);
1162
+ } else {
1163
+ return visitor.visitChildren(this);
1164
+ }
1165
+ }
1166
+
1167
+
1168
+ }
1169
+
1170
+
1171
+
1172
+ class TermseqContext extends antlr4.ParserRuleContext {
1173
+
1174
+ constructor(parser, parent, invokingState) {
1175
+ if(parent===undefined) {
1176
+ parent = null;
1177
+ }
1178
+ if(invokingState===undefined || invokingState===null) {
1179
+ invokingState = -1;
1180
+ }
1181
+ super(parent, invokingState);
1182
+ this.parser = parser;
1183
+ this.ruleIndex = CLIFParser.RULE_termseq;
1184
+ }
1185
+
1186
+ term = function(i) {
1187
+ if(i===undefined) {
1188
+ i = null;
1189
+ }
1190
+ if(i===null) {
1191
+ return this.getTypedRuleContexts(TermContext);
1192
+ } else {
1193
+ return this.getTypedRuleContext(TermContext,i);
1194
+ }
1195
+ };
1196
+
1197
+ SEQMARK = function(i) {
1198
+ if(i===undefined) {
1199
+ i = null;
1200
+ }
1201
+ if(i===null) {
1202
+ return this.getTokens(CLIFParser.SEQMARK);
1203
+ } else {
1204
+ return this.getToken(CLIFParser.SEQMARK, i);
1205
+ }
1206
+ };
1207
+
1208
+
1209
+ enterRule(listener) {
1210
+ if(listener instanceof CLIFListener ) {
1211
+ listener.enterTermseq(this);
1212
+ }
1213
+ }
1214
+
1215
+ exitRule(listener) {
1216
+ if(listener instanceof CLIFListener ) {
1217
+ listener.exitTermseq(this);
1218
+ }
1219
+ }
1220
+
1221
+ accept(visitor) {
1222
+ if ( visitor instanceof CLIFVisitor ) {
1223
+ return visitor.visitTermseq(this);
1224
+ } else {
1225
+ return visitor.visitChildren(this);
1226
+ }
1227
+ }
1228
+
1229
+
1230
+ }
1231
+
1232
+
1233
+
1234
+ class InterpretednameContext extends antlr4.ParserRuleContext {
1235
+
1236
+ constructor(parser, parent, invokingState) {
1237
+ if(parent===undefined) {
1238
+ parent = null;
1239
+ }
1240
+ if(invokingState===undefined || invokingState===null) {
1241
+ invokingState = -1;
1242
+ }
1243
+ super(parent, invokingState);
1244
+ this.parser = parser;
1245
+ this.ruleIndex = CLIFParser.RULE_interpretedname;
1246
+ }
1247
+
1248
+ NUMERAL() {
1249
+ return this.getToken(CLIFParser.NUMERAL, 0);
1250
+ };
1251
+
1252
+ QUOTEDSTRING() {
1253
+ return this.getToken(CLIFParser.QUOTEDSTRING, 0);
1254
+ };
1255
+
1256
+ enterRule(listener) {
1257
+ if(listener instanceof CLIFListener ) {
1258
+ listener.enterInterpretedname(this);
1259
+ }
1260
+ }
1261
+
1262
+ exitRule(listener) {
1263
+ if(listener instanceof CLIFListener ) {
1264
+ listener.exitInterpretedname(this);
1265
+ }
1266
+ }
1267
+
1268
+ accept(visitor) {
1269
+ if ( visitor instanceof CLIFVisitor ) {
1270
+ return visitor.visitInterpretedname(this);
1271
+ } else {
1272
+ return visitor.visitChildren(this);
1273
+ }
1274
+ }
1275
+
1276
+
1277
+ }
1278
+
1279
+
1280
+
1281
+ class InterpretablenameContext extends antlr4.ParserRuleContext {
1282
+
1283
+ constructor(parser, parent, invokingState) {
1284
+ if(parent===undefined) {
1285
+ parent = null;
1286
+ }
1287
+ if(invokingState===undefined || invokingState===null) {
1288
+ invokingState = -1;
1289
+ }
1290
+ super(parent, invokingState);
1291
+ this.parser = parser;
1292
+ this.ruleIndex = CLIFParser.RULE_interpretablename;
1293
+ }
1294
+
1295
+ NAMECHARSEQUENCE() {
1296
+ return this.getToken(CLIFParser.NAMECHARSEQUENCE, 0);
1297
+ };
1298
+
1299
+ ENCLOSEDNAME() {
1300
+ return this.getToken(CLIFParser.ENCLOSEDNAME, 0);
1301
+ };
1302
+
1303
+ enterRule(listener) {
1304
+ if(listener instanceof CLIFListener ) {
1305
+ listener.enterInterpretablename(this);
1306
+ }
1307
+ }
1308
+
1309
+ exitRule(listener) {
1310
+ if(listener instanceof CLIFListener ) {
1311
+ listener.exitInterpretablename(this);
1312
+ }
1313
+ }
1314
+
1315
+ accept(visitor) {
1316
+ if ( visitor instanceof CLIFVisitor ) {
1317
+ return visitor.visitInterpretablename(this);
1318
+ } else {
1319
+ return visitor.visitChildren(this);
1320
+ }
1321
+ }
1322
+
1323
+
1324
+ }
1325
+
1326
+
1327
+
1328
+ class NameContext extends antlr4.ParserRuleContext {
1329
+
1330
+ constructor(parser, parent, invokingState) {
1331
+ if(parent===undefined) {
1332
+ parent = null;
1333
+ }
1334
+ if(invokingState===undefined || invokingState===null) {
1335
+ invokingState = -1;
1336
+ }
1337
+ super(parent, invokingState);
1338
+ this.parser = parser;
1339
+ this.ruleIndex = CLIFParser.RULE_name;
1340
+ }
1341
+
1342
+ interpretedname() {
1343
+ return this.getTypedRuleContext(InterpretednameContext,0);
1344
+ };
1345
+
1346
+ interpretablename() {
1347
+ return this.getTypedRuleContext(InterpretablenameContext,0);
1348
+ };
1349
+
1350
+ enterRule(listener) {
1351
+ if(listener instanceof CLIFListener ) {
1352
+ listener.enterName(this);
1353
+ }
1354
+ }
1355
+
1356
+ exitRule(listener) {
1357
+ if(listener instanceof CLIFListener ) {
1358
+ listener.exitName(this);
1359
+ }
1360
+ }
1361
+
1362
+ accept(visitor) {
1363
+ if ( visitor instanceof CLIFVisitor ) {
1364
+ return visitor.visitName(this);
1365
+ } else {
1366
+ return visitor.visitChildren(this);
1367
+ }
1368
+ }
1369
+
1370
+
1371
+ }
1372
+
1373
+
1374
+
1375
+ class TermContext extends antlr4.ParserRuleContext {
1376
+
1377
+ constructor(parser, parent, invokingState) {
1378
+ if(parent===undefined) {
1379
+ parent = null;
1380
+ }
1381
+ if(invokingState===undefined || invokingState===null) {
1382
+ invokingState = -1;
1383
+ }
1384
+ super(parent, invokingState);
1385
+ this.parser = parser;
1386
+ this.ruleIndex = CLIFParser.RULE_term;
1387
+ }
1388
+
1389
+ name() {
1390
+ return this.getTypedRuleContext(NameContext,0);
1391
+ };
1392
+
1393
+ OPEN() {
1394
+ return this.getToken(CLIFParser.OPEN, 0);
1395
+ };
1396
+
1397
+ operator_() {
1398
+ return this.getTypedRuleContext(Operator_Context,0);
1399
+ };
1400
+
1401
+ termseq() {
1402
+ return this.getTypedRuleContext(TermseqContext,0);
1403
+ };
1404
+
1405
+ CLOSE() {
1406
+ return this.getToken(CLIFParser.CLOSE, 0);
1407
+ };
1408
+
1409
+ CL_COMMENT() {
1410
+ return this.getToken(CLIFParser.CL_COMMENT, 0);
1411
+ };
1412
+
1413
+ QUOTEDSTRING() {
1414
+ return this.getToken(CLIFParser.QUOTEDSTRING, 0);
1415
+ };
1416
+
1417
+ term() {
1418
+ return this.getTypedRuleContext(TermContext,0);
1419
+ };
1420
+
1421
+ enterRule(listener) {
1422
+ if(listener instanceof CLIFListener ) {
1423
+ listener.enterTerm(this);
1424
+ }
1425
+ }
1426
+
1427
+ exitRule(listener) {
1428
+ if(listener instanceof CLIFListener ) {
1429
+ listener.exitTerm(this);
1430
+ }
1431
+ }
1432
+
1433
+ accept(visitor) {
1434
+ if ( visitor instanceof CLIFVisitor ) {
1435
+ return visitor.visitTerm(this);
1436
+ } else {
1437
+ return visitor.visitChildren(this);
1438
+ }
1439
+ }
1440
+
1441
+
1442
+ }
1443
+
1444
+
1445
+
1446
+ class Operator_Context extends antlr4.ParserRuleContext {
1447
+
1448
+ constructor(parser, parent, invokingState) {
1449
+ if(parent===undefined) {
1450
+ parent = null;
1451
+ }
1452
+ if(invokingState===undefined || invokingState===null) {
1453
+ invokingState = -1;
1454
+ }
1455
+ super(parent, invokingState);
1456
+ this.parser = parser;
1457
+ this.ruleIndex = CLIFParser.RULE_operator_;
1458
+ }
1459
+
1460
+ term() {
1461
+ return this.getTypedRuleContext(TermContext,0);
1462
+ };
1463
+
1464
+ enterRule(listener) {
1465
+ if(listener instanceof CLIFListener ) {
1466
+ listener.enterOperator_(this);
1467
+ }
1468
+ }
1469
+
1470
+ exitRule(listener) {
1471
+ if(listener instanceof CLIFListener ) {
1472
+ listener.exitOperator_(this);
1473
+ }
1474
+ }
1475
+
1476
+ accept(visitor) {
1477
+ if ( visitor instanceof CLIFVisitor ) {
1478
+ return visitor.visitOperator_(this);
1479
+ } else {
1480
+ return visitor.visitChildren(this);
1481
+ }
1482
+ }
1483
+
1484
+
1485
+ }
1486
+
1487
+
1488
+
1489
+ class EquationContext extends antlr4.ParserRuleContext {
1490
+
1491
+ constructor(parser, parent, invokingState) {
1492
+ if(parent===undefined) {
1493
+ parent = null;
1494
+ }
1495
+ if(invokingState===undefined || invokingState===null) {
1496
+ invokingState = -1;
1497
+ }
1498
+ super(parent, invokingState);
1499
+ this.parser = parser;
1500
+ this.ruleIndex = CLIFParser.RULE_equation;
1501
+ }
1502
+
1503
+ OPEN() {
1504
+ return this.getToken(CLIFParser.OPEN, 0);
1505
+ };
1506
+
1507
+ EQUAL() {
1508
+ return this.getToken(CLIFParser.EQUAL, 0);
1509
+ };
1510
+
1511
+ term = function(i) {
1512
+ if(i===undefined) {
1513
+ i = null;
1514
+ }
1515
+ if(i===null) {
1516
+ return this.getTypedRuleContexts(TermContext);
1517
+ } else {
1518
+ return this.getTypedRuleContext(TermContext,i);
1519
+ }
1520
+ };
1521
+
1522
+ CLOSE() {
1523
+ return this.getToken(CLIFParser.CLOSE, 0);
1524
+ };
1525
+
1526
+ enterRule(listener) {
1527
+ if(listener instanceof CLIFListener ) {
1528
+ listener.enterEquation(this);
1529
+ }
1530
+ }
1531
+
1532
+ exitRule(listener) {
1533
+ if(listener instanceof CLIFListener ) {
1534
+ listener.exitEquation(this);
1535
+ }
1536
+ }
1537
+
1538
+ accept(visitor) {
1539
+ if ( visitor instanceof CLIFVisitor ) {
1540
+ return visitor.visitEquation(this);
1541
+ } else {
1542
+ return visitor.visitChildren(this);
1543
+ }
1544
+ }
1545
+
1546
+
1547
+ }
1548
+
1549
+
1550
+
1551
+ class SentenceContext extends antlr4.ParserRuleContext {
1552
+
1553
+ constructor(parser, parent, invokingState) {
1554
+ if(parent===undefined) {
1555
+ parent = null;
1556
+ }
1557
+ if(invokingState===undefined || invokingState===null) {
1558
+ invokingState = -1;
1559
+ }
1560
+ super(parent, invokingState);
1561
+ this.parser = parser;
1562
+ this.ruleIndex = CLIFParser.RULE_sentence;
1563
+ }
1564
+
1565
+ atomsent() {
1566
+ return this.getTypedRuleContext(AtomsentContext,0);
1567
+ };
1568
+
1569
+ boolsent() {
1570
+ return this.getTypedRuleContext(BoolsentContext,0);
1571
+ };
1572
+
1573
+ quantsent() {
1574
+ return this.getTypedRuleContext(QuantsentContext,0);
1575
+ };
1576
+
1577
+ commentsent() {
1578
+ return this.getTypedRuleContext(CommentsentContext,0);
1579
+ };
1580
+
1581
+ enterRule(listener) {
1582
+ if(listener instanceof CLIFListener ) {
1583
+ listener.enterSentence(this);
1584
+ }
1585
+ }
1586
+
1587
+ exitRule(listener) {
1588
+ if(listener instanceof CLIFListener ) {
1589
+ listener.exitSentence(this);
1590
+ }
1591
+ }
1592
+
1593
+ accept(visitor) {
1594
+ if ( visitor instanceof CLIFVisitor ) {
1595
+ return visitor.visitSentence(this);
1596
+ } else {
1597
+ return visitor.visitChildren(this);
1598
+ }
1599
+ }
1600
+
1601
+
1602
+ }
1603
+
1604
+
1605
+
1606
+ class AtomsentContext extends antlr4.ParserRuleContext {
1607
+
1608
+ constructor(parser, parent, invokingState) {
1609
+ if(parent===undefined) {
1610
+ parent = null;
1611
+ }
1612
+ if(invokingState===undefined || invokingState===null) {
1613
+ invokingState = -1;
1614
+ }
1615
+ super(parent, invokingState);
1616
+ this.parser = parser;
1617
+ this.ruleIndex = CLIFParser.RULE_atomsent;
1618
+ }
1619
+
1620
+ equation() {
1621
+ return this.getTypedRuleContext(EquationContext,0);
1622
+ };
1623
+
1624
+ atom() {
1625
+ return this.getTypedRuleContext(AtomContext,0);
1626
+ };
1627
+
1628
+ enterRule(listener) {
1629
+ if(listener instanceof CLIFListener ) {
1630
+ listener.enterAtomsent(this);
1631
+ }
1632
+ }
1633
+
1634
+ exitRule(listener) {
1635
+ if(listener instanceof CLIFListener ) {
1636
+ listener.exitAtomsent(this);
1637
+ }
1638
+ }
1639
+
1640
+ accept(visitor) {
1641
+ if ( visitor instanceof CLIFVisitor ) {
1642
+ return visitor.visitAtomsent(this);
1643
+ } else {
1644
+ return visitor.visitChildren(this);
1645
+ }
1646
+ }
1647
+
1648
+
1649
+ }
1650
+
1651
+
1652
+
1653
+ class AtomContext extends antlr4.ParserRuleContext {
1654
+
1655
+ constructor(parser, parent, invokingState) {
1656
+ if(parent===undefined) {
1657
+ parent = null;
1658
+ }
1659
+ if(invokingState===undefined || invokingState===null) {
1660
+ invokingState = -1;
1661
+ }
1662
+ super(parent, invokingState);
1663
+ this.parser = parser;
1664
+ this.ruleIndex = CLIFParser.RULE_atom;
1665
+ }
1666
+
1667
+ OPEN = function(i) {
1668
+ if(i===undefined) {
1669
+ i = null;
1670
+ }
1671
+ if(i===null) {
1672
+ return this.getTokens(CLIFParser.OPEN);
1673
+ } else {
1674
+ return this.getToken(CLIFParser.OPEN, i);
1675
+ }
1676
+ };
1677
+
1678
+
1679
+ predicate() {
1680
+ return this.getTypedRuleContext(PredicateContext,0);
1681
+ };
1682
+
1683
+ termseq() {
1684
+ return this.getTypedRuleContext(TermseqContext,0);
1685
+ };
1686
+
1687
+ CLOSE = function(i) {
1688
+ if(i===undefined) {
1689
+ i = null;
1690
+ }
1691
+ if(i===null) {
1692
+ return this.getTokens(CLIFParser.CLOSE);
1693
+ } else {
1694
+ return this.getToken(CLIFParser.CLOSE, i);
1695
+ }
1696
+ };
1697
+
1698
+
1699
+ term = function(i) {
1700
+ if(i===undefined) {
1701
+ i = null;
1702
+ }
1703
+ if(i===null) {
1704
+ return this.getTypedRuleContexts(TermContext);
1705
+ } else {
1706
+ return this.getTypedRuleContext(TermContext,i);
1707
+ }
1708
+ };
1709
+
1710
+ CL_ROLESET() {
1711
+ return this.getToken(CLIFParser.CL_ROLESET, 0);
1712
+ };
1713
+
1714
+ name() {
1715
+ return this.getTypedRuleContext(NameContext,0);
1716
+ };
1717
+
1718
+ enterRule(listener) {
1719
+ if(listener instanceof CLIFListener ) {
1720
+ listener.enterAtom(this);
1721
+ }
1722
+ }
1723
+
1724
+ exitRule(listener) {
1725
+ if(listener instanceof CLIFListener ) {
1726
+ listener.exitAtom(this);
1727
+ }
1728
+ }
1729
+
1730
+ accept(visitor) {
1731
+ if ( visitor instanceof CLIFVisitor ) {
1732
+ return visitor.visitAtom(this);
1733
+ } else {
1734
+ return visitor.visitChildren(this);
1735
+ }
1736
+ }
1737
+
1738
+
1739
+ }
1740
+
1741
+
1742
+
1743
+ class PredicateContext extends antlr4.ParserRuleContext {
1744
+
1745
+ constructor(parser, parent, invokingState) {
1746
+ if(parent===undefined) {
1747
+ parent = null;
1748
+ }
1749
+ if(invokingState===undefined || invokingState===null) {
1750
+ invokingState = -1;
1751
+ }
1752
+ super(parent, invokingState);
1753
+ this.parser = parser;
1754
+ this.ruleIndex = CLIFParser.RULE_predicate;
1755
+ }
1756
+
1757
+ term() {
1758
+ return this.getTypedRuleContext(TermContext,0);
1759
+ };
1760
+
1761
+ enterRule(listener) {
1762
+ if(listener instanceof CLIFListener ) {
1763
+ listener.enterPredicate(this);
1764
+ }
1765
+ }
1766
+
1767
+ exitRule(listener) {
1768
+ if(listener instanceof CLIFListener ) {
1769
+ listener.exitPredicate(this);
1770
+ }
1771
+ }
1772
+
1773
+ accept(visitor) {
1774
+ if ( visitor instanceof CLIFVisitor ) {
1775
+ return visitor.visitPredicate(this);
1776
+ } else {
1777
+ return visitor.visitChildren(this);
1778
+ }
1779
+ }
1780
+
1781
+
1782
+ }
1783
+
1784
+
1785
+
1786
+ class BoolsentContext extends antlr4.ParserRuleContext {
1787
+
1788
+ constructor(parser, parent, invokingState) {
1789
+ if(parent===undefined) {
1790
+ parent = null;
1791
+ }
1792
+ if(invokingState===undefined || invokingState===null) {
1793
+ invokingState = -1;
1794
+ }
1795
+ super(parent, invokingState);
1796
+ this.parser = parser;
1797
+ this.ruleIndex = CLIFParser.RULE_boolsent;
1798
+ }
1799
+
1800
+ OPEN() {
1801
+ return this.getToken(CLIFParser.OPEN, 0);
1802
+ };
1803
+
1804
+ CLOSE() {
1805
+ return this.getToken(CLIFParser.CLOSE, 0);
1806
+ };
1807
+
1808
+ AND() {
1809
+ return this.getToken(CLIFParser.AND, 0);
1810
+ };
1811
+
1812
+ OR() {
1813
+ return this.getToken(CLIFParser.OR, 0);
1814
+ };
1815
+
1816
+ sentence = function(i) {
1817
+ if(i===undefined) {
1818
+ i = null;
1819
+ }
1820
+ if(i===null) {
1821
+ return this.getTypedRuleContexts(SentenceContext);
1822
+ } else {
1823
+ return this.getTypedRuleContext(SentenceContext,i);
1824
+ }
1825
+ };
1826
+
1827
+ IF() {
1828
+ return this.getToken(CLIFParser.IF, 0);
1829
+ };
1830
+
1831
+ IFF() {
1832
+ return this.getToken(CLIFParser.IFF, 0);
1833
+ };
1834
+
1835
+ NOT() {
1836
+ return this.getToken(CLIFParser.NOT, 0);
1837
+ };
1838
+
1839
+ enterRule(listener) {
1840
+ if(listener instanceof CLIFListener ) {
1841
+ listener.enterBoolsent(this);
1842
+ }
1843
+ }
1844
+
1845
+ exitRule(listener) {
1846
+ if(listener instanceof CLIFListener ) {
1847
+ listener.exitBoolsent(this);
1848
+ }
1849
+ }
1850
+
1851
+ accept(visitor) {
1852
+ if ( visitor instanceof CLIFVisitor ) {
1853
+ return visitor.visitBoolsent(this);
1854
+ } else {
1855
+ return visitor.visitChildren(this);
1856
+ }
1857
+ }
1858
+
1859
+
1860
+ }
1861
+
1862
+
1863
+
1864
+ class QuantsentContext extends antlr4.ParserRuleContext {
1865
+
1866
+ constructor(parser, parent, invokingState) {
1867
+ if(parent===undefined) {
1868
+ parent = null;
1869
+ }
1870
+ if(invokingState===undefined || invokingState===null) {
1871
+ invokingState = -1;
1872
+ }
1873
+ super(parent, invokingState);
1874
+ this.parser = parser;
1875
+ this.ruleIndex = CLIFParser.RULE_quantsent;
1876
+ }
1877
+
1878
+ OPEN() {
1879
+ return this.getToken(CLIFParser.OPEN, 0);
1880
+ };
1881
+
1882
+ boundlist() {
1883
+ return this.getTypedRuleContext(BoundlistContext,0);
1884
+ };
1885
+
1886
+ sentence() {
1887
+ return this.getTypedRuleContext(SentenceContext,0);
1888
+ };
1889
+
1890
+ CLOSE() {
1891
+ return this.getToken(CLIFParser.CLOSE, 0);
1892
+ };
1893
+
1894
+ FORALL() {
1895
+ return this.getToken(CLIFParser.FORALL, 0);
1896
+ };
1897
+
1898
+ EXISTS() {
1899
+ return this.getToken(CLIFParser.EXISTS, 0);
1900
+ };
1901
+
1902
+ interpretablename() {
1903
+ return this.getTypedRuleContext(InterpretablenameContext,0);
1904
+ };
1905
+
1906
+ enterRule(listener) {
1907
+ if(listener instanceof CLIFListener ) {
1908
+ listener.enterQuantsent(this);
1909
+ }
1910
+ }
1911
+
1912
+ exitRule(listener) {
1913
+ if(listener instanceof CLIFListener ) {
1914
+ listener.exitQuantsent(this);
1915
+ }
1916
+ }
1917
+
1918
+ accept(visitor) {
1919
+ if ( visitor instanceof CLIFVisitor ) {
1920
+ return visitor.visitQuantsent(this);
1921
+ } else {
1922
+ return visitor.visitChildren(this);
1923
+ }
1924
+ }
1925
+
1926
+
1927
+ }
1928
+
1929
+
1930
+
1931
+ class BoundlistContext extends antlr4.ParserRuleContext {
1932
+
1933
+ constructor(parser, parent, invokingState) {
1934
+ if(parent===undefined) {
1935
+ parent = null;
1936
+ }
1937
+ if(invokingState===undefined || invokingState===null) {
1938
+ invokingState = -1;
1939
+ }
1940
+ super(parent, invokingState);
1941
+ this.parser = parser;
1942
+ this.ruleIndex = CLIFParser.RULE_boundlist;
1943
+ }
1944
+
1945
+ OPEN = function(i) {
1946
+ if(i===undefined) {
1947
+ i = null;
1948
+ }
1949
+ if(i===null) {
1950
+ return this.getTokens(CLIFParser.OPEN);
1951
+ } else {
1952
+ return this.getToken(CLIFParser.OPEN, i);
1953
+ }
1954
+ };
1955
+
1956
+
1957
+ CLOSE = function(i) {
1958
+ if(i===undefined) {
1959
+ i = null;
1960
+ }
1961
+ if(i===null) {
1962
+ return this.getTokens(CLIFParser.CLOSE);
1963
+ } else {
1964
+ return this.getToken(CLIFParser.CLOSE, i);
1965
+ }
1966
+ };
1967
+
1968
+
1969
+ interpretablename = function(i) {
1970
+ if(i===undefined) {
1971
+ i = null;
1972
+ }
1973
+ if(i===null) {
1974
+ return this.getTypedRuleContexts(InterpretablenameContext);
1975
+ } else {
1976
+ return this.getTypedRuleContext(InterpretablenameContext,i);
1977
+ }
1978
+ };
1979
+
1980
+ SEQMARK = function(i) {
1981
+ if(i===undefined) {
1982
+ i = null;
1983
+ }
1984
+ if(i===null) {
1985
+ return this.getTokens(CLIFParser.SEQMARK);
1986
+ } else {
1987
+ return this.getToken(CLIFParser.SEQMARK, i);
1988
+ }
1989
+ };
1990
+
1991
+
1992
+ term = function(i) {
1993
+ if(i===undefined) {
1994
+ i = null;
1995
+ }
1996
+ if(i===null) {
1997
+ return this.getTypedRuleContexts(TermContext);
1998
+ } else {
1999
+ return this.getTypedRuleContext(TermContext,i);
2000
+ }
2001
+ };
2002
+
2003
+ enterRule(listener) {
2004
+ if(listener instanceof CLIFListener ) {
2005
+ listener.enterBoundlist(this);
2006
+ }
2007
+ }
2008
+
2009
+ exitRule(listener) {
2010
+ if(listener instanceof CLIFListener ) {
2011
+ listener.exitBoundlist(this);
2012
+ }
2013
+ }
2014
+
2015
+ accept(visitor) {
2016
+ if ( visitor instanceof CLIFVisitor ) {
2017
+ return visitor.visitBoundlist(this);
2018
+ } else {
2019
+ return visitor.visitChildren(this);
2020
+ }
2021
+ }
2022
+
2023
+
2024
+ }
2025
+
2026
+
2027
+
2028
+ class CommentsentContext extends antlr4.ParserRuleContext {
2029
+
2030
+ constructor(parser, parent, invokingState) {
2031
+ if(parent===undefined) {
2032
+ parent = null;
2033
+ }
2034
+ if(invokingState===undefined || invokingState===null) {
2035
+ invokingState = -1;
2036
+ }
2037
+ super(parent, invokingState);
2038
+ this.parser = parser;
2039
+ this.ruleIndex = CLIFParser.RULE_commentsent;
2040
+ }
2041
+
2042
+ OPEN() {
2043
+ return this.getToken(CLIFParser.OPEN, 0);
2044
+ };
2045
+
2046
+ CL_COMMENT() {
2047
+ return this.getToken(CLIFParser.CL_COMMENT, 0);
2048
+ };
2049
+
2050
+ ENCLOSEDNAME() {
2051
+ return this.getToken(CLIFParser.ENCLOSEDNAME, 0);
2052
+ };
2053
+
2054
+ sentence() {
2055
+ return this.getTypedRuleContext(SentenceContext,0);
2056
+ };
2057
+
2058
+ CLOSE() {
2059
+ return this.getToken(CLIFParser.CLOSE, 0);
2060
+ };
2061
+
2062
+ enterRule(listener) {
2063
+ if(listener instanceof CLIFListener ) {
2064
+ listener.enterCommentsent(this);
2065
+ }
2066
+ }
2067
+
2068
+ exitRule(listener) {
2069
+ if(listener instanceof CLIFListener ) {
2070
+ listener.exitCommentsent(this);
2071
+ }
2072
+ }
2073
+
2074
+ accept(visitor) {
2075
+ if ( visitor instanceof CLIFVisitor ) {
2076
+ return visitor.visitCommentsent(this);
2077
+ } else {
2078
+ return visitor.visitChildren(this);
2079
+ }
2080
+ }
2081
+
2082
+
2083
+ }
2084
+
2085
+
2086
+
2087
+ class ModuleContext extends antlr4.ParserRuleContext {
2088
+
2089
+ constructor(parser, parent, invokingState) {
2090
+ if(parent===undefined) {
2091
+ parent = null;
2092
+ }
2093
+ if(invokingState===undefined || invokingState===null) {
2094
+ invokingState = -1;
2095
+ }
2096
+ super(parent, invokingState);
2097
+ this.parser = parser;
2098
+ this.ruleIndex = CLIFParser.RULE_module;
2099
+ }
2100
+
2101
+ OPEN = function(i) {
2102
+ if(i===undefined) {
2103
+ i = null;
2104
+ }
2105
+ if(i===null) {
2106
+ return this.getTokens(CLIFParser.OPEN);
2107
+ } else {
2108
+ return this.getToken(CLIFParser.OPEN, i);
2109
+ }
2110
+ };
2111
+
2112
+
2113
+ CL_MODULE() {
2114
+ return this.getToken(CLIFParser.CL_MODULE, 0);
2115
+ };
2116
+
2117
+ interpretablename() {
2118
+ return this.getTypedRuleContext(InterpretablenameContext,0);
2119
+ };
2120
+
2121
+ CLOSE = function(i) {
2122
+ if(i===undefined) {
2123
+ i = null;
2124
+ }
2125
+ if(i===null) {
2126
+ return this.getTokens(CLIFParser.CLOSE);
2127
+ } else {
2128
+ return this.getToken(CLIFParser.CLOSE, i);
2129
+ }
2130
+ };
2131
+
2132
+
2133
+ CL_EXCLUDES() {
2134
+ return this.getToken(CLIFParser.CL_EXCLUDES, 0);
2135
+ };
2136
+
2137
+ cltext = function(i) {
2138
+ if(i===undefined) {
2139
+ i = null;
2140
+ }
2141
+ if(i===null) {
2142
+ return this.getTypedRuleContexts(CltextContext);
2143
+ } else {
2144
+ return this.getTypedRuleContext(CltextContext,i);
2145
+ }
2146
+ };
2147
+
2148
+ name = function(i) {
2149
+ if(i===undefined) {
2150
+ i = null;
2151
+ }
2152
+ if(i===null) {
2153
+ return this.getTypedRuleContexts(NameContext);
2154
+ } else {
2155
+ return this.getTypedRuleContext(NameContext,i);
2156
+ }
2157
+ };
2158
+
2159
+ enterRule(listener) {
2160
+ if(listener instanceof CLIFListener ) {
2161
+ listener.enterModule(this);
2162
+ }
2163
+ }
2164
+
2165
+ exitRule(listener) {
2166
+ if(listener instanceof CLIFListener ) {
2167
+ listener.exitModule(this);
2168
+ }
2169
+ }
2170
+
2171
+ accept(visitor) {
2172
+ if ( visitor instanceof CLIFVisitor ) {
2173
+ return visitor.visitModule(this);
2174
+ } else {
2175
+ return visitor.visitChildren(this);
2176
+ }
2177
+ }
2178
+
2179
+
2180
+ }
2181
+
2182
+
2183
+
2184
+ class PhraseContext extends antlr4.ParserRuleContext {
2185
+
2186
+ constructor(parser, parent, invokingState) {
2187
+ if(parent===undefined) {
2188
+ parent = null;
2189
+ }
2190
+ if(invokingState===undefined || invokingState===null) {
2191
+ invokingState = -1;
2192
+ }
2193
+ super(parent, invokingState);
2194
+ this.parser = parser;
2195
+ this.ruleIndex = CLIFParser.RULE_phrase;
2196
+ }
2197
+
2198
+ sentence() {
2199
+ return this.getTypedRuleContext(SentenceContext,0);
2200
+ };
2201
+
2202
+ module() {
2203
+ return this.getTypedRuleContext(ModuleContext,0);
2204
+ };
2205
+
2206
+ OPEN() {
2207
+ return this.getToken(CLIFParser.OPEN, 0);
2208
+ };
2209
+
2210
+ CL_IMPORTS() {
2211
+ return this.getToken(CLIFParser.CL_IMPORTS, 0);
2212
+ };
2213
+
2214
+ interpretablename() {
2215
+ return this.getTypedRuleContext(InterpretablenameContext,0);
2216
+ };
2217
+
2218
+ CLOSE() {
2219
+ return this.getToken(CLIFParser.CLOSE, 0);
2220
+ };
2221
+
2222
+ CL_COMMENT() {
2223
+ return this.getToken(CLIFParser.CL_COMMENT, 0);
2224
+ };
2225
+
2226
+ ENCLOSEDNAME() {
2227
+ return this.getToken(CLIFParser.ENCLOSEDNAME, 0);
2228
+ };
2229
+
2230
+ cltext() {
2231
+ return this.getTypedRuleContext(CltextContext,0);
2232
+ };
2233
+
2234
+ enterRule(listener) {
2235
+ if(listener instanceof CLIFListener ) {
2236
+ listener.enterPhrase(this);
2237
+ }
2238
+ }
2239
+
2240
+ exitRule(listener) {
2241
+ if(listener instanceof CLIFListener ) {
2242
+ listener.exitPhrase(this);
2243
+ }
2244
+ }
2245
+
2246
+ accept(visitor) {
2247
+ if ( visitor instanceof CLIFVisitor ) {
2248
+ return visitor.visitPhrase(this);
2249
+ } else {
2250
+ return visitor.visitChildren(this);
2251
+ }
2252
+ }
2253
+
2254
+
2255
+ }
2256
+
2257
+
2258
+
2259
+ class Text_Context extends antlr4.ParserRuleContext {
2260
+
2261
+ constructor(parser, parent, invokingState) {
2262
+ if(parent===undefined) {
2263
+ parent = null;
2264
+ }
2265
+ if(invokingState===undefined || invokingState===null) {
2266
+ invokingState = -1;
2267
+ }
2268
+ super(parent, invokingState);
2269
+ this.parser = parser;
2270
+ this.ruleIndex = CLIFParser.RULE_text_;
2271
+ }
2272
+
2273
+ phrase = function(i) {
2274
+ if(i===undefined) {
2275
+ i = null;
2276
+ }
2277
+ if(i===null) {
2278
+ return this.getTypedRuleContexts(PhraseContext);
2279
+ } else {
2280
+ return this.getTypedRuleContext(PhraseContext,i);
2281
+ }
2282
+ };
2283
+
2284
+ enterRule(listener) {
2285
+ if(listener instanceof CLIFListener ) {
2286
+ listener.enterText_(this);
2287
+ }
2288
+ }
2289
+
2290
+ exitRule(listener) {
2291
+ if(listener instanceof CLIFListener ) {
2292
+ listener.exitText_(this);
2293
+ }
2294
+ }
2295
+
2296
+ accept(visitor) {
2297
+ if ( visitor instanceof CLIFVisitor ) {
2298
+ return visitor.visitText_(this);
2299
+ } else {
2300
+ return visitor.visitChildren(this);
2301
+ }
2302
+ }
2303
+
2304
+
2305
+ }
2306
+
2307
+
2308
+
2309
+ class CltextContext extends antlr4.ParserRuleContext {
2310
+
2311
+ constructor(parser, parent, invokingState) {
2312
+ if(parent===undefined) {
2313
+ parent = null;
2314
+ }
2315
+ if(invokingState===undefined || invokingState===null) {
2316
+ invokingState = -1;
2317
+ }
2318
+ super(parent, invokingState);
2319
+ this.parser = parser;
2320
+ this.ruleIndex = CLIFParser.RULE_cltext;
2321
+ }
2322
+
2323
+ module() {
2324
+ return this.getTypedRuleContext(ModuleContext,0);
2325
+ };
2326
+
2327
+ namedtext() {
2328
+ return this.getTypedRuleContext(NamedtextContext,0);
2329
+ };
2330
+
2331
+ text_() {
2332
+ return this.getTypedRuleContext(Text_Context,0);
2333
+ };
2334
+
2335
+ enterRule(listener) {
2336
+ if(listener instanceof CLIFListener ) {
2337
+ listener.enterCltext(this);
2338
+ }
2339
+ }
2340
+
2341
+ exitRule(listener) {
2342
+ if(listener instanceof CLIFListener ) {
2343
+ listener.exitCltext(this);
2344
+ }
2345
+ }
2346
+
2347
+ accept(visitor) {
2348
+ if ( visitor instanceof CLIFVisitor ) {
2349
+ return visitor.visitCltext(this);
2350
+ } else {
2351
+ return visitor.visitChildren(this);
2352
+ }
2353
+ }
2354
+
2355
+
2356
+ }
2357
+
2358
+
2359
+
2360
+ class NamedtextContext extends antlr4.ParserRuleContext {
2361
+
2362
+ constructor(parser, parent, invokingState) {
2363
+ if(parent===undefined) {
2364
+ parent = null;
2365
+ }
2366
+ if(invokingState===undefined || invokingState===null) {
2367
+ invokingState = -1;
2368
+ }
2369
+ super(parent, invokingState);
2370
+ this.parser = parser;
2371
+ this.ruleIndex = CLIFParser.RULE_namedtext;
2372
+ }
2373
+
2374
+ OPEN() {
2375
+ return this.getToken(CLIFParser.OPEN, 0);
2376
+ };
2377
+
2378
+ CL_TEXT() {
2379
+ return this.getToken(CLIFParser.CL_TEXT, 0);
2380
+ };
2381
+
2382
+ interpretablename() {
2383
+ return this.getTypedRuleContext(InterpretablenameContext,0);
2384
+ };
2385
+
2386
+ CLOSE() {
2387
+ return this.getToken(CLIFParser.CLOSE, 0);
2388
+ };
2389
+
2390
+ text_() {
2391
+ return this.getTypedRuleContext(Text_Context,0);
2392
+ };
2393
+
2394
+ enterRule(listener) {
2395
+ if(listener instanceof CLIFListener ) {
2396
+ listener.enterNamedtext(this);
2397
+ }
2398
+ }
2399
+
2400
+ exitRule(listener) {
2401
+ if(listener instanceof CLIFListener ) {
2402
+ listener.exitNamedtext(this);
2403
+ }
2404
+ }
2405
+
2406
+ accept(visitor) {
2407
+ if ( visitor instanceof CLIFVisitor ) {
2408
+ return visitor.visitNamedtext(this);
2409
+ } else {
2410
+ return visitor.visitChildren(this);
2411
+ }
2412
+ }
2413
+
2414
+
2415
+ }
2416
+
2417
+
2418
+
2419
+
2420
+ CLIFParser.Start_Context = Start_Context;
2421
+ CLIFParser.TermseqContext = TermseqContext;
2422
+ CLIFParser.InterpretednameContext = InterpretednameContext;
2423
+ CLIFParser.InterpretablenameContext = InterpretablenameContext;
2424
+ CLIFParser.NameContext = NameContext;
2425
+ CLIFParser.TermContext = TermContext;
2426
+ CLIFParser.Operator_Context = Operator_Context;
2427
+ CLIFParser.EquationContext = EquationContext;
2428
+ CLIFParser.SentenceContext = SentenceContext;
2429
+ CLIFParser.AtomsentContext = AtomsentContext;
2430
+ CLIFParser.AtomContext = AtomContext;
2431
+ CLIFParser.PredicateContext = PredicateContext;
2432
+ CLIFParser.BoolsentContext = BoolsentContext;
2433
+ CLIFParser.QuantsentContext = QuantsentContext;
2434
+ CLIFParser.BoundlistContext = BoundlistContext;
2435
+ CLIFParser.CommentsentContext = CommentsentContext;
2436
+ CLIFParser.ModuleContext = ModuleContext;
2437
+ CLIFParser.PhraseContext = PhraseContext;
2438
+ CLIFParser.Text_Context = Text_Context;
2439
+ CLIFParser.CltextContext = CltextContext;
2440
+ CLIFParser.NamedtextContext = NamedtextContext;