hy/bin/hy2py
James King 7417789ce0 WIP - Adding Call support and FuncionDef
The test is still broken, there are print statements... this is an
ongoing WIP and will get squashed before submitted the PR.
2013-04-09 15:23:50 -04:00

24 lines
475 B
Python
Executable File

#!/usr/bin/env python
from __future__ import print_function
from hy.importer import (import_file_to_ast, import_file_to_module,
import_file_to_hst)
#import astor.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(astor.codegen.to_source(_ast))
import_file_to_module("<STDIN>", sys.argv[1])