IV.4 Semantics of Expressions

Semantics of expressions [Slide 121]

Let E() be the “meaning” (semantic) function from Expressions × Σ to Val (integer or Boolean values) and let σ0 be a state then

Ez(σ0)
=
z
EA(σ0)
=
σ0(A)
Eig(ie1,…,ien)(σ0)
=
ig(Eie1(σ0),…,Eien(σ0))
Eb(σ0)
=
b
EQ(σ0)
=
σ0(Q)
Ebg(be1,…,ben)(σ0)
=
bg(Ebe1(σ0),…,Eben(σ0))

Example 32.  

EAccount(σ0)
=
σ0(Account)
   
EIn(σ0)
=
σ0(In)
   
EAccount + In(σ0)
=
EAccount(σ0)+EIn(σ0)
=
σ0(Account)+σ0(In)

2023-09-12
Contact | Home | ITL home | Course | Proofs | Algebra | FL
© 1996-2023