--- a/solutions/cw3/parser.sc Sat Nov 09 06:31:45 2024 +0000
+++ b/solutions/cw3/parser.sc Fri Nov 22 12:42:07 2024 +0000
@@ -135,6 +135,7 @@
}
+
// WHILE Language Parsing
lazy val AExp: Parser[List[Token], AExp] =
(Te ~ T_OP("+") ~ AExp).map{ case x ~ _ ~ z => Aop("+", x, z): AExp } ||