Commit Graph

549 Commits

Author SHA1 Message Date
Christopher Browne
1c14a69fc9 example was missing function parameter name 2013-04-08 17:01:12 -04:00
Julien Danjou
d7e8dd2a91 compiler: optimize empty tree mangling to ast.Pass
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-04-08 13:27:50 -04:00
Will Kahn-Greene
3dabc1a72a Update example to be more relevant to users 2013-04-08 12:03:42 -04:00
Julien Danjou
cd36a1d7eb Allow empty `do'
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-04-08 15:17:11 +02:00
Paul R. Tagliamonte
57fa5c8127 Time for 0.9.5 2013-04-07 19:45:50 -04:00
Paul R. Tagliamonte
cd1a32ce9f Adding in an upload target. 2013-04-07 19:45:38 -04:00
Paul R. Tagliamonte
38a714b5c5 Adding more tests; new entries 2013-04-07 19:44:52 -04:00
Paul R. Tagliamonte
5336b2f71a Fix early returns. Close #83 2013-04-07 19:29:45 -04:00
Paul R. Tagliamonte
5ff40c5e30 Forgot to add @algernon to AUTHORS 2013-04-07 18:58:45 -04:00
Paul R. Tagliamonte
6912f4c4d9 Merge branch 'master' into pr-82 2013-04-07 18:51:18 -04:00
Paul R. Tagliamonte
2216a23438 Merge branch 'jd/try' of git://github.com/jd/hy into pr-82 2013-04-07 18:51:08 -04:00
Julien Danjou
2ff3da032c Merge pull request #81 from paultag/paultag/bugfix/with-syntax-fix
Fixing (with)'s syntax to be more hyish.
2013-04-07 15:41:53 -07:00
Julien Danjou
c3cbceca36 Merge pull request #78 from paultag/paultag/bugfix/anon-macros
Paultag/bugfix/anon macros
2013-04-07 15:40:52 -07:00
Paul R. Tagliamonte
e22a0ff73c Mangle a macro until it stops moving
this helps if we use a macro in something that got tree-mangled
  back out.
2013-04-07 18:41:41 -04:00
Paul R. Tagliamonte
83d91c3f81 Asserting `fd' exists inside the with 2013-04-07 18:39:30 -04:00
Julien Danjou
a81a716420 Be sure errors are raised at by compile, not tokenize
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-04-08 00:38:55 +02:00
Julien Danjou
0d3500f6e5 try: accept a simpler form
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-04-08 00:36:08 +02:00
Paul R. Tagliamonte
4db9446197 Fixing (with)'s syntax to be more hyish. 2013-04-07 18:35:36 -04:00
Julien Danjou
48ae1b1e26 Merge pull request #80 from olasd/bugfix/unbalanced-expressions
Correctly handle unbalanced expressions
2013-04-07 15:27:45 -07:00
Nicolas Dandrimont
806f0d900c Throw an error on unbalanced expressions 2013-04-08 00:25:47 +02:00
Paul R. Tagliamonte
4debdf63ea Adding and / or to NEWS 2013-04-07 18:18:02 -04:00
Paul R. Tagliamonte
47ec1d264c style fixes 2013-04-07 18:16:45 -04:00
Paul R. Tagliamonte
3f84da8771 Merge branch 'f/and-and-or' of git://github.com/algernon/hy into pr-79 2013-04-07 18:15:54 -04:00
Julien Danjou
a73d460beb try: allow empty body
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-04-08 00:14:42 +02:00
Gergely Nagy
1b7d145c65 Implement the (or) function too
The (or) function is to be constructed similarly to (and), so refactor
the compile_and_operator function to handle or aswell.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
2013-04-08 00:02:08 +02:00
Gergely Nagy
f03b538787 Implement the (and) function
The function takes at least two arguments, and turns it into a pythonic
and statement, which returns the last True-ish value, or False.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
2013-04-07 23:54:56 +02:00
Julien Danjou
f5dc569de4 compiler: remove old TODO entry
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-04-07 23:14:42 +02:00
Paul R. Tagliamonte
3cc165545d add to NEWS 2013-04-07 15:07:24 -04:00
Paul R. Tagliamonte
bfc71e4a60 Add tail threading (->>) 2013-04-07 15:05:30 -04:00
Paul R. Tagliamonte
546e7ff50b Style bits 2013-04-07 14:32:47 -04:00
Nicolas Dandrimont
1853b7d33c Correctly balance the brackets in the wrong syntax tests
We want to test the compiler, not the lexer.
2013-04-07 19:53:50 +02:00
Paul R. Tagliamonte
0c0db1ddcb some last entries 2013-04-07 13:24:46 -04:00
Paul R. Tagliamonte
eba57bea07 Backfilling NEWS entries 2013-04-07 13:24:19 -04:00
Paul R. Tagliamonte
0d96c95fe9 Adding 0.9.3 entries 2013-04-07 13:03:45 -04:00
Paul R. Tagliamonte
070896adca Adding in a NEW file; filling this in 2013-04-07 12:47:21 -04:00
Julien Danjou
bdd07e1251 Alias except' to catch' and raise' to throw'
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-04-07 18:24:01 +02:00
Julien Danjou
2fd56e8fa1 catch: uncomment some tests
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-04-07 18:20:32 +02:00
Paul R. Tagliamonte
5e5ae07a9f fixing up the hy site to match the new catch syntax 2013-04-07 12:25:13 -04:00
Paul R. Tagliamonte
70fd991ef1 Merge branch 'jd/catch' of git://github.com/jd/hy into pr-73 2013-04-07 12:23:27 -04:00
Julien Danjou
6dec894a0c Better catch syntax
The syntax is now changed to:

  (catch [] BODY)
  (catch [Exception] BODY)
  (catch [e Exception] BODY)
  (catch [e [Exception1 Exception2]] BODY)

Signed-off-by: Julien Danjou <julien@danjou.info>
2013-04-07 18:03:43 +02:00
Paul R. Tagliamonte
4629501628 Addining some initial docs. 2013-04-07 11:35:10 -04:00
Paul R. Tagliamonte
3c735d18bd Revert "Revert "Remove useless code""
This reverts commit 262da59c77.

Conflicts:
	hy/models/string.py
2013-04-07 10:06:44 -04:00
Paul R. Tagliamonte
9d36dab693 Test importing things with dashes 2013-04-07 09:54:53 -04:00
Will Kahn-Greene
2724478f13 Fix clone url in hacking docs 2013-04-07 07:55:25 -04:00
Paul R. Tagliamonte
c657def253 namespaceing to __hy in case anyone tries this 4real 2013-04-06 23:31:26 -04:00
Paul R. Tagliamonte
03dfbde1b8 style voodoo 2013-04-06 23:11:43 -04:00
Paul R. Tagliamonte
0429cbea12 Using punycode where we can. 2013-04-06 22:49:48 -04:00
Paul R. Tagliamonte
5a96089266 Using backslashes for now; punycode soon. 2013-04-06 21:33:52 -04:00
Paul R. Tagliamonte
bac3f6991c Revert "adding this as testable"
This reverts commit 104b9d1636.
2013-04-06 20:03:14 -04:00
Paul R. Tagliamonte
e0ed7cac40 Revert "Make HySymbol bytes free!"
This reverts commit 8b144a4f3d.
2013-04-06 20:02:08 -04:00