Skip to content

Commit

Permalink
added variable scope events back in
Browse files Browse the repository at this point in the history
  • Loading branch information
calvis committed Jan 4, 2014
1 parent f4dfe62 commit 8ab8564
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions cKanren/src/framework.rkt
Expand Up @@ -53,10 +53,9 @@
[(_ constructor (x ...) g g* ...)
(let ([x (constructor (gensym 'x))] ...)
(conj
;; (send-event (enter-scope-event x)) ...
(send-event (enter-scope-event x)) ...
g g* ...
;; (send-event (leave-scope-event x)) ...
))]))
(send-event (leave-scope-event x)) ...))]))

;; miniKanren's "fresh" defined in terms of fresh-aux over vars
(define-syntax-rule (fresh (x ...) g g* ...)
Expand Down
2 changes: 1 addition & 1 deletion cKanren/src/macros.rkt
Expand Up @@ -78,7 +78,7 @@
name (constraint-exprs ...) (clauses ...)
(a [s c e])))
#'(extend-constraint-interactions
'name initfn)]))
initfn initfn)]))

(begin-for-syntax
(define-splicing-syntax-class reaction-keyword
Expand Down

0 comments on commit 8ab8564

Please sign in to comment.