1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-19 18:20:22 +02:00

Add 'followed-by' PEG

The PEG s-expression syntax now uses '(followed-by ...)' instead of
'(body & ... 1)'.
This commit is contained in:
Noah Lavine 2011-09-19 10:30:53 -04:00 committed by Andy Wingo
parent 8e97edd5d3
commit 66ba3de0a6
2 changed files with 22 additions and 2 deletions

View file

@ -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