diff options
author | Eduardo Julian | 2015-03-21 18:17:24 -0400 |
---|---|---|
committer | Eduardo Julian | 2015-03-21 18:17:24 -0400 |
commit | 4f35491020fba914b746b4109f4362de603288bc (patch) | |
tree | 57e92b255af31340a05fd7a171b82161162d2fac /src/lux/macro.clj | |
parent | f8d9fae08d28cd4236c545798de48aba0aac028e (diff) |
- Added module-name aliasing.
Diffstat (limited to '')
-rw-r--r-- | src/lux/macro.clj | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lux/macro.clj b/src/lux/macro.clj index d31c22d78..7b612cbbb 100644 --- a/src/lux/macro.clj +++ b/src/lux/macro.clj @@ -7,6 +7,19 @@ (defn expand [loader macro-class tokens] (fn [state] ;; (prn 'expand macro-class tokens state) + ;; (let [expansion (-> (.loadClass loader macro-class) + ;; (.getField "_datum") + ;; (.get nil) + ;; (.apply tokens) + ;; (.apply state))] + ;; (matchv ::M/objects [expansion] + ;; [["lux;Right" [state* nodes]]] + ;; (doseq [node (&/->seq nodes)] + ;; (prn 'expansion macro-class (&/show-ast node))) + + ;; [_] + ;; nil) + ;; expansion) (-> (.loadClass loader macro-class) (.getField "_datum") (.get nil) |