2.1Lexical Analysis
2.1Lexical Analysis
Secondary tasks
Strips blanks and new line characters
Correlate error messages
token
source lexical
analyzer parser
program
get next
token
symbol
table
Issues in lexical analysis
Why Separation of lexical and syntactic analysis
phases:
#include <iostream>
int main() { using namespace std;