From e38e83673b59b89d7af42f4c3f177aa0f6eafeb5 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Wed, 7 Aug 2019 17:16:06 +0100 Subject: [PATCH] doc/*.tex: Minor source-level reformatting. No effect on the document. --- doc/clang.tex | 8 +++++--- doc/meta.tex | 6 +++--- doc/parsing.tex | 8 ++++++++ 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/doc/clang.tex b/doc/clang.tex index f5ccbb1..9719811 100644 --- a/doc/clang.tex +++ b/doc/clang.tex @@ -646,6 +646,7 @@ In Sod, the leaf types are interned) enumerated type with the given @ and @s (all evaluated). \end{describe} + \begin{describe}{fun} {make-enum-type @ \&optional @ @> @} Return the (unique interned) C type object for the enumerated C type whose @@ -661,6 +662,7 @@ In Sod, the leaf types are interned) structured type with the given @ and @s (all evaluated). \end{describe} + \begin{describe}{fun} {make-struct-type @ \&optional @ @> @} Return the (unique interned) C type object for the structured C type whose @@ -964,9 +966,9 @@ function type is the type of the function's return value. Keyword functions are never considered to be the same as ordinary functions. Two keyword function types are considered to be the same if - their return types are the same, and their positional argument lists consist of - arguments with the same type, in the same order: the keyword arguments - accepted by the functions is not significant. + their return types are the same, and their positional argument lists + consist of arguments with the same type, in the same order: the keyword + arguments accepted by the functions is not significant. Keyword functions are constructed using an extended version of the @|fun| specifier used for ordinary C function types. The extended syntax is as diff --git a/doc/meta.tex b/doc/meta.tex index 4b42a86..1ca5444 100644 --- a/doc/meta.tex +++ b/doc/meta.tex @@ -151,11 +151,11 @@ \begin{describe*} {\dhead{cls}{sod-initializer () - \&key :slot :location :class :value} + \&key :slot :location :class :value} \dhead{cls}{sod-instance-initializer (sod-initializer) - \&key :slot :location :class :value} + \&key :slot :location :class :value} \dhead{cls}{sod-class-initializer (sod-initializer) - \&key :slot :location :class :value}} + \&key :slot :location :class :value}} \end{describe*} \begin{describe*} diff --git a/doc/parsing.tex b/doc/parsing.tex index 17f0ecb..cd0e12f 100644 --- a/doc/parsing.tex +++ b/doc/parsing.tex @@ -252,6 +252,7 @@ Some scanners support an additional \emph{place-capture} protocol which allows rewinding the scanner to an earlier point in the input so that it can be scanned again. + \subsection{Basic scanner protocol} \label{sec:parsing.scanner.basic} The basic protocol supports stepping the scanner forward through its input @@ -272,6 +273,7 @@ sequence, and detecting the end of the sequence. step the scanner. \end{describe} + \subsection{Place-capture scanner protocol} \label{sec:parsing.scanner.place} The place-capture protocol allows rewinding to an earlier point in the @@ -319,6 +321,7 @@ the scanner and read that data again. Therefore it's possible to return values are the values of the final @
. \end{describe} + \subsection{Scanner file-location protocol} \label{sec:parsing.scanner.floc} Some scanners participate in the file-location protocol @@ -352,6 +355,7 @@ here. return nil. \end{describe*} + \subsection{Character scanners} \label{sec:parsing.scanner.char} Character scanners are scanners which read sequences of characters. @@ -412,6 +416,7 @@ operations to the sequence of characters held by a character scanner. character scanner protocols is suitable. See @|make-scanner-stream|. \end{describe} + \subsection{String scanners} \label{sec:parsing.scanner.string} A \emph{string scanner} is a simple kind of character scanner which reads @@ -436,6 +441,7 @@ and place-capture protocols. to the end of the @). \end{describe} + \subsection{Character buffer scanners} \label{sec:parsing.scanner.charbuf} A \emph{character buffer scanner}, or \emph{charbuf scanner} for short, is an @@ -500,6 +506,7 @@ file-location protocols. at least once, or with $@ > @$. \end{describe} + \subsection{Token scanners} \label{sec:parsing.scanner.token} \begin{describe}{cls} @@ -522,6 +529,7 @@ file-location protocols. {token-scanner-place-p @ @> @} \end{describe} + \subsection{List scanners} \begin{describe}{ty}{list-scanner} -- 2.11.0