Skip to content

Commit 7e77246

Browse files
authored
Remove unreachable 'declarations' grammar production (#188)
Fixes: #187
2 parents e123da3 + 0096c2d commit 7e77246

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

TSPL.docc/ReferenceManual/Declarations.md

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ the term *declaration* covers both declarations and definitions.
3434
> *declaration**macro-declaration* \
3535
> *declaration**operator-declaration* \
3636
> *declaration**precedence-group-declaration* \
37-
> *declarations**declaration* *declarations*_?_
3837
3938
## Top-Level Code
4039

@@ -1828,21 +1827,6 @@ as described in <doc:Patterns#Enumeration-Case-Pattern>.
18281827
and they behave differently.
18291828
-->
18301829

1831-
<!--
1832-
old-grammar
1833-
Grammar of an enumeration declaration
1834-
1835-
enum-declaration -> attribute-list-OPT ``enum`` enum-name generic-parameter-clause-OPT type-inheritance-clause-OPT enum-body
1836-
enum-name -> identifier
1837-
enum-body -> ``{`` declarations-OPT ``}``
1838-
1839-
enum-member-declaration -> attribute-list-OPT ``case`` enumerator-list
1840-
enumerator-list -> enumerator raw-value-assignment-OPT | enumerator raw-value-assignment-OPT ``,`` enumerator-list
1841-
enumerator -> enumerator-name tuple-type-OPT
1842-
enumerator-name -> identifier
1843-
raw-value-assignment -> ``=`` literal
1844-
-->
1845-
18461830
## Structure Declaration
18471831

18481832
A *structure declaration* introduces a named structure type into your program.

TSPL.docc/ReferenceManual/SummaryOfTheGrammar.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,6 @@ make the same change here also.
748748
> *declaration**subscript-declaration* \
749749
> *declaration**operator-declaration* \
750750
> *declaration**precedence-group-declaration* \
751-
> *declarations**declaration* *declarations*_?_
752751
753752
> Grammar of a top-level declaration:
754753
>

0 commit comments

Comments
 (0)