Commit Graph

52 Commits (trunk)

Author SHA1 Message Date
alexis c75f7deeb1 Reverse stack order so list builders work properly 2022-05-22 18:16:34 -06:00
alexis 3c010285c2 Add list iteration 2022-05-22 17:39:07 -06:00
alexis 87da138c8e Clean up use of unnamed locals 2022-05-22 17:25:11 -06:00
alexis 37587527bb Fix early frees when the GC runs aggressively 2022-05-22 16:58:06 -06:00
alexis 1613761095 Add lists 2022-05-22 16:43:00 -06:00
alexis 4b2aac2a13 Add for step 2022-05-22 16:05:52 -06:00
alexis 35cd0fe790 Fix token splitting of e.g. 1- into 1 - 2022-05-22 15:39:54 -06:00
alexis 41dc6d4549 Catch empty integers 2022-05-22 15:34:31 -06:00
alexis 477e150aa4 Fix early real free 2022-05-22 15:29:34 -06:00
alexis 82f6d06070 MPD arith needs to go through a temporary 2022-05-22 15:24:53 -06:00
alexis 24cf103932 Properly overwrite locals 2022-05-22 15:19:07 -06:00
alexis cd1b638edd foreach 2022-05-22 14:35:17 -06:00
alexis 31028cf356 Add for, and fix several bugs 2022-05-22 14:09:31 -06:00
alexis c4e3f2360f Control flow refactor 2022-05-22 13:12:43 -06:00
alexis aa28c9f840 Add local variables 2022-05-22 13:00:05 -06:00
alexis 77101280d5 Allow distinguishing whitespace with newline 2022-05-22 11:43:29 -06:00
alexis ffc9b8b54b Add while 2022-05-22 11:37:48 -06:00
alexis 06f778bd6c Allow embedding the condition 2022-05-22 11:24:08 -06:00
alexis 8cbfd89e09 Basic conditional 2022-05-22 11:12:23 -06:00
alexis bf055996f4 Get rid of the return value on natives 2022-05-22 10:14:20 -06:00
alexis fac9b3c255 Keep builtins defined in flash to save ram 2022-05-22 10:09:29 -06:00
alexis 167864ab72 Smaller lists, share the recycle bin 2022-05-22 07:21:48 -06:00
alexis 773c0e00d4 Avoid use-after-free with scopes 2022-05-21 21:43:06 -06:00
alexis 5c069f3b21 float in test code 2022-05-21 21:42:57 -06:00
alexis 1dcb4328eb Fix some memory accounting 2022-05-21 21:00:05 -06:00
alexis 9c2ca12b71 Fix some memory issues 2022-05-21 20:44:41 -06:00
alexis d6868a82b6 Add real arithmetic 2022-05-21 20:12:23 -06:00
alexis 4c1eb59971 Use 32-bit ints 2022-05-21 20:00:30 -06:00
alexis 54f87c1a87 Fully GC reals 2022-05-21 19:55:51 -06:00
alexis bc7c0a62a7 Drop the list tester 2022-05-21 19:29:06 -06:00
alexis 8962e83fcc Get rid of arl_t 2022-05-21 19:28:28 -06:00
alexis bec5040b4f Create and parse reals 2022-05-21 18:34:52 -06:00
alexis 3cba105c6e Add libmpdec 2022-05-21 17:52:23 -06:00
alexis 4aadea5788 Implement all stack builtins 2022-05-21 16:27:45 -06:00
alexis fe3a912271 Implement drop, dup 2022-05-21 14:38:03 -06:00
alexis af9b26d3d4 Allow strings on stack 2022-05-21 14:05:49 -06:00
alexis 1c54a539f8 GC on OOM 2022-05-21 13:39:01 -06:00
alexis 949f3525f1 No memory leaks :) 2022-05-21 13:37:01 -06:00
alexis 979b5595bd Allow defining functions 2022-05-21 13:21:21 -06:00
alexis 14d907b960 Some builtins! 2022-05-21 12:09:05 -06:00
alexis cb7075ce87 Add c-rbtree 2022-05-21 11:21:08 -06:00
alexis bafa6e3cc5 We can run code! 2022-05-21 11:09:03 -06:00
alexis 21e91cc5d7 We...may be able to run code now (probably not) 2022-05-21 10:58:54 -06:00
alexis 19c0b79bf3 Better memory model 2022-05-21 10:26:23 -06:00
alexis 29f95c0ff5 String stuff getting ready for the interpreter 2022-05-18 22:19:06 -06:00
alexis 912a5c99ad Don't track line and column 2022-05-18 21:50:20 -06:00
alexis 12f44d64db Initial scope obj 2022-05-18 21:41:34 -06:00
alexis fe57049fb0 Bit of cleanup 2022-05-17 22:50:46 -06:00
alexis 2f0549ff4b We have lists now 2022-05-17 22:46:15 -06:00
alexis c7f26c27ec Better error for invalid definitions 2022-05-16 22:05:14 -06:00