diff -r 921fdd17d2b8 -r 896a5f91838d progs/re3.scala --- 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)