Make PEG Files
authorNoah Lavine <nlavine@haverford.edu>
Fri, 15 Apr 2011 21:04:02 +0000 (17:04 -0400)
committerAndy Wingo <wingo@pobox.com>
Wed, 16 Jan 2013 09:11:45 +0000 (10:11 +0100)
* module/ice-9/peg/using-parsers.scm: remove unnecessary dependency
* module/ice-9/peg.scm: add comment about string-peg dependency
* module/Makefile.scm: add PEG files to makefile

module/Makefile.am
module/ice-9/peg.scm
module/ice-9/peg/using-parsers.scm

index 0314637..c070014 100644 (file)
@@ -218,6 +218,11 @@ ICE_9_SOURCES = \
   ice-9/null.scm \
   ice-9/occam-channel.scm \
   ice-9/optargs.scm \
+  ice-9/peg/simplify-tree.scm \
+  ice-9/peg/codegen.scm \
+  ice-9/peg/cache.scm \
+  ice-9/peg/using-parsers.scm \
+  ice-9/peg/string-peg.scm \
   ice-9/peg.scm \
   ice-9/poe.scm \
   ice-9/poll.scm \
index 9757f03..aa2754b 100644 (file)
@@ -20,6 +20,9 @@
 (define-module (ice-9 peg)
   #:use-module (ice-9 peg codegen)
   #:use-module (ice-9 peg string-peg)
+  ;; Note: the most important effect of using string-peg is not whatever
+  ;; functions it exports, but the fact that it adds a new handler to
+  ;; peg-sexp-compile.
   #:use-module (ice-9 peg simplify-tree)
   #:use-module (ice-9 peg using-parsers)
   #:use-module (ice-9 peg cache)
index 8eb3ef0..ec42583 100644 (file)
@@ -21,7 +21,6 @@
   #:use-module (ice-9 peg simplify-tree)
   #:use-module (ice-9 peg codegen)
   #:use-module (ice-9 peg cache)
-  #:use-module (ice-9 peg string-peg)
   #:export (peg-parse define-nonterm peg-match
             prec make-prec peg:start peg:end peg:string
             peg:tree peg:substring peg-record?))