peg.scm 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. ;;;; peg.scm --- Parsing Expression Grammar (PEG) parser generator
  2. ;;;;
  3. ;;;; Copyright (C) 2010, 2011 Free Software Foundation, Inc.
  4. ;;;;
  5. ;;;; This library is free software; you can redistribute it and/or
  6. ;;;; modify it under the terms of the GNU Lesser General Public
  7. ;;;; License as published by the Free Software Foundation; either
  8. ;;;; version 3 of the License, or (at your option) any later version.
  9. ;;;;
  10. ;;;; This library is distributed in the hope that it will be useful,
  11. ;;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ;;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. ;;;; Lesser General Public License for more details.
  14. ;;;;
  15. ;;;; You should have received a copy of the GNU Lesser General Public
  16. ;;;; License along with this library; if not, write to the Free Software
  17. ;;;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  18. ;;;;
  19. (define-module (ice-9 peg)
  20. #:use-module (ice-9 peg codegen)
  21. #:use-module (ice-9 peg string-peg)
  22. ;; Note: the most important effect of using string-peg is not whatever
  23. ;; functions it exports, but the fact that it adds a new handler to
  24. ;; peg-sexp-compile.
  25. #:use-module (ice-9 peg simplify-tree)
  26. #:use-module (ice-9 peg using-parsers)
  27. #:use-module (ice-9 peg cache)
  28. #:re-export (define-peg-pattern
  29. define-peg-string-patterns
  30. match-pattern
  31. search-for-pattern
  32. compile-peg-pattern
  33. keyword-flatten
  34. context-flatten
  35. peg:start
  36. peg:end
  37. peg:string
  38. peg:tree
  39. peg:substring
  40. peg-record?))