Next: Finite Automata
Up: Lexical Analysis
Previous: Languages
-
-
- REs
and
are equivalent if they denote the same
language, written
=
.
-
- Example: (a | b)* = (a*b*)*
-
- Figure 3.7: Algebraic Laws for REs
-
|
=
|
(| commutative)
| (
|
) = (
|
) | T (| associative)
(
) = (
)
(
associative)
(
|
) =
|
(
distributes over |)
=
=
(
is
identity)
RE Notation
Figure 3.8: Lex regular expressions
CS 631 Class Account
2009-10-13