Julien Danjou
08fbd754b6
Update indentation for `if'
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-04-28 17:08:00 +02:00
Julien Danjou
f25177e9a6
Add a `unless' macro
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-04-28 17:04:35 +02:00
Julien Danjou
f68e3b972b
Add a `when' macro
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-04-28 17:04:35 +02:00
Julien Danjou
9b261a5004
Make HyList add returns HyList
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-04-28 17:04:33 +02:00
Julien Danjou
27e74d43b1
Re-indent Hy code using hy-mode
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-04-28 16:31:31 +02:00
Paul Tagliamonte
9776b7133e
update readme
2013-04-27 20:52:37 -04:00
Will Kahn-Greene
d4ff08ba3f
Merge pull request #155 from willkg/better-c
...
Fix hy -c CMD to better handle lex errors
2013-04-25 13:10:17 -07:00
Will Kahn-Greene
07dec18dc3
Fix "hy -c CMD" to show lex errors; add tests
...
* tells you there's a lex error, but doesn't tell you much else
* adds tests for all new bin/hy functionality
2013-04-24 22:23:12 -04:00
John Jacobsen
760774afde
Implement import_buffer_to_module
2013-04-24 21:58:42 -04:00
Julien Danjou
50daf1b4c8
Make temp attribute more solid and add unit test on regression
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-04-24 22:36:49 +02:00
Julien Danjou
4447ac5f1a
Revert wrong changes on temporary_attribute_value
...
We don't want to ignore any error.
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-04-24 22:18:45 +02:00
Will Kahn-Greene
08b30e8195
Back-figuring the license/copyright info
...
I did a git log thing to figure out who touched bin/hy and copied
those people over here since the bulk of the code came from bin/hy.
2013-04-24 09:03:56 -04:00
Will Kahn-Greene
3f7f241097
Fix license header
2013-04-24 08:57:51 -04:00
Will Kahn-Greene
fb8140b6bc
Add license to new file
2013-04-24 08:32:03 -04:00
Will Kahn-Greene
4e59af0033
Redid command line code
...
This supports:
* -h, --help
* --version
* -c cmd
* -i cmd
* file
* -
Plus it's easy to add new options.
Also, now we can do ridiculous things like have projects where
the installation is:
$ curl -s http://example.com/install-hypster-program | hy
2013-04-23 22:02:41 -04:00
Paul Tagliamonte
ada946fca8
style cleanup
2013-04-23 19:25:02 -04:00
Paul Tagliamonte
a1cf9e50eb
Merge branch 'master' into pr/141
2013-04-23 19:23:37 -04:00
Paul Tagliamonte
52ebcfae8c
removing the dunder. that was a bad move.
2013-04-22 21:49:19 -04:00
Paul Tagliamonte
109e8cb147
sorting imports by length
2013-04-22 21:47:43 -04:00
Julien Danjou
a9a67e9418
Simplify compile
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-04-22 22:46:43 +02:00
Julien Danjou
c241236bf5
Remove useless class attribute
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-04-22 14:58:05 +02:00
Paul Tagliamonte
6cb17a2f14
Merge branch 'master' into pr/149
2013-04-21 20:59:50 -04:00
John Jacobsen
8d8dd62168
Move take and drop from AST impl. in compiler.py to macros in core/bootstrap.py
2013-04-21 19:08:30 -05:00
Julien Danjou
afd0ba1870
Remove useless variable assignment
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-04-22 00:30:22 +02:00
John Jacobsen
c65df143b9
Simplify 'take'
2013-04-21 15:47:45 -05:00
John Jacobsen
f69c6243e8
Fix 'direction' of 'drop' function
2013-04-21 15:46:31 -05:00
John Jacobsen
fef571855b
Added 'take' and 'drop' functions (as AST elements)
2013-04-21 15:41:20 -05:00
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
55ed7cee62
misc. style fixes
2013-04-21 11:43:33 -04:00
Julien Danjou
7066d53b02
Introduce a context manager for compiler.returnable
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-04-21 17:14:26 +02:00
Paul Tagliamonte
adecd32897
Merge branch 'master' into pr/144
2013-04-21 11:12:04 -04:00
Paul Tagliamonte
47b2709c47
Merge branch 'master' into pr/145
2013-04-21 11:04:36 -04:00
Paul Tagliamonte
36a7f91014
Merge branch 'master' into pr/146
2013-04-21 11:03:32 -04:00
Paul Tagliamonte
feabe3ff4a
Merge branch 'master' into pr/125
2013-04-21 10:58:08 -04:00
Paul Tagliamonte
592129502b
Adding @egenhombre to AUTHORS
2013-04-21 10:53:34 -04:00
John Jacobsen
5ce87d53b1
Merge branch 'master' of github.com:hylang/hy
2013-04-21 09:33:16 -05:00
John Jacobsen
3f6bf5f27b
more TODOs
2013-04-21 09:27:11 -05:00
John Jacobsen
38051ef96b
whitespace in doc
2013-04-21 09:04:52 -05:00
John Jacobsen
44329227db
Remove unneeded line from TODO section
2013-04-21 09:04:13 -05:00
John Jacobsen
499ec7697c
Add context manger / 'with' statement to tutorial
2013-04-21 09:03:19 -05:00
Julien Danjou
c0baea80dc
Mangler cosmetic cleanup
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-04-21 15:58:36 +02:00
Julien Danjou
17c8ecd332
Run setup.py install before running tests
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-04-20 22:39:58 +02: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
Julien Danjou
7f230fdd10
importer: remove useless import
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-04-20 22:14:08 +02:00
Julien Danjou
07e99dbd33
importer: doc update, MetaImport refactor
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-04-20 22:11:53 +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
Julien Danjou
74ea8fe5e5
Allow fn to have no body
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-04-20 05:19:58 -07:00
Julien Danjou
07860b5ce6
Allow variable without value in `let' declaration
...
Fixes issue #138
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-04-20 05:18:45 -07:00
James King
0efe3d7c49
Removed .format from lex/states.py
2013-04-19 10:49:57 -04:00
James King
047956c59b
Clean up based on review
2013-04-19 10:36:51 -04:00