private bool Statement() { Token tmp = lexer.Peek(); switch(tmp.Type) { case TokenType.Semicolon: MatchExact(TokenType.Semicolon); break; case TokenType.LeftBrace: Block(); break; case TokenType.Identifier: Assignment(); break; case TokenType.If: IF(); break; case TokenType.While: While(); break; default: return false; } return true; }