BG> You know the grammar in "The C++ Programming Language", right? Well,
BG> why does the /decl-specifier/ non-terminal use the undefined
BG> /template-specifier/ non-terminal?
It doesn't in mine. But the first edition of TC++PL didn't mention templates
all that much anyway. (-:
The reason is, of course, that templates evolved at the same time as TC++PL
was being revised.
BG> Better yet, anyone here know of a more rigidly defined C++ grammar?
The one in Annex A of the ISO C++ Standard.
¯ JdeBP ®
--- FleetStreet 1.19 NR
---------------
* Origin: JdeBP's point, using Squish (2:440/4.3)
|