diff -r 3d5ecb8f1f2f -r ea320c9427d2 progs/parser-combinators/comb1.sc --- a/progs/parser-combinators/comb1.sc Thu Nov 11 15:58:22 2021 +0000 +++ b/progs/parser-combinators/comb1.sc Mon Nov 22 11:24:08 2021 +0000 @@ -172,15 +172,15 @@ lazy val S : Parser[String, String] = (p"1" ~ S ~ S).map{ case ((x, y), z) => x + y + z } || p"" -println(time(S.parse("1" * 10))) -println(time(S.parse_all("1" * 10))) +//println(time(S.parse("1" * 10))) +//println(time(S.parse_all("1" * 10))) // non-ambiguous lazy val U : Parser[String, String] = (p"1" ~ U).map{ case (x, y) => x + y } || p"" -println(time(U.parse("1" * 10))) -println(time(U.parse_all("1" * 10))) +//println(time(U.parse("1" * 10))) +//println(time(U.parse_all("1" * 10))) println(U.parse("1" * 25)) U.parse("11")