Denotational Semantics Flashcards
What are the elements of a language definition?
- Syntax - set of legal elements
- Semantics - meaning of those elements
Semantics is expressed by defining…
- Semantic domain - notation for talking about meaning.
- Semantic mapping - maps the syntactic elements to the semantic domain.
Different kinds of semantics use different sorts of semantic domains. What are two examples?
Denotational Semantics
Describe syntactic domain.
Elements of the abstract syntax of a language.
Denotational Semantics
Describe semantic domain.
Abstract mathematical objects (integers, booleans, lists, functions, etc.).
Denotational Semantics
Describe semantic functions.
Map elements of syntactic domain to elements of semantic domain.
What are two important features of denotational semantics?
- Based on well-defined mathematical objects (functions).
- It is compositional: The semantics of a language obtained from the semantics of its parts.
(T/F) Denotational semantics are used for creating programs.
False.
They are used to develop programming languages.