Commit Graph

27 Commits

Author SHA1 Message Date
Pekka Laiho
60726f0923 Optimization: read astData to memory instead of calling get() many times in eval 2020-12-03 17:27:26 +07:00
Pekka Laiho
3c9885c7f9 Optimization: read ast length to variable in eval 2020-12-03 10:18:22 +07:00
Pekka Laiho
a86fd77b45 Optimization: read symbol name to variable in eval 2020-12-03 10:08:11 +07:00
Pekka Laiho
2f48754902 add special constants __FILE__ and __DIR__ 2020-10-24 12:27:28 +07:00
Pekka Laiho
37ad2ec0bf support for command line arguments 2020-06-10 20:40:15 +07:00
Pekka Laiho
aa71b4da36 debugging support for eval 2020-06-06 21:02:02 +07:00
Pekka Laiho
7348ec3229 load and eval in correct env 2020-06-06 15:31:09 +07:00
Pekka Laiho
fae099d659 error function, loadf function 2020-06-06 09:39:12 +07:00
Pekka Laiho
18277d9566 optimize: remove array_map 2020-06-05 15:55:38 +07:00
Pekka Laiho
7331cbe874 tail call optimization for function calls 2020-06-05 15:33:52 +07:00
Pekka Laiho
8cf2dbeeec tco for case 2020-06-04 21:39:26 +07:00
Pekka Laiho
cb1a03e9bd start tail call optimization 2020-06-04 21:26:00 +07:00
Pekka Laiho
91eba046bc add special form: case 2020-06-04 18:26:26 +07:00
Pekka Laiho
2f6409ce72 special forms and, or 2020-06-04 18:00:30 +07:00
Pekka Laiho
8ec2ad4596 support argument for env 2020-06-04 17:36:01 +07:00
Pekka Laiho
437bf252c5 simplify code 2020-06-04 09:10:48 +07:00
Pekka Laiho
adc9664c69 add 3 new functions for collections 2020-06-03 14:37:04 +07:00
Pekka Laiho
64a7f19b8b functions for collections 2020-06-02 09:51:21 +07:00
Pekka Laiho
cc9fa06117 new classes for functions, not finished 2020-05-31 17:50:29 +07:00
Pekka Laiho
c3c5934c57 fn keyword 2020-05-31 16:35:03 +07:00
Pekka Laiho
9e03179650 add Vector, other improvements 2020-05-31 11:34:24 +07:00
Pekka Laiho
debda2e602 add do 2020-05-30 19:19:37 +07:00
Pekka Laiho
a4182f7d8e add if 2020-05-30 19:02:41 +07:00
Pekka Laiho
01e5c4b198 let and eval 2020-05-30 18:47:54 +07:00
Pekka Laiho
c1224fb66f quote and eval hash 2020-05-28 20:30:37 +07:00
Pekka Laiho
773f195f37 eval according to example 2020-05-28 19:41:41 +07:00
Pekka Laiho
80faff86f5 split code to multiple classes 2020-05-28 17:10:00 +07:00