Retour       Suite


Langage objet

 

Syntaxe des instructions :

opération

prédicat

opération analytique

opération synthétique

li a

isli (s)

arg (s) = a

mkli (a) = s

load x

isload (s)

adr (s) = x

mkload (x) = s

sto x

issto (s)

adr (s) = x

mksto (x) = s

add x

isadd (s)

adr (s) = x

mkadd (x) = s

programme = liste d'instructions

Les opérations ci-dessus vérifient :


Fonctions de l'environnement machine:

Ces fonctions vérifient :


Sémantique :

    step (s , R) = if           isli (s)       then   a (ac , arg (s) , R)

            3            else if    isload (s)  then   a (ac , c (adr (s) , R) , R)

                          else if    issto (s)     then   a (adr (s) , c (ac , R) , R)

                          else if    isadd (s)   then   a (ac ,  c (adr (s) , R) + c (ac , R) , R)

        -> donne l'environnement machine après exécution de l'instruction s

    outcome (p , R) = if  null (p)  then  R

    2                            else   outcome (rest (p) , step (first (p) , R)

        -> donne l'environnement machine après exécution du programme p


d'où le lemme :

7             outcome (p1 * p2 , R) = outcome (p2 , outcome (p1 , R))


Retour       Suite

Retour

Homepage

Pour m'écrire

Dernières modifications : Fri Feb 11 18:53:48 MET 2000