alx71hub / hcb

Hyperlinked C++ BNF Grammar
GNU General Public License v3.0
41 stars 7 forks source link

c++ grammar has no reflection of iso646.h #6

Open nickhuang99 opened 2 years ago

nickhuang99 commented 2 years ago

In preprocessing-op-or-punc, and, and_eq, bitand... are defined as keywords. However, logical-and-expression doesn't reflect this keyword and. Neither are other keywords. This grammar is actually inherited from C programming specifiction. Particularly in header , these are "Alternative Spellings". I wonder if C++ grammar should specifically add a rule about this, or do we expect C++ grammar to be built upon C-grammar?