--- a/progs/matcher/re1.sc Fri Oct 10 12:26:29 2025 +0100
+++ b/progs/matcher/re1.sc Sat Oct 11 08:33:35 2025 +0100
@@ -84,6 +84,9 @@
der('y', der('x', r2))
der('z', der('y', der('x', r2)))
+// (a*)* b
+// (a?){10}a{10}
+//a + ONE
// Test Cases
//============
@@ -119,7 +122,7 @@
def test1() = {
println("Test (a?{n}) (a{n})")
- for (i <- 0 to 20 by 2) {
+ for (i <- 0 to 22 by 2) {
println(f"$i: ${time_needed(2, matcher(EVIL1(i), "a" * i))}%.5f")
}
}
@@ -129,7 +132,7 @@
def test2() = {
println("Test (a*)* b")
- for (i <- 0 to 20 by 2) {
+ for (i <- 0 to 22 by 2) {
println(f"$i: ${time_needed(2, matcher(EVIL2, "a" * i))}%.5f")
}
}