summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoah Lavine <nlavine@haverford.edu>2011-04-15 17:04:02 -0400
committerNoah Lavine <noah.b.lavine@gmail.com>2012-01-20 08:27:11 -0500
commit408e80843656e5e9e829b20cc2dd073d1ae9e261 (patch)
tree84459874641ea5e3e3fa22f56cf3378ca72d36a5
parentd8268cee76c8a90ee7edb8d44af2e831691a6b3c (diff)
downloadguile-408e80843656e5e9e829b20cc2dd073d1ae9e261.tar.gz
Make PEG Files
* 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
-rw-r--r--module/Makefile.am5
-rw-r--r--module/ice-9/peg.scm3
-rw-r--r--module/ice-9/peg/using-parsers.scm1
3 files changed, 8 insertions, 1 deletions
diff --git a/module/Makefile.am b/module/Makefile.am
index 20cd1381d..e06b48a0f 100644
--- a/module/Makefile.am
+++ b/module/Makefile.am
@@ -207,6 +207,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 \
diff --git a/module/ice-9/peg.scm b/module/ice-9/peg.scm
index 9757f0311..aa2754b7a 100644
--- a/module/ice-9/peg.scm
+++ b/module/ice-9/peg.scm
@@ -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)
diff --git a/module/ice-9/peg/using-parsers.scm b/module/ice-9/peg/using-parsers.scm
index 8eb3ef0fa..ec42583c0 100644
--- a/module/ice-9/peg/using-parsers.scm
+++ b/module/ice-9/peg/using-parsers.scm
@@ -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?))