hy/bin/hy2py

11 lines
201 B
Plaintext
Raw Normal View History

2013-03-06 00:16:04 +01:00
#!/usr/bin/env python
from hy.compiler import hy_compile
from hy.lex import tokenize
import codegen
import sys
ast = hy_compile(tokenize(open(sys.argv[1], 'r').read()))
print codegen.to_source(ast)