X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/sod/blobdiff_plain/a6ec8b3f5bd19ad4a2a6fc950639cdff196eea2c..e38e83673b59b89d7af42f4c3f177aa0f6eafeb5:/doc/parsing.tex 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 @