Denotational Semantics Flashcards

1
Q

What are the elements of a language definition?

A
  • Syntax - set of legal elements
  • Semantics - meaning of those elements
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Semantics is expressed by defining…

A
  • Semantic domain - notation for talking about meaning.
  • Semantic mapping - maps the syntactic elements to the semantic domain.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Different kinds of semantics use different sorts of semantic domains. What are two examples?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Denotational Semantics

Describe syntactic domain.

A

Elements of the abstract syntax of a language.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Denotational Semantics

Describe semantic domain.

A

Abstract mathematical objects (integers, booleans, lists, functions, etc.).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Denotational Semantics

Describe semantic functions.

A

Map elements of syntactic domain to elements of semantic domain.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are two important features of denotational semantics?

A
  • Based on well-defined mathematical objects (functions).
  • It is compositional: The semantics of a language obtained from the semantics of its parts.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

(T/F) Denotational semantics are used for creating programs.

A

False.

They are used to develop programming languages.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly