Scanner
Parser
100

The input to a scanner.

What is a string / a sequence of characters?

100

What tokens are called in a parser

What are terminal symbols?

200

The output of a scanner

What is a sequence of tokens?

200

The output of a parser

What are parse trees / abstract syntax trees?

300

Characters that form a word/token

What is a lexeme?

300

The phenomenon where a string may have two distinct derivations using the same grammar.

What is ambiguity?

400

An efficient way to implement scanners specified by regular expressions?

What is a finite automaton (more specifically, a DFA)?

400

A characteristic of grammars that make top-down parsers loop infinitely.

What is left/right-recursion?

500

Data which may be optionally attached to a token

What is the attribute of a token?

500

A class of grammars for which a recursive descent parser doesn't need to backtrack.

What is LL(1) grammar?

Technically, LL(k) for any k>=0 are grammars for which recursive descent parser doesn't need to backtrack.

M
e
n
u