What is the name for the compiler phase that checks whether tokens conform to the grammatical structure of the language?
- A. Lexical analysis
- B. Intermediate code generation
- C. Code generation
- D. Syntax analysis ✓
Correct answer
D. Syntax analysis
Explanation
Syntax analysis refers to the compiler phase that checks whether tokens conform to the grammatical structure of the language.