chiark
/
gitweb
/
~mdw
/
sod
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc7dff5
)
doc/syntax.tex: Remove pointless repeats on <declarator-suffix>.
author
Mark Wooding
<mdw@distorted.org.uk>
Tue, 17 Nov 2015 17:08:15 +0000
(17:08 +0000)
committer
Mark 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
patch
|
blob
|
blame
|
history
diff --git
a/doc/syntax.tex
b/doc/syntax.tex
index f89e9c6b23ed9bf513e41d175ecbf60d467ec726..30b8b3285255ea42421c53f508e027e252b83d69 100644
(file)
--- a/
doc/syntax.tex
+++ b/
doc/syntax.tex
@@
-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>^*