Worked solution from the System Software Paper 3 Advanced Theory booklet, Part 2 of 2.
Syntax analysis is the stage after lexical analysis. Write any four of these:
It is the second stage of compilation, after lexical analysis [1]
Its input is the stream of tokens from the lexical analyser [1]
The code is checked (parsed) against the rules of the language to find errors [1]
The output is a parse tree [1]
Another point that scores: syntax errors are reported (only 4 marks available).
▶ Topic lesson
A lesson on this topic · by Craig'n'Dave. Tap the picture to open it on YouTube.
Solutions follow the official Cambridge mark schemes; marks are shown in grey. Videos are from other YouTube channels. Paper codes read component / series / year: M/J = May/June, O/N = October/November. Past-paper questions © UCLES, reproduced for classroom practice.