#define MAX_TAILLE 5 typedef struct { int taille; int vect[MAX_TAILLE]; } Type_Vect; /* utilisation pour bison : 1) #include "vect.h" dans le prologue bison 2) IMPORTANT : #include "vect.h" aussi dans la prologue flex avant #include "yyparse.h" 3) %union { ... ; Type_Vect vector; ...} 4) %type Vectexp 5) Vectexp : Vectexp '+' Vectexp { // verifier la semantique ... $$.taille = $1.taille; for(i=0;i<$$.taille;i++) $$.vect[i]=$1.vect[i]+$3.vect[i]; } */