Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
Syntax and Semantics
[go: Go Back, main page]


Syntax and Semantics

Lecture 12


Syntax and Semantics

Topics

In this lecture, we shall use natural semantics to give a formal semantics to two central notions in all modern programming languages, viz. blocks and procedures. A central topic of this lecture is that of scope rules. In particular, we shall focus on the notions of dynamic and static binding for both variables and procedures, and examine three possible combinations of scope rules. These are: In connection with our discussion of these scope rules, we shall introduce a new important model for program states, viz. the environment-store model. This model will allow us to describe the aforementioned scope rules by telling us what bindings for procedures and variables we need to use to evaluate the final state of a program execution.

The environment-store model is the theoretical concept that underlies important notions in compiler construction. An environment corresponds precisely to the symbol tables used in compiler construction.

Time and Location

Thursday, 9 December, 2004 at 9:00 in room 303.

Reading Material

Exercises


Luca Aceto, Institute of Computer Science, Aalborg University.
Last modified: Thursday, 02-Dec-2004 13:30:27 CET.