Files
2025-10-25 03:02:53 +03:00

23 lines
887 B
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[gram.general]
# Annex A (informative) Grammar summary [[gram]](./#gram)
## A.1 General [gram.general]
[1](#1)
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/grammar.tex#L5)
This summary of C++ grammar is intended to be an aid to comprehension[.](#1.sentence-1)
It is not an exact statement of the language[.](#1.sentence-2)
In particular, the grammar described here accepts
a superset of valid C++ constructs[.](#1.sentence-3)
Disambiguation rules ([[stmt.ambig]](stmt.ambig "8.11Ambiguity resolution"), [[dcl.spec]](dcl.spec "9.2Specifiers"), [[class.member.lookup]](class.member.lookup "6.5.2Member name lookup"))
are applied to distinguish expressions from declarations[.](#1.sentence-4)
Further, access control, ambiguity, and type rules are used
to weed out syntactically valid but meaningless constructs[.](#1.sentence-5)