Skip to content
Go back

Regular Expressions, Part 1

Published:  at  07:00 PM

Here are some notes I’ve synthesized from Chapter 3: Scanning in Thain 2e (2020); and the classic Dragon Book 2e (2006) by Aho, Lam, Sethi, and Ullman.

Aho 2006: 3.3.1, p. 117

Concatenation p. 119


Aho 2006: 3.3.2, p. 119

Operations on Languages, Fig. 3.6, p. 120

OperationDefinition and Notation
Union of L and ML βˆͺ M = { s | s is in L or s is in M }
Concatenation of L and MLM = { st | s is in L and t is in M }
Kleene Closure of LL* = U∞i=0 Li
Positive Closure of LL+ = U∞i=1 Li

Example 3.3

Aho 2006: 3.3.3, p. 120

Regular Expressions

Rules that define regular expressions

Basis

Induction