X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/f575cdca18b30a96a76514c105a933c3e59d6311..7d8d3a165fa725b686d1c89b78179a4d5705d11a:/doc/syntax.tex diff --git a/doc/syntax.tex b/doc/syntax.tex index fc34e4e..8c66487 100644 --- a/doc/syntax.tex +++ b/doc/syntax.tex @@ -130,7 +130,8 @@ binary. However, length and signedness indicators are not permitted. \subsection{Punctuation} \label{sec:syntax.lex.punct} \begin{grammar} - ::= "\dots" + ::= "<<" | ">>" | "||" | "&&" + | "<=" | ">=" | "==" | "!=" | "\dots" \alt any nonalphanumeric character other than "_", "\"", or "'" \end{grammar} @@ -367,7 +368,36 @@ keyword arguments. ::= "=" - ::= + ::= + + ::= + | "||" + + ::= + | "&&" + + ::= + | "|" + + ::= + | "^" + + ::= + | "&" + + ::= + | "==" + | "!=" + + ::= + | "<" + | "<=" + | ">=" + | ">" + + ::= + | "<<" + | ">>" ::= | "+" @@ -640,8 +670,12 @@ declarations instead. \begin{grammar} ::= - "code" ":" @[@] + "code" ":" @[@] "{" "}" +\alt + "code" ":" ";" + + ::= ::= "[" $[\mbox{@}]$ "]"