equal
deleted
inserted
replaced
1 // (ASIDE!) A version which attempts to move whole strings, |
1 // (ASIDE!) A version which attempts to move whole strings, |
2 // not just characters, under derivatives whenever possible |
2 // not just characters, under derivatives whenever possible |
3 // |
3 // |
4 // call the test cases with X = {1,2} |
4 // call the test cases with X = {1,2} |
5 // |
5 // |
6 // amm re3.sc testX |
6 // amm re4.sc testX |
7 // |
7 // |
8 // or |
8 // or |
9 // |
9 // |
10 // amm re3.sc all |
10 // amm re4.sc all |
|
11 // |
|
12 // !! DO NOT USE THIS VERSION AS A STARTING POINT !! |
|
13 // !! FOR CW1 & 2! USE re3.sc INSTEAD !! |
11 |
14 |
12 |
15 |
13 abstract class Rexp |
16 abstract class Rexp |
14 case object ZERO extends Rexp |
17 case object ZERO extends Rexp |
15 case object ONE extends Rexp |
18 case object ONE extends Rexp |