From 4fe56dbdbc3c427f12498369c06575d72dfe2ebc Mon Sep 17 00:00:00 2001 From: Brandon Dyck Date: Wed, 5 Jul 2023 08:53:28 -0600 Subject: [PATCH] Removed commented code --- Parser.cs | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/Parser.cs b/Parser.cs index ec56bdb..c8ccddb 100644 --- a/Parser.cs +++ b/Parser.cs @@ -278,25 +278,6 @@ class Parser return new If(condition, thenCase, elseCase); } - // private Expr control() - // { - // switch (peek().type) - // { - // case TokenType.If: - // advance(); - // Expr condition = expression(); - // consume(TokenType.Then, "Expect 'then' after condition."); - // Expr thenCase = expression(); - // consume(TokenType.Else, "Expect 'else' after 'then' case."); - // Expr elseCase = expression(); - // return new If(condition, thenCase, elseCase); - // case TokenType.When: - // throw new NotImplementedException("TODO when"); - // } - - // return primary(); - // } - private Expr when() { if (!match(TokenType.When))