X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/b5c8ba347cb82a9332d0e7260be5842a7ee281ba..ae0f15ee8427fa91cfd1945bfded847032cb8a25:/doc/syntax.tex?ds=sidebyside

diff --git a/doc/syntax.tex b/doc/syntax.tex
index 5f8c89e..560dc47 100644
--- a/doc/syntax.tex
+++ b/doc/syntax.tex
@@ -451,8 +451,14 @@ recognized.
 \alt "bool" | "_Bool"
 \alt "imaginary" | "_Imaginary" | "complex" | "_Complex"
 \alt <qualifier>
+\alt <atomic-type>
 
-<qualifier> ::= "const" | "volatile" | "restrict"
+<qualifier> ::= <atomic> | "const" | "volatile" | "restrict"
+
+<atomic-type> ::=
+  <atomic> "(" @<declaration-specifier>^+ <abstract-declarator> ")"
+
+<atomic> ::= "atomic" | "_Atomic"
 
 <type-name> ::= <identifier>
 \end{grammar}
@@ -472,6 +478,7 @@ combinations are permitted.  A declaration specifier must consist of zero or
 more @<qualifier>s, and one of the following, up to reordering.
 \begin{itemize}
 \item @<type-name>
+\item @<atomic-type>
 \item @"struct" @<identifier>, @"union" @<identifier>, @"enum" @<identifier>
 \item @"void"
 \item @"_Bool", @"bool"
@@ -509,6 +516,8 @@ All of these have their usual C meanings.
 
 <argument> ::= @<declaration-specifier>^+ <argument-declarator>
 
+<abstract-declarator> ::= <declarator>$[\epsilon]$
+
 <argument-declarator> ::= <declarator>$[\mbox{@<identifier> @! $\epsilon$}]$
 
 <simple-declarator> ::= <declarator>$[\mbox{@<identifier>}]$
