Commit Graph

845 Commits

Author SHA1 Message Date
Paul Tagliamonte
86af7eacf1 Add in a new core language file.
This will let us implement common functions seen in other lisps,
 and allow them to be importable, without explicit imports. The goal
 is to keep this as small as we can; we don't want too much magic.

 I've added `take' and `drop' as examples of what we can do.
2013-06-29 18:51:11 -04:00
Nicolas Dandrimont
b65c2a4596 whitespace fix 2013-06-26 08:50:37 +02:00
Guillermo Vaya
482282178c changed macro to ignore empty trees and made compiler do the substitution work 2013-06-26 08:50:37 +02:00
Guillermo Vaya
4c7b4f70e3 changed try to testing for an empty list for legibility (as suggested by paultag), also added to authors 2013-06-26 08:50:37 +02:00
Guillermo Vaya
7b7b953410 set the value of empty hy expression to [] 2013-06-26 08:50:37 +02:00
Paul Tagliamonte
9b45dd4ffe add tumblr printer 2013-06-25 21:47:54 -04:00
Paul Tagliamonte
612b9f783f Merge branch 'master' into pr/209 2013-06-25 19:24:29 -04:00
Paul Tagliamonte
59550c9abd tell flake8 to shut up 2013-06-25 19:23:44 -04:00
Paul Tagliamonte
2f16ad6e78 Merge branch 'master' into pr/208 2013-06-25 19:20:58 -04:00
Duncan McGreggor
de8b62d0d5 Added Twisted example. 2013-06-25 10:54:40 -07:00
Morten Linderud
42468051f5 Builtins fix for 2 and 3, tests aswell 2013-06-25 17:02:02 +02:00
Morten Linderud
73c1f218e2 fixed a bug and added tests 2013-06-24 03:26:40 +02:00
Morten Linderud
a455800bc7 added break and continue 2013-06-24 02:40:10 +02:00
Paul Tagliamonte
e1091afe94 fix up the quit message to be wiseass like python's 2013-06-22 22:39:05 -04:00
Morten Linderud
56bae8cc54 FIxed Authors 2013-06-23 04:18:22 +02:00
Morten Linderud
25a81b4ef4 Fixed exit and quit with HyQuitter 2013-06-23 04:15:32 +02:00
Joe H. Rahme
22370b9fcc Removes the repetition of the comment section in the tutorial 2013-06-21 17:30:23 +02:00
Julien Danjou
50e1fc4766 Merge pull request #193 from paultag/paultag/feature/keyword-calls
Adding back in keywords.
2013-06-19 01:51:58 -07:00
Paul Tagliamonte
289586b340 Adding back in keywords.
Yes, I'm your hero, @algernon
2013-06-18 22:57:51 -04:00
Paul Tagliamonte
f9b13a625f Style fix 2013-06-18 21:48:42 -04:00
Paul Tagliamonte
b00f181e1e Merge branch 'master' into pr/187 2013-06-18 21:17:13 -04:00
Paul Tagliamonte
2e7cd16169 add in a clint example while I ponder hy scripts using it 2013-06-08 20:35:50 -04:00
Paul Tagliamonte
8935a998ad Add @thomasballinger to AUTHORS 2013-06-08 20:18:34 -04:00
Paul Tagliamonte
4aca7842cd Add regression test for UTF and escapes. 2013-06-08 20:17:50 -04:00
Paul Tagliamonte
0f9324e794 Merge branch 'master' into pr/192 2013-06-08 20:13:53 -04:00
Paul Tagliamonte
126a623d0f Merge branch 'master' into pr/190 2013-06-08 20:11:52 -04:00
Paul Tagliamonte
d15aa31a32 style fixes 2013-06-08 20:10:27 -04:00
Thomas Ballinger
00da0468e6 larger kludge for escaped characters 2013-06-07 17:07:22 -04:00
Konrad Hinsen
2674016d3d More tests 2013-06-07 16:36:04 +02:00
Konrad Hinsen
6eacf63b53 Provide both eval-and-compile and eval-when-compile 2013-06-07 16:36:04 +02:00
Konrad Hinsen
80105d9731 eval-when-compile permits compile-time definitions that can be used from macros 2013-06-07 16:36:04 +02:00
Konrad Hinsen
12abef5ed5 Forgot boolean constants.. 2013-06-07 16:35:28 +02:00
Thomas Ballinger
00f655c3a1 grammar in api.rst 2013-06-07 00:53:53 -03:00
Konrad Hinsen
e47bac1f96 Permit macros to return constants 2013-06-05 12:19:06 +02:00
Paul Tagliamonte
2c582fbd52 I'm an idiot, Sorry, @aldeka 2013-06-01 22:04:55 -04:00
Paul Tagliamonte
8cb3102365 Adding in @aldeka 's cuddles image! 2013-06-01 22:03:30 -04:00
Christopher Allan Webber
0f266fee9b Move TODO from being an actual block of visible text to a comment
This is cleaner and more respectable :)
2013-05-20 18:26:36 -05:00
Christopher Allan Webber
e5de92178d We should introdeuce people to the tutorial before we toss them at hacking 2013-05-20 18:25:26 -05:00
Christopher Allan Webber
c3811b5e71 Replacing cuddles ascii art with the cuddles drawing, restoring hy logo 2013-05-20 18:17:11 -05:00
Paul Tagliamonte
c463489584 thanks @olasd 2013-05-20 15:49:51 -04:00
Paul Tagliamonte
2b655d59ae fixing the image src 2013-05-20 15:45:43 -04:00
Paul Tagliamonte
fbed4c4fa8 forgot this guy 2013-05-18 13:07:11 -04:00
Paul Tagliamonte
8ad718bda7 adding in @doctormo love 2013-05-17 20:52:52 -04:00
Paul Tagliamonte
9c28e0292d Merge branch 'master' into pr/185
Conflicts:
	hy/macros.py
	tests/compilers/test_compiler.py

Hoodoggy!
2013-05-17 11:17:51 -04:00
Paul Tagliamonte
c0fd41620f Merge branch 'master' into pr/182 2013-05-17 11:09:37 -04:00
Paul Tagliamonte
5a1b004bfb Merge branch 'master' into pr/179 2013-05-17 11:08:30 -04:00
Paul Tagliamonte
81096596c7 style fix - long line 2013-05-17 11:07:36 -04:00
Paul Tagliamonte
9b1dba0564 Merge branch 'master' into pr/177 2013-05-17 11:03:45 -04: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
Konrad Hinsen
b7c5ff2991 Refactor test_ast.py to eliminate the lots of hy_compile(tokenize(...)) calls 2013-05-16 15:30:44 +02:00