EVAL FINAL ESAYYYYYYY
This commit is contained in:
@@ -39,12 +39,12 @@ n_dec *cree_n_dec_fonc(char *nom, n_l_dec *param, n_l_dec *variables, n_instr *c
|
||||
/* ATTENTION : negatif => - unaire, comme dans -5
|
||||
non => négation logique
|
||||
Le opérateurs unaires ont op2 = NULL par convention */
|
||||
typedef enum {plus, moins, fois, divise, modulo, egal, diff, inf, sup, infeg, supeg, ou, et, non, negatif} operation;
|
||||
typedef enum {plus, moins, fois, divise, modulo, egal, diff, inf, sup, infeg, supeg, ou, et, non, negatif, cond} operation;
|
||||
|
||||
struct n_exp_ {
|
||||
enum{varExp, opExp, intExp, appelExp, lireExp, incrExp} type;
|
||||
union{
|
||||
struct{operation op; struct n_exp_ *op1; struct n_exp_ *op2;} opExp_;
|
||||
struct{operation op; struct n_exp_ *op1; struct n_exp_ *op2; struct n_exp_ *op3;} opExp_;
|
||||
n_var *var;
|
||||
n_var *incr;
|
||||
int entier;
|
||||
@@ -52,7 +52,7 @@ struct n_exp_ {
|
||||
}u;
|
||||
};
|
||||
|
||||
n_exp *cree_n_exp_op(operation type, n_exp *op1, n_exp *op2);
|
||||
n_exp *cree_n_exp_op(operation type, n_exp *op1, n_exp *op2, n_exp *op3);
|
||||
n_exp *cree_n_exp_entier(int entier);
|
||||
n_exp *cree_n_exp_var(n_var *var);
|
||||
n_exp *cree_n_exp_appel(n_appel *app);
|
||||
|
||||
Reference in New Issue
Block a user