changeset 178 | 2835d13be702 |
parent 166 | cab1ae6f339a |
child 238 | 2dc1647eab9e |
--- a/progs/scala/re-basic.scala Wed May 11 13:12:30 2016 +0100 +++ b/progs/scala/re-basic.scala Mon May 16 12:50:37 2016 +0100 @@ -156,6 +156,16 @@ println(lexing((K2 | I2).%, "abaa")) println(env(lexing((K2 | I2).%, "abaa"))) +val r1: Rexp = "abc" +val r2: Rexp = der('a', r1) +val r3: Rexp = der('b', r2) +val r4: Rexp = der('c', r3) +println(r1) +println(r2) +println(r3) +println(r4) + + // time keeping def time_needed[T](i: Int, code: => T) = { val start = System.nanoTime()