mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
Mention (ice-9 peg) module path.
* doc/ref/api-peg.texi (PEG Parsing): Mention (ice-9 peg) module path. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
c2817dc93b
commit
1be85ca008
1 changed files with 6 additions and 5 deletions
|
@ -17,11 +17,12 @@ Wikipedia has a clear and concise introduction to PEGs if you want to
|
|||
familiarize yourself with the syntax:
|
||||
@url{http://en.wikipedia.org/wiki/Parsing_expression_grammar}.
|
||||
|
||||
The module works by compiling PEGs down to lambda expressions. These
|
||||
can either be stored in variables at compile-time by the define macros
|
||||
(@code{define-peg-pattern} and @code{define-peg-string-patterns}) or calculated
|
||||
explicitly at runtime with the compile functions
|
||||
(@code{compile-peg-pattern} and @code{peg-string-compile}).
|
||||
The @code{(ice-9 peg)} module works by compiling PEGs down to lambda
|
||||
expressions. These can either be stored in variables at compile-time by
|
||||
the define macros (@code{define-peg-pattern} and
|
||||
@code{define-peg-string-patterns}) or calculated explicitly at runtime
|
||||
with the compile functions (@code{compile-peg-pattern} and
|
||||
@code{peg-string-compile}).
|
||||
|
||||
They can then be used for either parsing (@code{match-pattern}) or searching
|
||||
(@code{search-for-pattern}). For convenience, @code{search-for-pattern}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue