Lex: Basic Idea
• Automatic construction of a scanner from RE
• Lex compiler and Lex language
LEX
Regular expressions
Lexical analyzer (scanner)
Illustration:
28/35