hy/bin/hy2py
2013-03-08 18:18:43 -05:00

21 lines
367 B
Python
Executable File

#!/usr/bin/env python
from hy.importer import (import_file_to_ast, import_file_to_module,
import_file_to_hst)
import codegen
import sys
import ast
hst = import_file_to_hst(sys.argv[1])
print hst
print ""
print ""
_ast = import_file_to_ast(sys.argv[1])
print ""
print ""
print ast.dump(_ast)
print ""
print ""
print codegen.to_source(_ast)