t***@engmail.uwaterloo.ca
2004-06-03 17:09:57 UTC
Can we assume for problem 2 of assignment 2 that no adjacent (and hence
redundant) *s will occur in the given regex? i.e. Can we assume that regexes
of the form "a**" and the like will not be given?
If not, should we create a redundant Kleene object for every redundant *, or
should we just create one? i.e. Should "a**" become "new Kleene(new Kleene(new
Symbol("a")))", or just "new Kleene(new Symbol("a"))"?
----------------------------------------
This mail sent through www.mywaterloo.ca
redundant) *s will occur in the given regex? i.e. Can we assume that regexes
of the form "a**" and the like will not be given?
If not, should we create a redundant Kleene object for every redundant *, or
should we just create one? i.e. Should "a**" become "new Kleene(new Kleene(new
Symbol("a")))", or just "new Kleene(new Symbol("a"))"?
----------------------------------------
This mail sent through www.mywaterloo.ca