Chapter 3 Flashcards

1
Q

What is syntax?

A

The form of a sentence.

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

What is semantics?

A

The meaning of a sentence.

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

How do we describe sentences?

A

Ordered strings of characters in some alphabet.

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

What are lexemes?

A

Lowest level of syntactic unit.

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

What are tokens​​?

A

Category of a lexeme.

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

What does BNF stand for?

A

Backus-Naur Form.

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

What is the test for language ambiguity?

A

If a sentence has at least two distinct parse trees, then the grammar is ambiguous.

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

What are two broad categories of semantics?

A

Denotational and axiomatic.

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

How are COBOL railroad diagrams related to BNFs?

A

Railroad diagrams are a way to illustrate BNFs.

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