X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/0df66309c10a3773b0b36d9f06258493fd56eaee..3ee33e04477ace9d13587f28253fb8c6d1c7ed6c:/doc/syntax.tex diff --git a/doc/syntax.tex b/doc/syntax.tex index ef37a38..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.