pike.git / src / language.yacc

version» Context lines:

pike.git/src/language.yacc:1083:    $$ = $1 + 1;    }    ;      modifier:    TOK_NO_MASK    {    $$ = ID_FINAL | ID_INLINE;    if( !(THIS_COMPILATION->lex.pragmas & ID_NO_DEPRECATION_WARNINGS) &&    !TEST_COMPAT(7, 6) && Pike_compiler->compiler_pass==1 ) -  yywarning("Keyword nomask is deprecated in favor for 'final'."); +  yywarning("Keyword nomask is deprecated in favour of 'final'.");    }    | TOK_FINAL_ID { $$ = ID_FINAL | ID_INLINE; }    | TOK_STATIC {    $$ = ID_PROTECTED;    if( !(THIS_COMPILATION->lex.pragmas & ID_NO_DEPRECATION_WARNINGS) &&    !TEST_COMPAT(7, 8) && Pike_compiler->compiler_pass==1 ) -  yywarning("Keyword static is deprecated in favor for 'protected'."); +  yywarning("Keyword static is deprecated in favour of 'protected'.");    }    | TOK_EXTERN { $$ = ID_EXTERN; }    | TOK_OPTIONAL { $$ = ID_OPTIONAL; }    | TOK_PRIVATE { $$ = ID_PRIVATE | ID_PROTECTED; }    | TOK_LOCAL_ID { $$ = ID_INLINE; }    | TOK_PUBLIC { $$ = ID_PUBLIC; }    | TOK_PROTECTED { $$ = ID_PROTECTED; }    | TOK_INLINE { $$ = ID_INLINE; }    | TOK_VARIANT { $$ = ID_VARIANT; }    ;