changeset 498 | ea47c3b8f35f |
parent 481 | acd8780bfc8b |
child 513 | 676e6484f29b |
--- 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