5. Regular Expressions
16/02/23
tools - grep, sed
specify lexical syntax
Denoted | Procedural |
---|
RE | DFA, NFA |
Example of RE - (0+11+101∗01)∗
Σ={0,1}
Define REΣ and given E:REΣ, .....
- ∅ - is a regular expression
- ϵ - is a regular expression
- L∅ = {}
- L∅ = λ??False
- Lϵ = {ϵ}
- ??
*
just means all of the concatenations
For every E:REΣ we construct an NFA, NREE:NFAΣ such that LREE=LNFA(NREE)