Commit Graph

15 Commits

Author SHA1 Message Date
Berker Peksag 612d3ae457 Fix output of hy2py on Python 3.
Closes #535.
2014-03-18 10:08:20 +02:00
Gergely Nagy a619295dd7
bin/hy2py: Add a bunch of command-line options
The hy2py tool has been very useful for me, but most of the time, it's
only a part of its output that one is interested in. The whole output,
with source code, AST and python code together is one big monstrosity.
So instead of printing all that, lets have a few handy command-line
options to control which part gets printed.

By default, only the generated python source is, as that's what the name
of the tool implies.

Also, don't run it. That's what hy is for.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
2014-01-14 09:17:56 +01:00
Paul Tagliamonte c5c36e1022 Merge branch 'master' into paultag/bugfix/python3.4
Conflicts:
	bin/hy2py
2014-01-03 19:57:05 -05:00
Nicolas Dandrimont 9a128edcb2 Pretty print the AST in hy2py 2014-01-03 17:18:33 +01:00
Nicolas Dandrimont f452558f5e Force output encoding of hy2py as utf-8
Fixes hy2py in py34
2014-01-01 22:12:50 -05:00
Konrad Hinsen 269da19d76 Make macros module-specific.
A macro is available in the module where it was defined and
in any module that does a require of the defining module.
Only macros defined in hy.core are globally available.
Fixes #181
2013-05-16 15:34:14 +02:00
Paul Tagliamonte 9776b7133e update readme 2013-04-27 20:52:37 -04:00
James King 047956c59b Clean up based on review 2013-04-19 10:36:51 -04:00
James King 484a96abae WIP - Move _parse_lamba_list to the functiondef 2013-04-10 16:52:28 -04:00
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
Paul R. Tagliamonte 10b887bbc8 Moving to astor.codegen 2013-03-11 21:12:38 -04:00
Paul R. Tagliamonte 05893569d7 thinking things out. 2013-03-08 23:41:04 -05:00
Paul Tagliamonte 67b803b99a Breaking things to start again. 2013-03-08 18:18:43 -05:00
Paul R. Tagliamonte 37a11247c7 Tweaking the AST. 2013-03-05 21:42:54 -05:00
Paul Tagliamonte 12d7fc6726 trainhacking++ 2013-03-05 18:16:04 -05:00