Commit Graph

301 Commits

Author SHA1 Message Date
Paul R. Tagliamonte
1f1676c354 Adding in meth 2013-03-27 22:19:27 -04:00
Paul R. Tagliamonte
7eed26f0c3 Adding in tuples. Close #30. Ugly as hell. 2013-03-27 20:09:11 -04:00
Paul R. Tagliamonte
ccd26205d7 unbreak py3.3? need to re-add with 2013-03-24 10:00:07 -04:00
Paul R. Tagliamonte
dd6a883060 implmenting with 2013-03-24 02:04:44 -04:00
Paul Tagliamonte
980cd493e0 futzing with a few things 2013-03-21 19:27:34 -04:00
Amrut Joshi
db88fcd347 Support for "import as" 2013-03-19 05:33:45 +00:00
Paul R. Tagliamonte
07c169eb1b Adding in a main bit for rPy evil bits 2013-03-19 00:58:43 -04:00
Paul R. Tagliamonte
a94831beac add mod operator 2013-03-18 21:46:58 -04:00
Paul R. Tagliamonte
a0ff144686 adding slightly better reprs in 2013-03-18 21:08:35 -04:00
Paul R. Tagliamonte
83a9bdc87d adding in rest macros 2013-03-18 19:49:36 -04:00
Paul R. Tagliamonte
a58c813dda adding in a slice operator 2013-03-18 19:47:48 -04:00
Paul R. Tagliamonte
8f6c77831b Adding first' / car' 2013-03-18 16:11:29 -04:00
Paul R. Tagliamonte
4cb4e7384e holy shit it's 2013 2013-03-18 10:27:14 -04:00
Paul R. Tagliamonte
da65ba4b4c Releasing 0.9.2 2013-03-15 15:35:25 -04:00
Paul R. Tagliamonte
791a7f212e adding set thinger in 2013-03-15 15:33:51 -04:00
Paul R. Tagliamonte
7741b2e1dd Adding in #! as a comment 2013-03-14 21:03:33 -04:00
Paul R. Tagliamonte
3c288519ac adding in yielding 2013-03-14 20:55:11 -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
36bc16211e Tweaking out the machine voodoo. 2013-03-13 21:30:17 -04:00
Paul R. Tagliamonte
0bc2dd8d00 Moving `for' to a "macro" 2013-03-13 20:41:53 -04:00
Paul R. Tagliamonte
a238ac53c3 Adding back Python 2.6. 2013-03-13 20:02:16 -04:00
Paul Tagliamonte
57775a95a6 Fiddling with the threading macro 2013-03-13 10:11:14 -04:00
Paul R. Tagliamonte
daa6443e7c Adding in a Threading macro (->) 2013-03-12 22:04:51 -04:00
Thomas Mashek
d68c1149e2 Merge branch 'master' of github.com:tenach/hy into earmuffs 2013-03-12 13:09:15 -07:00
Thomas Mashek
b6eca8dfc0 Earmuff stuff. 2013-03-12 12:46:20 -07:00
Thomas Mashek
8a88b2a0f0 Making dict comprehension work with py2.6 2013-03-12 12:39:23 -07:00
Paul R. Tagliamonte
84a7fbb301 Time for 0.9.1. 2013-03-11 21:14:45 -04:00
Paul R. Tagliamonte
cdffc9d9d1 Forcing newlines 2013-03-11 20:40:38 -04:00
Paul R. Tagliamonte
9c3a3a13c9 Adding in commit juju 2013-03-11 20:33:06 -04:00
Paul R. Tagliamonte
9f057e8c8f Fixing 3.x AST 2013-03-11 20:17:27 -04:00
Paul Tagliamonte
b12e14b96b Adding in CodeMirror stuff. Makin' moves. 2013-03-11 19:14:20 -04:00
Paul Tagliamonte
981ebf5ca5 unstaged changes 2013-03-11 09:37:29 -04:00
Paul R. Tagliamonte
85ffdbdb8a 0.9.0, screw it. 2013-03-10 17:42:11 -04:00
Paul R. Tagliamonte
2b908254ac style fixups, unbreaking print 2013-03-10 15:39:27 -04:00
Paul R. Tagliamonte
55062b3845 Adding in a bit of voodoo. 2013-03-10 15:32:27 -04:00
Paul R. Tagliamonte
ecca456bdf Adding in some Pygments code. 2013-03-10 12:59:16 -04:00
Paul R. Tagliamonte
3f29114fe1 Fiddling with the site. 2013-03-10 10:58:31 -04:00
Paul R. Tagliamonte
57bf7b5cba syntax fixes 2013-03-10 10:35:08 -04:00
Paul R. Tagliamonte
0a86226da0 fixing up dicts + macros 2013-03-10 10:30:03 -04:00
Paul R. Tagliamonte
4f856c35d4 adding in dotted notation 2013-03-09 22:04:38 -05:00
Paul R. Tagliamonte
44f5035919 reflowing; docstrings 2013-03-09 21:16:28 -05:00
Paul R. Tagliamonte
4ce12c93a5 adding in kwapply things. 2013-03-09 21:14:30 -05:00
Paul R. Tagliamonte
b1c3a758f9 adding in decorators 2013-03-09 21:01:59 -05:00
Paul R. Tagliamonte
3dba5f7aff futz with name things. 2013-03-09 19:46:32 -05:00
Paul R. Tagliamonte
821ca442aa allowing foo-bar 2013-03-09 18:58:47 -05:00
Paul R. Tagliamonte
0424446d56 adding in noteq 2013-03-09 17:15:56 -05:00
Paul R. Tagliamonte
ccfcefe207 adjust calling bits to allow ((foo)) 2013-03-09 16:42:07 -05:00
Paul R. Tagliamonte
276df1b103 thinking through some manglers. 2013-03-09 16:34:35 -05:00
Paul R. Tagliamonte
8a2ba20407 Adding in lambdas. 2013-03-09 15:57:13 -05:00
Paul R. Tagliamonte
a19d085620 Adding in better things. 2013-03-09 15:10:49 -05:00
Paul R. Tagliamonte
f97cb5e4cb adding in array access 2013-03-09 00:55:27 -05:00
Paul R. Tagliamonte
ab2cf5beda futzing with condlike things. 2013-03-09 00:17:02 -05:00
Paul R. Tagliamonte
ce3e7a2d37 adding in more tests. 2013-03-09 00:01:43 -05:00
Paul R. Tagliamonte
05893569d7 thinking things out. 2013-03-08 23:41:04 -05:00
Paul R. Tagliamonte
8c07829ff9 thinking about some new stuff. 2013-03-08 23:07:21 -05:00
Paul R. Tagliamonte
7c7a613c9c adding a bit more coverage 2013-03-08 20:45:19 -05:00
Paul R. Tagliamonte
db39a81a30 fixing the thinger. 2013-03-08 20:21:32 -05:00
Paul Tagliamonte
3028570995 fail! 2013-03-08 18:47:59 -05:00
Paul Tagliamonte
abf63fca12 fixing up the tests 2013-03-08 18:46:51 -05:00
Paul Tagliamonte
67b803b99a Breaking things to start again. 2013-03-08 18:18:43 -05:00
Paul R. Tagliamonte
dbd9f0bbf8 Q'plah! 2013-03-07 23:04:20 -05:00
Paul R. Tagliamonte
4945d0aa14 fixing python 3 2013-03-07 22:56:35 -05:00
Paul R. Tagliamonte
3166fec53e Thinking some ideas out. 2013-03-07 22:52:47 -05:00
Paul R. Tagliamonte
b520d3148b Revert "Adding in Quoting bits."
This reverts commit db122f2ec9.

I'm an idjiot.
2013-03-07 21:37:43 -05:00
Paul R. Tagliamonte
db122f2ec9 Adding in Quoting bits. 2013-03-07 21:29:18 -05:00
Paul Tagliamonte
173598d055 add spaceless things 2013-03-07 19:23:11 -05:00
Paul R. Tagliamonte
d5de7a480b returnable stuf 2013-03-06 22:13:14 -05:00
Paul R. Tagliamonte
e6d094fd40 Add in for loops. 2013-03-06 22:09:13 -05:00
Paul R. Tagliamonte
935ef5424e Add in dicts. 2013-03-06 20:59:45 -05:00
Paul Tagliamonte
863d619e4a cleaning up lexing code 2013-03-06 18:57:21 -05:00
Paul R. Tagliamonte
da234b1d8f adding in thingers. 2013-03-05 22:08:53 -05:00
Paul R. Tagliamonte
f950717e5a Py3.3 fix 2013-03-05 21:49:46 -05:00
Paul R. Tagliamonte
37a11247c7 Tweaking the AST. 2013-03-05 21:42:54 -05:00
Paul R. Tagliamonte
7a925b5ee4 futzing with ideas 2013-03-05 20:28:09 -05:00
Paul Tagliamonte
0638cfa187 ideas, ideas. 2013-03-05 18:39:34 -05:00
Paul Tagliamonte
4a78498133 adding numbers 2013-03-05 18:28:27 -05:00
Paul Tagliamonte
12d7fc6726 trainhacking++ 2013-03-05 18:16:04 -05:00
Paul Tagliamonte
fecf17960d unstaged changes 2013-03-05 09:08:13 -05:00
Paul R. Tagliamonte
9a31fc1f81 Futzin' with some things. 2013-03-04 22:35:07 -05:00
Paul R. Tagliamonte
4d32dac9ad Moving the compiler stuff around. 2013-03-04 20:40:23 -05:00
Paul R. Tagliamonte
3935c87739 style 2013-03-04 20:38:24 -05:00
Paul Tagliamonte
20805fc7b2 tweaking the ast. 2013-03-04 19:12:57 -05:00
Paul R. Tagliamonte
9e16fb4ca0 Very broken. 2013-03-03 19:40:46 -05:00
Paul R. Tagliamonte
ef9007c229 Futzing about. 2013-03-03 16:26:17 -05:00
Paul R. Tagliamonte
b37d92fe28 better line bits. 2013-03-03 14:03:59 -05:00
Paul R. Tagliamonte
e992c8dd38 Style fixes 2013-03-03 13:13:11 -05:00
Paul R. Tagliamonte
a9b5d851b2 Fiddling with more AST testing 2013-03-03 13:10:50 -05:00
Paul R. Tagliamonte
6eb6a0d24c fiddling with asts 2013-03-03 12:52:24 -05:00
Paul R. Tagliamonte
6661d85323 Add some failing tests in. 2013-03-03 11:18:13 -05:00
Paul R. Tagliamonte
8ce7871bf1 AST'ing. Let's go for this. 2013-03-02 23:48:22 -05:00
Paul R. Tagliamonte
b42fdc0bb7 Adding more testing. 2013-03-02 23:47:16 -05:00
Paul R. Tagliamonte
efdccb75bb fiddlebits 2013-03-02 23:36:57 -05:00
Paul R. Tagliamonte
f7ff953f7e Updating states / tests for more stuff. 2013-03-02 21:08:23 -05:00
Paul R. Tagliamonte
b777ac42a7 Update etc 2013-03-02 20:38:18 -05:00
Paul R. Tagliamonte
159151f847 thingthings. like licensing. 2013-03-02 20:24:32 -05:00
Paul R. Tagliamonte
797656b1fd Add some line bits. 2013-03-02 19:41:55 -05:00
Paul R. Tagliamonte
f14ccb6d22 Adding in the Integer bits. 2013-03-02 19:28:10 -05:00
Paul R. Tagliamonte
ea326ee29b Fiddling with the lexing. 2013-03-02 18:40:00 -05:00
Paul R. Tagliamonte
a405b8ef52 Thinking. 2013-03-02 18:03:59 -05:00
Paul R. Tagliamonte
5c6d98a24a Rebuilding. 2013-02-28 22:37:23 -05:00
Paul R. Tagliamonte
84453e75d2 Thinking about a refacotr. 2013-02-28 22:27:20 -05:00
Paul Tagliamonte
f5836da2a5 Kill everything 2013-02-27 19:00:52 -05:00
Paul Tagliamonte
6455fe951a uneeded sys 2013-01-21 12:19:35 -05:00
Paul Tagliamonte
93625be7eb Merge branch 'master' of github.com:paultag/hy 2013-01-15 20:02:34 -05:00
Paul Tagliamonte
7729d1c1d4 Tweaks, tweaks. 2013-01-15 20:02:10 -05:00
Paul Tagliamonte
17b0d56de1 Style fixes 2013-01-12 14:38:53 -05:00
Paul Tagliamonte
676c4f5448 Doing some cleanup 2013-01-12 14:32:32 -05:00
Paul Tagliamonte
a9ac8afd90 Removing some trailing space (cosmetic) 2013-01-11 19:38:56 -05:00
Gergely Nagy
a7cd70c84a compiler: Make maps and lists able to look up their params
As a neat syntactic sugar, it's very neat if maps and lists are able
to work as if they were functions, and look up their arguments.

This implements just that, by translating (map key) to (index map key)
internally, and (list idx) to (index list idx).

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
2013-01-12 00:50:08 +01:00
Paul Tagliamonte
56dedfa6ed Playing around... 2013-01-08 22:52:04 -05:00
Paul Tagliamonte
2b7e3b3cc1 Adding earmufs 2013-01-08 21:28:49 -05:00
Paul Tagliamonte
e569b7f5aa minor hacks 2013-01-04 19:49:33 -05:00
Paul Tagliamonte
90446be352 fixing other broken things 2012-12-31 20:51:18 -05:00
Paul Tagliamonte
d05535a378 index things 2012-12-31 20:47:29 -05:00
Paul Tagliamonte
65a9541928 Close #11 - Decorators exist 2012-12-31 17:45:29 -05:00
Paul Tagliamonte
9fcedceed3 Adding "#!" == comment - Close #23 2012-12-31 15:09:22 -05:00
Paul Tagliamonte
2a36c1e0c3 Close #2 - import-from 2012-12-31 14:50:18 -05:00
Paul Tagliamonte
62c7044f37 Close: #4 - translate - --> _ 2012-12-31 14:32:29 -05:00
Thom Neale
ec1bd2ba1f added function to get timestamp from pyc file 2012-12-29 16:46:43 -05:00
Thom Neale
e0fe362335 Added function to compile file to bytecode...needs hy hackage 2012-12-29 16:32:46 -05:00
Paul Tagliamonte
8bf4b0578c fixing up some kruft 2012-12-28 14:02:02 -05:00
Paul Tagliamonte
34d5d688ba toning down some things 2012-12-28 13:59:24 -05:00
Paul Tagliamonte
54e6c30eff Silly dot-notation thing 2012-12-28 11:19:37 -05:00
Paul Tagliamonte
34b2f2ee5b Revert "adding dot-notation"
This reverts commit a0ea3ffb8f.
2012-12-27 23:44:33 -05:00
Paul Tagliamonte
a0ea3ffb8f adding dot-notation 2012-12-27 23:08:26 -05:00
Paul Tagliamonte
8737ecef65 Close #1 2012-12-27 22:00:00 -05:00
Paul Tagliamonte
ae3c4c357a Adding yielding in 2012-12-25 22:47:29 -05:00
Paul Tagliamonte
37d134b32b dumping the correct file 2012-12-24 05:08:39 +00:00
Paul Tagliamonte
5defd2df9f things for python3 2012-12-23 17:45:24 -05:00
Paul Tagliamonte
7a8288632b blasting kruft 2012-12-23 14:06:00 -05:00
Paul Tagliamonte
71dc59a441 hacking with returns again 2012-12-23 14:01:45 -05:00
Paul Tagliamonte
002f103aa0 Update to the importer. 2012-12-23 12:39:33 -05:00
Paul Tagliamonte
93c1f8129d adding in automagic return nonsense 2012-12-23 10:58:27 -05:00
Paul Tagliamonte
ffdb3a893a correcting some garbage 2012-12-23 00:09:40 -05:00
Paul Tagliamonte
8a601221fb error message voodoo 2012-12-22 23:34:00 -05:00
Paul Tagliamonte
87b602fc9f m'fn kwargs 2012-12-22 23:07:09 -05:00
Paul Tagliamonte
81820abace using ast rather then native now 2012-12-22 21:56:05 -05:00
Paul Tagliamonte
952ba5811e while loop 2012-12-22 21:47:38 -05:00
Paul Tagliamonte
63a276692a adding in forloop 2012-12-22 21:40:23 -05:00
Paul Tagliamonte
c458fa6a37 maps 2012-12-22 21:31:05 -05:00
Paul Tagliamonte
c953692816 exceptions 2012-12-22 21:23:39 -05:00
Paul Tagliamonte
58e13d40ae pyinterop 2012-12-22 21:21:05 -05:00
Paul Tagliamonte
f7b85cb655 doing the recursive thing 2012-12-22 21:11:28 -05:00
Paul Tagliamonte
5b50ea4907 adding do support 2012-12-22 19:46:10 -05:00
Paul Tagliamonte
b078155661 issues 2012-12-22 19:38:54 -05:00
Paul Tagliamonte
a0842d278a adjusting the logic for neg nums 2012-12-22 17:50:38 -05:00
Paul Tagliamonte
1dba233118 adding more ops 2012-12-22 17:15:46 -05:00
Paul Tagliamonte
412e42a43e adding comparitors 2012-12-22 17:08:02 -05:00