This project is read-only.
1

Closed

missing argument with operator_declarator

description

I think your second and third alts for operator_declarator are missing the opening parenthesis and first formal argument:
 
operator_declarator:
'operator'   
    (('+' | '-')   '('   type   identifier (binary_operator_declarator | unary_operator_declarator)
    | overloadable_unary_operator   unary_operator_declarator
    | overloadable_binary_operator   binary_operator_declarator) ;
unary_operator_declarator:
   ')' ;
overloadable_unary_operator:
/*'+' |  '-' | */ '!' |  '~' |  '++' |  '--' |  'true' |  'false' ;
binary_operator_declarator:
','   type   identifier   ')' ;
// >> check needed
overloadable_binary_operator:
/*'+' | '-' | */ '*' | '/' | '%' | '&' | '|' | '^' | '<<' | '>' '>' | '==' | '!=' | '>' | '<' | '>=' | '<=' ; 
 
 
I changed operator_declarator to:
 
operator_declarator:
'operator'   
    (('+' | '-')   '('   type   identifier (binary_operator_declarator | unary_operator_declarator)
    | overloadable_unary_operator   '('   type   identifier unary_operator_declarator
    | overloadable_binary_operator  '('   type   identifier  binary_operator_declarator) ;
Closed Nov 1, 2010 at 6:59 PM by anbrad
Change looks good, I checked that in.

comments