hy/test.py
Paul Tagliamonte f36fa0f6de lolawesome.
2012-12-16 16:40:27 -05:00

15 lines
223 B
Python

from hy.compiler.modfaker import forge_module
from hy.lex.tokenize import tokenize
m = forge_module(
'test',
'test.hy',
tokenize('(def two (fn [] (print (+ 1 1))))(def x 1)')
)
print m.two
m.two()
print m.x