hy/bin/hy2py
Paul Tagliamonte 12d7fc6726 trainhacking++
2013-03-05 18:16:04 -05:00

11 lines
201 B
Python
Executable File

#!/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)