We skip all sections related to grammars for now.
Let $\Sigma$ be a given alphabet. Then...
If $r$ is a regular expression, we say $L(r)$ denotes the language associated with $r$.
The language $L(r)$ denoted by any regular expression $r$ is defined by the following rules:
Regular Expression | Set notation |
---|---|
$\empty$ | the empty set |
$\lambda$ | $\{ \lambda \}$ |
$a$ (for every $a \in \Sigma$) | $\{ a \}$ |
$L(r_1 + r_2)$ | $L(r_1) \cup L(r_2)$ |
$L(r_1 \cdot r_2)$ | $L(r_1) L(r_2)$ |
$L((r_1))$ | $L(r_1)$ |
$L(r_1^*)$ | $(L(r_1))^*$ |
For every regular language, there is a regular expression.
For every regular expression, there is a regular language.