table of Contents
Regular Expressions
- Priority of: * (the Kleene closure) connected, | (or operation).
Regular defined
Finite Automata
- With input
- Read head
- Finite Controller
- FM definition language
- Longest substring matching principle
There are classification of finite automata
- DFA: deterministic finite automata
- NFA: non-deterministic finite automata
- Automatic machine with a "E- edge" with automatic machines without "E- edge" having equivalence
- Automatic machine with a "E- edge" is more intuitive
DFA implementation
- DFA can transition diagram or the conversion table indicates
Lexical analyzer
RE (regular expressions) - NFA - DFA
From RE to NFA
From NFA to DFA
Subset construction method
Lexical analyzer