Commit Graph

113 Commits

Author SHA1 Message Date
Kayne Ruse
e946a5f071 Patched segault in parser 2023-02-09 12:37:18 +00:00
Kayne Ruse
fc67d6a18b Fixed a segfault 2023-02-09 08:24:16 +00:00
Kayne Ruse
60908c8bf3 Added panic state to Toy_Compiler to catch a certain condition 2023-02-09 07:58:55 +00:00
Kayne Ruse
b8e3324acb tweak 2023-02-07 18:32:59 +00:00
Kayne Ruse
0fc8183799 Added _reduce 2023-02-06 09:46:20 +00:00
Kayne Ruse
0d7e4db661 Fixed repl bug 2023-02-06 04:47:30 +00:00
Kayne Ruse
c875ae7a0e Added _forEach and _map, added tests for them 2023-02-06 00:51:07 +00:00
Kayne Ruse
c0ec5ef28e Tested _concat() with clashing dict keys 2023-02-05 22:46:00 +00:00
Kayne Ruse
3088c4fe6d Implemented _concat 2023-02-05 20:45:31 +00:00
Kayne Ruse
9bd0cd23e7 Imported an example file for bytecode size testing, see #21 2023-02-05 15:40:17 +00:00
Kayne Ruse
60225b733b Added _getKeys() and _getValues() 2023-02-05 12:49:12 +00:00
Kayne Ruse
7b26527e95 Nesting index multiplication assignment fixed
This affects all arithmetic types applied to inner-nested compounds.
2023-02-05 06:28:24 +00:00
Kayne Ruse
386201b6e9 Added fib-memo.toy, fixed bugs until it worked 2023-02-04 17:01:58 +00:00
Kayne Ruse
fcd1cdf70b Added a few characters that can be escaped 2023-01-31 12:37:18 +00:00
Kayne Ruse
ae1dc5841e Added ternary operator, resolved #46 2023-01-14 10:24:15 +00:00
Kayne Ruse
8009f410a4 Added mustfail test, fixed compound type decl bug 2023-01-08 12:43:25 +00:00
Kayne Ruse
584fb115b6 Fixed the awful rule110 implementation 2022-11-28 16:48:45 +00:00
Kayne Ruse
fa20763c07 Corrected negative timers 2022-11-12 11:30:24 +00:00
Kayne Ruse
2c143a8be5 Moved tests from scripts/ to test/scripts/ 2022-11-11 14:51:47 +00:00
Kayne Ruse
0aa6e4063b Spotted a scope issue in the test 2022-11-08 20:22:20 +00:00
Kayne Ruse
ec39f099ca Wrote failing TDD test for timer library, not enabled 2022-11-08 19:40:21 +00:00
Kayne Ruse
0c8e036de8 Added vscode syntax highlighting under /tools 2022-11-07 09:44:26 +00:00
Kayne Ruse
5d240f85a6 BUGFIX: chained calls not being dottified 2022-11-04 11:13:40 +01:00
Kayne Ruse
cceefa6375 Resolved #38 2022-11-03 16:25:29 +01:00
Kayne Ruse
1baa65cc95 Removed annoying assertion test messages from test output 2022-10-19 23:34:15 +01:00
Kayne Ruse
78ce3bdb99 Added to a test 2022-10-16 10:35:44 +01:00
Kayne Ruse
bd348abf32 Added dot chaining for functions
Well, it should work without issues...
2022-10-14 23:58:15 +01:00
Kayne Ruse
bd4ab2aa04 Added the opaque keyword 2022-10-03 21:32:09 +01:00
Kayne Ruse
ca24c4f211 Added the opaque data type 2022-10-03 21:02:13 +01:00
Kayne Ruse
256538e1f9 Added a utility to call toy functions from C 2022-10-01 13:51:40 +01:00
Kayne Ruse
aa44d5fd43 Added aliasing of standard as a feature of standard 2022-09-24 07:20:26 +01:00
Kayne Ruse
64cc514171 Expanded the tests a little 2022-09-18 07:03:18 +01:00
Kayne Ruse
978e7cfac4 wrote a simple test for libs 2022-09-18 06:52:00 +01:00
Kayne Ruse
29b1c41064 Implemented #27, easy coercion from int to float 2022-09-14 16:30:54 +01:00
Kayne Ruse
a7ca6d23d7 Reviewed the spec, fixed some bugs 2022-09-10 14:11:13 +01:00
Kayne Ruse
4b99ce2fb6 Fixed nested assignment bug 2022-09-09 17:55:23 +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
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
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