Paul Tagliamonte
636eec8f51
style fixes
2013-05-11 13:59:19 -04:00
Nicolas Dandrimont
b380b330cd
Add a defmacro builtin
2013-05-11 09:13:15 +02:00
Nicolas Dandrimont
0986f9001e
Change macros to be called with separate arguments
...
This provides free argument-length checking for macros.
2013-05-11 09:09:34 +02:00
Nicolas Dandrimont
74d4937078
Don't return a useless pass
in require
2013-05-11 08:04:59 +02:00
Paul Tagliamonte
2426237916
Add the (require) form.
2013-05-10 23:43:34 -04:00
Paul Tagliamonte
11adfa6564
it's stale
2013-05-10 23:14:45 -04:00
Nicolas Dandrimont
2860ef6ff7
Don't macro-expand inside quotes
2013-05-11 00:29:42 +02:00
Nicolas Dandrimont
68399b9fc3
Make sure splicing works at all times
2013-05-11 00:26:37 +02:00
Nicolas Dandrimont
e039c73abd
Add tests for quasiquoting
2013-05-10 23:42:38 +02:00
Nicolas Dandrimont
58bb3239ee
Distinguish between quote and quasiquote
2013-05-10 23:42:38 +02:00
Nicolas Dandrimont
322a9992e5
Implement unquote and unquote-splicing
2013-05-10 23:42:38 +02:00
Paul Tagliamonte
9811b7514e
Merge branch 'master' into pr/171
2013-05-09 20:39:49 -04:00
Nicolas Dandrimont
938d783e3b
Symbols get mangled without double-underscores now
2013-05-09 23:42:54 +02:00
Nicolas Dandrimont
c4ca00a485
Fix the PDF docs build
2013-05-09 23:42:54 +02:00
Christopher Allan Webber
0571bab382
Return None in --init-- because due to a syntax flaw we have to!
2013-05-09 16:08:39 -05:00
Christopher Allan Webber
204bc9c39e
Fixing *args and **kwargs notation in docs
2013-05-09 16:04:12 -05:00
Christopher Allan Webber
c5dbc39ee1
Fixing documentation error with extra double-colon
2013-05-09 16:02:25 -05:00
Christopher Allan Webber
b68d5ac3a3
Remove document classes TODO
2013-05-09 16:01:07 -05:00
Christopher Allan Webber
b4b3ab89f7
Documenting classes!
2013-05-09 16:00:30 -05:00
Christopher Allan Webber
5bd5620dd0
Dictionary style keyword arguments documentation
2013-05-09 15:48:02 -05:00
Christopher Allan Webber
0a362a2120
oh yeah, make this a clojure syntax block in the docs
2013-05-09 15:40:32 -05:00
Christopher Allan Webber
b6d730c044
Documenting: tuples and argument formatting
2013-05-09 15:35:47 -05:00
Christopher Allan Webber
60c1a1ba06
Docs: "Much more readable, no! -> Much more readable, no?"
2013-05-09 15:11:42 -05:00
Paul Tagliamonte
14d33633e1
RST syntax fix
2013-05-08 22:32:11 -04:00
Clinton N. Dreisbach
d76d011b11
Added documentation about import
2013-05-08 22:16:03 -04:00
Paul Tagliamonte
1fa53f9255
Try/Except: Ensure that we return properly
...
From both inside a try and in an exception handler.
2013-05-08 20:41:16 -04:00
Nicolas Dandrimont
488fa89e09
Add some tests for kwapplying expressions
2013-05-09 02:33:14 +02:00
Nicolas Dandrimont
0055f00a76
Allow kwapply for any expression.
...
This fixes #103 .
2013-05-09 02:28:42 +02:00
Paul Tagliamonte
98134e7396
Merge branch 'master' into bugfix/paultag/fix-try-except
2013-05-08 20:22:51 -04:00
Paul Tagliamonte
066c9781c7
Merge branch 'master' into pr/170
2013-05-08 20:11:57 -04:00
Paul Tagliamonte
72461a5cdb
style tweak
2013-05-08 20:07:38 -04:00
Paul Tagliamonte
058197a24f
Allow returning inside a try / except. Closes #163
2013-05-08 20:00:09 -04:00
Paul Tagliamonte
ceedc69b7d
Correct existing tests for future try / except work.
2013-05-08 19:58:36 -04:00
Nicolas Dandrimont
4e3f842972
Add &optional arguments.
...
Python doesn't really have that concept, so make them clash with &key arguments.
2013-05-08 21:11:33 +02:00
Nicolas Dandrimont
5dbf6c6ca9
Add tests for &key arguments in functions
2013-05-08 21:11:33 +02:00
Nicolas Dandrimont
772927c53d
Drop the bare names that were sprinkled everywhere in the generated AST.
...
This closes #162
We make sure not to drop *explicitly written* bare names.
2013-05-08 18:49:07 +02:00
Nicolas Dandrimont
04b2d9d291
Update NEWS
2013-05-08 15:50:43 +02:00
Nicolas Dandrimont
c7176c05c0
Merge branch 'jd/defclass' of https://github.com/jd/hy into jd-jd/defclass
2013-05-08 15:30:20 +02:00
Nicolas Dandrimont
2b1b11a129
Fixup comment
2013-05-08 15:01:08 +02:00
Julien Danjou
a823aca0c8
Run unit tests against hy2py
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-05-08 14:39:38 +02:00
Julien Danjou
ad7e110af4
Implements defclass
...
This fixes issue #156
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-05-08 12:38:57 +02:00
Nicolas Dandrimont
6935b7b8c1
Add a test for lambda w/ lambda-list
2013-05-07 20:07:15 +02:00
Nicolas Dandrimont
1e24dde153
Merge fn and lambda
...
We actually only generate an ast.Lambda if (lambda) was called, as a lot of code
expect ast.FunctionDefs (most notably with_decorator).
This allows empty lambdas too.
This fixes #165 .
2013-05-07 20:07:15 +02:00
Nicolas Dandrimont
87abda5202
Fix travis url in README.md
2013-05-07 20:04:04 +02:00
Julien Danjou
8e9a16cc61
Add test case for issue #137
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-05-06 15:48:00 +02:00
Julien Danjou
5a6e3ca31b
Small code simplification
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-05-06 15:46:06 +02:00
Nicolas Dandrimont
5bed886362
Fix j-related NEWS entry
...
I claim this silly bug as mine!
2013-05-06 14:58:14 +03:00
Paul Tagliamonte
57430a7a86
awesome. 0.9.7
2013-05-05 23:04:51 -04:00
Paul Tagliamonte
ba114f220b
add NEWS
2013-05-05 23:03:55 -04:00
Nicolas Dandrimont
45db4a8d0f
Use unittest2 in travis for py2.6
2013-05-05 20:42:48 +02:00