Commit Graph

80 Commits

Author SHA1 Message Date
Kayne Ruse
69f5151310 Finished runner library 2023-01-20 23:03:00 +00:00
Kayne Ruse
e6e24ca19f Began working on runner library 2023-01-20 13:42:45 +00:00
Kayne Ruse
68ed39fc45 Began working on a few bugs, thanks /u/skeeto! 2023-01-16 09:06:35 +00:00
Kayne Ruse
aeecfabbbc Null pointer exceptions in parser unary function 2023-01-15 18:15:59 +00:00
Kayne Ruse
51740e2b9e Resolved #25, Indexing an array with a non-integer causes an error 2023-01-15 15:09:01 +00:00
Kayne Ruse
ae1dc5841e Added ternary operator, resolved #46 2023-01-14 10:24:15 +00:00
Kayne Ruse
3498baad9b Resolved #45, Exports region removed 2023-01-13 16:12:44 +00:00
Kayne Ruse
08b400debf Added dictionary key mustfail test 2023-01-08 12:58:02 +00:00
Kayne Ruse
9ad2a6cf2e Tweaked build message 2023-01-08 23:46:04 +11:00
Kayne Ruse
8009f410a4 Added mustfail test, fixed compound type decl bug 2023-01-08 12:43:25 +00:00
Kayne Ruse
cfafba589b All tests passing, repl builds successfully 2022-11-26 09:53:59 +00:00
Kayne Ruse
f6367fa89d Updated interpreter 2022-11-26 09:43:19 +00:00
Kayne Ruse
d199209772 Updated compiler 2022-11-26 06:58:38 +00:00
Kayne Ruse
4cf5c6a5bf Updated parser 2022-11-26 01:59:37 +00:00
Kayne Ruse
30c3a890ee Adjusted how AST Nodes are generated 2022-11-25 12:29:35 +00:00
Kayne Ruse
130ac980fe Enabled lexer tests 2022-11-23 13:02:43 +00:00
Kayne Ruse
923cf70c06 Minimal build of the refstrings in the literal structure 2022-11-23 12:52:49 +00:00
Kayne Ruse
4518b59417 Added custom allocator support 2022-11-19 08:18:45 +00:00
Kayne Ruse
fa20763c07 Corrected negative timers 2022-11-12 11:30:24 +00:00
Kayne Ruse
2d18ff4ba3 Fixed some printf formats in the tests 2022-11-12 03:26:14 +00:00
Kayne Ruse
30b068fcdb Fixed timer issues, tests should pass
Reduced test duration by a factor of 11,000. Don't ask.

Also, something funny is going on with the time headers, so I
stuck them into source/toy_common.h, I'll figure it out later.
2022-11-12 04:45:35 +11:00
Kayne Ruse
e0ab4106fa Implemented the timer library 2022-11-11 17:18:07 +00:00
Kayne Ruse
2c143a8be5 Moved tests from scripts/ to test/scripts/ 2022-11-11 14:51:47 +00:00
Kayne Ruse
ec39f099ca Wrote failing TDD test for timer library, not enabled 2022-11-08 19:40:21 +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
bd348abf32 Added dot chaining for functions
Well, it should work without issues...
2022-10-14 23:58:15 +01:00
Kayne Ruse
5686677383 Added tags to opaque data type 2022-10-03 22:13:56 +01:00
Kayne Ruse
8ce7dd0d95 typo = memory leak 2022-10-04 07:04:44 +11:00
Kayne Ruse
ca24c4f211 Added the opaque data type 2022-10-03 21:02:13 +01:00
Kayne Ruse
016ab9c5fe Fixed the tests 2022-10-03 20:24:19 +01:00
Kayne Ruse
99bcffe77c Typo in a comment 2022-10-02 16:22:30 +11:00
Kayne Ruse
50cc5ca270 Plugged memory leaks in the test 2022-10-01 23:00:16 +10: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
6a086395be Renamed Node to ASTNode 2022-09-18 19:14:37 +01:00
Kayne Ruse
c680427b1e Tweaked a build var name 2022-09-18 07:26:23 +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
4137b7f057 switched typeof for oftype, switched typeas for astype 2022-09-07 14:47:57 +01:00
Kayne Ruse
17f1dc8647 cleaning up tests 2022-09-06 09:22:50 +01:00
Kayne Ruse
82c03ecb33 Added the typeas keyword to avoid ambiguity 2022-09-05 12:24:42 +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
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
cc27da50df Reworked dot.toy into a proper test 2022-09-04 10:37:19 +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