[qfcc] Make not a soft keyword

Its grammatical usage is such that it's unambiguous with identifiers,
and is needed for parsing the glsl functions (the not() function for
boolean vectors).
This commit is contained in:
Bill Currie 2024-09-07 02:42:32 +09:00
parent 13d38622f7
commit c4c4b9f5b4

View file

@ -909,6 +909,11 @@ notype_declarator
$$ = $<spec>0;
$$.sym = new_symbol ($1->name);
}
| NOT
{
$$ = $<spec>0;
$$.sym = new_symbol ("NOT");
}
;
initdecls
@ -2101,6 +2106,7 @@ identifier
| OBJECT_NAME { $$ = $1.sym; }
| CLASS_NAME
| TYPE_NAME { $$ = $1.sym; }
| NOT { $$ = new_symbol ("not"); }
;
// Objective-QC stuff