%{ //====================================================== /** * Thx to Jean-Marie CODOL and Naitan GROLLEMUND * copyright 2009 GeoLabs SARL * Author : Gérald FENOY * */ //====================================================== #include #include #include #include static int tmp_count=1; static int defaultsc=0; static bool wait_maincontent=true; static bool wait_mainmetadata=false; static bool wait_metadata=false; static bool wait_inputs=false; static bool wait_defaults=false; static bool wait_supporteds=false; static bool wait_outputs=false; static bool wait_data=false; static service* my_service=NULL; static map* current_content=NULL; static elements* current_element=NULL; static char* curr_key; static int debug=0; static int data=-1; static int previous_data=0; static int current_data=0; // namespace using namespace std; //====================================================== // srerror void srerror(const char *s); //====================================================== // usage () void usage(void) ; //====================================================== // srdebug extern int srdebug; //====================================================== extern char srtext[]; // srlineno extern int srlineno; //====================================================== // srin extern FILE* srin; //====================================================== // srlex extern int srlex(void); extern int srlex_destroy(void); //vector lattribute; %} %union {char * s;char* chaine;char* key;char* val;} // jetons // %token ID %token CHAINE /* STARTXMLDECL et ENDXMLDECL qui sont */ %token STARTXMLDECL ENDXMLDECL //====================================================== /* version="xxx" et encoding="xxx" */ %token VERSIONDECL ENCODINGDECL SDDECL //====================================================== /* < et > */ %token INFCAR SUPCAR //====================================================== /* / = a1 texte "texte" */ %token SLASH Eq CHARDATA ATTVALUE PAIR SPAIR EPAIR ANID %type PAIR %type EPAIR %type SPAIR //====================================================== /*