mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-29 19:30:36 +02:00
PEG: Add full support for PEG + some extensions
This commit adds support for PEG as described in: <https://bford.info/pub/lang/peg.pdf> It adds support for the missing features (comments, underscores in identifiers and escaping) while keeping the extensions (dashes in identifiers, < and <--). The naming system tries to be as close as possible to the one proposed in the paper. * module/ice-9/peg/string-peg.scm: Rewrite PEG parser. * test-suite/tests/peg.test: Fix import Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
47807c9b11
commit
ff11753df1
4 changed files with 313 additions and 180 deletions
7
NEWS
7
NEWS
|
@ -20,6 +20,13 @@ downright unusable (e.g., <https://bugs.gnu.org/72378>), non-conforming
|
|||
(e.g., <https://bugs.gnu.org/72383>), or buggy (e.g.,
|
||||
<https://bugs.gnu.org/72372>).
|
||||
|
||||
* New interfaces and functionality
|
||||
|
||||
** PEG parser
|
||||
|
||||
PEG grammar parser in (ice-9 peg string-peg) has been rewritten to cover
|
||||
all the functionality defined in <https://bford.info/pub/lang/peg.pdf>.
|
||||
|
||||
** GOOPS: Introduce new forms method* and define-method*
|
||||
|
||||
The module (oop goops) now exports method* and define-method* which are
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue