Commit Graph

290 Commits

Author SHA1 Message Date
Ratstail91
669808730e Minor tweak that shouldn't break anything 2023-03-04 22:57:41 +11:00
Ratstail91
e6d9809da5 Famous last words: I think I fixed it 2023-03-04 22:18:17 +11:00
Ratstail91
502032e514 Testing an obscure bugfix 2023-03-04 15:41:55 +11:00
Ratstail91
70ca27486e Bugfix a leak? 2023-02-28 17:37:43 +11:00
Ratstail91
12fa434e0f Experimenting with cleaning up loopy code 2023-02-28 17:29:37 +11:00
Kayne Ruse
c5c0122243 BUGFIX: typeof keyword precedence was off 2023-02-27 21:47:38 +11:00
Kayne Ruse
e243ad949a Removed a divide instruction (modulo) from the final output, thanks Wren! 2023-02-26 22:41:58 +11:00
Ratstail91
9b673f23ad Reduced C callstack size in Toy_Scope 2023-02-26 22:31:37 +11:00
Kayne Ruse
624a0c80ba Prevented NO-OP calls to the memory allocator
Also shaved off about 1-2 milliseconds of execution time of fib-memo.toy
2023-02-26 21:20:22 +11:00
Ratstail91
1064b69d04 BUGFIX: Integer and float comparisons always return true 2023-02-26 01:27:21 +11:00
Ratstail91
3aeddff736 Tweaks to dictionary for performance 2023-02-24 22:13:50 +11:00
Kayne Ruse
1dde9d8f29 Improved error message in set() and push()
The actual issue was that the type check wasn't catching the issue, so
it reached the scope before it was caught. Fixed it, anyway.
2023-02-20 13:04:35 +00:00
Kayne Ruse
7f0f17b6e0 Patched up failures from Toy_parseIdentifierToValue
I really don't like that function - it needs to be replaced.
2023-02-20 06:11:30 +00:00
Kayne Ruse
3507104121 Fixed indexAccess potentially going awry with bad inputs
There's always one or two that slip through
2023-02-20 05:28:25 +00:00
Kayne Ruse
87de634e30 Updated version number to 1.0.0 2023-02-20 02:08:42 +00:00
Kayne Ruse
6fa224fa7b Hooks can't be dict keys, tweaked Toy_readFile 2023-02-18 16:47:38 +00:00
Kayne Ruse
8a68d864e6 Opaque type check added 2023-02-18 15:21:49 +00:00
Kayne Ruse
49f240ea07 Minor tweak 2023-02-18 12:15:23 +00:00
Kayne Ruse
6f126e6daa Minor tweaks and renames, as I'm documenting 2023-02-18 11:56:18 +00:00
Kayne Ruse
1668dca255 Tweaked some APIs, hid some functions I don't want in the API 2023-02-16 13:06:07 +00:00
Kayne Ruse
cdae03bd54 String and identifier making fixed for MSVC, just in case 2023-02-14 17:38:10 +00:00
Kayne Ruse
7b501b71b5 commandLine now initializes with default values 2023-02-14 17:00:16 +00:00
Kayne Ruse
453afbab41 Fixed a stupid bug in MSVC 2023-02-14 10:24:43 +00:00
Kayne Ruse
0737b2a483 Dropped underscore functions in favour of UFCS 2023-02-14 08:37:31 +00:00
Kayne Ruse
eae96d6403 Corrected the order of arguments to Toy_callLiteralFn() 2023-02-14 08:00:35 +00:00
Kayne Ruse
b55b8e879e Added -n option to diable print newline 2023-02-13 15:51:38 +00:00
Kayne Ruse
1ed114b80d Allow for stmt to have empty clauses, resolved #58 2023-02-13 14:45:24 +00:00
Kayne Ruse
9725f3c6a3 Patched some very obscure bugs 2023-02-12 16:54:44 +00:00
Kayne Ruse
8653a2663f Added _indexOf 2023-02-12 14:32:26 +00:00
Kayne Ruse
77a128e0f7 Added the -t option to the repl 2023-02-11 14:51:19 +00:00
Kayne Ruse
5343e1054d Straightened out file extensions 2023-02-11 14:26:55 +00:00
Kayne Ruse
996744d7ec Resolved #59 2023-02-11 05:10:32 +00:00
Kayne Ruse
c00b32017b Dummied out lib timer 2023-02-11 01:42:44 +00:00
Kayne Ruse
457014d577 Added MSVC build support, likely broke tests 2023-02-11 00:49:21 +00:00
Kayne Ruse
be4cbf1ad6 Pack 'em up! 2023-02-10 21:53:38 +00:00
Kayne Ruse
aeb008c684 Fixed unary negation bug, removed newline from print 2023-02-10 18:38:25 +00:00
Kayne Ruse
3ba2e420ea Added _every() and _some() 2023-02-10 15:00:15 +00:00
Kayne Ruse
c81a139c97 Now handles unterminated block comments without freezing 2023-02-10 12:26:38 +00:00
Kayne Ruse
66ea684a90 Disabled comments in the repl 2023-02-10 12:11:42 +00:00
Kayne Ruse
a26a6a56d0 Patched a pre/postfix increment/decrement segfault 2023-02-10 11:49:59 +00:00
Kayne Ruse
ee226ea426 Strengthened constness for cstrings and bytecode 2023-02-10 08:52:38 +00:00
Kayne Ruse
76a0290290 Removed export keyword from README.md 2023-02-09 17:46:28 +00:00
Kayne Ruse
e8160eb9df Fixed string indexing with null 2023-02-09 16:46:36 +00:00
Kayne Ruse
276648630e trying to uncluster-bomb the builtin functions 2023-02-09 16:12:42 +00:00
Kayne Ruse
e946a5f071 Patched segault in parser 2023-02-09 12:37:18 +00:00
Kayne Ruse
932401c26d Can now correctly parse escaped characters 2023-02-09 08:44:08 +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
0b9051cab2 Experimenting with numbers 2023-02-06 05:37:41 +00:00