X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/fa548bb16473fff2f7bb9715e3bdf25e41464bf6..82567ea97e4f9374e8a3d586ea49ad9bf3dff3dc:/doc/syntax.tex diff --git a/doc/syntax.tex b/doc/syntax.tex index 5e17ff3..22fb1d8 100644 --- a/doc/syntax.tex +++ b/doc/syntax.tex @@ -190,9 +190,9 @@ during translation. They are read using a simple scanner which nonetheless understands C comments and string and character literals. A C fragment is terminated by one of a small number of delimiter characters -determined by the immediately surrounding context -- usually a closing brace -or bracket. The first such delimiter character which is not enclosed in -brackets, braces or parenthesis ends the fragment. +determined by the immediately surrounding context -- usually some kind of +bracket. The first such delimiter character which is not enclosed in +brackets, braces or parentheses ends the fragment. %%%-------------------------------------------------------------------------- \section{C types} \label{sec:syntax.type} @@ -431,8 +431,8 @@ operators. Finally, an S-expression preceded by @|?| causes the expression to be read in the current package (which is always @|sod-user| at the start of a module) and immediately evaluated (using @|eval|); the resulting value is converted -into a property value using the \descref{decode-property}[generic -function]{gf}. +into a property value using the \descref{gf}{decode-property}[generic +function]. \subsection{Property output types and coercions} @@ -440,8 +440,8 @@ function]{gf}. When a property value is inspected by the Sod translator, or an extension, it is \emph{coerced} so as to conform to a requested output type. This coercion -process is performed by the \descref{coerce-property-value}[generic -function]{gf}, and additional output types and coercions can be defined by +process is performed by the \descref{gf}{coerce-property-value}[generic +function], and additional output types and coercions can be defined by extensions. The built-in output types coercions, from the value types listed above, are as follows. @@ -512,7 +512,8 @@ above, are as follows. \begin{grammar} ::= @^* - ::= + ::= \fixme{undefined} +\alt \alt \alt \alt