1
2 package zeus.concepts;
3
4 public interface ParserConstants {
5
6 int EOF = 0;
7 int SINGLE_LINE_COMMENT = 9;
8 int FORMAL_COMMENT = 10;
9 int MULTI_LINE_COMMENT = 11;
10 int EQ = 13;
11 int LE = 14;
12 int GE = 15;
13 int NE = 16;
14 int GT = 17;
15 int LT = 18;
16 int PLUS = 19;
17 int MINUS = 20;
18 int MULTIPLY = 21;
19 int DIVIDE = 22;
20 int REMAINDER = 23;
21 int POWER = 24;
22 int AND = 25;
23 int OR = 26;
24 int NOT = 27;
25 int UNOT = 28;
26 int UAND = 29;
27 int UOR = 30;
28 int LBRACKET = 31;
29 int RBRACKET = 32;
30 int LCURLY = 33;
31 int RCURLY = 34;
32 int COMMA = 35;
33 int TCOLON = 36;
34 int VCHR = 37;
35 int CCHR = 38;
36 int ASEP = 39;
37 int IMPLIES = 40;
38 int FACT_MARKER = 41;
39 int IF = 42;
40 int THEN = 43;
41 int ELSE = 44;
42 int ATTRIBUTE = 45;
43 int VALUE = 46;
44 int RESTRICTIONS = 47;
45 int TYPE = 48;
46 int FID = 49;
47 int MODIFIERS = 50;
48 int ATTRIBUTES = 51;
49 int AGENT = 52;
50 int ABILITY = 53;
51 int FACT = 54;
52 int TIME = 55;
53 int COST = 56;
54 int RELATION = 57;
55 int ABILITIES = 58;
56 int NAME = 59;
57 int HOST = 60;
58 int PORT = 61;
59 int CLASS = 62;
60 int PLANNER_WIDTH = 63;
61 int PLANNER_LENGTH = 64;
62 int DOUBLE_BOOK_FRACTION = 65;
63 int TASKS = 66;
64 int PRIMITIVE = 67;
65 int SUMMARY = 68;
66 int BEHAVIOUR = 69;
67 int SCRIPT = 70;
68 int INITIAL_FACTS = 71;
69 int PROTOCOLS = 72;
70 int STRATEGY = 73;
71 int PARAMETERS = 74;
72 int AGENTS = 75;
73 int RELATIONS = 76;
74 int ACQUAINTANCES = 77;
75 int LHS = 78;
76 int RHS = 79;
77 int PRODUCER = 80;
78 int CONSUMER = 81;
79 int PRODUCER_ID = 82;
80 int CONSUMER_ID = 83;
81 int USE_REF = 84;
82 int COMMS_KEY = 85;
83 int START = 86;
84 int AMOUNT = 87;
85 int CONSUMED = 88;
86 int STATUS = 89;
87 int IMAGE = 90;
88 int INVOCATIONS = 91;
89 int DESIRED = 92;
90 int START_TIME = 93;
91 int END_TIME = 94;
92 int PRIORITY = 95;
93 int ROOT_ID = 96;
94 int MEDIA = 97;
95 int REPLY_TIME = 98;
96 int CONFIRM_TIME = 99;
97 int USER_DATA_TYPE = 100;
98 int USER_DATA = 101;
99 int CONTEXT = 102;
100 int GIVEN = 103;
101 int PRODUCER_RECORDS = 104;
102 int CONSUMER_RECORDS = 105;
103 int SUPPLY_REF = 106;
104 int HASHTABLE = 107;
105 int OWNER = 108;
106 int ITEM = 109;
107 int OK = 110;
108 int IMAGES = 111;
109 int VECTOR = 112;
110 int EXTERNAL = 113;
111 int TABLE = 114;
112 int GOALS = 115;
113 int ASSERT_GOAL = 116;
114 int MESSAGE = 117;
115 int INTERNAL = 118;
116 int TIMEOUT = 119;
117 int DECOMPOSITIONS = 120;
118 int CONSUMED_FACTS = 121;
119 int PRODUCED_FACTS = 122;
120 int CONSTRAINTS = 123;
121 int ORDERING = 124;
122 int GROUP = 125;
123 int IS_CONDITIONAL = 126;
124 int IS_AUTORUN = 127;
125 int GOAL = 128;
126 int TASK = 129;
127 int STATE = 130;
128 int PARENT = 131;
129 int CHILDREN = 132;
130 int SIBLINGS = 133;
131 int PARENTS = 134;
132 int GOAL_ID = 135;
133 int LINK = 136;
134 int SUPPLIER = 137;
135 int RESERVATIONS = 138;
136 int NODES = 139;
137 int LINKS = 140;
138 int LEFT_NODE = 141;
139 int LEFT_GROUP = 142;
140 int LEFT_ARG = 143;
141 int RIGHT_NODE = 144;
142 int RIGHT_GROUP = 145;
143 int RIGHT_ARG = 146;
144 int TEST = 147;
145 int NEGATION = 148;
146 int ASSERT = 149;
147 int SEND_MESSAGE = 150;
148 int EXECUTE = 151;
149 int ACHIEVE = 152;
150 int BUY = 153;
151 int SELL = 154;
152 int RETRACT = 155;
153 int MODIFY = 156;
154 int PRINT = 157;
155 int PRINTLN = 158;
156 int BIND = 159;
157 int WHILE = 160;
158 int DO = 161;
159 int OPEN = 162;
160 int CLOSE = 163;
161 int SYSTEM_CALL = 164;
162 int READ = 165;
163 int READLN = 166;
164 int CALL = 167;
165 int GENERATE = 168;
166 int DATABASE = 169;
167 int HAS_GUI = 170;
168 int ZEUS_EXTERNAL = 171;
169 int DNS_FILE = 172;
170 int IS_ROOT = 173;
171 int ADDRESS_OUTPUT_FILE = 174;
172 int TIME_GRAIN = 175;
173 int PERIOD = 176;
174 int ONTOLOGY = 177;
175 int PATH = 178;
176 int BEGIN_GENERATOR = 179;
177 int BEGIN_PREAMBLE = 180;
178 int SYSTEM = 181;
179 int VERSION = 182;
180 int END_PREAMBLE = 183;
181 int BEGIN_AGENT_NAME_INDEX = 184;
182 int END_AGENT_NAME_INDEX = 185;
183 int BEGIN_AGENT_ICON_INDEX = 186;
184 int END_AGENT_ICON_INDEX = 187;
185 int BEGIN_TASK_NAME_INDEX = 188;
186 int END_TASK_NAME_INDEX = 189;
187 int BEGIN_AGENT_LIST = 190;
188 int END_AGENT_LIST = 191;
189 int BEGIN_TASK_LIST = 192;
190 int END_TASK_LIST = 193;
191 int BEGIN_GENERATIONPLAN = 194;
192 int END_GENERATIONPLAN = 195;
193 int PLATFORM = 196;
194 int DIRECTORY = 197;
195 int BEGIN_NAMESERVER_LIST = 198;
196 int END_NAMESERVER_LIST = 199;
197 int BEGIN_FACILITATOR_LIST = 200;
198 int END_FACILITATOR_LIST = 201;
199 int BEGIN_VISUALISER_LIST = 202;
200 int END_VISUALISER_LIST = 203;
201 int BEGIN_DBPROXY_LIST = 204;
202 int END_DBPROXY_LIST = 205;
203 int END_GENERATOR = 206;
204 int OPAQUE = 207;
205 int BOOLEAN = 208;
206 int ID = 209;
207 int INTEGER = 210;
208 int REAL = 211;
209 int DATE = 212;
210 int TIMEFN = 213;
211 int LITERAL = 214;
212 int VARIABLE = 215;
213 int OBJECT = 216;
214 int FIELD = 217;
215 int EXPONENT = 218;
216 int LETTER = 219;
217 int DIGIT = 220;
218 int DECIMAL = 221;
219
220 int DEFAULT = 0;
221 int IN_SINGLE_LINE_COMMENT = 1;
222 int IN_FORMAL_COMMENT = 2;
223 int IN_MULTI_LINE_COMMENT = 3;
224
225 String[] tokenImage = {
226 "<EOF>",
227 "\" \"",
228 "\"//t\"",
229 "\"//n\"",
230 "\"//r\"",
231 "\"//f\"",
232 "\"//\"",
233 "<token of kind 7>",
234 "\"/*\"",
235 "<SINGLE_LINE_COMMENT>",
236 "\"*/\"",
237 "\"*/\"",
238 "<token of kind 12>",
239 "\"==\"",
240 "\"<=\"",
241 "\">=\"",
242 "\"!=\"",
243 "\">\"",
244 "\"<\"",
245 "\"+\"",
246 "\"-\"",
247 "\"*\"",
248 "\"/\"",
249 "\"%\"",
250 "\"^\"",
251 "\"&&\"",
252 "\"||\"",
253 "\"!\"",
254 "\"~\"",
255 "\"&\"",
256 "\"|\"",
257 "\"(\"",
258 "\")\"",
259 "\"{\"",
260 "\"}\"",
261 "\",\"",
262 "\"::\"",
263 "\"?\"",
264 "\"@\"",
265 "\".\"",
266 "\"=>\"",
267 "\"<-\"",
268 "\"if\"",
269 "\"then\"",
270 "\"else\"",
271 "\":attribute\"",
272 "\":value\"",
273 "\":restrictions\"",
274 "\":type\"",
275 "\":id\"",
276 "\":modifiers\"",
277 "\":attributes\"",
278 "\":agent\"",
279 "\":ability\"",
280 "\":fact\"",
281 "\":time\"",
282 "\":cost\"",
283 "\":relation\"",
284 "\":abilities\"",
285 "\":name\"",
286 "\":host\"",
287 "\":port\"",
288 "\":class\"",
289 "\":planner_width\"",
290 "\":planner_length\"",
291 "\":doublebook_fraction\"",
292 "\":tasks\"",
293 "\":Primitive\"",
294 "\":Summary\"",
295 "\":Rulebase\"",
296 "\":PlanScript\"",
297 "\":initial_facts\"",
298 "\":protocols\"",
299 "\":strategy\"",
300 "\":parameters\"",
301 "\":agents\"",
302 "\":relations\"",
303 "\":acquaintances\"",
304 "\":lhs\"",
305 "\":rhs\"",
306 "\":producer\"",
307 "\":consumer\"",
308 "\":producer_id\"",
309 "\":consumer_id\"",
310 "\":use_ref\"",
311 "\":comms_key\"",
312 "\":start\"",
313 "\":amount\"",
314 "\":consumed\"",
315 "\":status\"",
316 "\":image\"",
317 "\":invocations\"",
318 "\":desired_by\"",
319 "\":start_time\"",
320 "\":end_time\"",
321 "\":priority\"",
322 "\":root_id\"",
323 "\":media\"",
324 "\":reply_time\"",
325 "\":confirm_time\"",
326 "\":user_data_type\"",
327 "\":user_data\"",
328 "\":context\"",
329 "\":given\"",
330 "\":producer_records\"",
331 "\":consumer_records\"",
332 "\":supply_ref\"",
333 "\":hashtable\"",
334 "\":owner\"",
335 "\":item\"",
336 "\":ok\"",
337 "\":images\"",
338 "\":vector\"",
339 "\":external\"",
340 "\":table\"",
341 "\":goals\"",
342 "\"Goal\"",
343 "\"Message\"",
344 "\":internal\"",
345 "\":timeout\"",
346 "\":decompositions\"",
347 "\":consumed_facts\"",
348 "\":produced_facts\"",
349 "\":constraints\"",
350 "\":ordering\"",
351 "\":group\"",
352 "\":is_conditional\"",
353 "\":is_autorun\"",
354 "\":goal\"",
355 "\":task\"",
356 "\":state\"",
357 "\":parent\"",
358 "\":children\"",
359 "\":siblings\"",
360 "\":parents\"",
361 "\":goal_id\"",
362 "\":link\"",
363 "\":supplier\"",
364 "\":reservations\"",
365 "\":nodes\"",
366 "\":links\"",
367 "\":left_node\"",
368 "\":left_group\"",
369 "\":left_arg\"",
370 "\":right_node\"",
371 "\":right_group\"",
372 "\":right_arg\"",
373 "\"test\"",
374 "\"not\"",
375 "\"assert\"",
376 "\"send_message\"",
377 "\"execute\"",
378 "\"achieve\"",
379 "\"buy\"",
380 "\"sell\"",
381 "\"retract\"",
382 "\"modify\"",
383 "\"print\"",
384 "\"println\"",
385 "\"bind\"",
386 "\"while\"",
387 "\"do\"",
388 "\"open\"",
389 "\"close\"",
390 "\"system\"",
391 "\"read\"",
392 "\"readln\"",
393 "\"call\"",
394 "\":generate\"",
395 "\":database\"",
396 "\":has_gui\"",
397 "\":zeus_external\"",
398 "\":dns_file\"",
399 "\":is_root\"",
400 "\":address_output_file\"",
401 "\":time_grain\"",
402 "\":period\"",
403 "\":ontology\"",
404 "\":path\"",
405 "\"BEGIN_GENERATOR\"",
406 "\"BEGIN_PREAMBLE\"",
407 "\":system\"",
408 "\":version\"",
409 "\"END_PREAMBLE\"",
410 "\"BEGIN_AGENT_NAME_INDEX\"",
411 "\"END_AGENT_NAME_INDEX\"",
412 "\"BEGIN_AGENT_ICON_INDEX\"",
413 "\"END_AGENT_ICON_INDEX\"",
414 "\"BEGIN_TASK_NAME_INDEX\"",
415 "\"END_TASK_NAME_INDEX\"",
416 "\"BEGIN_AGENT_LIST\"",
417 "\"END_AGENT_LIST\"",
418 "\"BEGIN_TASK_LIST\"",
419 "\"END_TASK_LIST\"",
420 "\"BEGIN_GENERATION_PLAN\"",
421 "\"END_GENERATION_PLAN\"",
422 "\":platform\"",
423 "\":directory\"",
424 "\"BEGIN_NAMESERVER_LIST\"",
425 "\"END_NAMESERVER_LIST\"",
426 "\"BEGIN_FACILITATOR_LIST\"",
427 "\"END_FACILITATOR_LIST\"",
428 "\"BEGIN_VISUALISER_LIST\"",
429 "\"END_VISUALISER_LIST\"",
430 "\"BEGIN_DBPROXY_LIST\"",
431 "\"END_DBPROXY_LIST\"",
432 "\"END_GENERATOR\"",
433 "<OPAQUE>",
434 "<BOOLEAN>",
435 "<ID>",
436 "<INTEGER>",
437 "<REAL>",
438 "<DATE>",
439 "<TIMEFN>",
440 "<LITERAL>",
441 "<VARIABLE>",
442 "<OBJECT>",
443 "<FIELD>",
444 "<EXPONENT>",
445 "<LETTER>",
446 "<DIGIT>",
447 "<DECIMAL>",
448 };
449
450 }