hy/test.py

15 lines
223 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:40:27 +01:00
tokenize('(def two (fn [] (print (+ 1 1))))(def x 1)')
2012-12-16 20:57:39 +01:00
)
print m.two
2012-12-16 22:40:27 +01:00
m.two()
print m.x