Commit Graph

49 Commits

Author SHA1 Message Date
Paul Tagliamonte
6f7f402c19 Merge branch 'master' into pr/140
Conflicts:
	hy/compiler.py
	tests/native_tests/language.hy
2013-04-21 12:29:09 -04:00
Paul Tagliamonte
feabe3ff4a Merge branch 'master' into pr/125 2013-04-21 10:58:08 -04:00
Julien Danjou
3226ecc33f Fix bin/hy and add a unit test
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-04-20 22:28:45 +02:00
Gergely Nagy
494bf0e8ad Remove the import-as and import-from builtins
The new and improved (import) can handle all cases import-as and
import-from did, so drop the latter two from the language. To do this,
the import builtin had to be changed a little: if there's a single
import statement to return, return it as-is, otherwise return a list of
imports.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
2013-04-20 16:06:32 +02:00
James King
047956c59b Clean up based on review 2013-04-19 10:36:51 -04:00
James King
18ed72136f Merge branch 'master' into feature/lambda-list-keyword
Conflicts:
	hy/compiler.py
	hy/lex/states.py
	hy/util.py
	tests/compilers/test_ast.py
	tests/lex/test_lex.py
2013-04-18 15:17:30 -04:00
Paul R. Tagliamonte
a3c6f12b86 Screw it; buyer beware. 2013-04-12 23:08:22 -04:00
Konrad Hinsen
c30a116416 Add "from __future__ import division" to Python code generated by hy2py
This is mainly to make we don't forget this. The current state of hy2py
is more a proof-of-concept than a usable tool anyway.
2013-04-12 08:00:08 +02:00
Konrad Hinsen
0c56885d42 Use __future__.division for all Hy code
Fixes #106
Note: This is implemented by replacing all calls to Python's
builtin "compile" function by calls to hy.importer.compile_,
which adds the "future division" flag. Anyone using "compile"
in future work will have to remember this.
2013-04-12 05:23:25 +02: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
Konrad Hinsen
8212ed5794 Do not quit hy if hy.core.process raises an exception 2013-04-09 19:50:49 +02:00
Julien Danjou
bcdf31e287 Do not quit hy if compile error occurs
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-04-03 11:44:28 +02:00
James King
aa3a4e54cd Minor py3.3 fixes 2013-04-02 14:38:21 -04:00
Paul R. Tagliamonte
de7a450d92 Adding in a completer. 2013-03-28 21:42:40 -04:00
Paul R. Tagliamonte
4c50424a66 Don't tab complete yet 2013-03-27 22:20:16 -04:00
Paul Tagliamonte
3d8b436c33 bleh, undoing. We'll have to do something special 2013-03-26 19:17:42 -04:00
Thom Neale
2d781ac631 Import rlcompleter for tab completion 2013-03-26 10:35:12 -03:00
Paul R. Tagliamonte
c7219e3522 Adding in more macrofun 2013-03-25 20:54:36 -04:00
Paul R. Tagliamonte
0558dadf69 hy repl things 2013-03-25 20:31:58 -04:00
Paul Tagliamonte
eb356cb12b Adding in some readline cuteness 2013-03-25 19:10:59 -04:00
Paul Tagliamonte
980cd493e0 futzing with a few things 2013-03-21 19:27:34 -04:00
Paul R. Tagliamonte
e2ff4a447f Adding in another trivial example 2013-03-15 13:00:28 -04:00
Paul R. Tagliamonte
723cf75f73 respacing 2013-03-15 12:38:44 -04:00
Paul R. Tagliamonte
7741b2e1dd Adding in #! as a comment 2013-03-14 21:03:33 -04:00
Paul R. Tagliamonte
4172ca2db7 Fixing up the REPL a skitchbit. 2013-03-14 19:44:33 -04:00
Paul R. Tagliamonte
ff37c47c43 Adding in a Hy REPL 2013-03-14 17:36:38 -04:00
Paul R. Tagliamonte
9b32506854 Fixing catch a bit to now force a param. 2013-03-14 09:21:03 -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
e6d094fd40 Add in for loops. 2013-03-06 22:09:13 -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
Paul R. Tagliamonte
ef9007c229 Futzing about. 2013-03-03 16:26:17 -05:00
Paul R. Tagliamonte
95657f64bc bleh 2013-03-03 00:08:47 -05:00
Paul R. Tagliamonte
dc4bb92725 Adding in some slight tweaks. 2013-03-02 21:30:37 -05:00
Paul Tagliamonte
f5836da2a5 Kill everything 2013-02-27 19:00:52 -05:00
Paul Tagliamonte
6e33a7e3a3 changes 2013-01-17 09:11:03 -05:00
Paul Tagliamonte
7729d1c1d4 Tweaks, tweaks. 2013-01-15 20:02:10 -05:00
Paul Tagliamonte
90446be352 fixing other broken things 2012-12-31 20:51:18 -05:00
Paul Tagliamonte
5d54fcd158 cleaning up the traceback 2012-12-29 10:56:45 -05:00
Thom Neale
9b770853ae Imported readline in hython 2012-12-28 17:57:16 -05:00
Paul Tagliamonte
bfb3ce8138 fiddle bits 2012-12-18 23:44:44 -05:00
Paul Tagliamonte
ffbb362d3c cleaning some things up 2012-12-18 23:28:39 -05:00
Paul Tagliamonte
dc00027361 removing the lex thing 2012-12-18 23:11:42 -05:00
Paul Tagliamonte
42612456a5 Adding in bits for a shell. 2012-12-18 19:24:10 -05:00
Paul Tagliamonte
7f4b4f8bf8 Getting fib working :> 2012-12-18 19:02:50 -05:00
Paul Tagliamonte
33771bf254 OK, trying some grown-up work. 2012-12-15 18:59:11 -05:00