Removed commented code
This commit is contained in:
parent
d498cc627b
commit
4fe56dbdbc
19
Parser.cs
19
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))
|
||||
|
Loading…
Reference in New Issue
Block a user