changeset 759 | d70dd0b57e35 |
parent 745 | 7dc3643a0cc5 |
child 765 | b294cfbb5c01 |
--- a/progs/matcher/re1.sc Fri Sep 18 00:34:47 2020 +0100 +++ b/progs/matcher/re1.sc Mon Sep 21 10:44:48 2020 +0100 @@ -17,6 +17,7 @@ case class SEQ(r1: Rexp, r2: Rexp) extends Rexp // sequence case class STAR(r: Rexp) extends Rexp // star + // nullable function: tests whether a regular // expression can recognise the empty string def nullable(r: Rexp) : Boolean = r match {