Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update workstation handling in SimDag. Change the prefix of SimDag functions with...
[simgrid.git] / src / surf / surfxml.l
index 30b56c5..c9f1a1e 100644 (file)
@@ -1,9 +1,9 @@
 /* Validating XML processor for surfxml.dtd.
- * Generated 2006/03/21 11:12:31.
+ * Generated 2006/05/29 23:03:05.
  *
  * This program was generated with the FleXML XML processor generator.
  * FleXML is Copyright © 1999-2005 Kristoffer Rose.  All rights reserved.
- * (Id: flexml.pl,v 1.46 2006/03/21 08:24:12 legranda Exp).
+ * (Id: flexml.pl,v 1.48 2006/03/21 13:09:12 mquinson Exp).
  * 
  * There are two, intertwined parts to this program, part A and part B.
  *
@@ -48,9 +48,9 @@
 
 /* Version strings. */
 const char rcs_surfxml_flexml_skeleton[] =
- "$" "Id: skel,v 1.27 2006/03/21 08:24:12 legranda Exp $";
+ "$" "Id: skel,v 1.28 2006/03/21 12:04:13 legranda Exp $";
 const char rcs_surfxml_flexml[] =
- "$" "Id: flexml.pl,v 1.46 2006/03/21 08:24:12 legranda Exp $";
+ "$" "Id: flexml.pl,v 1.48 2006/03/21 13:09:12 mquinson Exp $";
 
 /* ANSI headers. */
 #include <unistd.h>
@@ -66,38 +66,39 @@ const char rcs_surfxml_flexml[] =
 
 /* XML processor api. */
 /* FleXML-provided data. */
-const char* pcdata;
+const char* surfxml_pcdata;
 AT_surfxml_network_link_bandwidth A_surfxml_network_link_bandwidth;
+AT_surfxml_process_host A_surfxml_process_host;
+AT_surfxml_network_link_latency_file A_surfxml_network_link_latency_file;
+AT_surfxml_route_impact_on_dst_with_other_send A_surfxml_route_impact_on_dst_with_other_send;
+AT_surfxml_cpu_interference_send_recv A_surfxml_cpu_interference_send_recv;
+AT_surfxml_route_impact_on_dst A_surfxml_route_impact_on_dst;
+AT_surfxml_platform_description_version A_surfxml_platform_description_version;
+AT_surfxml_route_impact_on_src_with_other_recv A_surfxml_route_impact_on_src_with_other_recv;
+AT_surfxml_route_element_name A_surfxml_route_element_name;
+AT_surfxml_process_start_time A_surfxml_process_start_time;
+AT_surfxml_process_function A_surfxml_process_function;
+AT_surfxml_cpu_state A_surfxml_cpu_state;
+AT_surfxml_cpu_interference_send A_surfxml_cpu_interference_send;
+AT_surfxml_network_link_bandwidth_file A_surfxml_network_link_bandwidth_file;
 AT_surfxml_cpu_name A_surfxml_cpu_name;
 AT_surfxml_process_kill_time A_surfxml_process_kill_time;
 AT_surfxml_network_link_state A_surfxml_network_link_state;
-AT_surfxml_argument_value A_surfxml_argument_value;
 AT_surfxml_cpu_availability_file A_surfxml_cpu_availability_file;
-AT_surfxml_process_host A_surfxml_process_host;
-AT_surfxml_route_impact_on_src A_surfxml_route_impact_on_src;
+AT_surfxml_argument_value A_surfxml_argument_value;
 AT_surfxml_route_src A_surfxml_route_src;
-AT_surfxml_network_link_latency_file A_surfxml_network_link_latency_file;
+AT_surfxml_route_impact_on_src A_surfxml_route_impact_on_src;
 AT_surfxml_cpu_max_outgoing_rate A_surfxml_cpu_max_outgoing_rate;
-AT_surfxml_route_impact_on_dst_with_other_send A_surfxml_route_impact_on_dst_with_other_send;
-AT_surfxml_cpu_interference_send_recv A_surfxml_cpu_interference_send_recv;
 AT_surfxml_cpu_availability A_surfxml_cpu_availability;
-AT_surfxml_route_impact_on_dst A_surfxml_route_impact_on_dst;
 AT_surfxml_cpu_interference_recv A_surfxml_cpu_interference_recv;
-AT_surfxml_route_impact_on_src_with_other_recv A_surfxml_route_impact_on_src_with_other_recv;
 AT_surfxml_network_link_name A_surfxml_network_link_name;
-AT_surfxml_route_element_name A_surfxml_route_element_name;
 AT_surfxml_cpu_power A_surfxml_cpu_power;
-AT_surfxml_process_start_time A_surfxml_process_start_time;
 AT_surfxml_include_file A_surfxml_include_file;
-AT_surfxml_process_function A_surfxml_process_function;
 AT_surfxml_network_link_sharing_policy A_surfxml_network_link_sharing_policy;
 AT_surfxml_route_dst A_surfxml_route_dst;
-AT_surfxml_cpu_state A_surfxml_cpu_state;
 AT_surfxml_network_link_latency A_surfxml_network_link_latency;
-AT_surfxml_network_link_state_file A_surfxml_network_link_state_file;
-AT_surfxml_cpu_interference_send A_surfxml_cpu_interference_send;
 AT_surfxml_cpu_state_file A_surfxml_cpu_state_file;
-AT_surfxml_network_link_bandwidth_file A_surfxml_network_link_bandwidth_file;
+AT_surfxml_network_link_state_file A_surfxml_network_link_state_file;
 
 /* XML state. */
 #ifdef FLEX_DEBUG
@@ -126,7 +127,7 @@ static void cleanup(void);
 #define CLEANUP  cleanup()
 
 /* Text buffer stack handling. */
-char bufferstack[FLEXML_BUFFERSTACKSIZE];
+static char bufferstack[FLEXML_BUFFERSTACKSIZE];
 static char* limit = bufferstack + FLEXML_BUFFERSTACKSIZE;
 typedef struct BufferLast_s {
   struct BufferLast_s *old; char* saved; char new1[1];
@@ -218,7 +219,7 @@ Literal             \'[^'']*\'|\"[^""]*\"
  * INPI                inside an XML PI <?...?>
  * VALUE1      inside a '...'-delimited literal
  * VALUE2      inside a "..."-delimited literal
- * CDATA       inside a <![CDATA[...]]> section.
+ * CDATA       inside a <![CDATA[...] ]> section.
  * ROOT_<tag>  expect root element <tag>
  * AL_<tag>    inside the attribute list for <tag>
  * IN_<tag>    inside a <tag> with element contents (ready for end tag)
@@ -343,15 +344,19 @@ const char* *surfxml_statenames=NULL;
  /* <!-- Small DTD for SURF based tools. -->  */
 
 <ROOT_surfxml_platform_description>"<platform_description"{s} {
+  A_surfxml_platform_description_version = "0.0";
   ENTER(AL_surfxml_platform_description);
   }
 
 <AL_surfxml_platform_description>{
+ "version"{Eq}\' ENTER(VALUE1); BUFFERSET(A_surfxml_platform_description_version);
+ "version"{Eq}\" ENTER(VALUE2); BUFFERSET(A_surfxml_platform_description_version);
+
  ">" {
-  LEAVE; STag_surfxml_platform_description();pcdata = NULL; ENTER(S_surfxml_platform_description);
+  LEAVE; STag_surfxml_platform_description();surfxml_pcdata = NULL; ENTER(S_surfxml_platform_description);
  }
  "/>" {
-  LEAVE; STag_surfxml_platform_description(); pcdata = NULL; ETag_surfxml_platform_description();
+  LEAVE; STag_surfxml_platform_description(); surfxml_pcdata = NULL; ETag_surfxml_platform_description();
   switch (YY_START) {
    case ROOT_surfxml_platform_description: SET(EPILOG); break;
   }
@@ -385,11 +390,11 @@ const char* *surfxml_statenames=NULL;
 
  ">" {
   if (!A_surfxml_include_file) FAIL("Required attribute `file' not set for `include' element.");
-  LEAVE; STag_surfxml_include();pcdata = NULL; ENTER(S_surfxml_include);
+  LEAVE; STag_surfxml_include();surfxml_pcdata = NULL; ENTER(S_surfxml_include);
  }
  "/>" {
   if (!A_surfxml_include_file) FAIL("Required attribute `file' not set for `include' element.");
-  LEAVE; STag_surfxml_include(); pcdata = NULL; ETag_surfxml_include();
+  LEAVE; STag_surfxml_include(); surfxml_pcdata = NULL; ETag_surfxml_include();
   switch (YY_START) {
    case S_surfxml_platform_description_2: case S_surfxml_platform_description_1: case S_surfxml_platform_description: SET(S_surfxml_platform_description_2); break;
    case ROOT_surfxml_include: SET(EPILOG); break;
@@ -466,12 +471,12 @@ const char* *surfxml_statenames=NULL;
  ">" {
   if (!A_surfxml_cpu_name) FAIL("Required attribute `name' not set for `cpu' element.");
   if (!A_surfxml_cpu_power) FAIL("Required attribute `power' not set for `cpu' element.");
-  LEAVE; STag_surfxml_cpu();pcdata = NULL; ENTER(E_surfxml_cpu);
+  LEAVE; STag_surfxml_cpu();surfxml_pcdata = NULL; ENTER(E_surfxml_cpu);
  }
  "/>" {
   if (!A_surfxml_cpu_name) FAIL("Required attribute `name' not set for `cpu' element.");
   if (!A_surfxml_cpu_power) FAIL("Required attribute `power' not set for `cpu' element.");
-  LEAVE; STag_surfxml_cpu(); pcdata = NULL; ETag_surfxml_cpu();
+  LEAVE; STag_surfxml_cpu(); surfxml_pcdata = NULL; ETag_surfxml_cpu();
   switch (YY_START) {
    case S_surfxml_platform_description_2: case S_surfxml_platform_description_1: case S_surfxml_platform_description: SET(S_surfxml_platform_description_2); break;
    case ROOT_surfxml_cpu: SET(EPILOG); break;
@@ -542,12 +547,12 @@ const char* *surfxml_statenames=NULL;
  ">" {
   if (!A_surfxml_network_link_name) FAIL("Required attribute `name' not set for `network_link' element.");
   if (!A_surfxml_network_link_bandwidth) FAIL("Required attribute `bandwidth' not set for `network_link' element.");
-  LEAVE; STag_surfxml_network_link();pcdata = NULL; ENTER(E_surfxml_network_link);
+  LEAVE; STag_surfxml_network_link();surfxml_pcdata = NULL; ENTER(E_surfxml_network_link);
  }
  "/>" {
   if (!A_surfxml_network_link_name) FAIL("Required attribute `name' not set for `network_link' element.");
   if (!A_surfxml_network_link_bandwidth) FAIL("Required attribute `bandwidth' not set for `network_link' element.");
-  LEAVE; STag_surfxml_network_link(); pcdata = NULL; ETag_surfxml_network_link();
+  LEAVE; STag_surfxml_network_link(); surfxml_pcdata = NULL; ETag_surfxml_network_link();
   switch (YY_START) {
    case S_surfxml_platform_description_2: case S_surfxml_platform_description_1: case S_surfxml_platform_description: SET(S_surfxml_platform_description_2); break;
    case ROOT_surfxml_network_link: SET(EPILOG); break;
@@ -606,12 +611,12 @@ const char* *surfxml_statenames=NULL;
  ">" {
   if (!A_surfxml_route_src) FAIL("Required attribute `src' not set for `route' element.");
   if (!A_surfxml_route_dst) FAIL("Required attribute `dst' not set for `route' element.");
-  LEAVE; STag_surfxml_route();pcdata = NULL; ENTER(S_surfxml_route);
+  LEAVE; STag_surfxml_route();surfxml_pcdata = NULL; ENTER(S_surfxml_route);
  }
  "/>" {
   if (!A_surfxml_route_src) FAIL("Required attribute `src' not set for `route' element.");
   if (!A_surfxml_route_dst) FAIL("Required attribute `dst' not set for `route' element.");
-  LEAVE; STag_surfxml_route(); pcdata = NULL; ETag_surfxml_route();
+  LEAVE; STag_surfxml_route(); surfxml_pcdata = NULL; ETag_surfxml_route();
   switch (YY_START) {
    case S_surfxml_platform_description_2: case S_surfxml_platform_description_1: case S_surfxml_platform_description: SET(S_surfxml_platform_description_2); break;
    case ROOT_surfxml_route: SET(EPILOG); break;
@@ -649,11 +654,11 @@ const char* *surfxml_statenames=NULL;
 
  ">" {
   if (!A_surfxml_route_element_name) FAIL("Required attribute `name' not set for `route_element' element.");
-  LEAVE; STag_surfxml_route_element();pcdata = NULL; ENTER(E_surfxml_route_element);
+  LEAVE; STag_surfxml_route_element();surfxml_pcdata = NULL; ENTER(E_surfxml_route_element);
  }
  "/>" {
   if (!A_surfxml_route_element_name) FAIL("Required attribute `name' not set for `route_element' element.");
-  LEAVE; STag_surfxml_route_element(); pcdata = NULL; ETag_surfxml_route_element();
+  LEAVE; STag_surfxml_route_element(); surfxml_pcdata = NULL; ETag_surfxml_route_element();
   switch (YY_START) {
    case S_surfxml_route_1: case S_surfxml_route: case S_surfxml_route_2: SET(S_surfxml_route_2); break;
    case ROOT_surfxml_route_element: SET(EPILOG); break;
@@ -702,12 +707,12 @@ const char* *surfxml_statenames=NULL;
  ">" {
   if (!A_surfxml_process_host) FAIL("Required attribute `host' not set for `process' element.");
   if (!A_surfxml_process_function) FAIL("Required attribute `function' not set for `process' element.");
-  LEAVE; STag_surfxml_process();pcdata = NULL; ENTER(S_surfxml_process);
+  LEAVE; STag_surfxml_process();surfxml_pcdata = NULL; ENTER(S_surfxml_process);
  }
  "/>" {
   if (!A_surfxml_process_host) FAIL("Required attribute `host' not set for `process' element.");
   if (!A_surfxml_process_function) FAIL("Required attribute `function' not set for `process' element.");
-  LEAVE; STag_surfxml_process(); pcdata = NULL; ETag_surfxml_process();
+  LEAVE; STag_surfxml_process(); surfxml_pcdata = NULL; ETag_surfxml_process();
   switch (YY_START) {
    case S_surfxml_platform_description_2: case S_surfxml_platform_description_1: case S_surfxml_platform_description: SET(S_surfxml_platform_description_2); break;
    case ROOT_surfxml_process: SET(EPILOG); break;
@@ -745,11 +750,11 @@ const char* *surfxml_statenames=NULL;
 
  ">" {
   if (!A_surfxml_argument_value) FAIL("Required attribute `value' not set for `argument' element.");
-  LEAVE; STag_surfxml_argument();pcdata = NULL; ENTER(E_surfxml_argument);
+  LEAVE; STag_surfxml_argument();surfxml_pcdata = NULL; ENTER(E_surfxml_argument);
  }
  "/>" {
   if (!A_surfxml_argument_value) FAIL("Required attribute `value' not set for `argument' element.");
-  LEAVE; STag_surfxml_argument(); pcdata = NULL; ETag_surfxml_argument();
+  LEAVE; STag_surfxml_argument(); surfxml_pcdata = NULL; ETag_surfxml_argument();
   switch (YY_START) {
    case S_surfxml_process_1: case S_surfxml_process: case S_surfxml_process_2: SET(S_surfxml_process_2); break;
    case ROOT_surfxml_argument: SET(EPILOG); break;