Préparation pour test intermediaire

- Analyseur lexical OK
- Analyseur syntaxyque OK
This commit is contained in:
2016-02-09 15:45:20 +01:00
parent 3b5b693f67
commit 755d2b6140
63 changed files with 8847 additions and 49 deletions

25
test/analyseur_xml.h Normal file
View File

@@ -0,0 +1,25 @@
#ifndef __ANALYSEUR_XML__
#define __ANALYSEUR_XML__
/* structures de donnees et fonctions pour arbre abstrait */
typedef struct n noeud;
struct n{
char *nom;
struct n *premier_fils;
struct n *dernier_fils;
struct n *suiv;
};
FILE *yyin;
void affiche_arbre(noeud *racine);
int compare_arbres(noeud *racine1, noeud *racine2, int verbose);
void libere_arbre(noeud *r);
/* analyseur */
noeud *analyseur_xml(void);
#endif