Parse ObjC @class declarations.

This commit is contained in:
Roberto Raggi
2009-01-08 12:02:07 +01:00
parent fe4fc6d540
commit a725915ee0
6 changed files with 126 additions and 1 deletions

View File

@@ -3285,7 +3285,15 @@ bool Parser::parseThrowExpression(ExpressionAST *&node)
bool Parser::parseObjCClassDeclaration(DeclarationAST *&node)
{
return false;
if (LA() != T_AT_CLASS)
return false;
ObjCClassDeclarationAST *ast = new (_pool) ObjCClassDeclarationAST;
ast->class_token = consumeToken();
parseObjCIdentifierList(ast->identifier_list);
match(T_SEMICOLON, &ast->semicolon_token);
node = ast;
return true;
}
bool Parser::parseObjCInterfaceDeclaration(DeclarationAST *&node)
@@ -3318,4 +3326,9 @@ bool Parser::parseObjCPropertyDynamic(DeclarationAST *&node)
return false;
}
bool Parser::parseObjCIdentifierList(IdentifierListAST *&node)
{
return false;
}
CPLUSPLUS_END_NAMESPACE