summaryrefslogtreecommitdiff
path: root/doc/ref/api-peg.texi
diff options
context:
space:
mode:
authorNoah Lavine <nlavine@haverford.edu>2011-09-19 10:30:53 -0400
committerAndy Wingo <wingo@pobox.com>2013-01-16 10:11:46 +0100
commit66ba3de0a630f2644ca6bc2771da098c78babf45 (patch)
tree642c3cc43fdb84a488bfe5afbd64914a62f6c197 /doc/ref/api-peg.texi
parent8e97edd5d3454153a459afb108e4f7cbcdcaabc7 (diff)
downloadguile-66ba3de0a630f2644ca6bc2771da098c78babf45.tar.gz
Add 'followed-by' PEG
The PEG s-expression syntax now uses '(followed-by ...)' instead of '(body & ... 1)'.
Diffstat (limited to 'doc/ref/api-peg.texi')
-rw-r--r--doc/ref/api-peg.texi4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/ref/api-peg.texi b/doc/ref/api-peg.texi
index b05a2cf85..4976b59c9 100644
--- a/doc/ref/api-peg.texi
+++ b/doc/ref/api-peg.texi
@@ -90,13 +90,13 @@ Tries to parse @var{a}. Succeeds if @var{a} succeeds.
@code{(? a)}
@end deftp
-@deftp {PEG Pattern} {and predicate} a
+@deftp {PEG Pattern} {followed by} a
Makes sure it is possible to parse @var{a}, but does not actually parse
it. Succeeds if @var{a} would succeed.
@code{"&a"}
-@code{(body & a 1)}
+@code{(followed-by a)}
@end deftp
@deftp {PEG Pattern} {not predicate} a