2 - Recursive Definition
2 - Recursive Definition
Rule 1 x is in L1.
Rule 2 If w is any word in L1, then xw is
also in L1
L1=x+={x xx xxx ….}
A New Method for Defining Language
Rule 1 ^ is in L4
Rule 2 if w is any word in L4, then xw is
also in l4
L4=x*
….
A New Method for Defining Language
The definition of Kleene closure might have
benefited from a recursive definition:
Rule 1 If S is a language, then all the
words of S are in S*
Rule 2 ^ is in S*
Rule 3 If x and y are in S*, then so is their
concatenation xy.
An important Language:
Arithmetic Expression
∑ - {0 1 2 3 4 5 6 7 8 9 + - * / ( )}
character $
No AE can begin or end with the symbol /.
POWER-OF-TWO = {1 2 4 8 16……}
An important Language:
Arithmetic Expression
An important Language:
Arithmetic Expression