Commit Graph

965 Commits

Author SHA1 Message Date
Matt Fenwick a264b81e57 test case for lexing a lone string 2013-01-25 14:53:23 +01: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 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 03f25f0cbe updating tests 2012-12-15 18:38:34 -05:00
Paul Tagliamonte a8c17db048 more list tests 2012-12-15 18:24:40 -05:00
Paul Tagliamonte 11fe591d38 testing thinger 2012-12-15 18:24:06 -05:00
Paul Tagliamonte 5975f2c8d6 Adding lists to the lexable things 2012-12-15 18:20:15 -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
Paul Tagliamonte 457d84e3f7 Adding in better tests & a fix. 2012-12-15 17:31:23 -05:00
Paul Tagliamonte d9b6fe7d79 Adding in some lexer testing. 2012-12-15 17:22:14 -05:00