Branch: Tag:

2016-09-27

2016-09-27 15:05:04 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler: Added new reserved keyword __weak__.

This keyword is intended to become a storage modifier causing any
variables declared __weak__ to hold a weak references.

94:   %token TOK_VARIANT   %token TOK_VERSION   %token TOK_VOID_ID + %token TOK_WEAK   %token TOK_WHILE   %token TOK_XOR_EQ   %token TOK_OPTIONAL
1136:    | TOK_INLINE { $$ = "inline"; }    | TOK_OPTIONAL { $$ = "optional"; }    | TOK_VARIANT { $$ = "variant"; } +  | TOK_WEAK { $$ = "__weak__"; }    ;      magic_identifiers2:
4402:    { yyerror_reserved("optional"); }    | TOK_VARIANT    { yyerror_reserved("variant"); } +  | TOK_WEAK +  { yyerror_reserved("__weak__"); }    | TOK_STATIC    { yyerror_reserved("static"); }    | TOK_EXTERN