solution/cw5/fun_parser.sc
changeset 873 a25da86f7c8c
parent 868 8fb3b6d3be70
--- a/solution/cw5/fun_parser.sc	Sat Apr 02 01:52:43 2022 +0100
+++ b/solution/cw5/fun_parser.sc	Mon Aug 29 01:16:32 2022 +0200
@@ -155,8 +155,6 @@
   (F ~ T_OP("/") ~ T) ==> { case x ~ _ ~ z => Aop("/", x, z): Exp } || 
   (F ~ T_OP("%") ~ T) ==> { case x ~ _ ~ z => Aop("%", x, z): Exp } || F
 lazy val F: Parser[List[Token], Exp] = 
-  (IdParser ~ T_LPAREN ~ T_RPAREN) ==> 
-    { case x ~ _ ~ _ => Call(x, Nil): Exp } || 
   (IdParser ~ T_LPAREN ~ T_RPAREN) ==> { case x ~ _ ~ _ => Call(x, Nil): Exp } ||
   (IdParser ~ T_LPAREN ~ ListParser(Exp, T_COMMA) ~ T_RPAREN) ==> { case x ~ _ ~ z ~ _ => Call(x, z): Exp } ||
   (T_LPAREN ~ Exp ~ T_RPAREN) ==> { case _ ~ y ~ _ => y: Exp } ||