Commit fa5b8508 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Dummy method for the objc expressions.

parent da6667d5
......@@ -2556,6 +2556,12 @@ bool Parser::parsePrimaryExpression(ExpressionAST *&node)
case T_SLOT:
return parseQtMethod(node);
case T_AT_STRING_LITERAL:
case T_AT_ENCODE:
case T_AT_PROTOCOL:
case T_AT_SELECTOR:
return parseObjCExpression(node);
default: {
NameAST *name = 0;
if (parseNameId(name)) {
......@@ -2570,6 +2576,30 @@ bool Parser::parsePrimaryExpression(ExpressionAST *&node)
return false;
}
bool Parser::parseObjCExpression(ExpressionAST *&node)
{
switch (LA()) {
case T_AT_ENCODE:
break;
case T_AT_PROTOCOL:
break;
case T_AT_SELECTOR:
break;
case T_LBRACKET:
break;
case T_AT_STRING_LITERAL:
break;
default:
break;
} // switch
return false;
}
bool Parser::parseNameId(NameAST *&name)
{
unsigned start = cursor();
......
......@@ -211,6 +211,7 @@ public:
bool parseQtMethod(ExpressionAST *&node);
// ObjC++
bool parseObjCExpression(ExpressionAST *&node);
bool parseObjCClassDeclaration(DeclarationAST *&node);
bool parseObjCInterface(DeclarationAST *&node,
SpecifierAST *attributes = 0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment