Skip to content
Go back

Origin of Regular Expressions

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 MLM = { 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* = Ui=0 Li
Positive Closure of LL+ = Ui=1 Li

Example 3.3

Aho 2006: 3.3.3, p. 120

Regular Expressions

Rules that define regular expressions

Basis

Induction

Example 3.4, Aho p. 122


registers

lowercase epsilon 𝜖 Union symbol ∪ Upper case sigma Σ

“ep = 𝜖 “up = ∪ “sp = Σ

“lp = L “dp = D “mp = element of; ∈


macros

@e = turn exactly one character bold