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))