Commit Graph

8 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
f956b75e4e tests, again 2012-12-23 14:02:47 -05:00
Paul Tagliamonte
472da09f51 fixing the tests 2012-12-22 23:09:08 -05:00
Paul Tagliamonte
4f5bc16508 hacking on stuff. 2012-12-18 09:11:42 -05:00
Paul Tagliamonte
0081d4fdfc Updating for numbers 2012-12-16 21:44:14 -05:00
Paul Tagliamonte
0ec30fd75b Hash-maps from the ballroom 2012-12-16 21:09:11 -05:00
Paul Tagliamonte
ec06d6af88 cleanup 2012-12-15 17:47:05 -05:00
Paul Tagliamonte
8f20829b08 adding in test for more stuff. 2012-12-15 17:39:10 -05:00