


































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



































Lecture 3 Lexical Analysis Instructor: Fredrik Kjolstad Slide design by Prof. Alex Aiken, with modifications
Outline
What’s a Token?
Tokens
Designing a Lexical Analyzer: Step 1
Example
Lexical Analyzer: Implementation
Example
True Crimes of Lexical Analysis
Lexical Analysis in FORTRAN
Lexical Analysis in FORTRAN (Cont.)
Lookahead
Lexical Analysis in PL/I (Cont.)
20 Lexical Analysis in C++