X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0b70a26c1bb6cac81da302eb5e2add20cda2b48f..b1b6cb61ca85e53ac6d90a9b2bdc7d031ebaa6b8:/src/surf/surfxml.l diff --git a/src/surf/surfxml.l b/src/surf/surfxml.l index fa4e3d6660..98c911ff41 100644 --- a/src/surf/surfxml.l +++ b/src/surf/surfxml.l @@ -1,5 +1,5 @@ /* Validating XML processor for surf/surfxml.dtd. - * Generated 2007/10/26 19:58:25. + * Generated 2007/10/31 10:34:28. * * This program was generated with the FleXML XML processor generator. * FleXML is Copyright (C) 1999-2005 Kristoffer Rose. All rights reserved. @@ -101,8 +101,6 @@ AT_surfxml_host_interference_send AX_surfxml_host_interference_send; #define A_surfxml_host_interference_send (surfxml_bufferstack + AX_surfxml_host_interference_send) AT_surfxml_route_impact_on_dst AX_surfxml_route_impact_on_dst; #define A_surfxml_route_impact_on_dst (surfxml_bufferstack + AX_surfxml_route_impact_on_dst) -AT_surfxml_platform_description_version AX_surfxml_platform_description_version; -#define A_surfxml_platform_description_version (surfxml_bufferstack + AX_surfxml_platform_description_version) AT_surfxml_prop_value AX_surfxml_prop_value; #define A_surfxml_prop_value (surfxml_bufferstack + AX_surfxml_prop_value) AT_surfxml_route_impact_on_src_with_other_recv AX_surfxml_route_impact_on_src_with_other_recv; @@ -115,6 +113,8 @@ AT_surfxml_router_id AX_surfxml_router_id; #define A_surfxml_router_id (surfxml_bufferstack + AX_surfxml_router_id) AT_surfxml_process_start_time AX_surfxml_process_start_time; #define A_surfxml_process_start_time (surfxml_bufferstack + AX_surfxml_process_start_time) +AT_surfxml_platform_xmlns_c_route AX_surfxml_platform_xmlns_c_route; +#define A_surfxml_platform_xmlns_c_route (surfxml_bufferstack + AX_surfxml_platform_xmlns_c_route) AT_surfxml_process_function AX_surfxml_process_function; #define A_surfxml_process_function (surfxml_bufferstack + AX_surfxml_process_function) AT_surfxml_host_max_outgoing_rate AX_surfxml_host_max_outgoing_rate; @@ -139,6 +139,8 @@ AT_surfxml_link_bandwidth AX_surfxml_link_bandwidth; #define A_surfxml_link_bandwidth (surfxml_bufferstack + AX_surfxml_link_bandwidth) AT_surfxml_link_latency AX_surfxml_link_latency; #define A_surfxml_link_latency (surfxml_bufferstack + AX_surfxml_link_latency) +AT_surfxml_platform_xmlns_c_link AX_surfxml_platform_xmlns_c_link; +#define A_surfxml_platform_xmlns_c_link (surfxml_bufferstack + AX_surfxml_platform_xmlns_c_link) AT_surfxml_include_file AX_surfxml_include_file; #define A_surfxml_include_file (surfxml_bufferstack + AX_surfxml_include_file) AT_surfxml_link_bandwidth_file AX_surfxml_link_bandwidth_file; @@ -147,6 +149,8 @@ AT_surfxml_host_state_file AX_surfxml_host_state_file; #define A_surfxml_host_state_file (surfxml_bufferstack + AX_surfxml_host_state_file) AT_surfxml_route_dst AX_surfxml_route_dst; #define A_surfxml_route_dst (surfxml_bufferstack + AX_surfxml_route_dst) +AT_surfxml_platform_version AX_surfxml_platform_version; +#define A_surfxml_platform_version (surfxml_bufferstack + AX_surfxml_platform_version) /* XML state. */ #ifdef FLEX_DEBUG @@ -308,7 +312,7 @@ Literal \'[^'']*\'|\"[^""]*\" * IMPOSSIBLE dummy to permit disabling rules; must be last */ %x PROLOG DOCTYPE EPILOG INCOMMENT INPI VALUE1 VALUE2 CDATA -%x ROOT_surfxml_platform_description AL_surfxml_platform_description S_surfxml_platform_description S_surfxml_platform_description_1 S_surfxml_platform_description_2 S_surfxml_platform_description_3 S_surfxml_platform_description_4 S_surfxml_platform_description_5 E_surfxml_platform_description +%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 E_surfxml_platform %x ROOT_surfxml_include AL_surfxml_include E_surfxml_include %x ROOT_surfxml_host AL_surfxml_host S_surfxml_host S_surfxml_host_1 S_surfxml_host_2 E_surfxml_host %x ROOT_surfxml_prop AL_surfxml_prop E_surfxml_prop @@ -348,6 +352,8 @@ const char* *surfxml_statenames=NULL; /* FleXML_init */ bnext = inext = 1; surfxml_bufferliteral('\0', &bnext, "0.0"); + surfxml_bufferliteral('\0', &bnext, "http://simgrid.gforge.inria.fr/"); + surfxml_bufferliteral('\0', &bnext, "http://simgrid.gforge.inria.fr/"); surfxml_bufferliteral('\0', &bnext, "1.0"); surfxml_bufferliteral('\0', &bnext, "1.0"); surfxml_bufferliteral('\0', &bnext, "1.0"); @@ -369,15 +375,15 @@ const char* *surfxml_statenames=NULL; surfxml_statenames[VALUE1] = NULL; surfxml_statenames[VALUE2] = NULL; surfxml_statenames[CDATA] = NULL; - surfxml_statenames[ROOT_surfxml_platform_description] = NULL; - surfxml_statenames[AL_surfxml_platform_description] = NULL; - surfxml_statenames[S_surfxml_platform_description] = "platform_description"; - surfxml_statenames[S_surfxml_platform_description_1] = "platform_description"; - surfxml_statenames[S_surfxml_platform_description_2] = "platform_description"; - surfxml_statenames[S_surfxml_platform_description_3] = "platform_description"; - surfxml_statenames[S_surfxml_platform_description_4] = "platform_description"; - surfxml_statenames[S_surfxml_platform_description_5] = "platform_description"; - surfxml_statenames[E_surfxml_platform_description] = "platform_description"; + surfxml_statenames[ROOT_surfxml_platform] = NULL; + surfxml_statenames[AL_surfxml_platform] = NULL; + surfxml_statenames[S_surfxml_platform] = "platform"; + surfxml_statenames[S_surfxml_platform_1] = "platform"; + surfxml_statenames[S_surfxml_platform_2] = "platform"; + surfxml_statenames[S_surfxml_platform_3] = "platform"; + surfxml_statenames[S_surfxml_platform_4] = "platform"; + surfxml_statenames[S_surfxml_platform_5] = "platform"; + surfxml_statenames[E_surfxml_platform] = "platform"; surfxml_statenames[ROOT_surfxml_include] = NULL; surfxml_statenames[AL_surfxml_include] = NULL; surfxml_statenames[E_surfxml_include] = "include"; @@ -421,7 +427,7 @@ const char* *surfxml_statenames=NULL; /* COMMENTS and PIs: handled uniformly for efficiency. */ -{ +{ " */ -""{ - "version"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_platform_description_version); - "version"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_platform_description_version); +{ + "version"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_platform_version); + "version"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_platform_version); + + "xmlns:link"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_platform_xmlns_c_link); + "xmlns:link"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_platform_xmlns_c_link); + + "xmlns:route"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_surfxml_platform_xmlns_c_route); + "xmlns:route"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_surfxml_platform_xmlns_c_route); ">" { - LEAVE; STag_surfxml_platform_description();surfxml_pcdata_ix = 0; ENTER(S_surfxml_platform_description); + LEAVE; STag_surfxml_platform();surfxml_pcdata_ix = 0; ENTER(S_surfxml_platform); } "/>" { - LEAVE; STag_surfxml_platform_description(); surfxml_pcdata_ix = 0; ETag_surfxml_platform_description(); popbuffer(); /* attribute */ + LEAVE; STag_surfxml_platform(); surfxml_pcdata_ix = 0; ETag_surfxml_platform(); popbuffer(); /* attribute */ switch (YY_START) { - case ROOT_surfxml_platform_description: SET(EPILOG); break; + case ROOT_surfxml_platform: SET(EPILOG); break; } } - . FAIL("Unexpected character `%c' in attribute list of platform_description element.", yytext[0]); - {Name} FAIL("Bad attribute `%s' in `platform_description' element start tag.",yytext); - <> FAIL("EOF in attribute list of `platform_description' element."); + . FAIL("Unexpected character `%c' in attribute list of platform element.", yytext[0]); + {Name} FAIL("Bad attribute `%s' in `platform' element start tag.",yytext); + <> FAIL("EOF in attribute list of `platform' element."); } -{ - "" { +{ + "" { LEAVE; - ETag_surfxml_platform_description(); + ETag_surfxml_platform(); popbuffer(); /* attribute */ switch (YY_START) { - case ROOT_surfxml_platform_description: SET(EPILOG); break; + case ROOT_surfxml_platform: SET(EPILOG); break; } } - "" FAIL("Unexpected end-tag `%s': `' expected.",yytext); - . FAIL("Unexpected character `%c': `' expected.",yytext[0]); - <> FAIL("Premature EOF: `' expected."); + "" FAIL("Unexpected end-tag `%s': `' expected.",yytext); + . FAIL("Unexpected character `%c': `' expected.",yytext[0]); + <> FAIL("Premature EOF: `' expected."); } -""" FAIL("Unexpected end-tag `%s': `' expected.",yytext); @@ -550,17 +564,17 @@ const char* *surfxml_statenames=NULL; <> FAIL("Premature EOF: `' expected."); } -""> FAIL("Premature EOF: `' expected."); } -""> FAIL("Premature EOF: `' expected."); } -""> FAIL("Premature EOF: `' expected."); } -""> FAIL("Premature EOF: `' expected."); } -""