diff --git a/src/main/wacc/parser.scala b/src/main/wacc/parser.scala index d4b4d25..71ae4c4 100644 --- a/src/main/wacc/parser.scala +++ b/src/main/wacc/parser.scala @@ -115,16 +115,15 @@ object parser { ((`` <**> ``) .map(arr => (_: UntypedPairType) => arr) identity)) - /** Statements - * - * Atomic is used in two places here: - * 1. Atomic for function return type - code may be a variable declaration instead, If we were - * to factor out the type, the resulting code would be rather messy. It can only fail once - * in the entire program so it creates minimal overhead. - * 2. Atomic for function missing return type check - there is no easy way around an explicit - * invalid syntax check, this only happens at most once per program so this is not a major - * concern. - */ + /* Statements + Atomic is used in two places here: + 1. Atomic for function return type - code may be a variable declaration instead, If we were + to factor out the type, the resulting code would be rather messy. It can only fail once + in the entire program so it creates minimal overhead. + 2. Atomic for function missing return type check - there is no easy way around an explicit + invalid syntax check, this only happens at most once per program so this is not a major + concern. + */ private lazy val `` = Program( "begin" ~> many( atomic(``.label("function declaration") <~> `` <~ "(") <**> ``