diff -r c498cb53a9a8 -r ea47c3b8f35f progs/re1.scala --- a/progs/re1.scala Wed Jun 28 12:46:23 2017 +0100 +++ b/progs/re1.scala Thu Aug 03 01:21:19 2017 +0100 @@ -1,5 +1,6 @@ // Simple matcher for basic regular expressions +object Test { abstract class Rexp case object ZERO extends Rexp // matches nothing @@ -21,6 +22,8 @@ } +} + // derivative of a regular expression w.r.t. a character def der (c: Char, r: Rexp) : Rexp = r match { case ZERO => ZERO