Skip to content

Commit

Permalink
add stringo, rename modules
Browse files Browse the repository at this point in the history
  • Loading branch information
kourzanov committed Oct 22, 2014
1 parent 0439d43 commit aff0f0a
Show file tree
Hide file tree
Showing 4 changed files with 96 additions and 71 deletions.
4 changes: 2 additions & 2 deletions src/Llib/mk-ext.scm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(module minikanren-ext
(module bkanren-ext
(include "mk.sch")
(import minikanren)
(import bkanren)
(export caro
cdro
conso
Expand Down
8 changes: 4 additions & 4 deletions src/Llib/mk.sch
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
(lambda (c)
(let ((B (c->B c)) (E (c->E c)) (S (c->S c)))
e)))
((_ (c : B E S D Y N T) e)
((_ (c : B E S D Y N G T) e)
(lambda (c)
(let ((B (c->B c)) (E (c->E c)) (S (c->S c)) (D (c->D c))
(Y (c->Y c)) (N (c->N c)) (T (c->T c)))
(Y (c->Y c)) (N (c->N c)) (G (c->G c)) (T (c->T c)))
e)))))

(define-syntax all
Expand Down Expand Up @@ -44,11 +44,11 @@
(define-syntax fresh
(syntax-rules ()
((_ (x ...) g0 g ...)
(lambdag@ (c : B E S D Y N T)
(lambdag@ (c : B E S D Y N G T)
(inc
(let ((x (var 'x)) ...)
(let ((B (append `(,x ...) B)))
(bind* (g0 (make-c B E S D Y N T)) g ...))))))))
(bind* (g0 (make-c B E S D Y N G T)) g ...))))))))

(define-syntax eigen
(syntax-rules ()
Expand Down
Loading

0 comments on commit aff0f0a

Please sign in to comment.