Explain what is meant by lexical analysis during program compilation.
- Explain what is meant by lexical analysis during program compilation.[4]
Mark scheme
Marking points from the official mark scheme (May/June 2025). The mark or mark type is shown in brackets.
- MP1 It is the first stage of compilation
- MP2 White space and comments are removed
- MP3 It takes modified source code and breaks it into a series of tokens
- MP4 Each token is categorised and assigned types
- MP5 Identifiers are stored in a symbol table
- MP6 If the lexical analyser finds invalid tokens, it generates an error
- MP7 Acceptable data from the lexical analyser passes to the syntax analyser
Write your answer and get it marked
On Oracle Prep you can write or photograph your own answer and have it marked by AI against this mark scheme, with feedback on what you missed.
Sign up free →