-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinterp.h
21 lines (20 loc) · 1.19 KB
/
interp.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* interp.h */
#ifndef INTERP_H
#define INTERP_H
/*----------------------semantique-----------------------------------------------*/
/* initialisation memoire */
void init_memoire();/* initialise le tas: TAS, ADR, TAL */
/* decrit la memoire: ADR, TAL, TAS */
void ecrire_memoire(int maxadr, int maxtal, int maxtas);
/* semantique op a grands pas des expressions */
extern int semval(BILENVTY rho_gb, NOE e);
/*semantique op a grdspas des commandes */
extern void semop_gp(BILENVTY rho_gb, NOE c);
/*---------------------VARIABLES globales ---------------------------------------*/
extern NOE syntree; /* arbre syntaxique (y.tab.c) */
extern int TAS [TAILLEMEM]; /* le tas; (NIL=0); "vraies" adresses >=1(y.tab.c) */
extern int ADR[TAILLEADR]; /* ADR[i]=adresse dans le tas du tab i */
extern int TAL[TAILLEADR]; /* TAL[i]=taille du tab i */
extern int ptasl; /* premiere place libre dans TAS[] */
extern int padrl; /* premiere place libre dans ADR[] */
#endif