Compiler Design: This is the foundational step for parsing. A parser cannot analyze the grammar of a program (Syntax Analysis) until the lexical analyzer has converted raw text into a stream of tokens ...