hy/test.py

12 lines
179 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',
tokenize('(def two (+ 1 1))')
)
print m.two