X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/1818107e8198734df843841a51bca3713bd37596..7cd5021096c6378f377bd3d1373b6960de3cf1d3:/doc/parsing.tex diff --git a/doc/parsing.tex b/doc/parsing.tex index 58959c0..0d2a0ce 100644 --- a/doc/parsing.tex +++ b/doc/parsing.tex @@ -124,11 +124,12 @@ consumed any input items. \end{describe*} \begin{describe}{mac} - {with-default-error-location (@) @^* @> @^*} + {with-default-error-location (@) @^* @
^* + @> @^*} \end{describe} \begin{describe}{mac} - {count-and-report-errors () @^* + {count-and-report-errors () @^* @^* @> @ @ @} \end{describe} @@ -209,7 +210,8 @@ the scanner and read that data again. Therefore it's possible to \end{describe} \begin{describe}{mac} - {with-scanner-place (@ @) @^* @> @^*} + {with-scanner-place (@ @) @^* @^* + @> @^*} Capture the @'s current position as a place, evaluate the @s as an implicit progn with the variable @ bound to the captured place. When control leaves the @s, the place is released. The return @@ -446,14 +448,16 @@ file-location protocols. \begin{describe}{mac} {defparse @ (@[[ :context (@ @) @]] @^*) \\ \ind - @^* \- + @[[ @^* @! @ @]] \\ + @^* \- \nlret @} \end{describe} \begin{describe}{mac} {with-parser-context (@ @{ @ @ @}^*) \\ \ind - @^* \- + @^* \\ + @^* \- \nlret @^*} \end{describe} @@ -461,6 +465,13 @@ file-location protocols. {parse @ @> @ @ @} \end{describe} +\begin{describe}{mac} + {parser @ + @[[ @^* @! @ @]] + @ + @> @} +\end{describe} + \begin{describe}{gf}{parser-at-eof-p @ @> @} \end{describe} @@ -482,7 +493,7 @@ file-location protocols. \begin{describe}{mac} {when-parse (@[@@]) @ \\ \ind - @^* \- + @^* \- \nlret @^*} \end{describe} @@ -563,7 +574,9 @@ file-location protocols. \end{describe} \begin{describe}{mac} - {define-pluggable-parser @ @ @ @^*} + {define-pluggable-parser @ @ @ + @[[ @^* @! @ @]] + @^*} \end{describe} \begin{describe}{gf}{parser-capture-place @ @> @} @@ -580,7 +593,9 @@ file-location protocols. \end{describe} \begin{describe}{mac} - {with-parser-place (@ @) @^*} + {with-parser-place (@ @) + @[[ @^* @! @ @]] + @^*} \end{describe} \begin{describe}{parseform}{peek @} @@ -704,14 +719,14 @@ file-location protocols. \begin{describe*} {\dhead{mac}{preop @ (@ @) - @^* + @^* @^* @> @} \dhead{mac}{postop @ (@ @ @[[ :rprec @ @]]) - @^* - @> @} + @^* @^* + \nlret @} \dhead{mac}{binop @ (@ @ @ @) - @^* + @^*@^* @> @}} \end{describe*}