Applying code functions to a program
execute[ p := q * 2;
b := not b ]
execute[ p := q * 2 ]
evaluate[ q * 2 ]
evaluate[ q ]
evaluate[ 2 ]
apply-binary[ * ]
assign[ p ]
execute[ b := not b ]
evaluate[ not b ]
evaluate[ b ]
apply-unary[ not ]
assign[ b ]
LOAD q
LOADL 2
CALL mult
STORE p
LOAD b
CALL not
STORE b
Previous slide
Next slide
Back to first slide
View graphic version