Skip to content

Commit

Permalink
Add function for clearing parser cache.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramarren committed Jan 15, 2010
1 parent 59e99d3 commit 3b64af2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions cache.lisp
Expand Up @@ -2,6 +2,9 @@

(defvar *parser-cache* (make-hash-table))

(defun drop-parser-cache ()
(clrhash *parser-cache*))

;; parser caching

(defmacro cached? (parser label)
Expand Down
3 changes: 2 additions & 1 deletion package.lisp
@@ -1,6 +1,7 @@
(defpackage :parser-combinators
(:use :cl :iterate :alexandria)
(:export #:result
(:export #:drop-parser-cache
#:result
#:zero
#:item
#:sat
Expand Down

0 comments on commit 3b64af2

Please sign in to comment.