Removed commented code

This commit is contained in:
Brandon Dyck 2023-07-05 08:53:28 -06:00
parent d498cc627b
commit 4fe56dbdbc

View File

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