Skip to content

Instantly share code, notes, and snippets.

@haruyama
Created August 4, 2014 10:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save haruyama/1949095128d5bbd53e23 to your computer and use it in GitHub Desktop.
Save haruyama/1949095128d5bbd53e23 to your computer and use it in GitHub Desktop.
hoge
(unify-match 1 '(? x)
(singleton-stream '()))
(unify-match '(? x) 1
(singleton-stream '()))
(unify-match '(? x) '(? x)
(singleton-stream '()))
;(query-syntax-process '(?x ?x))
;(?x ?x) (?y ?y)
(unify-match '((? x) (? x)) '((? y) (? y))
(singleton-stream '()))
(unify-match '((? y) (? x)) '((? x) (? y))
(singleton-stream '()))
(unify-match '(? x) 1
(extend '(? x) 2
(singleton-stream '())))
(unify-match '(? x) 2
(extend '(? x) 2
(singleton-stream '())))
(unify-match '((? x) (? y)) '((? y) 1)
(extend '(? x) 2
(singleton-stream '())))
(depends-on? '((? x) (? x)) '(? x)
(singleton-stream '()))
(depends-on? '(? x) '(? x)
(singleton-stream '()))
(depends-on? '(? x) '(? y)
(singleton-stream '()))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment