Commit Graph

230 Commits

Author SHA1 Message Date
Kayne Ruse
0f6be5ead7 Can no longer use functions as dictionary keys 2022-09-11 13:36:59 +01:00
Kayne Ruse
2d171dd664 Bad mood 2022-09-11 09:12:12 +01:00
Kayne Ruse
acb5cc90a9 I can't get the shared lib to build on linux 2022-09-11 18:01:02 +10:00
Kayne Ruse
95ba865cab Packaged toy as a dll 2022-09-11 07:56:06 +01:00
Kayne Ruse
5b420e0799 Changed how parseCompountToPureValue() is called 2022-09-11 05:51:25 +01:00
Kayne Ruse
cbc937884e Found a rare lexer bug 2022-09-10 19:11:16 +01:00
Kayne Ruse
60ddd151a6 Patched a leak 2022-09-10 23:14:47 +10:00
Kayne Ruse
a7ca6d23d7 Reviewed the spec, fixed some bugs 2022-09-10 14:11:13 +01:00
Kayne Ruse
d3c085c300 Added an out-of-bounds check 2022-09-09 19:52:36 +01:00
Kayne Ruse
f2443fbde0 Moved type checking into the type checking function 2022-09-09 19:39:05 +01:00
Kayne Ruse
22d0fe596a Tweaked depth check, Resolved #23 2022-09-09 18:10:45 +01:00
Kayne Ruse
4b99ce2fb6 Fixed nested assignment bug 2022-09-09 17:55:23 +01:00
Kayne Ruse
f8747d8707 Tried speeding it up, didn't really work 2022-09-08 09:44:45 +01:00
Kayne Ruse
a0ea0f7f31 More subtle bugfixes 2022-09-08 05:42:39 +01:00
Kayne Ruse
5861602f23 changed dot operator to access global functions 2022-09-08 01:18:20 +01:00
Kayne Ruse
8550f3141c Fixed bounds error 2022-09-08 04:43:39 +10:00
Kayne Ruse
8d8928438d How did I forget something so basic? 2022-09-07 19:32:43 +01:00
Kayne Ruse
28b1b8e2cc Depth check 2022-09-07 19:00:24 +01:00
Kayne Ruse
9a55ff221a Fixed some indexing bugs 2022-09-07 18:43:32 +01:00
Kayne Ruse
8f61575579 Added to a test 2022-09-07 15:05:46 +01:00
Kayne Ruse
23fdec541d Changed my mind about oftype/typeof 2022-09-07 15:02:17 +01:00
Kayne Ruse
4137b7f057 switched typeof for oftype, switched typeas for astype 2022-09-07 14:47:57 +01:00
Kayne Ruse
6c71a16e3e Fixed type variable evaluation, it now occurs at var definition 2022-09-07 14:21:40 +01:00
Kayne Ruse
6511d652f2 It's bloody never-ending 2022-09-06 20:43:45 +10:00
Kayne Ruse
39af340fbc It's done for now 2022-09-06 10:49:22 +01:00
Kayne Ruse
63a7231254 TWO BYTES 2022-09-06 18:59:25 +10:00
Kayne Ruse
d97fd3fc22 More of a sprinkle than a leak 2022-09-06 09:50:14 +01:00
Kayne Ruse
893e435023 Cleaned some leaks 2022-09-06 09:38:02 +01:00
Kayne Ruse
17f1dc8647 cleaning up tests 2022-09-06 09:22:50 +01:00
Kayne Ruse
b8f20add66 Finished slice and dot notation, needs a lot of testing 2022-09-06 06:46:50 +01:00
Kayne Ruse
304e1a5fb0 Plumbing for index and dot notations is working 2022-09-05 17:43:42 +01:00
Kayne Ruse
82c03ecb33 Added the typeas keyword to avoid ambiguity 2022-09-05 12:24:42 +01:00
Kayne Ruse
3d8871abe1 Fixed a segfault 2022-09-05 11:23:31 +01:00
Kayne Ruse
2aecf6e8a1 Implemented typeof and added resetInterpreter() 2022-09-05 10:56:35 +01:00
Kayne Ruse
2a3206d951 Rearranged some internal initialization to support multiple files being run 2022-09-05 09:55:04 +01:00
Kayne Ruse
f80709ae41 Solved a function scope issue 2022-09-05 16:39:09 +10:00
Kayne Ruse
33302ef318 Another leak 2022-09-05 06:53:53 +01:00
Kayne Ruse
9ce5f6e67e Missed a memory leak 2022-09-05 06:40:48 +01:00
Kayne Ruse
7fb9ebbce0 Import and export are working 2022-09-05 06:39:05 +01:00
Kayne Ruse
dceb83e618 Suppressed print statements during tests 2022-09-05 05:30:06 +01:00
Kayne Ruse
fb1ac71f42 Resolved #18 2022-09-05 03:35:17 +01:00
Kayne Ruse
54aacff26e Missed a couple 2022-09-04 15:29:57 +01:00
Kayne Ruse
ae270008b0 Added errorOutput to interpreter, moved builtin functions to their own file 2022-09-04 15:15:30 +01:00
Kayne Ruse
22af1edb1d So apparently, casting doens't need parens 2022-09-04 14:08:42 +01:00
Kayne Ruse
ac35a859e0 Fixed a leak 2022-09-04 20:23:50 +10:00
Kayne Ruse
cc27da50df Reworked dot.toy into a proper test 2022-09-04 10:37:19 +01:00
Kayne Ruse
6787cfff55 Tested matrix manipulation 2022-09-04 10:27:16 +01:00
Kayne Ruse
36154b25ac Changed dict type syntax to using a colon instead of a comma 2022-09-04 09:01:09 +01:00
Kayne Ruse
d12ad4f60d Fixed codeStart issue 2022-09-04 08:51:19 +01:00
Kayne Ruse
86061cb74e Fixed an argument list bug, found a casting bug 2022-09-03 16:04:18 +01:00