1 /* Validating XML processor for src/surf/simgrid.dtd.
2 * Generated 2010/12/02 23:27:41.
4 * This program was generated with the FleXML XML processor generator.
5 * FleXML is Copyright (C) 1999-2005 Kristoffer Rose. All rights reserved.
6 * FleXML is Copyright (C) 2003-2006 Martin Quinson. All rights reserved.
7 * (Id: flexml.pl,v 1.62 2007/10/11 10:00:14 mquinson Exp).
9 * There are two, intertwined parts to this program, part A and part B.
14 * Some parts, here collectively called "Part A", are found in the
15 * FleXML package. They are Copyright (C) 1999-2005 Kristoffer Rose
16 * and Copyright (C) 2003-2006 Martin Quinson. All rights reserved.
18 * You can redistribute, use, perform, display and/or modify "Part A"
19 * provided the following two conditions hold:
21 * 1. The program is distributed WITHOUT ANY WARRANTY from the author of
22 * FleXML; without even the implied warranty of MERCHANTABILITY or
23 * FITNESS FOR A PARTICULAR PURPOSE.
25 * 2. The program distribution conditions do not in any way affect the
26 * distribution conditions of the FleXML system used to generate this
27 * file or any version of FleXML derived from that system.
29 * Notice that these are explicit rights granted to you for files
30 * generated by the FleXML system. For your rights in connection with
31 * the FleXML system itself please consult the GNU General Public License.
36 * The other parts, here collectively called "Part B", and which came
37 * from the DTD used by FleXML to generate this program, can be
38 * distributed (or not, as the case may be) under the terms of whoever
39 * wrote them, provided these terms respect and obey the two conditions
40 * above under the heading "Part A".
42 * The author of and contributors to FleXML specifically disclaim
43 * any copyright interest in "Part B", unless "Part B" was written
44 * by the author of or contributors to FleXML.
50 /* Version strings. */
51 const char rcs_surfxml_flexml_skeleton[] =
52 "$" "Id: skel,v 1.40 2007/10/11 09:57:24 mquinson Exp $";
53 const char rcs_surfxml_flexml[] =
54 "$" "Id: flexml.pl,v 1.62 2007/10/11 10:00:14 mquinson Exp $";
57 #include <stdlib.h> /* for realloc() -- needed here when using flex 2.5.4 */
64 #if defined(_XBT_WIN32) || defined(__WIN32__) || defined(WIN32) || defined(__TOS_WIN__)
65 # ifndef __STRICT_ANSI__
73 #ifndef FLEXML_INDEXSTACKSIZE
74 #define FLEXML_INDEXSTACKSIZE 1000
77 /* Generated definitions. */
78 #define FLEXML_yylineno
79 #ifndef FLEXML_BUFFERSTACKSIZE
80 #define FLEXML_BUFFERSTACKSIZE 1000000
82 #define FLEXML_NEED_BUFFERLIT
84 /* XML processor api. */
85 /* FleXML-provided data. */
86 int surfxml_pcdata_ix;
87 extern char *surfxml_bufferstack;
88 #define surfxml_pcdata (surfxml_bufferstack + surfxml_pcdata_ix)
89 AT_surfxml_random_generator AX_surfxml_random_generator;
90 #define A_surfxml_random_generator AX_surfxml_random_generator
91 AT_surfxml_ASroute_gw_dst AX_surfxml_ASroute_gw_dst;
92 #define A_surfxml_ASroute_gw_dst (surfxml_bufferstack + AX_surfxml_ASroute_gw_dst)
93 AT_surfxml_trace_connect_element AX_surfxml_trace_connect_element;
94 #define A_surfxml_trace_connect_element (surfxml_bufferstack + AX_surfxml_trace_connect_element)
95 AT_surfxml_prop_id AX_surfxml_prop_id;
96 #define A_surfxml_prop_id (surfxml_bufferstack + AX_surfxml_prop_id)
97 AT_surfxml_host_id AX_surfxml_host_id;
98 #define A_surfxml_host_id (surfxml_bufferstack + AX_surfxml_host_id)
99 AT_surfxml_ASroute_symmetrical AX_surfxml_ASroute_symmetrical;
100 #define A_surfxml_ASroute_symmetrical AX_surfxml_ASroute_symmetrical
101 AT_surfxml_peer_lat AX_surfxml_peer_lat;
102 #define A_surfxml_peer_lat (surfxml_bufferstack + AX_surfxml_peer_lat)
103 AT_surfxml_link_latency_file AX_surfxml_link_latency_file;
104 #define A_surfxml_link_latency_file (surfxml_bufferstack + AX_surfxml_link_latency_file)
105 AT_surfxml_link_ctn_direction AX_surfxml_link_ctn_direction;
106 #define A_surfxml_link_ctn_direction AX_surfxml_link_ctn_direction
107 AT_surfxml_host_state AX_surfxml_host_state;
108 #define A_surfxml_host_state AX_surfxml_host_state
109 AT_surfxml_AS_id AX_surfxml_AS_id;
110 #define A_surfxml_AS_id (surfxml_bufferstack + AX_surfxml_AS_id)
111 AT_surfxml_host_power AX_surfxml_host_power;
112 #define A_surfxml_host_power (surfxml_bufferstack + AX_surfxml_host_power)
113 AT_surfxml_router_id AX_surfxml_router_id;
114 #define A_surfxml_router_id (surfxml_bufferstack + AX_surfxml_router_id)
115 AT_surfxml_process_start_time AX_surfxml_process_start_time;
116 #define A_surfxml_process_start_time (surfxml_bufferstack + AX_surfxml_process_start_time)
117 AT_surfxml_cluster_suffix AX_surfxml_cluster_suffix;
118 #define A_surfxml_cluster_suffix (surfxml_bufferstack + AX_surfxml_cluster_suffix)
119 AT_surfxml_ASroute_src AX_surfxml_ASroute_src;
120 #define A_surfxml_ASroute_src (surfxml_bufferstack + AX_surfxml_ASroute_src)
121 AT_surfxml_cluster_prefix AX_surfxml_cluster_prefix;
122 #define A_surfxml_cluster_prefix (surfxml_bufferstack + AX_surfxml_cluster_prefix)
123 AT_surfxml_trace_file AX_surfxml_trace_file;
124 #define A_surfxml_trace_file (surfxml_bufferstack + AX_surfxml_trace_file)
125 AT_surfxml_link_sharing_policy AX_surfxml_link_sharing_policy;
126 #define A_surfxml_link_sharing_policy AX_surfxml_link_sharing_policy
127 AT_surfxml_random_min AX_surfxml_random_min;
128 #define A_surfxml_random_min (surfxml_bufferstack + AX_surfxml_random_min)
129 AT_surfxml_link_ctn_id AX_surfxml_link_ctn_id;
130 #define A_surfxml_link_ctn_id (surfxml_bufferstack + AX_surfxml_link_ctn_id)
131 AT_surfxml_peer_bw_out AX_surfxml_peer_bw_out;
132 #define A_surfxml_peer_bw_out (surfxml_bufferstack + AX_surfxml_peer_bw_out)
133 AT_surfxml_process_kill_time AX_surfxml_process_kill_time;
134 #define A_surfxml_process_kill_time (surfxml_bufferstack + AX_surfxml_process_kill_time)
135 AT_surfxml_cluster_bb_bw AX_surfxml_cluster_bb_bw;
136 #define A_surfxml_cluster_bb_bw (surfxml_bufferstack + AX_surfxml_cluster_bb_bw)
137 AT_surfxml_argument_value AX_surfxml_argument_value;
138 #define A_surfxml_argument_value (surfxml_bufferstack + AX_surfxml_argument_value)
139 AT_surfxml_link_state AX_surfxml_link_state;
140 #define A_surfxml_link_state AX_surfxml_link_state
141 AT_surfxml_ASroute_gw_src AX_surfxml_ASroute_gw_src;
142 #define A_surfxml_ASroute_gw_src (surfxml_bufferstack + AX_surfxml_ASroute_gw_src)
143 AT_surfxml_AS_routing AX_surfxml_AS_routing;
144 #define A_surfxml_AS_routing (surfxml_bufferstack + AX_surfxml_AS_routing)
145 AT_surfxml_link_bandwidth AX_surfxml_link_bandwidth;
146 #define A_surfxml_link_bandwidth (surfxml_bufferstack + AX_surfxml_link_bandwidth)
147 AT_surfxml_cluster_id AX_surfxml_cluster_id;
148 #define A_surfxml_cluster_id (surfxml_bufferstack + AX_surfxml_cluster_id)
149 AT_surfxml_peer_bw_in AX_surfxml_peer_bw_in;
150 #define A_surfxml_peer_bw_in (surfxml_bufferstack + AX_surfxml_peer_bw_in)
151 AT_surfxml_random_mean AX_surfxml_random_mean;
152 #define A_surfxml_random_mean (surfxml_bufferstack + AX_surfxml_random_mean)
153 AT_surfxml_cluster_bb_lat AX_surfxml_cluster_bb_lat;
154 #define A_surfxml_cluster_bb_lat (surfxml_bufferstack + AX_surfxml_cluster_bb_lat)
155 AT_surfxml_link_latency AX_surfxml_link_latency;
156 #define A_surfxml_link_latency (surfxml_bufferstack + AX_surfxml_link_latency)
157 AT_surfxml_trace_connect_kind AX_surfxml_trace_connect_kind;
158 #define A_surfxml_trace_connect_kind AX_surfxml_trace_connect_kind
159 AT_surfxml_link_bandwidth_file AX_surfxml_link_bandwidth_file;
160 #define A_surfxml_link_bandwidth_file (surfxml_bufferstack + AX_surfxml_link_bandwidth_file)
161 AT_surfxml_route_symmetrical AX_surfxml_route_symmetrical;
162 #define A_surfxml_route_symmetrical AX_surfxml_route_symmetrical
163 AT_surfxml_random_id AX_surfxml_random_id;
164 #define A_surfxml_random_id (surfxml_bufferstack + AX_surfxml_random_id)
165 AT_surfxml_random_max AX_surfxml_random_max;
166 #define A_surfxml_random_max (surfxml_bufferstack + AX_surfxml_random_max)
167 AT_surfxml_link_id AX_surfxml_link_id;
168 #define A_surfxml_link_id (surfxml_bufferstack + AX_surfxml_link_id)
169 AT_surfxml_process_host AX_surfxml_process_host;
170 #define A_surfxml_process_host (surfxml_bufferstack + AX_surfxml_process_host)
171 AT_surfxml_host_availability_file AX_surfxml_host_availability_file;
172 #define A_surfxml_host_availability_file (surfxml_bufferstack + AX_surfxml_host_availability_file)
173 AT_surfxml_cluster_lat AX_surfxml_cluster_lat;
174 #define A_surfxml_cluster_lat (surfxml_bufferstack + AX_surfxml_cluster_lat)
175 AT_surfxml_trace_periodicity AX_surfxml_trace_periodicity;
176 #define A_surfxml_trace_periodicity (surfxml_bufferstack + AX_surfxml_trace_periodicity)
177 AT_surfxml_cluster_bb_sharing_policy AX_surfxml_cluster_bb_sharing_policy;
178 #define A_surfxml_cluster_bb_sharing_policy AX_surfxml_cluster_bb_sharing_policy
179 AT_surfxml_router_coordinates AX_surfxml_router_coordinates;
180 #define A_surfxml_router_coordinates (surfxml_bufferstack + AX_surfxml_router_coordinates)
181 AT_surfxml_peer_coordinates AX_surfxml_peer_coordinates;
182 #define A_surfxml_peer_coordinates (surfxml_bufferstack + AX_surfxml_peer_coordinates)
183 AT_surfxml_prop_value AX_surfxml_prop_value;
184 #define A_surfxml_prop_value (surfxml_bufferstack + AX_surfxml_prop_value)
185 AT_surfxml_ASroute_dst AX_surfxml_ASroute_dst;
186 #define A_surfxml_ASroute_dst (surfxml_bufferstack + AX_surfxml_ASroute_dst)
187 AT_surfxml_link_state_file AX_surfxml_link_state_file;
188 #define A_surfxml_link_state_file (surfxml_bufferstack + AX_surfxml_link_state_file)
189 AT_surfxml_trace_connect_trace AX_surfxml_trace_connect_trace;
190 #define A_surfxml_trace_connect_trace (surfxml_bufferstack + AX_surfxml_trace_connect_trace)
191 AT_surfxml_cluster_power AX_surfxml_cluster_power;
192 #define A_surfxml_cluster_power (surfxml_bufferstack + AX_surfxml_cluster_power)
193 AT_surfxml_process_function AX_surfxml_process_function;
194 #define A_surfxml_process_function (surfxml_bufferstack + AX_surfxml_process_function)
195 AT_surfxml_peer_id AX_surfxml_peer_id;
196 #define A_surfxml_peer_id (surfxml_bufferstack + AX_surfxml_peer_id)
197 AT_surfxml_cluster_sharing_policy AX_surfxml_cluster_sharing_policy;
198 #define A_surfxml_cluster_sharing_policy AX_surfxml_cluster_sharing_policy
199 AT_surfxml_bypassRoute_dst AX_surfxml_bypassRoute_dst;
200 #define A_surfxml_bypassRoute_dst (surfxml_bufferstack + AX_surfxml_bypassRoute_dst)
201 AT_surfxml_host_core AX_surfxml_host_core;
202 #define A_surfxml_host_core (surfxml_bufferstack + AX_surfxml_host_core)
203 AT_surfxml_host_availability AX_surfxml_host_availability;
204 #define A_surfxml_host_availability (surfxml_bufferstack + AX_surfxml_host_availability)
205 AT_surfxml_bypassRoute_src AX_surfxml_bypassRoute_src;
206 #define A_surfxml_bypassRoute_src (surfxml_bufferstack + AX_surfxml_bypassRoute_src)
207 AT_surfxml_route_src AX_surfxml_route_src;
208 #define A_surfxml_route_src (surfxml_bufferstack + AX_surfxml_route_src)
209 AT_surfxml_bypassRoute_gw_dst AX_surfxml_bypassRoute_gw_dst;
210 #define A_surfxml_bypassRoute_gw_dst (surfxml_bufferstack + AX_surfxml_bypassRoute_gw_dst)
211 AT_surfxml_host_coordinates AX_surfxml_host_coordinates;
212 #define A_surfxml_host_coordinates (surfxml_bufferstack + AX_surfxml_host_coordinates)
213 AT_surfxml_trace_id AX_surfxml_trace_id;
214 #define A_surfxml_trace_id (surfxml_bufferstack + AX_surfxml_trace_id)
215 AT_surfxml_peer_sharing_policy AX_surfxml_peer_sharing_policy;
216 #define A_surfxml_peer_sharing_policy AX_surfxml_peer_sharing_policy
217 AT_surfxml_peer_power AX_surfxml_peer_power;
218 #define A_surfxml_peer_power (surfxml_bufferstack + AX_surfxml_peer_power)
219 AT_surfxml_cluster_radical AX_surfxml_cluster_radical;
220 #define A_surfxml_cluster_radical (surfxml_bufferstack + AX_surfxml_cluster_radical)
221 AT_surfxml_config_id AX_surfxml_config_id;
222 #define A_surfxml_config_id (surfxml_bufferstack + AX_surfxml_config_id)
223 AT_surfxml_random_std_deviation AX_surfxml_random_std_deviation;
224 #define A_surfxml_random_std_deviation (surfxml_bufferstack + AX_surfxml_random_std_deviation)
225 AT_surfxml_bypassRoute_gw_src AX_surfxml_bypassRoute_gw_src;
226 #define A_surfxml_bypassRoute_gw_src (surfxml_bufferstack + AX_surfxml_bypassRoute_gw_src)
227 AT_surfxml_host_state_file AX_surfxml_host_state_file;
228 #define A_surfxml_host_state_file (surfxml_bufferstack + AX_surfxml_host_state_file)
229 AT_surfxml_route_dst AX_surfxml_route_dst;
230 #define A_surfxml_route_dst (surfxml_bufferstack + AX_surfxml_route_dst)
231 AT_surfxml_cluster_bw AX_surfxml_cluster_bw;
232 #define A_surfxml_cluster_bw (surfxml_bufferstack + AX_surfxml_cluster_bw)
233 AT_surfxml_platform_version AX_surfxml_platform_version;
234 #define A_surfxml_platform_version (surfxml_bufferstack + AX_surfxml_platform_version)
238 # define ENTER(state) debug_enter(state,#state)
239 # define LEAVE debug_leave()
240 # define SET(state) debug_set(state,#state)
241 static void debug_enter(int, const char*);
242 static void debug_leave(void);
243 static void debug_set(int, const char*);
245 # define ENTER(state) (yy_push_state(state))
246 # define LEAVE (yy_pop_state())
247 # define SET(state) BEGIN(state)
250 /* Generic actions. */
251 #define SKIP /*skip*/
252 #define SUCCEED CLEANUP; return 0
254 #define FAIL return fail
255 static int fail(const char*, ...);
257 enum {flexml_max_err_msg_size = 512};
258 static char flexml_err_msg[flexml_max_err_msg_size];
259 const char * surfxml_parse_err_msg()
261 return flexml_err_msg;
263 static void reset_surfxml_parse_err_msg()
265 flexml_err_msg[0] = '\0';
269 static void cleanup(void);
270 #define CLEANUP cleanup()
272 /* Text buffer stack handling. */
273 char *surfxml_bufferstack = NULL;
274 static int blimit = FLEXML_BUFFERSTACKSIZE;
275 static int bnext = 1;
277 static int *indexstack = NULL;
278 static int ilimit = FLEXML_INDEXSTACKSIZE;
279 static int inext = 1;
281 #define BUFFERSET(P) (P = bnext)
282 #define BUFFERPUTC(C) (ck_blimit(), surfxml_bufferstack[bnext++] = (C))
283 #define BUFFERDONE (BUFFERPUTC('\0'))
285 #define BUFFERLITERAL(C, P) surfxml_bufferliteral(C, &(P), yytext)
287 /* after this is called, there are at least 2 slots left in the stack */
288 static int ck_blimit()
290 if (bnext >= blimit) {
291 blimit += FLEXML_BUFFERSTACKSIZE + 2;
293 char *temp = (char *) realloc(surfxml_bufferstack, blimit);
295 surfxml_bufferstack = temp;
301 /* after this is called, there are at least 2 slots left in the stack */
302 static int ck_ilimit()
304 if (inext >= ilimit) {
305 ilimit += FLEXML_INDEXSTACKSIZE + 2;
307 int *temp = (int *) realloc(indexstack, ilimit);
315 #ifdef FLEXML_NEED_BUFFERLIT
316 static void surfxml_bufferliteral(char c, int* pp, const char* text)
318 const char *s = (c ? strchr(text,c) : text-1), *e = strrchr(text,c);
319 assert(s <= e); BUFFERSET(*pp);
321 if (isspace(*s) && c) { BUFFERPUTC(' '); while (isspace(*s)) ++s; }
328 static void pushbuffer(int p)
331 indexstack[inext++] = p;
332 indexstack[inext++] = bnext;
335 static int popbuffer(void)
338 bnext = indexstack[--inext];
339 return indexstack[--inext];
342 /* General internal entities are `unput' back onto the input stream... */
343 #define ENTITYTEXT(T) \
344 { char *s = (T), *e = s+strlen(s);\
345 while (--e >= s) { unput(*e); }}
350 /* Flex standard options. */
352 %option noyy_top_state
358 /* Flex user-requested options. */
362 /* XML character classes (currently restricted to ASCII). */
364 /* "Common syntactic structures." */
368 /* "Names and Tokens." */
369 NameChar [A-Za-z0-9.:_-]
370 Name [A-Za-z_:]{NameChar}*
371 Names {Name}({S}{Name})*
372 Nmtoken ({NameChar})+
373 Nmtokens {Nmtoken}({S}{Nmtoken})*
376 VersionNum [a-zA-Z0-9_.:-]+
378 Literal \'[^'']*\'|\"[^""]*\"
380 /* Parser states (flex `exclusive start conditions'):
382 * PROLOG the XML prolog of the document before <?xml...>
383 * DOCTYPE the XML prolog of the document after <?xml...>
384 * EPILOG after the root element
385 * INCOMMENT inside an XML comment <!--....-->
386 * INPI inside an XML PI <?...?>
387 * VALUE1 inside a '...'-delimited literal
388 * VALUE2 inside a "..."-delimited literal
389 * CDATA inside a <![CDATA[...] ]> section.
390 * ROOT_<tag> expect root element <tag>
391 * AL_<tag> inside the attribute list for <tag>
392 * IN_<tag> inside a <tag> with element contents (ready for end tag)
393 * IMPOSSIBLE dummy to permit disabling rules; must be last
395 %x PROLOG DOCTYPE EPILOG INCOMMENT INPI VALUE1 VALUE2 CDATA
396 %x ROOT_surfxml_platform AL_surfxml_platform S_surfxml_platform S_surfxml_platform_1 S_surfxml_platform_2 S_surfxml_platform_3 S_surfxml_platform_4 S_surfxml_platform_5 S_surfxml_platform_6 E_surfxml_platform
397 %x AL_surfxml_trace IN_trace
398 %x AL_surfxml_random S_surfxml_random S_surfxml_random_1 S_surfxml_random_2 E_surfxml_random
399 %x AL_surfxml_trace_connect E_surfxml_trace_connect
400 %x AL_surfxml_AS S_surfxml_AS S_surfxml_AS_1 S_surfxml_AS_2 S_surfxml_AS_3 S_surfxml_AS_4 S_surfxml_AS_5 S_surfxml_AS_6 S_surfxml_AS_7 S_surfxml_AS_8 S_surfxml_AS_9 S_surfxml_AS_10 S_surfxml_AS_11 S_surfxml_AS_12 S_surfxml_AS_13 E_surfxml_AS
401 %x AL_surfxml_host S_surfxml_host S_surfxml_host_1 S_surfxml_host_2 E_surfxml_host
402 %x AL_surfxml_cluster E_surfxml_cluster
403 %x AL_surfxml_peer E_surfxml_peer
404 %x AL_surfxml_router E_surfxml_router
405 %x AL_surfxml_link S_surfxml_link S_surfxml_link_1 S_surfxml_link_2 E_surfxml_link
406 %x AL_surfxml_route S_surfxml_route S_surfxml_route_1 S_surfxml_route_2 E_surfxml_route
407 %x AL_surfxml_ASroute S_surfxml_ASroute S_surfxml_ASroute_1 S_surfxml_ASroute_2 E_surfxml_ASroute
408 %x AL_surfxml_link_ctn E_surfxml_link_ctn
409 %x AL_surfxml_bypassRoute S_surfxml_bypassRoute S_surfxml_bypassRoute_1 S_surfxml_bypassRoute_2 E_surfxml_bypassRoute
410 %x AL_surfxml_process S_surfxml_process S_surfxml_process_1 S_surfxml_process_2 E_surfxml_process
411 %x AL_surfxml_argument E_surfxml_argument
412 %x AL_surfxml_config S_surfxml_config S_surfxml_config_1 S_surfxml_config_2 E_surfxml_config
413 %x AL_surfxml_prop E_surfxml_prop
418 const char* *surfxml_statenames=NULL;
423 /* Bypass Flex's default INITIAL state and begin by parsing the XML prolog. */
425 reset_surfxml_parse_err_msg();
426 surfxml_bufferstack = (char *) malloc(FLEXML_BUFFERSTACKSIZE);
427 assert(surfxml_bufferstack);
431 for (i = 0; i < blimit; i++) {
432 surfxml_bufferstack[i] = '\377';
436 surfxml_bufferstack[0] = '\0';
437 indexstack = (int *) malloc(FLEXML_INDEXSTACKSIZE * sizeof(int));
443 surfxml_bufferliteral('\0', &bnext, "0.0");
444 surfxml_bufferliteral('\0', &bnext, "1");
445 surfxml_bufferliteral('\0', &bnext, "1.0");
446 surfxml_bufferliteral('\0', &bnext, "0.0");
447 surfxml_bufferliteral('\0', &bnext, "-1.0");
448 surfxml_bufferliteral('\0', &bnext, "-1.0");
449 if(!surfxml_statenames) {surfxml_statenames= (const char **)calloc(IMPOSSIBLE,sizeof(char*));
450 surfxml_statenames[PROLOG] = NULL;
451 surfxml_statenames[DOCTYPE] = NULL;
452 surfxml_statenames[EPILOG] = NULL;
453 surfxml_statenames[INCOMMENT] = NULL;
454 surfxml_statenames[INPI] = NULL;
455 surfxml_statenames[VALUE1] = NULL;
456 surfxml_statenames[VALUE2] = NULL;
457 surfxml_statenames[CDATA] = NULL;
458 surfxml_statenames[ROOT_surfxml_platform] = NULL;
459 surfxml_statenames[AL_surfxml_platform] = NULL;
460 surfxml_statenames[S_surfxml_platform] = "platform";
461 surfxml_statenames[S_surfxml_platform_1] = "platform";
462 surfxml_statenames[S_surfxml_platform_2] = "platform";
463 surfxml_statenames[S_surfxml_platform_3] = "platform";
464 surfxml_statenames[S_surfxml_platform_4] = "platform";
465 surfxml_statenames[S_surfxml_platform_5] = "platform";
466 surfxml_statenames[S_surfxml_platform_6] = "platform";
467 surfxml_statenames[E_surfxml_platform] = "platform";
468 surfxml_statenames[AL_surfxml_trace] = NULL;
469 surfxml_statenames[IN_trace] = "trace";
470 surfxml_statenames[AL_surfxml_random] = NULL;
471 surfxml_statenames[S_surfxml_random] = "random";
472 surfxml_statenames[S_surfxml_random_1] = "random";
473 surfxml_statenames[S_surfxml_random_2] = "random";
474 surfxml_statenames[E_surfxml_random] = "random";
475 surfxml_statenames[AL_surfxml_trace_connect] = NULL;
476 surfxml_statenames[E_surfxml_trace_connect] = "trace_connect";
477 surfxml_statenames[AL_surfxml_AS] = NULL;
478 surfxml_statenames[S_surfxml_AS] = "AS";
479 surfxml_statenames[S_surfxml_AS_1] = "AS";
480 surfxml_statenames[S_surfxml_AS_2] = "AS";
481 surfxml_statenames[S_surfxml_AS_3] = "AS";
482 surfxml_statenames[S_surfxml_AS_4] = "AS";
483 surfxml_statenames[S_surfxml_AS_5] = "AS";
484 surfxml_statenames[S_surfxml_AS_6] = "AS";
485 surfxml_statenames[S_surfxml_AS_7] = "AS";
486 surfxml_statenames[S_surfxml_AS_8] = "AS";
487 surfxml_statenames[S_surfxml_AS_9] = "AS";
488 surfxml_statenames[S_surfxml_AS_10] = "AS";
489 surfxml_statenames[S_surfxml_AS_11] = "AS";
490 surfxml_statenames[S_surfxml_AS_12] = "AS";
491 surfxml_statenames[S_surfxml_AS_13] = "AS";
492 surfxml_statenames[E_surfxml_AS] = "AS";
493 surfxml_statenames[AL_surfxml_host] = NULL;
494 surfxml_statenames[S_surfxml_host] = "host";
495 surfxml_statenames[S_surfxml_host_1] = "host";
496 surfxml_statenames[S_surfxml_host_2] = "host";
497 surfxml_statenames[E_surfxml_host] = "host";
498 surfxml_statenames[AL_surfxml_cluster] = NULL;
499 surfxml_statenames[E_surfxml_cluster] = "cluster";
500 surfxml_statenames[AL_surfxml_peer] = NULL;
501 surfxml_statenames[E_surfxml_peer] = "peer";
502 surfxml_statenames[AL_surfxml_router] = NULL;
503 surfxml_statenames[E_surfxml_router] = "router";
504 surfxml_statenames[AL_surfxml_link] = NULL;
505 surfxml_statenames[S_surfxml_link] = "link";
506 surfxml_statenames[S_surfxml_link_1] = "link";
507 surfxml_statenames[S_surfxml_link_2] = "link";
508 surfxml_statenames[E_surfxml_link] = "link";
509 surfxml_statenames[AL_surfxml_route] = NULL;
510 surfxml_statenames[S_surfxml_route] = "route";
511 surfxml_statenames[S_surfxml_route_1] = "route";
512 surfxml_statenames[S_surfxml_route_2] = "route";
513 surfxml_statenames[E_surfxml_route] = "route";
514 surfxml_statenames[AL_surfxml_ASroute] = NULL;
515 surfxml_statenames[S_surfxml_ASroute] = "ASroute";
516 surfxml_statenames[S_surfxml_ASroute_1] = "ASroute";
517 surfxml_statenames[S_surfxml_ASroute_2] = "ASroute";
518 surfxml_statenames[E_surfxml_ASroute] = "ASroute";
519 surfxml_statenames[AL_surfxml_link_ctn] = NULL;
520 surfxml_statenames[E_surfxml_link_ctn] = "link_ctn";
521 surfxml_statenames[AL_surfxml_bypassRoute] = NULL;
522 surfxml_statenames[S_surfxml_bypassRoute] = "bypassRoute";
523 surfxml_statenames[S_surfxml_bypassRoute_1] = "bypassRoute";
524 surfxml_statenames[S_surfxml_bypassRoute_2] = "bypassRoute";
525 surfxml_statenames[E_surfxml_bypassRoute] = "bypassRoute";
526 surfxml_statenames[AL_surfxml_process] = NULL;
527 surfxml_statenames[S_surfxml_process] = "process";
528 surfxml_statenames[S_surfxml_process_1] = "process";
529 surfxml_statenames[S_surfxml_process_2] = "process";
530 surfxml_statenames[E_surfxml_process] = "process";
531 surfxml_statenames[AL_surfxml_argument] = NULL;
532 surfxml_statenames[E_surfxml_argument] = "argument";
533 surfxml_statenames[AL_surfxml_config] = NULL;
534 surfxml_statenames[S_surfxml_config] = "config";
535 surfxml_statenames[S_surfxml_config_1] = "config";
536 surfxml_statenames[S_surfxml_config_2] = "config";
537 surfxml_statenames[E_surfxml_config] = "config";
538 surfxml_statenames[AL_surfxml_prop] = NULL;
539 surfxml_statenames[E_surfxml_prop] = "prop";
542 /* COMMENTS and PIs: handled uniformly for efficiency. */
544 <ROOT_surfxml_platform,AL_surfxml_platform,S_surfxml_platform,S_surfxml_platform_1,S_surfxml_platform_2,S_surfxml_platform_3,S_surfxml_platform_4,S_surfxml_platform_5,S_surfxml_platform_6,E_surfxml_platform,AL_surfxml_trace,IN_trace,AL_surfxml_random,S_surfxml_random,S_surfxml_random_1,S_surfxml_random_2,E_surfxml_random,AL_surfxml_trace_connect,E_surfxml_trace_connect,AL_surfxml_AS,S_surfxml_AS,S_surfxml_AS_1,S_surfxml_AS_2,S_surfxml_AS_3,S_surfxml_AS_4,S_surfxml_AS_5,S_surfxml_AS_6,S_surfxml_AS_7,S_surfxml_AS_8,S_surfxml_AS_9,S_surfxml_AS_10,S_surfxml_AS_11,S_surfxml_AS_12,S_surfxml_AS_13,E_surfxml_AS,AL_surfxml_host,S_surfxml_host,S_surfxml_host_1,S_surfxml_host_2,E_surfxml_host,AL_surfxml_cluster,E_surfxml_cluster,AL_surfxml_peer,E_surfxml_peer,AL_surfxml_router,E_surfxml_router,AL_surfxml_link,S_surfxml_link,S_surfxml_link_1,S_surfxml_link_2,E_surfxml_link,AL_surfxml_route,S_surfxml_route,S_surfxml_route_1,S_surfxml_route_2,E_surfxml_route,AL_surfxml_ASroute,S_surfxml_ASroute,S_surfxml_ASroute_1,S_surfxml_ASroute_2,E_surfxml_ASroute,AL_surfxml_link_ctn,E_surfxml_link_ctn,AL_surfxml_bypassRoute,S_surfxml_bypassRoute,S_surfxml_bypassRoute_1,S_surfxml_bypassRoute_2,E_surfxml_bypassRoute,AL_surfxml_process,S_surfxml_process,S_surfxml_process_1,S_surfxml_process_2,E_surfxml_process,AL_surfxml_argument,E_surfxml_argument,AL_surfxml_config,S_surfxml_config,S_surfxml_config_1,S_surfxml_config_2,E_surfxml_config,AL_surfxml_prop,E_surfxml_prop,PROLOG,DOCTYPE,EPILOG>{
545 "<!--" ENTER(INCOMMENT);
553 <<EOF>> FAIL("EOF in comment.");
559 <<EOF>> FAIL("EOF in PI (processing instruction).");
562 /* SPACES: skipped uniformly */
564 <ROOT_surfxml_platform,AL_surfxml_platform,S_surfxml_platform,S_surfxml_platform_1,S_surfxml_platform_2,S_surfxml_platform_3,S_surfxml_platform_4,S_surfxml_platform_5,S_surfxml_platform_6,E_surfxml_platform,AL_surfxml_trace,AL_surfxml_random,S_surfxml_random,S_surfxml_random_1,S_surfxml_random_2,E_surfxml_random,AL_surfxml_trace_connect,E_surfxml_trace_connect,AL_surfxml_AS,S_surfxml_AS,S_surfxml_AS_1,S_surfxml_AS_2,S_surfxml_AS_3,S_surfxml_AS_4,S_surfxml_AS_5,S_surfxml_AS_6,S_surfxml_AS_7,S_surfxml_AS_8,S_surfxml_AS_9,S_surfxml_AS_10,S_surfxml_AS_11,S_surfxml_AS_12,S_surfxml_AS_13,E_surfxml_AS,AL_surfxml_host,S_surfxml_host,S_surfxml_host_1,S_surfxml_host_2,E_surfxml_host,AL_surfxml_cluster,E_surfxml_cluster,AL_surfxml_peer,E_surfxml_peer,AL_surfxml_router,E_surfxml_router,AL_surfxml_link,S_surfxml_link,S_surfxml_link_1,S_surfxml_link_2,E_surfxml_link,AL_surfxml_route,S_surfxml_route,S_surfxml_route_1,S_surfxml_route_2,E_surfxml_route,AL_surfxml_ASroute,S_surfxml_ASroute,S_surfxml_ASroute_1,S_surfxml_ASroute_2,E_surfxml_ASroute,AL_surfxml_link_ctn,E_surfxml_link_ctn,AL_surfxml_bypassRoute,S_surfxml_bypassRoute,S_surfxml_bypassRoute_1,S_surfxml_bypassRoute_2,E_surfxml_bypassRoute,AL_surfxml_process,S_surfxml_process,S_surfxml_process_1,S_surfxml_process_2,E_surfxml_process,AL_surfxml_argument,E_surfxml_argument,AL_surfxml_config,S_surfxml_config,S_surfxml_config_1,S_surfxml_config_2,E_surfxml_config,AL_surfxml_prop,E_surfxml_prop,PROLOG,DOCTYPE,EPILOG>{S} SKIP;
566 /* PROLOG: determine root element and process it. */
569 "<?xml"({S}version{Eq}(\'{VersionNum}\'|\"{VersionNum}\"))?({S}encoding{Eq}(\'[^']*\'|\"[^"]*\"))?"?>" SET(DOCTYPE);
570 "<?xml"[^>]*">" FAIL("Bad declaration %s.",yytext);
574 "<!DOCTYPE"{S}"platform"{S}SYSTEM{S}("'simgrid.dtd'"|"\"simgrid.dtd\""){s}">" SET(ROOT_surfxml_platform);
575 "<!"[^>-][^>]*">" FAIL("Bad declaration %s.",yytext);
576 . FAIL("Unexpected character `%c' in prolog.", yytext[0]);
577 <<EOF>> FAIL("EOF in prolog.");
580 /* RULES DERIVED FROM DTD. */
582 /* <!-- Small DTD for SURF based tools. --> */
584 <S_surfxml_AS_10,S_surfxml_AS_3,S_surfxml_random,S_surfxml_ASroute_1,S_surfxml_AS_2,E_surfxml_AS,S_surfxml_AS_12,E_surfxml_process,S_surfxml_process,S_surfxml_link_2,E_surfxml_random,S_surfxml_AS_8,S_surfxml_bypassRoute_2,E_surfxml_route,S_surfxml_AS_9,S_surfxml_platform_3,S_surfxml_route_1,S_surfxml_AS_11,S_surfxml_link_1,S_surfxml_AS,S_surfxml_bypassRoute,S_surfxml_link,E_surfxml_host,S_surfxml_config,S_surfxml_ASroute_2,S_surfxml_random_2,S_surfxml_platform_6,S_surfxml_process_2,E_surfxml_ASroute,E_surfxml_link,S_surfxml_AS_6,S_surfxml_platform,S_surfxml_platform_1,S_surfxml_bypassRoute_1,E_surfxml_config,S_surfxml_host_1,S_surfxml_route_2,E_surfxml_platform,S_surfxml_config_2,S_surfxml_random_1,S_surfxml_platform_4,S_surfxml_AS_1,S_surfxml_host,S_surfxml_platform_2,S_surfxml_process_1,S_surfxml_host_2,S_surfxml_AS_7,S_surfxml_AS_13,S_surfxml_ASroute,S_surfxml_platform_5,S_surfxml_AS_5,S_surfxml_config_1,S_surfxml_AS_4,S_surfxml_route,E_surfxml_bypassRoute>"<platform"{s} FAIL("Starting tag <platform> is not allowed here.");
586 <ROOT_surfxml_platform>"<platform"{s} {
587 AX_surfxml_platform_version = 1;
588 ENTER(AL_surfxml_platform); pushbuffer(0);
591 <AL_surfxml_platform>{
592 "version"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_platform_version);
593 "version"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_platform_version);
596 LEAVE; STag_surfxml_platform();surfxml_pcdata_ix = 0; ENTER(S_surfxml_platform);
599 LEAVE; STag_surfxml_platform(); surfxml_pcdata_ix = 0; ETag_surfxml_platform(); popbuffer(); /* attribute */
601 case ROOT_surfxml_platform: SET(EPILOG); break;
604 . FAIL("Unexpected character `%c' in attribute list of platform element.", yytext[0]);
605 {Name} FAIL("Bad attribute `%s' in `platform' element start tag.",yytext);
606 <<EOF>> FAIL("EOF in attribute list of `platform' element.");
609 <S_surfxml_platform_2,S_surfxml_platform_1,S_surfxml_platform,S_surfxml_platform_4,S_surfxml_platform_6,E_surfxml_platform>{
612 ETag_surfxml_platform();
613 popbuffer(); /* attribute */
615 case ROOT_surfxml_platform: SET(EPILOG); break;
618 "</"{Name}{s}">" FAIL("Unexpected end-tag `%s': `</platform>' expected.",yytext);
619 . FAIL("Unexpected character `%c': `</platform>' expected.",yytext[0]);
620 <<EOF>> FAIL("Premature EOF: `</platform>' expected.");
623 <ROOT_surfxml_trace,S_surfxml_random,S_surfxml_ASroute_1,E_surfxml_AS,E_surfxml_process,S_surfxml_process,S_surfxml_link_2,E_surfxml_random,S_surfxml_bypassRoute_2,E_surfxml_route,S_surfxml_route_1,S_surfxml_link_1,S_surfxml_bypassRoute,S_surfxml_link,E_surfxml_host,S_surfxml_config,S_surfxml_ASroute_2,S_surfxml_random_2,S_surfxml_platform_6,S_surfxml_process_2,E_surfxml_ASroute,E_surfxml_link,S_surfxml_bypassRoute_1,E_surfxml_config,S_surfxml_host_1,S_surfxml_route_2,E_surfxml_platform,S_surfxml_config_2,S_surfxml_random_1,S_surfxml_host,S_surfxml_platform_2,S_surfxml_process_1,S_surfxml_host_2,S_surfxml_ASroute,S_surfxml_platform_5,S_surfxml_config_1,S_surfxml_route,E_surfxml_bypassRoute>"<trace"{s} FAIL("Starting tag <trace> is not allowed here.");
625 <S_surfxml_AS_12,S_surfxml_AS_1,S_surfxml_AS_9,S_surfxml_AS_11,S_surfxml_AS_2,S_surfxml_AS_5,S_surfxml_AS_10,S_surfxml_AS_13,S_surfxml_AS,S_surfxml_AS_8,S_surfxml_platform_4,S_surfxml_AS_4,S_surfxml_AS_7,S_surfxml_platform_1,S_surfxml_platform,S_surfxml_AS_6,S_surfxml_AS_3,S_surfxml_platform_3>"<trace"{s} {
626 AX_surfxml_trace_id = 0;
627 AX_surfxml_trace_file = 0;
628 AX_surfxml_trace_periodicity = 0;
629 ENTER(AL_surfxml_trace); pushbuffer(0);
633 "id"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_trace_id);
634 "id"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_trace_id);
636 "file"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_trace_file);
637 "file"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_trace_file);
639 "periodicity"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_trace_periodicity);
640 "periodicity"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_trace_periodicity);
643 if (!AX_surfxml_trace_id) FAIL("Required attribute `id' not set for `trace' element.");
644 if (!AX_surfxml_trace_periodicity) FAIL("Required attribute `periodicity' not set for `trace' element.");
645 LEAVE; STag_surfxml_trace();pushbuffer(surfxml_pcdata_ix); BUFFERSET(surfxml_pcdata_ix);; ENTER(IN_trace);
648 if (!AX_surfxml_trace_id) FAIL("Required attribute `id' not set for `trace' element.");
649 if (!AX_surfxml_trace_periodicity) FAIL("Required attribute `periodicity' not set for `trace' element.");
650 LEAVE; STag_surfxml_trace(); surfxml_pcdata_ix = 0; ETag_surfxml_trace(); popbuffer(); /* attribute */
652 case S_surfxml_AS_8: case S_surfxml_AS_4: case S_surfxml_AS_7: case S_surfxml_AS_6: case S_surfxml_AS_3: SET(S_surfxml_AS_8); break;
653 case S_surfxml_AS_11: case S_surfxml_AS_10: case S_surfxml_AS: SET(S_surfxml_AS_11); break;
654 case S_surfxml_AS_2: SET(S_surfxml_AS_3); break;
655 case S_surfxml_AS_1: case S_surfxml_AS_5: SET(S_surfxml_AS_6); break;
656 case S_surfxml_platform_4: case S_surfxml_platform_1: case S_surfxml_platform: case S_surfxml_platform_3: SET(S_surfxml_platform_4); break;
657 case S_surfxml_AS_12: case S_surfxml_AS_9: case S_surfxml_AS_13: SET(S_surfxml_AS_13); break;
660 . FAIL("Unexpected character `%c' in attribute list of trace element.", yytext[0]);
661 {Name} FAIL("Bad attribute `%s' in `trace' element start tag.",yytext);
662 <<EOF>> FAIL("EOF in attribute list of `trace' element.");
669 ETag_surfxml_trace();
670 surfxml_pcdata_ix = popbuffer();
671 popbuffer(); /* attribute */
673 case S_surfxml_AS_8: case S_surfxml_AS_4: case S_surfxml_AS_7: case S_surfxml_AS_6: case S_surfxml_AS_3: SET(S_surfxml_AS_8); break;
674 case S_surfxml_AS_11: case S_surfxml_AS_10: case S_surfxml_AS: SET(S_surfxml_AS_11); break;
675 case S_surfxml_AS_2: SET(S_surfxml_AS_3); break;
676 case S_surfxml_AS_1: case S_surfxml_AS_5: SET(S_surfxml_AS_6); break;
677 case S_surfxml_platform_4: case S_surfxml_platform_1: case S_surfxml_platform: case S_surfxml_platform_3: SET(S_surfxml_platform_4); break;
678 case S_surfxml_AS_12: case S_surfxml_AS_9: case S_surfxml_AS_13: SET(S_surfxml_AS_13); break;
681 "</"{Name}{s}">" FAIL("Unexpected end-tag `%s': `</trace>' expected.",yytext);
682 <<EOF>> FAIL("Premature EOF: `</trace>' expected.");
685 <S_surfxml_AS_10,S_surfxml_AS_3,S_surfxml_random,S_surfxml_ASroute_1,S_surfxml_AS_2,E_surfxml_AS,S_surfxml_AS_12,E_surfxml_process,S_surfxml_process,S_surfxml_link_2,E_surfxml_random,S_surfxml_AS_8,S_surfxml_bypassRoute_2,ROOT_surfxml_random,E_surfxml_route,S_surfxml_AS_9,S_surfxml_platform_3,S_surfxml_route_1,S_surfxml_AS_11,S_surfxml_link_1,S_surfxml_AS,S_surfxml_bypassRoute,S_surfxml_link,E_surfxml_host,S_surfxml_ASroute_2,S_surfxml_random_2,S_surfxml_platform_6,S_surfxml_process_2,E_surfxml_ASroute,S_surfxml_AS_6,E_surfxml_link,S_surfxml_platform,S_surfxml_platform_1,S_surfxml_bypassRoute_1,E_surfxml_config,S_surfxml_host_1,S_surfxml_route_2,E_surfxml_platform,S_surfxml_config_2,S_surfxml_random_1,S_surfxml_platform_4,S_surfxml_AS_1,S_surfxml_host,S_surfxml_platform_2,S_surfxml_process_1,S_surfxml_host_2,S_surfxml_AS_7,S_surfxml_AS_13,S_surfxml_ASroute,S_surfxml_platform_5,S_surfxml_AS_5,S_surfxml_config_1,S_surfxml_AS_4,S_surfxml_route,E_surfxml_bypassRoute>"<random"{s} FAIL("Starting tag <random> is not allowed here.");
687 <S_surfxml_config>"<random"{s} {
688 AX_surfxml_random_id = 0;
689 AX_surfxml_random_min = 0;
690 AX_surfxml_random_max = 0;
691 AX_surfxml_random_mean = 0;
692 AX_surfxml_random_std_deviation = 0;
693 AX_surfxml_random_generator = A_surfxml_random_generator_DRAND48;
694 ENTER(AL_surfxml_random); pushbuffer(0);
698 "id"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_random_id);
699 "id"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_random_id);
701 "min"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_random_min);
702 "min"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_random_min);
704 "max"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_random_max);
705 "max"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_random_max);
707 "mean"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_random_mean);
708 "mean"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_random_mean);
710 "std_deviation"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_random_std_deviation);
711 "std_deviation"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_random_std_deviation);
713 "generator"{Eq}"'DRAND48'" |
714 "generator"{Eq}"\"DRAND48\"" A_surfxml_random_generator = A_surfxml_random_generator_DRAND48;
715 "generator"{Eq}"'RAND'" |
716 "generator"{Eq}"\"RAND\"" A_surfxml_random_generator = A_surfxml_random_generator_RAND;
719 if (!AX_surfxml_random_id) FAIL("Required attribute `id' not set for `random' element.");
720 if (!AX_surfxml_random_min) FAIL("Required attribute `min' not set for `random' element.");
721 if (!AX_surfxml_random_max) FAIL("Required attribute `max' not set for `random' element.");
722 if (!AX_surfxml_random_mean) FAIL("Required attribute `mean' not set for `random' element.");
723 if (!AX_surfxml_random_std_deviation) FAIL("Required attribute `std_deviation' not set for `random' element.");
724 LEAVE; STag_surfxml_random();surfxml_pcdata_ix = 0; ENTER(S_surfxml_random);
727 if (!AX_surfxml_random_id) FAIL("Required attribute `id' not set for `random' element.");
728 if (!AX_surfxml_random_min) FAIL("Required attribute `min' not set for `random' element.");
729 if (!AX_surfxml_random_max) FAIL("Required attribute `max' not set for `random' element.");
730 if (!AX_surfxml_random_mean) FAIL("Required attribute `mean' not set for `random' element.");
731 if (!AX_surfxml_random_std_deviation) FAIL("Required attribute `std_deviation' not set for `random' element.");
732 LEAVE; STag_surfxml_random(); surfxml_pcdata_ix = 0; ETag_surfxml_random(); popbuffer(); /* attribute */
734 case S_surfxml_config: SET(E_surfxml_config); break;
737 . FAIL("Unexpected character `%c' in attribute list of random element.", yytext[0]);
738 {Name} FAIL("Bad attribute `%s' in `random' element start tag.",yytext);
739 <<EOF>> FAIL("EOF in attribute list of `random' element.");
742 <S_surfxml_random_2,S_surfxml_random,E_surfxml_random>{
745 ETag_surfxml_random();
746 popbuffer(); /* attribute */
748 case S_surfxml_config: SET(E_surfxml_config); break;
751 "</"{Name}{s}">" FAIL("Unexpected end-tag `%s': `</random>' expected.",yytext);
752 . FAIL("Unexpected character `%c': `</random>' expected.",yytext[0]);
753 <<EOF>> FAIL("Premature EOF: `</random>' expected.");
756 <S_surfxml_random,S_surfxml_ASroute_1,E_surfxml_AS,E_surfxml_process,S_surfxml_process,S_surfxml_link_2,E_surfxml_random,S_surfxml_bypassRoute_2,E_surfxml_route,S_surfxml_route_1,S_surfxml_link_1,S_surfxml_bypassRoute,S_surfxml_link,E_surfxml_host,S_surfxml_config,S_surfxml_ASroute_2,S_surfxml_random_2,S_surfxml_platform_6,S_surfxml_process_2,E_surfxml_ASroute,E_surfxml_link,S_surfxml_bypassRoute_1,E_surfxml_config,ROOT_surfxml_trace_connect,S_surfxml_host_1,S_surfxml_route_2,E_surfxml_platform,S_surfxml_config_2,S_surfxml_random_1,S_surfxml_host,S_surfxml_platform_2,S_surfxml_process_1,S_surfxml_host_2,S_surfxml_ASroute,S_surfxml_platform_5,S_surfxml_config_1,S_surfxml_route,E_surfxml_bypassRoute>"<trace_connect"{s} FAIL("Starting tag <trace_connect> is not allowed here.");
758 <S_surfxml_AS_12,S_surfxml_AS_1,S_surfxml_AS_9,S_surfxml_AS_11,S_surfxml_AS_2,S_surfxml_AS_5,S_surfxml_AS_10,S_surfxml_AS_13,S_surfxml_AS,S_surfxml_AS_8,S_surfxml_platform_4,S_surfxml_AS_4,S_surfxml_AS_7,S_surfxml_platform_1,S_surfxml_AS_6,S_surfxml_platform,S_surfxml_AS_3,S_surfxml_platform_3>"<trace_connect"{s} {
759 AX_surfxml_trace_connect_kind = A_surfxml_trace_connect_kind_HOST_AVAIL;
760 AX_surfxml_trace_connect_trace = 0;
761 AX_surfxml_trace_connect_element = 0;
762 ENTER(AL_surfxml_trace_connect); pushbuffer(0);
765 <AL_surfxml_trace_connect>{
766 "kind"{Eq}"'HOST_AVAIL'" |
767 "kind"{Eq}"\"HOST_AVAIL\"" A_surfxml_trace_connect_kind = A_surfxml_trace_connect_kind_HOST_AVAIL;
768 "kind"{Eq}"'POWER'" |
769 "kind"{Eq}"\"POWER\"" A_surfxml_trace_connect_kind = A_surfxml_trace_connect_kind_POWER;
770 "kind"{Eq}"'LINK_AVAIL'" |
771 "kind"{Eq}"\"LINK_AVAIL\"" A_surfxml_trace_connect_kind = A_surfxml_trace_connect_kind_LINK_AVAIL;
772 "kind"{Eq}"'BANDWIDTH'" |
773 "kind"{Eq}"\"BANDWIDTH\"" A_surfxml_trace_connect_kind = A_surfxml_trace_connect_kind_BANDWIDTH;
774 "kind"{Eq}"'LATENCY'" |
775 "kind"{Eq}"\"LATENCY\"" A_surfxml_trace_connect_kind = A_surfxml_trace_connect_kind_LATENCY;
777 "trace"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_trace_connect_trace);
778 "trace"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_trace_connect_trace);
780 "element"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_trace_connect_element);
781 "element"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_trace_connect_element);
784 if (!AX_surfxml_trace_connect_trace) FAIL("Required attribute `trace' not set for `trace_connect' element.");
785 if (!AX_surfxml_trace_connect_element) FAIL("Required attribute `element' not set for `trace_connect' element.");
786 LEAVE; STag_surfxml_trace_connect();surfxml_pcdata_ix = 0; ENTER(E_surfxml_trace_connect);
789 if (!AX_surfxml_trace_connect_trace) FAIL("Required attribute `trace' not set for `trace_connect' element.");
790 if (!AX_surfxml_trace_connect_element) FAIL("Required attribute `element' not set for `trace_connect' element.");
791 LEAVE; STag_surfxml_trace_connect(); surfxml_pcdata_ix = 0; ETag_surfxml_trace_connect(); popbuffer(); /* attribute */
793 case S_surfxml_AS_8: case S_surfxml_AS_4: case S_surfxml_AS_7: case S_surfxml_AS_6: case S_surfxml_AS_3: SET(S_surfxml_AS_8); break;
794 case S_surfxml_AS_11: case S_surfxml_AS_10: case S_surfxml_AS: SET(S_surfxml_AS_11); break;
795 case S_surfxml_AS_2: SET(S_surfxml_AS_3); break;
796 case S_surfxml_AS_1: case S_surfxml_AS_5: SET(S_surfxml_AS_6); break;
797 case S_surfxml_platform_4: case S_surfxml_platform_1: case S_surfxml_platform: case S_surfxml_platform_3: SET(S_surfxml_platform_4); break;
798 case S_surfxml_AS_12: case S_surfxml_AS_9: case S_surfxml_AS_13: SET(S_surfxml_AS_13); break;
801 . FAIL("Unexpected character `%c' in attribute list of trace_connect element.", yytext[0]);
802 {Name} FAIL("Bad attribute `%s' in `trace_connect' element start tag.",yytext);
803 <<EOF>> FAIL("EOF in attribute list of `trace_connect' element.");
806 <E_surfxml_trace_connect>{
807 "</trace_connect"{s}">" {
809 ETag_surfxml_trace_connect();
810 popbuffer(); /* attribute */
812 case S_surfxml_AS_8: case S_surfxml_AS_4: case S_surfxml_AS_7: case S_surfxml_AS_6: case S_surfxml_AS_3: SET(S_surfxml_AS_8); break;
813 case S_surfxml_AS_11: case S_surfxml_AS_10: case S_surfxml_AS: SET(S_surfxml_AS_11); break;
814 case S_surfxml_AS_2: SET(S_surfxml_AS_3); break;
815 case S_surfxml_AS_1: case S_surfxml_AS_5: SET(S_surfxml_AS_6); break;
816 case S_surfxml_platform_4: case S_surfxml_platform_1: case S_surfxml_platform: case S_surfxml_platform_3: SET(S_surfxml_platform_4); break;
817 case S_surfxml_AS_12: case S_surfxml_AS_9: case S_surfxml_AS_13: SET(S_surfxml_AS_13); break;
820 "</"{Name}{s}">" FAIL("Unexpected end-tag `%s': `</trace_connect>' expected.",yytext);
821 . FAIL("Unexpected character `%c': `</trace_connect>' expected.",yytext[0]);
822 <<EOF>> FAIL("Premature EOF: `</trace_connect>' expected.");
825 <S_surfxml_AS_10,S_surfxml_random,S_surfxml_ASroute_1,E_surfxml_AS,S_surfxml_AS_12,E_surfxml_process,S_surfxml_process,S_surfxml_link_2,E_surfxml_random,S_surfxml_AS_8,S_surfxml_bypassRoute_2,E_surfxml_route,S_surfxml_AS_9,ROOT_surfxml_AS,S_surfxml_route_1,S_surfxml_AS_11,S_surfxml_link_1,S_surfxml_bypassRoute,S_surfxml_link,E_surfxml_host,S_surfxml_config,S_surfxml_ASroute_2,S_surfxml_random_2,S_surfxml_platform_6,S_surfxml_process_2,E_surfxml_ASroute,S_surfxml_AS_6,E_surfxml_link,S_surfxml_bypassRoute_1,E_surfxml_config,S_surfxml_host_1,S_surfxml_route_2,E_surfxml_platform,S_surfxml_config_2,S_surfxml_random_1,S_surfxml_AS_1,S_surfxml_host,S_surfxml_platform_2,S_surfxml_process_1,S_surfxml_host_2,S_surfxml_AS_7,S_surfxml_AS_13,S_surfxml_ASroute,S_surfxml_platform_5,S_surfxml_AS_5,S_surfxml_config_1,S_surfxml_AS_4,S_surfxml_route,E_surfxml_bypassRoute>"<AS"{s} FAIL("Starting tag <AS> is not allowed here.");
827 <S_surfxml_AS_2,S_surfxml_AS,S_surfxml_platform_4,S_surfxml_platform_1,S_surfxml_platform,S_surfxml_AS_3,S_surfxml_platform_3>"<AS"{s} {
828 AX_surfxml_AS_id = 0;
829 AX_surfxml_AS_routing = 0;
830 ENTER(AL_surfxml_AS); pushbuffer(0);
834 "id"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_AS_id);
835 "id"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_AS_id);
837 "routing"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_AS_routing);
838 "routing"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_AS_routing);
841 if (!AX_surfxml_AS_id) FAIL("Required attribute `id' not set for `AS' element.");
842 if (!AX_surfxml_AS_routing) FAIL("Required attribute `routing' not set for `AS' element.");
843 LEAVE; STag_surfxml_AS();surfxml_pcdata_ix = 0; ENTER(S_surfxml_AS);
846 if (!AX_surfxml_AS_id) FAIL("Required attribute `id' not set for `AS' element.");
847 if (!AX_surfxml_AS_routing) FAIL("Required attribute `routing' not set for `AS' element.");
848 LEAVE; STag_surfxml_AS(); surfxml_pcdata_ix = 0; ETag_surfxml_AS(); popbuffer(); /* attribute */
850 case S_surfxml_AS_2: case S_surfxml_AS: case S_surfxml_AS_3: SET(S_surfxml_AS_3); break;
851 case S_surfxml_platform_4: case S_surfxml_platform_1: case S_surfxml_platform: case S_surfxml_platform_3: SET(S_surfxml_platform_4); break;
854 . FAIL("Unexpected character `%c' in attribute list of AS element.", yytext[0]);
855 {Name} FAIL("Bad attribute `%s' in `AS' element start tag.",yytext);
856 <<EOF>> FAIL("EOF in attribute list of `AS' element.");
859 <S_surfxml_AS_1,S_surfxml_AS_9,S_surfxml_AS_11,S_surfxml_AS_6,E_surfxml_AS,S_surfxml_AS_3,S_surfxml_AS_13,S_surfxml_AS_8,S_surfxml_AS,S_surfxml_AS_4>{
863 popbuffer(); /* attribute */
865 case S_surfxml_AS_2: case S_surfxml_AS: case S_surfxml_AS_3: SET(S_surfxml_AS_3); break;
866 case S_surfxml_platform_4: case S_surfxml_platform_1: case S_surfxml_platform: case S_surfxml_platform_3: SET(S_surfxml_platform_4); break;
869 "</"{Name}{s}">" FAIL("Unexpected end-tag `%s': `</AS>' expected.",yytext);
870 . FAIL("Unexpected character `%c': `</AS>' expected.",yytext[0]);
871 <<EOF>> FAIL("Premature EOF: `</AS>' expected.");
874 <S_surfxml_AS_3,S_surfxml_random,S_surfxml_ASroute_1,S_surfxml_AS_2,E_surfxml_AS,S_surfxml_AS_12,E_surfxml_process,S_surfxml_process,S_surfxml_link_2,E_surfxml_random,S_surfxml_AS_8,S_surfxml_bypassRoute_2,E_surfxml_route,S_surfxml_AS_9,S_surfxml_platform_3,S_surfxml_route_1,S_surfxml_link_1,S_surfxml_bypassRoute,S_surfxml_link,E_surfxml_host,S_surfxml_config,S_surfxml_ASroute_2,S_surfxml_random_2,S_surfxml_platform_6,S_surfxml_process_2,E_surfxml_ASroute,S_surfxml_AS_6,E_surfxml_link,S_surfxml_platform,S_surfxml_platform_1,S_surfxml_bypassRoute_1,E_surfxml_config,S_surfxml_host_1,S_surfxml_route_2,E_surfxml_platform,S_surfxml_config_2,S_surfxml_random_1,S_surfxml_platform_4,S_surfxml_AS_1,S_surfxml_host,S_surfxml_platform_2,S_surfxml_process_1,S_surfxml_host_2,S_surfxml_AS_7,S_surfxml_AS_13,ROOT_surfxml_host,S_surfxml_ASroute,S_surfxml_platform_5,S_surfxml_AS_5,S_surfxml_config_1,S_surfxml_AS_4,S_surfxml_route,E_surfxml_bypassRoute>"<host"{s} FAIL("Starting tag <host> is not allowed here.");
876 <S_surfxml_AS_11,S_surfxml_AS_10,S_surfxml_AS>"<host"{s} {
877 AX_surfxml_host_id = 0;
878 AX_surfxml_host_power = 0;
879 AX_surfxml_host_core = 5;
880 AX_surfxml_host_availability = 7;
881 AX_surfxml_host_availability_file = 0;
882 AX_surfxml_host_state = A_surfxml_host_state_ON;
883 AX_surfxml_host_state_file = 0;
884 AX_surfxml_host_coordinates = 0;
885 ENTER(AL_surfxml_host); pushbuffer(0);
889 "id"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_host_id);
890 "id"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_host_id);
892 "power"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_host_power);
893 "power"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_host_power);
895 "core"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_host_core);
896 "core"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_host_core);
898 "availability"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_host_availability);
899 "availability"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_host_availability);
901 "availability_file"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_host_availability_file);
902 "availability_file"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_host_availability_file);
905 "state"{Eq}"\"ON\"" A_surfxml_host_state = A_surfxml_host_state_ON;
907 "state"{Eq}"\"OFF\"" A_surfxml_host_state = A_surfxml_host_state_OFF;
909 "state_file"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_host_state_file);
910 "state_file"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_host_state_file);
912 "coordinates"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_host_coordinates);
913 "coordinates"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_host_coordinates);
916 if (!AX_surfxml_host_id) FAIL("Required attribute `id' not set for `host' element.");
917 if (!AX_surfxml_host_power) FAIL("Required attribute `power' not set for `host' element.");
918 LEAVE; STag_surfxml_host();surfxml_pcdata_ix = 0; ENTER(S_surfxml_host);
921 if (!AX_surfxml_host_id) FAIL("Required attribute `id' not set for `host' element.");
922 if (!AX_surfxml_host_power) FAIL("Required attribute `power' not set for `host' element.");
923 LEAVE; STag_surfxml_host(); surfxml_pcdata_ix = 0; ETag_surfxml_host(); popbuffer(); /* attribute */
925 case S_surfxml_AS_11: case S_surfxml_AS_10: case S_surfxml_AS: SET(S_surfxml_AS_11); break;
928 . FAIL("Unexpected character `%c' in attribute list of host element.", yytext[0]);
929 {Name} FAIL("Bad attribute `%s' in `host' element start tag.",yytext);
930 <<EOF>> FAIL("EOF in attribute list of `host' element.");
933 <S_surfxml_host,E_surfxml_host,S_surfxml_host_2>{
937 popbuffer(); /* attribute */
939 case S_surfxml_AS_11: case S_surfxml_AS_10: case S_surfxml_AS: SET(S_surfxml_AS_11); break;
942 "</"{Name}{s}">" FAIL("Unexpected end-tag `%s': `</host>' expected.",yytext);
943 . FAIL("Unexpected character `%c': `</host>' expected.",yytext[0]);
944 <<EOF>> FAIL("Premature EOF: `</host>' expected.");
947 <S_surfxml_AS_10,S_surfxml_random,S_surfxml_ASroute_1,E_surfxml_AS,S_surfxml_AS_12,E_surfxml_process,S_surfxml_process,S_surfxml_link_2,E_surfxml_random,S_surfxml_AS_8,S_surfxml_bypassRoute_2,E_surfxml_route,S_surfxml_AS_9,S_surfxml_route_1,S_surfxml_AS_11,S_surfxml_link_1,S_surfxml_bypassRoute,S_surfxml_link,E_surfxml_host,S_surfxml_config,S_surfxml_ASroute_2,S_surfxml_random_2,S_surfxml_platform_6,S_surfxml_process_2,E_surfxml_ASroute,S_surfxml_AS_6,E_surfxml_link,S_surfxml_bypassRoute_1,E_surfxml_config,S_surfxml_host_1,S_surfxml_route_2,E_surfxml_platform,S_surfxml_config_2,ROOT_surfxml_cluster,S_surfxml_random_1,S_surfxml_AS_1,S_surfxml_host,S_surfxml_platform_2,S_surfxml_process_1,S_surfxml_host_2,S_surfxml_AS_7,S_surfxml_AS_13,S_surfxml_ASroute,S_surfxml_platform_5,S_surfxml_AS_5,S_surfxml_config_1,S_surfxml_AS_4,S_surfxml_route,E_surfxml_bypassRoute>"<cluster"{s} FAIL("Starting tag <cluster> is not allowed here.");
949 <S_surfxml_AS_2,S_surfxml_AS,S_surfxml_platform_4,S_surfxml_platform_1,S_surfxml_platform,S_surfxml_AS_3,S_surfxml_platform_3>"<cluster"{s} {
950 AX_surfxml_cluster_id = 0;
951 AX_surfxml_cluster_prefix = 0;
952 AX_surfxml_cluster_suffix = 0;
953 AX_surfxml_cluster_radical = 0;
954 AX_surfxml_cluster_power = 0;
955 AX_surfxml_cluster_bw = 0;
956 AX_surfxml_cluster_lat = 0;
957 AX_surfxml_cluster_sharing_policy = A_surfxml_cluster_sharing_policy_SHARED;
958 AX_surfxml_cluster_bb_bw = 0;
959 AX_surfxml_cluster_bb_lat = 0;
960 AX_surfxml_cluster_bb_sharing_policy = A_surfxml_cluster_bb_sharing_policy_SHARED;
961 ENTER(AL_surfxml_cluster); pushbuffer(0);
964 <AL_surfxml_cluster>{
965 "id"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_cluster_id);
966 "id"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_cluster_id);
968 "prefix"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_cluster_prefix);
969 "prefix"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_cluster_prefix);
971 "suffix"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_cluster_suffix);
972 "suffix"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_cluster_suffix);
974 "radical"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_cluster_radical);
975 "radical"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_cluster_radical);
977 "power"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_cluster_power);
978 "power"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_cluster_power);
980 "bw"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_cluster_bw);
981 "bw"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_cluster_bw);
983 "lat"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_cluster_lat);
984 "lat"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_cluster_lat);
986 "sharing_policy"{Eq}"'SHARED'" |
987 "sharing_policy"{Eq}"\"SHARED\"" A_surfxml_cluster_sharing_policy = A_surfxml_cluster_sharing_policy_SHARED;
988 "sharing_policy"{Eq}"'FULLDUPLEX'" |
989 "sharing_policy"{Eq}"\"FULLDUPLEX\"" A_surfxml_cluster_sharing_policy = A_surfxml_cluster_sharing_policy_FULLDUPLEX;
990 "sharing_policy"{Eq}"'FATPIPE'" |
991 "sharing_policy"{Eq}"\"FATPIPE\"" A_surfxml_cluster_sharing_policy = A_surfxml_cluster_sharing_policy_FATPIPE;
993 "bb_bw"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_cluster_bb_bw);
994 "bb_bw"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_cluster_bb_bw);
996 "bb_lat"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_cluster_bb_lat);
997 "bb_lat"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_cluster_bb_lat);
999 "bb_sharing_policy"{Eq}"'SHARED'" |
1000 "bb_sharing_policy"{Eq}"\"SHARED\"" A_surfxml_cluster_bb_sharing_policy = A_surfxml_cluster_bb_sharing_policy_SHARED;
1001 "bb_sharing_policy"{Eq}"'FATPIPE'" |
1002 "bb_sharing_policy"{Eq}"\"FATPIPE\"" A_surfxml_cluster_bb_sharing_policy = A_surfxml_cluster_bb_sharing_policy_FATPIPE;
1005 if (!AX_surfxml_cluster_id) FAIL("Required attribute `id' not set for `cluster' element.");
1006 if (!AX_surfxml_cluster_prefix) FAIL("Required attribute `prefix' not set for `cluster' element.");
1007 if (!AX_surfxml_cluster_suffix) FAIL("Required attribute `suffix' not set for `cluster' element.");
1008 if (!AX_surfxml_cluster_radical) FAIL("Required attribute `radical' not set for `cluster' element.");
1009 if (!AX_surfxml_cluster_power) FAIL("Required attribute `power' not set for `cluster' element.");
1010 if (!AX_surfxml_cluster_bw) FAIL("Required attribute `bw' not set for `cluster' element.");
1011 if (!AX_surfxml_cluster_lat) FAIL("Required attribute `lat' not set for `cluster' element.");
1012 if (!AX_surfxml_cluster_bb_bw) FAIL("Required attribute `bb_bw' not set for `cluster' element.");
1013 if (!AX_surfxml_cluster_bb_lat) FAIL("Required attribute `bb_lat' not set for `cluster' element.");
1014 LEAVE; STag_surfxml_cluster();surfxml_pcdata_ix = 0; ENTER(E_surfxml_cluster);
1017 if (!AX_surfxml_cluster_id) FAIL("Required attribute `id' not set for `cluster' element.");
1018 if (!AX_surfxml_cluster_prefix) FAIL("Required attribute `prefix' not set for `cluster' element.");
1019 if (!AX_surfxml_cluster_suffix) FAIL("Required attribute `suffix' not set for `cluster' element.");
1020 if (!AX_surfxml_cluster_radical) FAIL("Required attribute `radical' not set for `cluster' element.");
1021 if (!AX_surfxml_cluster_power) FAIL("Required attribute `power' not set for `cluster' element.");
1022 if (!AX_surfxml_cluster_bw) FAIL("Required attribute `bw' not set for `cluster' element.");
1023 if (!AX_surfxml_cluster_lat) FAIL("Required attribute `lat' not set for `cluster' element.");
1024 if (!AX_surfxml_cluster_bb_bw) FAIL("Required attribute `bb_bw' not set for `cluster' element.");
1025 if (!AX_surfxml_cluster_bb_lat) FAIL("Required attribute `bb_lat' not set for `cluster' element.");
1026 LEAVE; STag_surfxml_cluster(); surfxml_pcdata_ix = 0; ETag_surfxml_cluster(); popbuffer(); /* attribute */
1028 case S_surfxml_AS_2: case S_surfxml_AS: case S_surfxml_AS_3: SET(S_surfxml_AS_3); break;
1029 case S_surfxml_platform_4: case S_surfxml_platform_1: case S_surfxml_platform: case S_surfxml_platform_3: SET(S_surfxml_platform_4); break;
1032 . FAIL("Unexpected character `%c' in attribute list of cluster element.", yytext[0]);
1033 {Name} FAIL("Bad attribute `%s' in `cluster' element start tag.",yytext);
1034 <<EOF>> FAIL("EOF in attribute list of `cluster' element.");
1037 <E_surfxml_cluster>{
1040 ETag_surfxml_cluster();
1041 popbuffer(); /* attribute */
1043 case S_surfxml_AS_2: case S_surfxml_AS: case S_surfxml_AS_3: SET(S_surfxml_AS_3); break;
1044 case S_surfxml_platform_4: case S_surfxml_platform_1: case S_surfxml_platform: case S_surfxml_platform_3: SET(S_surfxml_platform_4); break;
1047 "</"{Name}{s}">" FAIL("Unexpected end-tag `%s': `</cluster>' expected.",yytext);
1048 . FAIL("Unexpected character `%c': `</cluster>' expected.",yytext[0]);
1049 <<EOF>> FAIL("Premature EOF: `</cluster>' expected.");
1052 <S_surfxml_AS_10,S_surfxml_random,S_surfxml_ASroute_1,E_surfxml_AS,S_surfxml_AS_12,E_surfxml_process,S_surfxml_process,S_surfxml_link_2,E_surfxml_random,S_surfxml_AS_8,S_surfxml_bypassRoute_2,E_surfxml_route,S_surfxml_AS_9,S_surfxml_route_1,S_surfxml_AS_11,S_surfxml_link_1,S_surfxml_bypassRoute,S_surfxml_link,E_surfxml_host,S_surfxml_config,S_surfxml_ASroute_2,S_surfxml_random_2,S_surfxml_platform_6,S_surfxml_process_2,E_surfxml_ASroute,S_surfxml_AS_6,E_surfxml_link,S_surfxml_bypassRoute_1,E_surfxml_config,S_surfxml_host_1,S_surfxml_route_2,E_surfxml_platform,S_surfxml_config_2,S_surfxml_random_1,S_surfxml_AS_1,S_surfxml_host,S_surfxml_platform_2,S_surfxml_process_1,S_surfxml_host_2,S_surfxml_AS_7,S_surfxml_AS_13,S_surfxml_ASroute,S_surfxml_platform_5,S_surfxml_AS_5,ROOT_surfxml_peer,S_surfxml_config_1,S_surfxml_AS_4,S_surfxml_route,E_surfxml_bypassRoute>"<peer"{s} FAIL("Starting tag <peer> is not allowed here.");
1054 <S_surfxml_AS_2,S_surfxml_AS,S_surfxml_platform_4,S_surfxml_platform_1,S_surfxml_platform,S_surfxml_AS_3,S_surfxml_platform_3>"<peer"{s} {
1055 AX_surfxml_peer_id = 0;
1056 AX_surfxml_peer_power = 0;
1057 AX_surfxml_peer_bw_in = 0;
1058 AX_surfxml_peer_bw_out = 0;
1059 AX_surfxml_peer_lat = 0;
1060 AX_surfxml_peer_coordinates = 0;
1061 AX_surfxml_peer_sharing_policy = A_surfxml_peer_sharing_policy_FULLDUPLEX;
1062 ENTER(AL_surfxml_peer); pushbuffer(0);
1066 "id"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_peer_id);
1067 "id"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_peer_id);
1069 "power"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_peer_power);
1070 "power"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_peer_power);
1072 "bw_in"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_peer_bw_in);
1073 "bw_in"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_peer_bw_in);
1075 "bw_out"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_peer_bw_out);
1076 "bw_out"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_peer_bw_out);
1078 "lat"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_peer_lat);
1079 "lat"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_peer_lat);
1081 "coordinates"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_peer_coordinates);
1082 "coordinates"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_peer_coordinates);
1084 "sharing_policy"{Eq}"'SHARED'" |
1085 "sharing_policy"{Eq}"\"SHARED\"" A_surfxml_peer_sharing_policy = A_surfxml_peer_sharing_policy_SHARED;
1086 "sharing_policy"{Eq}"'FULLDUPLEX'" |
1087 "sharing_policy"{Eq}"\"FULLDUPLEX\"" A_surfxml_peer_sharing_policy = A_surfxml_peer_sharing_policy_FULLDUPLEX;
1090 if (!AX_surfxml_peer_id) FAIL("Required attribute `id' not set for `peer' element.");
1091 if (!AX_surfxml_peer_power) FAIL("Required attribute `power' not set for `peer' element.");
1092 if (!AX_surfxml_peer_bw_in) FAIL("Required attribute `bw_in' not set for `peer' element.");
1093 if (!AX_surfxml_peer_bw_out) FAIL("Required attribute `bw_out' not set for `peer' element.");
1094 if (!AX_surfxml_peer_lat) FAIL("Required attribute `lat' not set for `peer' element.");
1095 LEAVE; STag_surfxml_peer();surfxml_pcdata_ix = 0; ENTER(E_surfxml_peer);
1098 if (!AX_surfxml_peer_id) FAIL("Required attribute `id' not set for `peer' element.");
1099 if (!AX_surfxml_peer_power) FAIL("Required attribute `power' not set for `peer' element.");
1100 if (!AX_surfxml_peer_bw_in) FAIL("Required attribute `bw_in' not set for `peer' element.");
1101 if (!AX_surfxml_peer_bw_out) FAIL("Required attribute `bw_out' not set for `peer' element.");
1102 if (!AX_surfxml_peer_lat) FAIL("Required attribute `lat' not set for `peer' element.");
1103 LEAVE; STag_surfxml_peer(); surfxml_pcdata_ix = 0; ETag_surfxml_peer(); popbuffer(); /* attribute */
1105 case S_surfxml_AS_2: case S_surfxml_AS: case S_surfxml_AS_3: SET(S_surfxml_AS_3); break;
1106 case S_surfxml_platform_4: case S_surfxml_platform_1: case S_surfxml_platform: case S_surfxml_platform_3: SET(S_surfxml_platform_4); break;
1109 . FAIL("Unexpected character `%c' in attribute list of peer element.", yytext[0]);
1110 {Name} FAIL("Bad attribute `%s' in `peer' element start tag.",yytext);
1111 <<EOF>> FAIL("EOF in attribute list of `peer' element.");
1117 ETag_surfxml_peer();
1118 popbuffer(); /* attribute */
1120 case S_surfxml_AS_2: case S_surfxml_AS: case S_surfxml_AS_3: SET(S_surfxml_AS_3); break;
1121 case S_surfxml_platform_4: case S_surfxml_platform_1: case S_surfxml_platform: case S_surfxml_platform_3: SET(S_surfxml_platform_4); break;
1124 "</"{Name}{s}">" FAIL("Unexpected end-tag `%s': `</peer>' expected.",yytext);
1125 . FAIL("Unexpected character `%c': `</peer>' expected.",yytext[0]);
1126 <<EOF>> FAIL("Premature EOF: `</peer>' expected.");
1129 <S_surfxml_AS_3,S_surfxml_random,S_surfxml_ASroute_1,S_surfxml_AS_2,E_surfxml_AS,S_surfxml_AS_12,E_surfxml_process,S_surfxml_process,S_surfxml_link_2,E_surfxml_random,S_surfxml_AS_8,S_surfxml_bypassRoute_2,E_surfxml_route,S_surfxml_AS_9,S_surfxml_platform_3,S_surfxml_route_1,S_surfxml_link_1,S_surfxml_bypassRoute,S_surfxml_link,E_surfxml_host,S_surfxml_config,S_surfxml_ASroute_2,S_surfxml_random_2,S_surfxml_platform_6,S_surfxml_process_2,E_surfxml_ASroute,S_surfxml_AS_6,E_surfxml_link,S_surfxml_platform,S_surfxml_platform_1,S_surfxml_bypassRoute_1,E_surfxml_config,S_surfxml_host_1,S_surfxml_route_2,E_surfxml_platform,S_surfxml_config_2,S_surfxml_random_1,S_surfxml_platform_4,S_surfxml_AS_1,S_surfxml_host,S_surfxml_platform_2,S_surfxml_process_1,S_surfxml_host_2,S_surfxml_AS_7,S_surfxml_AS_13,S_surfxml_ASroute,S_surfxml_platform_5,S_surfxml_AS_5,S_surfxml_config_1,S_surfxml_AS_4,S_surfxml_route,ROOT_surfxml_router,E_surfxml_bypassRoute>"<router"{s} FAIL("Starting tag <router> is not allowed here.");
1131 <S_surfxml_AS_11,S_surfxml_AS_10,S_surfxml_AS>"<router"{s} {
1132 AX_surfxml_router_id = 0;
1133 AX_surfxml_router_coordinates = 0;
1134 ENTER(AL_surfxml_router); pushbuffer(0);
1137 <AL_surfxml_router>{
1138 "id"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_router_id);
1139 "id"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_router_id);
1141 "coordinates"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_router_coordinates);
1142 "coordinates"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_router_coordinates);
1145 if (!AX_surfxml_router_id) FAIL("Required attribute `id' not set for `router' element.");
1146 LEAVE; STag_surfxml_router();surfxml_pcdata_ix = 0; ENTER(E_surfxml_router);
1149 if (!AX_surfxml_router_id) FAIL("Required attribute `id' not set for `router' element.");
1150 LEAVE; STag_surfxml_router(); surfxml_pcdata_ix = 0; ETag_surfxml_router(); popbuffer(); /* attribute */
1152 case S_surfxml_AS_11: case S_surfxml_AS_10: case S_surfxml_AS: SET(S_surfxml_AS_11); break;
1155 . FAIL("Unexpected character `%c' in attribute list of router element.", yytext[0]);
1156 {Name} FAIL("Bad attribute `%s' in `router' element start tag.",yytext);
1157 <<EOF>> FAIL("EOF in attribute list of `router' element.");
1163 ETag_surfxml_router();
1164 popbuffer(); /* attribute */
1166 case S_surfxml_AS_11: case S_surfxml_AS_10: case S_surfxml_AS: SET(S_surfxml_AS_11); break;
1169 "</"{Name}{s}">" FAIL("Unexpected end-tag `%s': `</router>' expected.",yytext);
1170 . FAIL("Unexpected character `%c': `</router>' expected.",yytext[0]);
1171 <<EOF>> FAIL("Premature EOF: `</router>' expected.");
1174 <S_surfxml_random,S_surfxml_ASroute_1,E_surfxml_AS,S_surfxml_AS_12,E_surfxml_process,S_surfxml_process,S_surfxml_link_2,E_surfxml_random,S_surfxml_AS_8,S_surfxml_bypassRoute_2,E_surfxml_route,S_surfxml_AS_9,S_surfxml_platform_3,S_surfxml_route_1,S_surfxml_link_1,S_surfxml_bypassRoute,S_surfxml_link,E_surfxml_host,S_surfxml_config,S_surfxml_ASroute_2,S_surfxml_random_2,S_surfxml_platform_6,S_surfxml_process_2,E_surfxml_ASroute,S_surfxml_AS_6,E_surfxml_link,S_surfxml_platform,S_surfxml_platform_1,S_surfxml_bypassRoute_1,E_surfxml_config,S_surfxml_host_1,S_surfxml_route_2,E_surfxml_platform,S_surfxml_config_2,S_surfxml_random_1,S_surfxml_platform_4,S_surfxml_AS_1,S_surfxml_host,S_surfxml_platform_2,ROOT_surfxml_link,S_surfxml_process_1,S_surfxml_host_2,S_surfxml_AS_7,S_surfxml_AS_13,S_surfxml_ASroute,S_surfxml_platform_5,S_surfxml_AS_5,S_surfxml_config_1,S_surfxml_AS_4,S_surfxml_route,E_surfxml_bypassRoute>"<link"{s} FAIL("Starting tag <link> is not allowed here.");
1176 <S_surfxml_AS_11,S_surfxml_AS_2,S_surfxml_AS_10,S_surfxml_AS,S_surfxml_AS_3>"<link"{s} {
1177 AX_surfxml_link_id = 0;
1178 AX_surfxml_link_bandwidth = 0;
1179 AX_surfxml_link_bandwidth_file = 0;
1180 AX_surfxml_link_latency = 11;
1181 AX_surfxml_link_latency_file = 0;
1182 AX_surfxml_link_state = A_surfxml_link_state_ON;
1183 AX_surfxml_link_state_file = 0;
1184 AX_surfxml_link_sharing_policy = A_surfxml_link_sharing_policy_SHARED;
1185 ENTER(AL_surfxml_link); pushbuffer(0);
1189 "id"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_link_id);
1190 "id"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_link_id);
1192 "bandwidth"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_link_bandwidth);
1193 "bandwidth"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_link_bandwidth);
1195 "bandwidth_file"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_link_bandwidth_file);
1196 "bandwidth_file"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_link_bandwidth_file);
1198 "latency"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_link_latency);
1199 "latency"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_link_latency);
1201 "latency_file"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_link_latency_file);
1202 "latency_file"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_link_latency_file);
1205 "state"{Eq}"\"ON\"" A_surfxml_link_state = A_surfxml_link_state_ON;
1206 "state"{Eq}"'OFF'" |
1207 "state"{Eq}"\"OFF\"" A_surfxml_link_state = A_surfxml_link_state_OFF;
1209 "state_file"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_link_state_file);
1210 "state_file"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_link_state_file);
1212 "sharing_policy"{Eq}"'SHARED'" |
1213 "sharing_policy"{Eq}"\"SHARED\"" A_surfxml_link_sharing_policy = A_surfxml_link_sharing_policy_SHARED;
1214 "sharing_policy"{Eq}"'FATPIPE'" |
1215 "sharing_policy"{Eq}"\"FATPIPE\"" A_surfxml_link_sharing_policy = A_surfxml_link_sharing_policy_FATPIPE;
1216 "sharing_policy"{Eq}"'FULLDUPLEX'" |
1217 "sharing_policy"{Eq}"\"FULLDUPLEX\"" A_surfxml_link_sharing_policy = A_surfxml_link_sharing_policy_FULLDUPLEX;
1220 if (!AX_surfxml_link_id) FAIL("Required attribute `id' not set for `link' element.");
1221 if (!AX_surfxml_link_bandwidth) FAIL("Required attribute `bandwidth' not set for `link' element.");
1222 LEAVE; STag_surfxml_link();surfxml_pcdata_ix = 0; ENTER(S_surfxml_link);
1225 if (!AX_surfxml_link_id) FAIL("Required attribute `id' not set for `link' element.");
1226 if (!AX_surfxml_link_bandwidth) FAIL("Required attribute `bandwidth' not set for `link' element.");
1227 LEAVE; STag_surfxml_link(); surfxml_pcdata_ix = 0; ETag_surfxml_link(); popbuffer(); /* attribute */
1229 case S_surfxml_AS_11: case S_surfxml_AS_10: case S_surfxml_AS: SET(S_surfxml_AS_11); break;
1230 case S_surfxml_AS_2: case S_surfxml_AS_3: SET(S_surfxml_AS_3); break;
1233 . FAIL("Unexpected character `%c' in attribute list of link element.", yytext[0]);
1234 {Name} FAIL("Bad attribute `%s' in `link' element start tag.",yytext);
1235 <<EOF>> FAIL("EOF in attribute list of `link' element.");
1238 <E_surfxml_link,S_surfxml_link_2,S_surfxml_link>{
1241 ETag_surfxml_link();
1242 popbuffer(); /* attribute */
1244 case S_surfxml_AS_11: case S_surfxml_AS_10: case S_surfxml_AS: SET(S_surfxml_AS_11); break;
1245 case S_surfxml_AS_2: case S_surfxml_AS_3: SET(S_surfxml_AS_3); break;
1248 "</"{Name}{s}">" FAIL("Unexpected end-tag `%s': `</link>' expected.",yytext);
1249 . FAIL("Unexpected character `%c': `</link>' expected.",yytext[0]);
1250 <<EOF>> FAIL("Premature EOF: `</link>' expected.");
1253 <S_surfxml_AS_10,S_surfxml_AS_3,S_surfxml_random,S_surfxml_ASroute_1,S_surfxml_AS_2,E_surfxml_AS,E_surfxml_process,S_surfxml_process,S_surfxml_link_2,E_surfxml_random,S_surfxml_AS_8,S_surfxml_bypassRoute_2,E_surfxml_route,S_surfxml_platform_3,S_surfxml_route_1,S_surfxml_link_1,ROOT_surfxml_route,S_surfxml_bypassRoute,S_surfxml_link,E_surfxml_host,S_surfxml_config,S_surfxml_ASroute_2,S_surfxml_random_2,S_surfxml_platform_6,S_surfxml_process_2,E_surfxml_ASroute,S_surfxml_AS_6,E_surfxml_link,S_surfxml_platform,S_surfxml_platform_1,S_surfxml_bypassRoute_1,E_surfxml_config,S_surfxml_host_1,S_surfxml_route_2,E_surfxml_platform,S_surfxml_config_2,S_surfxml_random_1,S_surfxml_platform_4,S_surfxml_AS_1,S_surfxml_host,S_surfxml_platform_2,S_surfxml_process_1,S_surfxml_host_2,S_surfxml_AS_7,S_surfxml_ASroute,S_surfxml_platform_5,S_surfxml_AS_5,S_surfxml_config_1,S_surfxml_AS_4,S_surfxml_route,E_surfxml_bypassRoute>"<route"{s} FAIL("Starting tag <route> is not allowed here.");
1255 <S_surfxml_AS_12,S_surfxml_AS_9,S_surfxml_AS_11,S_surfxml_AS_13,S_surfxml_AS>"<route"{s} {
1256 AX_surfxml_route_src = 0;
1257 AX_surfxml_route_dst = 0;
1258 AX_surfxml_route_symmetrical = A_surfxml_route_symmetrical_YES;
1259 ENTER(AL_surfxml_route); pushbuffer(0);
1263 "src"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_route_src);
1264 "src"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_route_src);
1266 "dst"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_route_dst);
1267 "dst"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_route_dst);
1269 "symmetrical"{Eq}"'YES'" |
1270 "symmetrical"{Eq}"\"YES\"" A_surfxml_route_symmetrical = A_surfxml_route_symmetrical_YES;
1271 "symmetrical"{Eq}"'NO'" |
1272 "symmetrical"{Eq}"\"NO\"" A_surfxml_route_symmetrical = A_surfxml_route_symmetrical_NO;
1275 if (!AX_surfxml_route_src) FAIL("Required attribute `src' not set for `route' element.");
1276 if (!AX_surfxml_route_dst) FAIL("Required attribute `dst' not set for `route' element.");
1277 LEAVE; STag_surfxml_route();surfxml_pcdata_ix = 0; ENTER(S_surfxml_route);
1280 if (!AX_surfxml_route_src) FAIL("Required attribute `src' not set for `route' element.");
1281 if (!AX_surfxml_route_dst) FAIL("Required attribute `dst' not set for `route' element.");
1282 LEAVE; STag_surfxml_route(); surfxml_pcdata_ix = 0; ETag_surfxml_route(); popbuffer(); /* attribute */
1284 case S_surfxml_AS_12: case S_surfxml_AS_9: case S_surfxml_AS_11: case S_surfxml_AS_13: case S_surfxml_AS: SET(S_surfxml_AS_13); break;
1287 . FAIL("Unexpected character `%c' in attribute list of route element.", yytext[0]);
1288 {Name} FAIL("Bad attribute `%s' in `route' element start tag.",yytext);
1289 <<EOF>> FAIL("EOF in attribute list of `route' element.");
1292 <S_surfxml_route,S_surfxml_route_2,E_surfxml_route>{
1295 ETag_surfxml_route();
1296 popbuffer(); /* attribute */
1298 case S_surfxml_AS_12: case S_surfxml_AS_9: case S_surfxml_AS_11: case S_surfxml_AS_13: case S_surfxml_AS: SET(S_surfxml_AS_13); break;
1301 "</"{Name}{s}">" FAIL("Unexpected end-tag `%s': `</route>' expected.",yytext);
1302 . FAIL("Unexpected character `%c': `</route>' expected.",yytext[0]);
1303 <<EOF>> FAIL("Premature EOF: `</route>' expected.");
1306 <S_surfxml_AS_10,ROOT_surfxml_ASroute,S_surfxml_random,S_surfxml_ASroute_1,S_surfxml_AS_2,E_surfxml_AS,S_surfxml_AS_12,E_surfxml_process,S_surfxml_process,S_surfxml_link_2,E_surfxml_random,S_surfxml_AS_8,S_surfxml_bypassRoute_2,E_surfxml_route,S_surfxml_AS_9,S_surfxml_platform_3,S_surfxml_route_1,S_surfxml_AS_11,S_surfxml_link_1,S_surfxml_bypassRoute,S_surfxml_link,E_surfxml_host,S_surfxml_config,S_surfxml_ASroute_2,S_surfxml_random_2,S_surfxml_platform_6,S_surfxml_process_2,E_surfxml_ASroute,E_surfxml_link,S_surfxml_platform,S_surfxml_platform_1,S_surfxml_bypassRoute_1,E_surfxml_config,S_surfxml_host_1,S_surfxml_route_2,E_surfxml_platform,S_surfxml_config_2,S_surfxml_random_1,S_surfxml_platform_4,S_surfxml_host,S_surfxml_platform_2,S_surfxml_process_1,S_surfxml_host_2,S_surfxml_AS_7,S_surfxml_AS_13,S_surfxml_ASroute,S_surfxml_platform_5,S_surfxml_config_1,S_surfxml_AS_4,S_surfxml_route,E_surfxml_bypassRoute>"<ASroute"{s} FAIL("Starting tag <ASroute> is not allowed here.");
1308 <S_surfxml_AS_1,S_surfxml_AS_5,S_surfxml_AS,S_surfxml_AS_6,S_surfxml_AS_3>"<ASroute"{s} {
1309 AX_surfxml_ASroute_src = 0;
1310 AX_surfxml_ASroute_dst = 0;
1311 AX_surfxml_ASroute_gw_src = 0;
1312 AX_surfxml_ASroute_gw_dst = 0;
1313 AX_surfxml_ASroute_symmetrical = A_surfxml_ASroute_symmetrical_YES;
1314 ENTER(AL_surfxml_ASroute); pushbuffer(0);
1317 <AL_surfxml_ASroute>{
1318 "src"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_ASroute_src);
1319 "src"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_ASroute_src);
1321 "dst"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_ASroute_dst);
1322 "dst"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_ASroute_dst);
1324 "gw_src"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_ASroute_gw_src);
1325 "gw_src"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_ASroute_gw_src);
1327 "gw_dst"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_ASroute_gw_dst);
1328 "gw_dst"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_ASroute_gw_dst);
1330 "symmetrical"{Eq}"'YES'" |
1331 "symmetrical"{Eq}"\"YES\"" A_surfxml_ASroute_symmetrical = A_surfxml_ASroute_symmetrical_YES;
1332 "symmetrical"{Eq}"'NO'" |
1333 "symmetrical"{Eq}"\"NO\"" A_surfxml_ASroute_symmetrical = A_surfxml_ASroute_symmetrical_NO;
1336 if (!AX_surfxml_ASroute_src) FAIL("Required attribute `src' not set for `ASroute' element.");
1337 if (!AX_surfxml_ASroute_dst) FAIL("Required attribute `dst' not set for `ASroute' element.");
1338 if (!AX_surfxml_ASroute_gw_src) FAIL("Required attribute `gw_src' not set for `ASroute' element.");
1339 if (!AX_surfxml_ASroute_gw_dst) FAIL("Required attribute `gw_dst' not set for `ASroute' element.");
1340 LEAVE; STag_surfxml_ASroute();surfxml_pcdata_ix = 0; ENTER(S_surfxml_ASroute);
1343 if (!AX_surfxml_ASroute_src) FAIL("Required attribute `src' not set for `ASroute' element.");
1344 if (!AX_surfxml_ASroute_dst) FAIL("Required attribute `dst' not set for `ASroute' element.");
1345 if (!AX_surfxml_ASroute_gw_src) FAIL("Required attribute `gw_src' not set for `ASroute' element.");
1346 if (!AX_surfxml_ASroute_gw_dst) FAIL("Required attribute `gw_dst' not set for `ASroute' element.");
1347 LEAVE; STag_surfxml_ASroute(); surfxml_pcdata_ix = 0; ETag_surfxml_ASroute(); popbuffer(); /* attribute */
1349 case S_surfxml_AS_1: case S_surfxml_AS_5: case S_surfxml_AS: case S_surfxml_AS_6: case S_surfxml_AS_3: SET(S_surfxml_AS_6); break;
1352 . FAIL("Unexpected character `%c' in attribute list of ASroute element.", yytext[0]);
1353 {Name} FAIL("Bad attribute `%s' in `ASroute' element start tag.",yytext);
1354 <<EOF>> FAIL("EOF in attribute list of `ASroute' element.");
1357 <E_surfxml_ASroute,S_surfxml_ASroute,S_surfxml_ASroute_2>{
1360 ETag_surfxml_ASroute();
1361 popbuffer(); /* attribute */
1363 case S_surfxml_AS_1: case S_surfxml_AS_5: case S_surfxml_AS: case S_surfxml_AS_6: case S_surfxml_AS_3: SET(S_surfxml_AS_6); break;
1366 "</"{Name}{s}">" FAIL("Unexpected end-tag `%s': `</ASroute>' expected.",yytext);
1367 . FAIL("Unexpected character `%c': `</ASroute>' expected.",yytext[0]);
1368 <<EOF>> FAIL("Premature EOF: `</ASroute>' expected.");
1371 <S_surfxml_AS_10,S_surfxml_AS_3,S_surfxml_random,S_surfxml_AS_2,E_surfxml_AS,S_surfxml_AS_12,E_surfxml_process,S_surfxml_process,S_surfxml_link_2,E_surfxml_random,S_surfxml_AS_8,E_surfxml_route,S_surfxml_AS_9,S_surfxml_platform_3,S_surfxml_AS_11,S_surfxml_link_1,S_surfxml_AS,S_surfxml_link,E_surfxml_host,S_surfxml_config,ROOT_surfxml_link_ctn,S_surfxml_random_2,S_surfxml_platform_6,S_surfxml_process_2,E_surfxml_ASroute,S_surfxml_AS_6,E_surfxml_link,S_surfxml_platform,S_surfxml_platform_1,E_surfxml_config,S_surfxml_host_1,E_surfxml_platform,S_surfxml_config_2,S_surfxml_random_1,S_surfxml_platform_4,S_surfxml_AS_1,S_surfxml_host,S_surfxml_platform_2,S_surfxml_process_1,S_surfxml_host_2,S_surfxml_AS_7,S_surfxml_AS_13,S_surfxml_platform_5,S_surfxml_AS_5,S_surfxml_config_1,S_surfxml_AS_4,E_surfxml_bypassRoute>"<link_ctn"{s} FAIL("Starting tag <link_ctn> is not allowed here.");
1373 <S_surfxml_route_1,S_surfxml_bypassRoute,S_surfxml_route,S_surfxml_bypassRoute_2,S_surfxml_bypassRoute_1,S_surfxml_route_2,S_surfxml_ASroute,S_surfxml_ASroute_1,S_surfxml_ASroute_2>"<link_ctn"{s} {
1374 AX_surfxml_link_ctn_id = 0;
1375 AX_surfxml_link_ctn_direction = A_surfxml_link_ctn_direction_NONE;
1376 ENTER(AL_surfxml_link_ctn); pushbuffer(0);
1379 <AL_surfxml_link_ctn>{
1380 "id"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_link_ctn_id);
1381 "id"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_link_ctn_id);
1383 "direction"{Eq}"'UP'" |
1384 "direction"{Eq}"\"UP\"" A_surfxml_link_ctn_direction = A_surfxml_link_ctn_direction_UP;
1385 "direction"{Eq}"'DOWN'" |
1386 "direction"{Eq}"\"DOWN\"" A_surfxml_link_ctn_direction = A_surfxml_link_ctn_direction_DOWN;
1387 "direction"{Eq}"'NONE'" |
1388 "direction"{Eq}"\"NONE\"" A_surfxml_link_ctn_direction = A_surfxml_link_ctn_direction_NONE;
1391 if (!AX_surfxml_link_ctn_id) FAIL("Required attribute `id' not set for `link_ctn' element.");
1392 LEAVE; STag_surfxml_link_ctn();surfxml_pcdata_ix = 0; ENTER(E_surfxml_link_ctn);
1395 if (!AX_surfxml_link_ctn_id) FAIL("Required attribute `id' not set for `link_ctn' element.");
1396 LEAVE; STag_surfxml_link_ctn(); surfxml_pcdata_ix = 0; ETag_surfxml_link_ctn(); popbuffer(); /* attribute */
1398 case S_surfxml_bypassRoute: case S_surfxml_bypassRoute_2: case S_surfxml_bypassRoute_1: SET(S_surfxml_bypassRoute_2); break;
1399 case S_surfxml_route_1: case S_surfxml_route: case S_surfxml_route_2: SET(S_surfxml_route_2); break;
1400 case S_surfxml_ASroute: case S_surfxml_ASroute_1: case S_surfxml_ASroute_2: SET(S_surfxml_ASroute_2); break;
1403 . FAIL("Unexpected character `%c' in attribute list of link_ctn element.", yytext[0]);
1404 {Name} FAIL("Bad attribute `%s' in `link_ctn' element start tag.",yytext);
1405 <<EOF>> FAIL("EOF in attribute list of `link_ctn' element.");
1408 <E_surfxml_link_ctn>{
1409 "</link_ctn"{s}">" {
1411 ETag_surfxml_link_ctn();
1412 popbuffer(); /* attribute */
1414 case S_surfxml_bypassRoute: case S_surfxml_bypassRoute_2: case S_surfxml_bypassRoute_1: SET(S_surfxml_bypassRoute_2); break;
1415 case S_surfxml_route_1: case S_surfxml_route: case S_surfxml_route_2: SET(S_surfxml_route_2); break;
1416 case S_surfxml_ASroute: case S_surfxml_ASroute_1: case S_surfxml_ASroute_2: SET(S_surfxml_ASroute_2); break;
1419 "</"{Name}{s}">" FAIL("Unexpected end-tag `%s': `</link_ctn>' expected.",yytext);
1420 . FAIL("Unexpected character `%c': `</link_ctn>' expected.",yytext[0]);
1421 <<EOF>> FAIL("Premature EOF: `</link_ctn>' expected.");
1424 <S_surfxml_AS_10,S_surfxml_random,S_surfxml_ASroute_1,S_surfxml_AS_2,E_surfxml_AS,S_surfxml_AS_12,E_surfxml_process,S_surfxml_process,S_surfxml_link_2,E_surfxml_random,S_surfxml_bypassRoute_2,E_surfxml_route,S_surfxml_AS_9,S_surfxml_platform_3,S_surfxml_route_1,S_surfxml_AS_11,S_surfxml_link_1,S_surfxml_bypassRoute,S_surfxml_link,E_surfxml_host,S_surfxml_config,ROOT_surfxml_bypassRoute,S_surfxml_ASroute_2,S_surfxml_random_2,S_surfxml_platform_6,S_surfxml_process_2,E_surfxml_ASroute,E_surfxml_link,S_surfxml_platform,S_surfxml_platform_1,S_surfxml_bypassRoute_1,E_surfxml_config,S_surfxml_host_1,S_surfxml_route_2,E_surfxml_platform,S_surfxml_config_2,S_surfxml_random_1,S_surfxml_platform_4,S_surfxml_host,S_surfxml_platform_2,S_surfxml_process_1,S_surfxml_host_2,S_surfxml_AS_13,S_surfxml_ASroute,S_surfxml_platform_5,S_surfxml_AS_5,S_surfxml_config_1,S_surfxml_route,E_surfxml_bypassRoute>"<bypassRoute"{s} FAIL("Starting tag <bypassRoute> is not allowed here.");
1426 <S_surfxml_AS_1,S_surfxml_AS,S_surfxml_AS_8,S_surfxml_AS_4,S_surfxml_AS_7,S_surfxml_AS_6,S_surfxml_AS_3>"<bypassRoute"{s} {
1427 AX_surfxml_bypassRoute_src = 0;
1428 AX_surfxml_bypassRoute_dst = 0;
1429 AX_surfxml_bypassRoute_gw_src = 0;
1430 AX_surfxml_bypassRoute_gw_dst = 0;
1431 ENTER(AL_surfxml_bypassRoute); pushbuffer(0);
1434 <AL_surfxml_bypassRoute>{
1435 "src"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_bypassRoute_src);
1436 "src"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_bypassRoute_src);
1438 "dst"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_bypassRoute_dst);
1439 "dst"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_bypassRoute_dst);
1441 "gw_src"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_bypassRoute_gw_src);
1442 "gw_src"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_bypassRoute_gw_src);
1444 "gw_dst"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_bypassRoute_gw_dst);
1445 "gw_dst"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_bypassRoute_gw_dst);
1448 if (!AX_surfxml_bypassRoute_src) FAIL("Required attribute `src' not set for `bypassRoute' element.");
1449 if (!AX_surfxml_bypassRoute_dst) FAIL("Required attribute `dst' not set for `bypassRoute' element.");
1450 if (!AX_surfxml_bypassRoute_gw_src) FAIL("Required attribute `gw_src' not set for `bypassRoute' element.");
1451 if (!AX_surfxml_bypassRoute_gw_dst) FAIL("Required attribute `gw_dst' not set for `bypassRoute' element.");
1452 LEAVE; STag_surfxml_bypassRoute();surfxml_pcdata_ix = 0; ENTER(S_surfxml_bypassRoute);
1455 if (!AX_surfxml_bypassRoute_src) FAIL("Required attribute `src' not set for `bypassRoute' element.");
1456 if (!AX_surfxml_bypassRoute_dst) FAIL("Required attribute `dst' not set for `bypassRoute' element.");
1457 if (!AX_surfxml_bypassRoute_gw_src) FAIL("Required attribute `gw_src' not set for `bypassRoute' element.");
1458 if (!AX_surfxml_bypassRoute_gw_dst) FAIL("Required attribute `gw_dst' not set for `bypassRoute' element.");
1459 LEAVE; STag_surfxml_bypassRoute(); surfxml_pcdata_ix = 0; ETag_surfxml_bypassRoute(); popbuffer(); /* attribute */
1461 case S_surfxml_AS_1: case S_surfxml_AS: case S_surfxml_AS_8: case S_surfxml_AS_4: case S_surfxml_AS_7: case S_surfxml_AS_6: case S_surfxml_AS_3: SET(S_surfxml_AS_8); break;
1464 . FAIL("Unexpected character `%c' in attribute list of bypassRoute element.", yytext[0]);
1465 {Name} FAIL("Bad attribute `%s' in `bypassRoute' element start tag.",yytext);
1466 <<EOF>> FAIL("EOF in attribute list of `bypassRoute' element.");
1469 <S_surfxml_bypassRoute,S_surfxml_bypassRoute_2,E_surfxml_bypassRoute>{
1470 "</bypassRoute"{s}">" {
1472 ETag_surfxml_bypassRoute();
1473 popbuffer(); /* attribute */
1475 case S_surfxml_AS_1: case S_surfxml_AS: case S_surfxml_AS_8: case S_surfxml_AS_4: case S_surfxml_AS_7: case S_surfxml_AS_6: case S_surfxml_AS_3: SET(S_surfxml_AS_8); break;
1478 "</"{Name}{s}">" FAIL("Unexpected end-tag `%s': `</bypassRoute>' expected.",yytext);
1479 . FAIL("Unexpected character `%c': `</bypassRoute>' expected.",yytext[0]);
1480 <<EOF>> FAIL("Premature EOF: `</bypassRoute>' expected.");
1483 <S_surfxml_AS_10,S_surfxml_AS_3,S_surfxml_random,S_surfxml_ASroute_1,S_surfxml_AS_2,E_surfxml_AS,S_surfxml_AS_12,E_surfxml_process,S_surfxml_process,S_surfxml_link_2,E_surfxml_random,S_surfxml_AS_8,S_surfxml_bypassRoute_2,E_surfxml_route,S_surfxml_AS_9,S_surfxml_platform_3,S_surfxml_route_1,S_surfxml_AS_11,S_surfxml_link_1,S_surfxml_AS,S_surfxml_bypassRoute,S_surfxml_link,E_surfxml_host,S_surfxml_config,S_surfxml_ASroute_2,S_surfxml_random_2,S_surfxml_process_2,E_surfxml_ASroute,ROOT_surfxml_process,S_surfxml_AS_6,E_surfxml_link,S_surfxml_bypassRoute_1,E_surfxml_config,S_surfxml_host_1,S_surfxml_route_2,E_surfxml_platform,S_surfxml_config_2,S_surfxml_random_1,S_surfxml_AS_1,S_surfxml_host,S_surfxml_process_1,S_surfxml_host_2,S_surfxml_AS_7,S_surfxml_AS_13,S_surfxml_ASroute,S_surfxml_AS_5,S_surfxml_config_1,S_surfxml_AS_4,S_surfxml_route,E_surfxml_bypassRoute>"<process"{s} FAIL("Starting tag <process> is not allowed here.");
1485 <S_surfxml_platform_6,S_surfxml_platform_4,S_surfxml_platform_5,S_surfxml_platform_2,S_surfxml_platform_1,S_surfxml_platform>"<process"{s} {
1486 AX_surfxml_process_host = 0;
1487 AX_surfxml_process_function = 0;
1488 AX_surfxml_process_start_time = 15;
1489 AX_surfxml_process_kill_time = 20;
1490 ENTER(AL_surfxml_process); pushbuffer(0);
1493 <AL_surfxml_process>{
1494 "host"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_process_host);
1495 "host"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_process_host);
1497 "function"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_process_function);
1498 "function"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_process_function);
1500 "start_time"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_process_start_time);
1501 "start_time"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_process_start_time);
1503 "kill_time"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_process_kill_time);
1504 "kill_time"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_process_kill_time);
1507 if (!AX_surfxml_process_host) FAIL("Required attribute `host' not set for `process' element.");
1508 if (!AX_surfxml_process_function) FAIL("Required attribute `function' not set for `process' element.");
1509 LEAVE; STag_surfxml_process();surfxml_pcdata_ix = 0; ENTER(S_surfxml_process);
1512 if (!AX_surfxml_process_host) FAIL("Required attribute `host' not set for `process' element.");
1513 if (!AX_surfxml_process_function) FAIL("Required attribute `function' not set for `process' element.");
1514 LEAVE; STag_surfxml_process(); surfxml_pcdata_ix = 0; ETag_surfxml_process(); popbuffer(); /* attribute */
1516 case S_surfxml_platform_6: case S_surfxml_platform_4: case S_surfxml_platform_5: case S_surfxml_platform_2: case S_surfxml_platform_1: case S_surfxml_platform: SET(S_surfxml_platform_6); break;
1519 . FAIL("Unexpected character `%c' in attribute list of process element.", yytext[0]);
1520 {Name} FAIL("Bad attribute `%s' in `process' element start tag.",yytext);
1521 <<EOF>> FAIL("EOF in attribute list of `process' element.");
1524 <E_surfxml_process,S_surfxml_process,S_surfxml_process_2>{
1527 ETag_surfxml_process();
1528 popbuffer(); /* attribute */
1530 case S_surfxml_platform_6: case S_surfxml_platform_4: case S_surfxml_platform_5: case S_surfxml_platform_2: case S_surfxml_platform_1: case S_surfxml_platform: SET(S_surfxml_platform_6); break;
1533 "</"{Name}{s}">" FAIL("Unexpected end-tag `%s': `</process>' expected.",yytext);
1534 . FAIL("Unexpected character `%c': `</process>' expected.",yytext[0]);
1535 <<EOF>> FAIL("Premature EOF: `</process>' expected.");
1538 <S_surfxml_AS_10,S_surfxml_AS_3,S_surfxml_random,S_surfxml_ASroute_1,S_surfxml_AS_2,E_surfxml_AS,S_surfxml_AS_12,ROOT_surfxml_argument,E_surfxml_process,S_surfxml_link_2,E_surfxml_random,S_surfxml_AS_8,S_surfxml_bypassRoute_2,E_surfxml_route,S_surfxml_AS_9,S_surfxml_platform_3,S_surfxml_route_1,S_surfxml_AS_11,S_surfxml_link_1,S_surfxml_AS,S_surfxml_bypassRoute,S_surfxml_link,E_surfxml_host,S_surfxml_config,S_surfxml_ASroute_2,S_surfxml_random_2,S_surfxml_platform_6,E_surfxml_ASroute,S_surfxml_AS_6,E_surfxml_link,S_surfxml_platform,S_surfxml_platform_1,S_surfxml_bypassRoute_1,E_surfxml_config,S_surfxml_host_1,S_surfxml_route_2,E_surfxml_platform,S_surfxml_config_2,S_surfxml_random_1,S_surfxml_platform_4,S_surfxml_AS_1,S_surfxml_host,S_surfxml_platform_2,S_surfxml_host_2,S_surfxml_AS_7,S_surfxml_AS_13,S_surfxml_ASroute,S_surfxml_platform_5,S_surfxml_AS_5,S_surfxml_config_1,S_surfxml_AS_4,S_surfxml_route,E_surfxml_bypassRoute>"<argument"{s} FAIL("Starting tag <argument> is not allowed here.");
1540 <S_surfxml_process_1,S_surfxml_process,S_surfxml_process_2>"<argument"{s} {
1541 AX_surfxml_argument_value = 0;
1542 ENTER(AL_surfxml_argument); pushbuffer(0);
1545 <AL_surfxml_argument>{
1546 "value"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_argument_value);
1547 "value"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_argument_value);
1550 if (!AX_surfxml_argument_value) FAIL("Required attribute `value' not set for `argument' element.");
1551 LEAVE; STag_surfxml_argument();surfxml_pcdata_ix = 0; ENTER(E_surfxml_argument);
1554 if (!AX_surfxml_argument_value) FAIL("Required attribute `value' not set for `argument' element.");
1555 LEAVE; STag_surfxml_argument(); surfxml_pcdata_ix = 0; ETag_surfxml_argument(); popbuffer(); /* attribute */
1557 case S_surfxml_process_1: case S_surfxml_process: case S_surfxml_process_2: SET(S_surfxml_process_2); break;
1560 . FAIL("Unexpected character `%c' in attribute list of argument element.", yytext[0]);
1561 {Name} FAIL("Bad attribute `%s' in `argument' element start tag.",yytext);
1562 <<EOF>> FAIL("EOF in attribute list of `argument' element.");
1565 <E_surfxml_argument>{
1566 "</argument"{s}">" {
1568 ETag_surfxml_argument();
1569 popbuffer(); /* attribute */
1571 case S_surfxml_process_1: case S_surfxml_process: case S_surfxml_process_2: SET(S_surfxml_process_2); break;
1574 "</"{Name}{s}">" FAIL("Unexpected end-tag `%s': `</argument>' expected.",yytext);
1575 . FAIL("Unexpected character `%c': `</argument>' expected.",yytext[0]);
1576 <<EOF>> FAIL("Premature EOF: `</argument>' expected.");
1579 <S_surfxml_AS_10,S_surfxml_AS_3,S_surfxml_random,S_surfxml_ASroute_1,S_surfxml_AS_2,E_surfxml_AS,S_surfxml_AS_12,E_surfxml_process,S_surfxml_process,S_surfxml_link_2,E_surfxml_random,S_surfxml_AS_8,S_surfxml_bypassRoute_2,E_surfxml_route,S_surfxml_AS_9,S_surfxml_platform_3,S_surfxml_route_1,S_surfxml_AS_11,S_surfxml_link_1,S_surfxml_AS,S_surfxml_bypassRoute,S_surfxml_link,E_surfxml_host,S_surfxml_config,S_surfxml_ASroute_2,S_surfxml_random_2,S_surfxml_platform_6,S_surfxml_process_2,E_surfxml_ASroute,S_surfxml_AS_6,E_surfxml_link,S_surfxml_platform_1,S_surfxml_bypassRoute_1,E_surfxml_config,S_surfxml_host_1,ROOT_surfxml_config,S_surfxml_route_2,E_surfxml_platform,S_surfxml_config_2,S_surfxml_random_1,S_surfxml_platform_4,S_surfxml_AS_1,S_surfxml_host,S_surfxml_platform_2,S_surfxml_process_1,S_surfxml_host_2,S_surfxml_AS_7,S_surfxml_AS_13,S_surfxml_ASroute,S_surfxml_platform_5,S_surfxml_AS_5,S_surfxml_config_1,S_surfxml_AS_4,S_surfxml_route,E_surfxml_bypassRoute>"<config"{s} FAIL("Starting tag <config> is not allowed here.");
1581 <S_surfxml_platform>"<config"{s} {
1582 AX_surfxml_config_id = 0;
1583 ENTER(AL_surfxml_config); pushbuffer(0);
1586 <AL_surfxml_config>{
1587 "id"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_config_id);
1588 "id"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_config_id);
1591 LEAVE; STag_surfxml_config();surfxml_pcdata_ix = 0; ENTER(S_surfxml_config);
1594 LEAVE; STag_surfxml_config(); surfxml_pcdata_ix = 0; ETag_surfxml_config(); popbuffer(); /* attribute */
1596 case S_surfxml_platform: SET(S_surfxml_platform_1); break;
1599 . FAIL("Unexpected character `%c' in attribute list of config element.", yytext[0]);
1600 {Name} FAIL("Bad attribute `%s' in `config' element start tag.",yytext);
1601 <<EOF>> FAIL("EOF in attribute list of `config' element.");
1604 <S_surfxml_config,S_surfxml_config_2,E_surfxml_config>{
1607 ETag_surfxml_config();
1608 popbuffer(); /* attribute */
1610 case S_surfxml_platform: SET(S_surfxml_platform_1); break;
1613 "</"{Name}{s}">" FAIL("Unexpected end-tag `%s': `</config>' expected.",yytext);
1614 . FAIL("Unexpected character `%c': `</config>' expected.",yytext[0]);
1615 <<EOF>> FAIL("Premature EOF: `</config>' expected.");
1618 /* <!-- <!ATTLIST prop key CDATA #REQUIRED> -->
1619 * <!-- <!ATTLIST prop key CDATA #REQUIRED> --> */
1621 <S_surfxml_AS_10,S_surfxml_AS_3,S_surfxml_ASroute_1,S_surfxml_AS_2,E_surfxml_AS,S_surfxml_AS_12,E_surfxml_process,E_surfxml_random,S_surfxml_AS_8,S_surfxml_bypassRoute_2,E_surfxml_route,ROOT_surfxml_prop,S_surfxml_AS_9,S_surfxml_platform_3,S_surfxml_route_1,S_surfxml_AS_11,S_surfxml_AS,S_surfxml_bypassRoute,E_surfxml_host,S_surfxml_ASroute_2,S_surfxml_platform_6,E_surfxml_ASroute,S_surfxml_AS_6,E_surfxml_link,S_surfxml_platform,S_surfxml_platform_1,S_surfxml_bypassRoute_1,E_surfxml_config,S_surfxml_route_2,E_surfxml_platform,S_surfxml_platform_4,S_surfxml_AS_1,S_surfxml_platform_2,S_surfxml_AS_7,S_surfxml_AS_13,S_surfxml_ASroute,S_surfxml_platform_5,S_surfxml_AS_5,S_surfxml_AS_4,S_surfxml_route,E_surfxml_bypassRoute>"<prop"{s} FAIL("Starting tag <prop> is not allowed here.");
1623 <S_surfxml_config_1,S_surfxml_config,S_surfxml_random,S_surfxml_host_1,S_surfxml_host_2,S_surfxml_host,S_surfxml_link_1,S_surfxml_link_2,S_surfxml_config_2,S_surfxml_random_2,S_surfxml_link,S_surfxml_random_1,S_surfxml_process_1,S_surfxml_process,S_surfxml_process_2>"<prop"{s} {
1624 AX_surfxml_prop_id = 0;
1625 AX_surfxml_prop_value = 0;
1626 ENTER(AL_surfxml_prop); pushbuffer(0);
1630 "id"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_prop_id);
1631 "id"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_prop_id);
1633 "value"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_prop_value);
1634 "value"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_prop_value);
1637 if (!AX_surfxml_prop_id) FAIL("Required attribute `id' not set for `prop' element.");
1638 if (!AX_surfxml_prop_value) FAIL("Required attribute `value' not set for `prop' element.");
1639 LEAVE; STag_surfxml_prop();surfxml_pcdata_ix = 0; ENTER(E_surfxml_prop);
1642 if (!AX_surfxml_prop_id) FAIL("Required attribute `id' not set for `prop' element.");
1643 if (!AX_surfxml_prop_value) FAIL("Required attribute `value' not set for `prop' element.");
1644 LEAVE; STag_surfxml_prop(); surfxml_pcdata_ix = 0; ETag_surfxml_prop(); popbuffer(); /* attribute */
1646 case S_surfxml_random: case S_surfxml_random_2: case S_surfxml_random_1: SET(S_surfxml_random_2); break;
1647 case S_surfxml_config_1: case S_surfxml_config: case S_surfxml_config_2: SET(S_surfxml_config_2); break;
1648 case S_surfxml_process_1: case S_surfxml_process: case S_surfxml_process_2: SET(S_surfxml_process_2); break;
1649 case S_surfxml_host_1: case S_surfxml_host_2: case S_surfxml_host: SET(S_surfxml_host_2); break;
1650 case S_surfxml_link_1: case S_surfxml_link_2: case S_surfxml_link: SET(S_surfxml_link_2); break;
1653 . FAIL("Unexpected character `%c' in attribute list of prop element.", yytext[0]);
1654 {Name} FAIL("Bad attribute `%s' in `prop' element start tag.",yytext);
1655 <<EOF>> FAIL("EOF in attribute list of `prop' element.");
1661 ETag_surfxml_prop();
1662 popbuffer(); /* attribute */
1664 case S_surfxml_random: case S_surfxml_random_2: case S_surfxml_random_1: SET(S_surfxml_random_2); break;
1665 case S_surfxml_config_1: case S_surfxml_config: case S_surfxml_config_2: SET(S_surfxml_config_2); break;
1666 case S_surfxml_process_1: case S_surfxml_process: case S_surfxml_process_2: SET(S_surfxml_process_2); break;
1667 case S_surfxml_host_1: case S_surfxml_host_2: case S_surfxml_host: SET(S_surfxml_host_2); break;
1668 case S_surfxml_link_1: case S_surfxml_link_2: case S_surfxml_link: SET(S_surfxml_link_2); break;
1671 "</"{Name}{s}">" FAIL("Unexpected end-tag `%s': `</prop>' expected.",yytext);
1672 . FAIL("Unexpected character `%c': `</prop>' expected.",yytext[0]);
1673 <<EOF>> FAIL("Premature EOF: `</prop>' expected.");
1676 /* EPILOG: after the root element. */
1679 . {SET(PROLOG); yyless(0); CLEANUP; return -1;}
1683 /* CHARACTER DATA. */
1685 <IN_trace,VALUE1,VALUE2>{
1686 /* Non-defined standard entities... */
1687 "&" BUFFERPUTC('&');
1688 "<" BUFFERPUTC('<');
1689 ">" BUFFERPUTC('>');
1690 "'" BUFFERPUTC('\'');
1691 """ BUFFERPUTC('"');
1693 /* Character entities. */
1694 "&#"[[:digit:]]+";" BUFFERPUTC((unsigned char)atoi(yytext+2));
1695 "&#x"[[:xdigit:]]+";" BUFFERPUTC((unsigned char)strtol(yytext+3,NULL,16));
1698 <IN_trace,VALUE1,VALUE2,CDATA>{
1702 "\n\r" BUFFERPUTC('\n');
1706 "<![CDATA[" ENTER(CDATA);
1707 "]""]>" FAIL("Unexpected `]""]>' in character data.");
1711 \' BUFFERDONE; LEAVE;
1712 <<EOF>> FAIL("EOF in literal (\"'\" expected).");
1716 \" BUFFERDONE; LEAVE;
1717 <<EOF>> FAIL("EOF in literal (`\"' expected).");
1720 <IN_trace,VALUE1,VALUE2>{
1721 [^<&] BUFFERPUTC(yytext[0]);
1722 [<&] FAIL("Spurious `%c' in character data.",yytext[0]);
1727 /* "]""]" BUFFERPUTC(yytext[0]); BUFFERPUTC(yytext[1]); */
1728 . BUFFERPUTC(yytext[0]);
1729 <<EOF>> FAIL("EOF in CDATA section.");
1732 /* Impossible rules to avoid warnings from flex(1). */
1733 /* Ideally, this should be replaced by code in flexml.pl that
1734 generates just the states not covered by other rules. */
1736 .|[\n] FAIL("Syntax error on character `%c'.", yytext[0]);
1741 /* Element context stack lookup. */
1742 int surfxml_element_context(int i)
1744 return (0<i && i<yy_start_stack_depth
1745 ? yy_start_stack[yy_start_stack_ptr - i]
1750 void print_yy_stack(char* fmt, ...)
1752 int i = 0; va_list ap; va_start(ap, fmt);
1753 vfprintf(stderr, fmt, ap);
1754 if (surfxml_statenames) {
1755 for (i=1; i<yy_start_stack_ptr; i++) {
1756 fprintf(stderr, "%s/", surfxml_statenames[yy_start_stack[i] ]);
1758 fprintf(stderr,"%s\n", surfxml_statenames[YY_START]);
1763 void print_surfxml_bufferstack()
1766 fputs("Buffer: ", stderr);
1767 for (i = 0; i < blimit; i++) {
1768 if ( surfxml_bufferstack[i] == '\377' ) break;
1769 putc(surfxml_bufferstack[i], stderr);
1774 static void debug_enter(int state, const char* statename) {
1775 yy_push_state(state);
1776 if (yy_flex_debug) {
1777 print_yy_stack("--ENTER(%s) : ",statename);
1778 print_surfxml_bufferstack();
1782 static void debug_leave(void) {
1783 if (yy_flex_debug) {
1784 print_yy_stack("--LEAVE : ");
1785 print_surfxml_bufferstack();
1790 static void debug_set(int state, const char* statename) {
1792 if (yy_flex_debug) print_yy_stack("--SET(%s) : ",statename);
1797 static void cleanup(void)
1799 if (surfxml_statenames) {
1800 free(surfxml_statenames);
1801 surfxml_statenames = NULL;
1803 free(surfxml_bufferstack);
1804 surfxml_bufferstack = NULL;
1811 static int fail(const char* fmt, ...)
1813 int chars_left, used;
1814 va_list ap; va_start(ap, fmt);
1815 #ifdef FLEXML_yylineno
1816 used = sprintf(flexml_err_msg,
1817 "Invalid XML (XML input line %d, state %d): ",
1818 yylineno, YY_START);
1820 used = sprintf(flexml_err_msg,
1821 "Invalid XML (state %d): ",
1824 chars_left = flexml_max_err_msg_size - used - 1;
1825 vsnprintf(flexml_err_msg + used, chars_left, fmt, ap);
1828 #ifndef FLEXML_quiet_parser
1829 /* print directly to sdterr */
1830 fprintf(stderr, "%s\n", flexml_err_msg);
1831 flexml_err_msg[0] = '\0';