FreeBSD/contrib/gcc/cp/parser.c
/* Parse an Objective-C protocol expression.

  objc-protocol-expression:
    @protocol ( identifier )

  Returns a representation of the protocol expression.  */
Parse an Objective-C protocol expression.
objc-protocol-expression:
@protocol ( identifier )

Returns a representation of the protocol expression.
Parse an Objective - C protocol expression . objc - protocol - expression : @protocol ( identifier ) Returns a representation of the protocol expression .
static tree
cp_parser_objc_protocol_expression (cp_parser* parser)
{
  tree proto;
  cp_lexer_consume_token (parser->lexer);  
  cp_parser_require (parser, CPP_OPEN_PAREN, "`('");
  proto = cp_parser_identifier (parser);
  cp_parser_require (parser, CPP_CLOSE_PAREN, "`)'");
  return objc_build_protocol_expr (proto);
}
static tree cp_parser_objc_protocol_expression ( cp_parser * parser ) { tree proto ; cp_lexer_consume_token ( parser -> lexer ) ; cp_parser_require ( parser , CPP_OPEN_PAREN , " " ) ; proto = cp_parser_identifier ( parser ) ; cp_parser_require ( parser , CPP_CLOSE_PAREN , " " ) ; return objc_build_protocol_expr ( proto ) ; }
Parse an Objective-C protocol expression.
Parse an Objective - C protocol expression .
/* Eat '@protocol'.  */