ICD1 - Compiler Overview, Scanner Flashcards

1
Q

When viewing programming languages as natural languages, the word ANSWER is used instead of `words’.

A

tokens

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

The routine in a compiler that takes as input a sequence of characters outputs these characters grouped into meaningful units is called ANSWER.

A

a lexical analyzer

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

The specifications for how to group characters into meaningful units are traditionally written as ANSWER.

A

regular expressions

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

The specifications of how to group characters into meaningful basic units of a programming language are generally implemented in code that has the abstract form of ANSWER.

A

a finite state machine

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

When viewed abstractly, a language is defined as a set of ANSWER.

A

strings

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

The Greek letter epsilon, when talking about languages, is used to represent ANSWER.

A

the empty string

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

In automatically generating the code that reads characters and outputs the part of a programming language that is analogous to its words, we start with a specification and then traditionally convert it into code in two stages. In the first stage, we produce ANSWER.

A

a nondeterministic finite state machine

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

In automatically generating the code that reads characters and outputs the part of a programming language that is analogous to its words, we start with a specification and then traditionally convert it into code in two stages. The main problem that can arise in moving from the first stage to the second stage is ANSWER.

A

an exponential explosion in the number of states needed

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