diff -r 2e9134d25a2b -r ea8b94d4755e progs/comb2.scala --- a/progs/comb2.scala Mon Nov 11 15:26:20 2013 +0000 +++ b/progs/comb2.scala Mon Nov 11 23:24:38 2013 +0000 @@ -67,6 +67,9 @@ lazy val F: Parser[String, Int] = ("(" ~ E ~ ")") ==> { case ((x, y), z) => y} || NumParser +println(E.parse_all("1*2+3")) +println(E.parse_all("1+2*3")) +println(E.parse_all("1+2+3")) println(E.parse_all("1+2+3")) println(E.parse_all("1+2*3+1"))