| changeset 458 | d01568431081 |
| parent 454 | 010237a7dae7 |
| child 467 | 3fc9b036321d |
--- 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)