• Aucun résultat trouvé

Exemple 5.13 avec l’entr´ ee : int [2][3][4]

N/A
N/A
Protected

Academic year: 2022

Partager "Exemple 5.13 avec l’entr´ ee : int [2][3][4]"

Copied!
12
0
0

Texte intégral

(1)

Exemple 5.13 avec l’entr´ ee : int [2][3][4]

Production R` egles S´ emantiques

TBC T .t := C.t

C.b := B.t

Bint B.t := integer

Bfloat B.t := float

C → [ num ] C 1 C.t := array(num.val, C 1 .t) C 1 .b := C.b

Cǫ C.t := C.b

(2)

Exemple 5.13 avec l’entr´ ee : int [2][3][4]

Production R`egles S´emantiques

TBC T .t := C.t

C.b := B.t

Bint B.t := integer

Bfloat B.t := float

C →[ num ] C1 C.t := array(num.val, C1.t) C1.b := C.b

Cǫ C.t := C.b

T

B C

1

int [ num 2 ] C

2

[ num 3 ] C

3

[ num 4 ] C

4

(3)

Exemple 5.13 avec l’entr´ ee : int [2][3][4]

Production R`egles S´emantiques

TBC T .t := C.t

C.b := B.t

Bint B.t := integer

Bfloat B.t := float

C →[ num ] C1 C.t := array(num.val, C1.t) C1.b := C.b

Cǫ C.t := C.b

T

B C

1

int t

1

[ num 2 ] C

2

[ num 3 ] C

3

[ num 4 ] C

4

t

1:

integer

(4)

Exemple 5.13 avec l’entr´ ee : int [2][3][4]

Production R`egles S´emantiques

TBC T .t := C.t

C.b := B.t

Bint B.t := integer

Bfloat B.t := float

C →[ num ] C1 C.t := array(num.val, C1.t) C1.b := C.b

Cǫ C.t := C.b

T

B C

1

int t

1

[ num 2 ] C

2

[ num 3 ] C

3

[ num 4 ] C

4

t

1

t

1:

integer

(5)

Exemple 5.13 avec l’entr´ ee : int [2][3][4]

Production R`egles S´emantiques

TBC T .t := C.t

C.b := B.t

Bint B.t := integer

Bfloat B.t := float

C →[ num ] C1 C.t := array(num.val, C1.t) C1.b := C.b

Cǫ C.t := C.b

T

B C

1

int t

1

[ num 2 ] t

1

C

2

[ num 3 ] C

3

[ num 4 ] C

4

t

1

t

1:

integer

(6)

Exemple 5.13 avec l’entr´ ee : int [2][3][4]

Production R`egles S´emantiques

TBC T .t := C.t

C.b := B.t

Bint B.t := integer

Bfloat B.t := float

C →[ num ] C1 C.t := array(num.val, C1.t) C1.b := C.b

Cǫ C.t := C.b

T

B C

1

int t

1

[ num 2 ] t

1

C

2

[ num 3 ] t

1

C

3

[ num 4 ] C

4

t

1

t

1:

integer

(7)

Exemple 5.13 avec l’entr´ ee : int [2][3][4]

Production R`egles S´emantiques

TBC T .t := C.t

C.b := B.t

Bint B.t := integer

Bfloat B.t := float

C →[ num ] C1 C.t := array(num.val, C1.t) C1.b := C.b

Cǫ C.t := C.b

T

B C

1

int t

1

[ num 2 ] t

1

C

2

[ num 3 ] t

1

C

3

[ num 4 ] t

1

C

4

t

1

t

1:

integer

(8)

Exemple 5.13 avec l’entr´ ee : int [2][3][4]

Production R`egles S´emantiques

TBC T .t := C.t

C.b := B.t

Bint B.t := integer

Bfloat B.t := float

C →[ num ] C1 C.t := array(num.val, C1.t) C1.b := C.b

Cǫ C.t := C.b

T

B C

1

int t

1

[ num 2 ] t

1

C

2

[ num 3 ] t

1

C

3

[ num 4 ] t

1

C

4

t

1

t

1

t

1:

integer

(9)

Exemple 5.13 avec l’entr´ ee : int [2][3][4]

Production R`egles S´emantiques

TBC T .t := C.t

C.b := B.t

Bint B.t := integer

Bfloat B.t := float

C →[ num ] C1 C.t := array(num.val, C1.t) C1.b := C.b

Cǫ C.t := C.b

T

B C

1

int t

1

[ num 2 ] t

1

C

2

[ num 3 ] t

1

C

3

t

2

[ num 4 ] t

1

C

4

t

1

t

1

t

2:

array

4 t

1:

integer

(10)

Exemple 5.13 avec l’entr´ ee : int [2][3][4]

Production R`egles S´emantiques

TBC T .t := C.t

C.b := B.t

Bint B.t := integer

Bfloat B.t := float

C →[ num ] C1 C.t := array(num.val, C1.t) C1.b := C.b

Cǫ C.t := C.b

T

B C

1

int t

1

[ num 2 ] t

1

C

2

t

3

[ num 3 ] t

1

C

3

t

2

[ num 4 ] t

1

C

4

t

1

t

1

t

3:

array

3 t

2:

array

4 t

1:

integer

(11)

Exemple 5.13 avec l’entr´ ee : int [2][3][4]

Production R`egles S´emantiques

TBC T .t := C.t

C.b := B.t

Bint B.t := integer

Bfloat B.t := float

C →[ num ] C1 C.t := array(num.val, C1.t) C1.b := C.b

Cǫ C.t := C.b

T

B C

1

int

t

4

t

1

[ num 2 ] t

1

C

2

t

3

[ num 3 ] t

1

C

3

t

2

[ num 4 ] t

1

C

4

t

1

t

1

t

4:

array

2 t

3:

array

3 t

2:

array

4 t

1:

integer

(12)

Exemple 5.13 avec l’entr´ ee : int [2][3][4]

Production R`egles S´emantiques

TBC T .t := C.t

C.b := B.t

Bint B.t := integer

Bfloat B.t := float

C →[ num ] C1 C.t := array(num.val, C1.t) C1.b := C.b

Cǫ C.t := C.b

T

B C

1

int

t

4

t

4

t

1

[ num 2 ] t

1

C

2

t

3

[ num 3 ] t

1

C

3

t

2

[ num 4 ] t

1

C

4

t

1

t

1

t

4: array

2 t

3: array

3 t

2:array

4 t

1: integer

Références

Documents relatifs

[r]

Pour des queions, demande de pr´ecisions ou explications, n’h´esitez pas `a m’envoyer un mail `a [email protected] , ou bien `a venir me voir au bureau

Complète les carrés magiques pour que toutes les lignes, toutes les colonnes et toutes les diagonales obtiennent la

Les camarades de jeu retiennent la position des cartes pour former plus facilement de nouvelles paires. Pour l’impression du

[r]

[r]

[r]

[r]