From: alegrand Date: Thu, 6 Jan 2005 21:49:03 +0000 (+0000) Subject: Preparing to parse interferences for a new model. Also added a tag include that does... X-Git-Tag: v3.3~4610 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/a661c633ade31b057c4113edb41a7710bb9885c3 Preparing to parse interferences for a new model. Also added a tag include that does not work yet. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@740 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/include/surf/surfxml.h b/src/include/surf/surfxml.h index a419d70fc1..ace18bbb59 100644 --- a/src/include/surf/surfxml.h +++ b/src/include/surf/surfxml.h @@ -1,5 +1,5 @@ /* XML processor/application API for ../../src/surf/surfxml.dtd. - * Generated 2005/01/05 14:22:02. + * Generated 2005/01/05 17:50:46. * * This program was generated with the FleXML XML processor generator, * (Id: flexml.pl,v 1.35 2005/01/05 06:29:58 legranda Exp). @@ -27,6 +27,8 @@ /* XML application entry points. */ extern void STag_platform_description(void); extern void ETag_platform_description(void); +extern void STag_include(void); +extern void ETag_include(void); extern void STag_cpu(void); extern void ETag_cpu(void); extern void STag_network_link(void); @@ -41,6 +43,8 @@ extern void STag_argument(void); extern void ETag_argument(void); /* XML application data. */ +typedef const char* AT_route_impact_on_computation; +#define AU_route_impact_on_computation NULL typedef const char* AT_network_link_bandwidth; #define AU_network_link_bandwidth NULL typedef const char* AT_cpu_name; @@ -64,6 +68,8 @@ typedef const char* AT_route_element_name; #define AU_route_element_name NULL typedef const char* AT_cpu_power; #define AU_cpu_power NULL +typedef const char* AT_include_file; +#define AU_include_file NULL typedef const char* AT_process_function; #define AU_process_function NULL typedef enum { AU_cpu_state, A_cpu_state_ON,A_cpu_state_OFF } AT_cpu_state; @@ -80,6 +86,7 @@ typedef const char* AT_network_link_bandwidth_file; /* FleXML-provided data. */ extern const char* pcdata; +extern AT_route_impact_on_computation A_route_impact_on_computation; extern AT_network_link_bandwidth A_network_link_bandwidth; extern AT_cpu_name A_cpu_name; extern AT_network_link_state A_network_link_state; @@ -92,6 +99,7 @@ extern AT_cpu_availability A_cpu_availability; extern AT_network_link_name A_network_link_name; extern AT_route_element_name A_route_element_name; extern AT_cpu_power A_cpu_power; +extern AT_include_file A_include_file; extern AT_process_function A_process_function; extern AT_cpu_state A_cpu_state; extern AT_route_dst A_route_dst; diff --git a/src/surf/surfxml.dtd b/src/surf/surfxml.dtd index 60619e145d..27c5247adb 100644 --- a/src/surf/surfxml.dtd +++ b/src/surf/surfxml.dtd @@ -1,5 +1,8 @@ - + + + + @@ -21,6 +24,7 @@ + diff --git a/src/surf/surfxml.l b/src/surf/surfxml.l index 1c69a553dc..520eb0bb77 100644 --- a/src/surf/surfxml.l +++ b/src/surf/surfxml.l @@ -1,5 +1,5 @@ /* Validating XML processor for surfxml.dtd. - * Generated 2005/01/05 14:22:05. + * Generated 2005/01/05 17:50:49. * * This program was generated with the FleXML XML processor generator, * (Id: flexml.pl,v 1.35 2005/01/05 06:29:58 legranda Exp). @@ -46,6 +46,7 @@ const char rcs_flexml[] = /* FleXML-provided data. */ const char* pcdata; +AT_route_impact_on_computation A_route_impact_on_computation; AT_network_link_bandwidth A_network_link_bandwidth; AT_cpu_name A_cpu_name; AT_network_link_state A_network_link_state; @@ -58,6 +59,7 @@ AT_cpu_availability A_cpu_availability; AT_network_link_name A_network_link_name; AT_route_element_name A_route_element_name; AT_cpu_power A_cpu_power; +AT_include_file A_include_file; AT_process_function A_process_function; AT_cpu_state A_cpu_state; AT_route_dst A_route_dst; @@ -186,6 +188,7 @@ Literal \'[^'']*\'|\"[^""]*\" */ %x PROLOG DOCTYPE EPILOG INCOMMENT INPI VALUE1 VALUE2 CDATA %x ROOT_platform_description AL_platform_description S_platform_description S_platform_description_1 S_platform_description_2 E_platform_description +%x ROOT_include AL_include S_include S_include_1 S_include_2 E_include %x ROOT_cpu AL_cpu E_cpu %x ROOT_network_link AL_network_link E_network_link %x ROOT_route AL_route S_route S_route_1 S_route_2 E_route @@ -219,6 +222,12 @@ const char* *statenames=NULL; statenames[S_platform_description_1] = "platform_description"; statenames[S_platform_description_2] = "platform_description"; statenames[E_platform_description] = "platform_description"; + statenames[ROOT_include] = NULL; + statenames[AL_include] = NULL; + statenames[S_include] = "include"; + statenames[S_include_1] = "include"; + statenames[S_include_2] = "include"; + statenames[E_include] = "include"; statenames[ROOT_cpu] = NULL; statenames[AL_cpu] = NULL; statenames[E_cpu] = "cpu"; @@ -246,7 +255,7 @@ const char* *statenames=NULL; /* COMMENTS and PIs: handled uniformly for efficiency. */ -{ +{ "