changeset 185 | ea8b94d4755e |
parent 173 | 7cfb7a6f7c99 |
child 471 | 9476086849ad |
--- 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"))