Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

renamed `syntactic-closure' namespace to `syntactic-closure.core'

  • Loading branch information...
commit 2aa1739c124b257b8dd9610eb9023684b1a957d9 1 parent 18d69c4
OHTA Shogo authored
2  examples/close.clj
... ... @@ -1,5 +1,5 @@
1 1 (ns close
2   - (:use [syntactic-closure :only [define-syntax sc-macro-transformer make-syntactic-closure qq]]))
  2 + (:use [syntactic-closure.core :only [define-syntax sc-macro-transformer make-syntactic-closure qq]]))
3 3
4 4 (defn foo [x]
5 5 x)
2  examples/let1.clj
... ... @@ -1,5 +1,5 @@
1 1 (ns let1
2   - (:use [syntactic-closure :only [define-syntax sc-macro-transformer make-syntactic-closure qq]]))
  2 + (:use [syntactic-closure.core :only [define-syntax sc-macro-transformer make-syntactic-closure qq]]))
3 3
4 4 (define-syntax let1 [var val & body]
5 5 (sc-macro-transformer
2  examples/push.clj
... ... @@ -1,5 +1,5 @@
1 1 (ns push
2   - (:use [syntactic-closure :only [define-syntax sc-macro-transformer make-syntactic-closure qq]]))
  2 + (:use [syntactic-closure.core :only [define-syntax sc-macro-transformer make-syntactic-closure qq]]))
3 3
4 4 (define-syntax push! [x v]
5 5 (sc-macro-transformer
2  src/syntactic_closure/compile.clj
... ... @@ -1,4 +1,4 @@
1   -(in-ns 'syntactic-closure)
  1 +(in-ns 'syntactic-closure.core)
2 2
3 3 (use '[syntactic-closure.util :only [error var->qualified-symbol add-meta macro?]]
4 4 '[syntactic-closure.environment :only [lookup]])
8 src/syntactic_closure.clj → src/syntactic_closure/core.clj
... ... @@ -1,10 +1,10 @@
1   -(ns syntactic-closure
  1 +(ns syntactic-closure.core
2 2 (:refer-clojure :exclude [compile])
3 3 (:use [syntactic-closure.environment :only [make-environment filter-environment]]))
4 4
5   -(load "syntactic_closure/compile")
6   -(load "syntactic_closure/specials")
7   -(load "syntactic_closure/quasiquote")
  5 +(load "compile")
  6 +(load "specials")
  7 +(load "quasiquote")
8 8
9 9 (defmacro define-syntax [name args & body]
10 10 `(defmacro ~name ~args
2  src/syntactic_closure/quasiquote.clj
... ... @@ -1,4 +1,4 @@
1   -(in-ns 'syntactic-closure)
  1 +(in-ns 'syntactic-closure.core)
2 2
3 3 ;;
4 4 ;; self-made quasiquote, because Clojure's syntax-quote meddles too much
2  src/syntactic_closure/specials.clj
... ... @@ -1,4 +1,4 @@
1   -(in-ns 'syntactic-closure)
  1 +(in-ns 'syntactic-closure.core)
2 2
3 3 (use '[syntactic-closure.environment :only [extend-environment add-to-environment]])
4 4

0 comments on commit 2aa1739

Please sign in to comment.
Something went wrong with that request. Please try again.