hy/test.py

12 lines
195 B
Python
Raw Normal View History

2012-12-16 20:57:39 +01:00
from hy.compiler.modfaker import forge_module
from hy.lex.tokenize import tokenize
m = forge_module(
'test',
'test.hy',
2012-12-16 22:36:44 +01:00
tokenize('(def two (fn [] (print (+ 1 1))))')
2012-12-16 20:57:39 +01:00
)
print m.two