Multiple choice

Which of the following is/are the tasks of lexical analysis?

  1. Build a uniform symbol table

  2. Build an identifier table

  3. Parse the source program into basic tokens

  4. All of the above

  5. -

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Lexical analysis includes the process of converting the characters into tokens. It is combined with the parser, which analyses the syntax of programming languages.