chiark / gitweb /
doc/syntax.tex: Remove pointless repeats on <declarator-suffix>.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 17 Nov 2015 17:08:15 +0000 (17:08 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 17 Nov 2015 17:08:15 +0000 (17:08 +0000)
<primary-declarator>[k] is already a recursive definition, because of
the parentheses.  Besides, if <declarator-suffix> was going to be shown
as repeatable, it should have a `+' rather than a `*', otherwise the
rule is directly recursive.

doc/syntax.tex

index f89e9c6b23ed9bf513e41d175ecbf60d467ec726..30b8b3285255ea42421c53f508e027e252b83d69 100644 (file)
@@ -481,7 +481,7 @@ All of these have their usual C meanings.
 
 <primary-declarator>$[k]$ ::= $k$
 \alt "(" <primary-declarator>$[k]$ ")"
-\alt <primary-declarator>$[k]$ @<declarator-suffix>^*
+\alt <primary-declarator>$[k]$ @<declarator-suffix>
 
 <pointer> ::= "*" @<qualifier>^*