12 lines
195 B
Python
12 lines
195 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))))')
|
|
)
|
|
|
|
print m.two
|