Commit Graph

531 Commits

Author SHA1 Message Date
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
b9e0084b76 Merge branch 'master' of github.com:paultag/hy 2013-01-04 19:50:02 -05:00
Paul Tagliamonte
e569b7f5aa minor hacks 2013-01-04 19:49:33 -05:00
Paul Tagliamonte
5a710f9be6 doh 2013-01-02 22:06:22 -05:00
Paul Tagliamonte
96a104e060 heheheh 2013-01-02 22:05:14 -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
b9ced37f83 small fixes release 2012-12-31 18:48:51 -05:00
Paul Tagliamonte
4dfb9aff52 deployish 2012-12-31 18:40:27 -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
Paul Tagliamonte
3a708add3b things 2012-12-30 19:35:30 -05:00
Thom Neale
ec1bd2ba1f added function to get timestamp from pyc file 2012-12-29 16:46:43 -05:00
Thom Neale
3662ab1e7b Merge branch 'master' of github.com:paultag/hy 2012-12-29 16:33:00 -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
32eee6d6c1 Tagging 0.7.0 2012-12-29 11:43:56 -05:00
Paul Tagliamonte
5d54fcd158 cleaning up the traceback 2012-12-29 10:56:45 -05:00
Thom Neale
9b770853ae Imported readline in hython 2012-12-28 17:57:16 -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
37aff587b4 delaying pokes while typing 2012-12-27 22:28:06 -05:00
Paul Tagliamonte
3d7c9a68aa things 2012-12-27 22:15:00 -05:00
Paul Tagliamonte
8737ecef65 Close #1 2012-12-27 22:00:00 -05:00
Paul Tagliamonte
177e52c492 foo 2012-12-27 20:17:33 -05:00
Paul Tagliamonte
4433592b5b foo 2012-12-26 23:08:09 -05:00
Paul Tagliamonte
4ae596c0f7 adding a this and that 2012-12-26 22:37:57 -05:00
Paul Tagliamonte
becfcd829a Update to the demo, making this a bit more slick 2012-12-26 18:46:26 -05:00
Paul Tagliamonte
ae3c4c357a Adding yielding in 2012-12-25 22:47:29 -05:00
Paul Tagliamonte
9f5a8393d9 need a graphic designer 2012-12-24 14:38:14 -05:00
Paul Tagliamonte
d97110c665 more 2012-12-24 14:34:32 -05:00
Paul Tagliamonte
b6df6ec946 update demo 2012-12-24 14:06:40 -05:00
Paul Tagliamonte
b9e621fa07 muhaha 2012-12-24 13:41: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
6d66e4e9fe foo 2012-12-23 16:40:35 -05:00
Paul Tagliamonte
c751f4526f author update 2012-12-23 14:11:38 -05:00
Paul Tagliamonte
7a8288632b blasting kruft 2012-12-23 14:06:00 -05:00
Paul Tagliamonte
f956b75e4e tests, again 2012-12-23 14:02:47 -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