Chapter 3: Lexical Analysis

Transition diagram for identifier

Transition diagram for white spaces

Transition diagram for identifier : In order to reach the final state, it must encounter a letter followed by one or more letters or digits and then some other symbol. Transition diagram for white spaces : In order to reach the final state, it must encounter a delimiter (tab, white space) followed by one or more delimiters and then some other symbol.