Difficulty: Easy
Correct Answer: A list of tokens, in full or in part, as they appear in the program; created by lexical analysis and used by syntax analysis and later stages.
Explanation:
Introduction / Context:
Compilers maintain several tables during analysis: the uniform symbol table (UST), literal table, identifier table, and terminal table. Distinguishing these helps clarify the roles of lexical and syntax analysis.
Given Data / Assumptions:
Concept / Approach:
The UST is the stream or structure of uniform symbols (tokens) produced by the scanner. Each entry commonly references supporting tables (identifier, literal) and encodes token class plus attributes. The parser consumes the UST to build syntax structures.
Step-by-Step Solution:
Verification / Alternative check:
Compiler construction texts depict the interface between scanner and parser as a sequence of uniform symbols—precisely the UST concept.
Why Other Options Are Wrong:
a: That is the literal table. b: Refers to parsing tables/grammar; not the UST. d: Describes the terminal table.
Common Pitfalls:
Confusing the UST with a symbol table of identifiers only; the UST is a generalized token stream referencing other tables as needed.
Final Answer:
A list of tokens, in full or in part, as they appear in the program; created by lexical analysis and used by syntax analysis and later stages.
Discussion & Comments