Merge pull request #78 from paultag/paultag/bugfix/anon-macros
Paultag/bugfix/anon macros
This commit is contained in:
commit
c3cbceca36
@ -31,6 +31,9 @@ MACROS = [
|
||||
|
||||
def process(tree):
|
||||
load_macros()
|
||||
old = None
|
||||
while old != tree:
|
||||
old = tree
|
||||
tree = mprocess(tree)
|
||||
for m in hy.mangle.MANGLES:
|
||||
m().mangle(tree)
|
||||
|
@ -377,6 +377,11 @@
|
||||
(assert (= true (if true true true))))
|
||||
|
||||
|
||||
(defn test-nested-mangles []
|
||||
"NATIVE: test that we can use macros in mangled code"
|
||||
(assert (= ((fn [] (-> 2 (+ 1 1) (* 1 2)))) 8)))
|
||||
|
||||
|
||||
(defn test-let-scope []
|
||||
"NATIVE: test let works rightish"
|
||||
(setv y 123)
|
||||
|
Loading…
Reference in New Issue
Block a user