295x Filetype PDF File size 0.33 MB Source: ocw.metu.edu.tr
Programming Language Concepts/Binding and Scope
Programming Language Concepts/Binding and
Scope
Onur Tolga S¸ehito˘glu
Bilgisayar Mu¨hendisli˘gi
11 Mart 2008
Programming Language Concepts/Binding and Scope
Outline
1 Binding 6 Declarations
2 Environment Definitions and Declarations
3 Block Structure Sequential Declarations
Monolithic block structure Collateral Declarations
Flat block structure Recursive declarations
Nested block structure Recursive Collateral Declarations
4 Hiding Block Expressions
5 Static vs Dynamic Scope/Binding Block Commands
Static binding Block Declarations
Dynamic binding 7 Summary
Programming Language Concepts/Binding and Scope
Binding
Binding
Most important feature of high level languages: programmers
able to give names to program entities (variable, constant,
function, type, ...). These names are called identifiers.
Programming Language Concepts/Binding and Scope
Binding
Binding
Most important feature of high level languages: programmers
able to give names to program entities (variable, constant,
function, type, ...). These names are called identifiers.
definition of an identifier ⇆ used position of an identifier.
Formally: binding occurrence ⇆ applied occurrence.
no reviews yet
Please Login to review.