changeset 458 | 896a5f91838d |
parent 454 | edb4ad356c56 |
child 467 | b5ec11e89768 |
--- a/progs/re3.scala Wed Oct 19 08:46:50 2016 +0100 +++ b/progs/re3.scala Sat Oct 22 13:11:33 2016 +0100 @@ -63,6 +63,9 @@ def matcher(r: Rexp, s: String) : Boolean = nullable(ders(s.toList, r)) +var regex = NTIMES(CHAR('a'),5) +println(matcher(regex,"aaaaa")) + //one or zero def OPT(r: Rexp) = ALT(r, ONE)