Files
cppdraft_translate/cppdraft/gram/general.md
2025-10-25 03:02:53 +03:00

887 B

[gram.general]

Annex A (informative) Grammar summary [gram]

A.1 General [gram.general]

1

#

This summary of C++ grammar is intended to be an aid to comprehension.

It is not an exact statement of the language.

In particular, the grammar described here accepts a superset of valid C++ constructs.

Disambiguation rules ([stmt.ambig], [dcl.spec], [class.member.lookup]) are applied to distinguish expressions from declarations.

Further, access control, ambiguity, and type rules are used to weed out syntactically valid but meaningless constructs.