Commit Graph

68 Commits

Author SHA1 Message Date
Kayne Ruse
8653a2663f Added _indexOf 2023-02-12 14:32:26 +00:00
Kayne Ruse
ab2cd5dc93 Removed lib timer properly, see #62 2023-02-12 14:19:14 +00:00
Kayne Ruse
724804a78a Playing with level.toy 2023-02-11 15:27:23 +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
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
53012dbce1 Added _filter() 2023-02-10 15:41:38 +00:00
Kayne Ruse
4fe57f9562 Added _containsKey() and _containsValue() 2023-02-10 15:27:39 +00:00
Kayne Ruse
3ba2e420ea Added _every() and _some() 2023-02-10 15:00:15 +00:00
Kayne Ruse
66ea684a90 Disabled comments in the repl 2023-02-10 12:11:42 +00:00
Kayne Ruse
ee226ea426 Strengthened constness for cstrings and bytecode 2023-02-10 08:52:38 +00:00
Kayne Ruse
0fc8183799 Added _reduce 2023-02-06 09:46:20 +00:00
Kayne Ruse
9a6aa8d15e Added _trimBegin() and _trimEnd() 2023-02-06 06:11:17 +00:00
Kayne Ruse
0d7e4db661 Fixed repl bug 2023-02-06 04:47:30 +00:00
Kayne Ruse
d5c833b344 I wish I could test on windows 2023-02-06 01:05:44 +00:00
Kayne Ruse
c875ae7a0e Added _forEach and _map, added tests for them 2023-02-06 00:51:07 +00:00
Kayne Ruse
be91de9535 Fixed a leak 2023-02-05 20:46:55 +00:00
Kayne Ruse
3088c4fe6d Implemented _concat 2023-02-05 20:45:31 +00:00
Kayne Ruse
7ea249f723 Added the about library, resolved #51 2023-02-05 14:43:46 +00:00
Kayne Ruse
3949be3706 Quick potential bugfix 2023-02-05 13:34:39 +00:00
Kayne Ruse
0e932f24cc Added _toString() 2023-02-05 13:29:44 +00:00
Kayne Ruse
60225b733b Added _getKeys() and _getValues() 2023-02-05 12:49:12 +00:00
Kayne Ruse
8d278077b1 Added constant folding for strings, tweaked some error messages 2023-02-04 09:50:29 +00:00
Kayne Ruse
e265038547 Tested custom char trims 2023-01-29 08:38:26 +00:00
Kayne Ruse
a357e0b0d4 Implemented _trim() 2023-01-29 08:30:31 +00:00
Kayne Ruse
2c5e3c6aa5 Started working on compound library 2023-01-29 07:23:52 +00:00
Kayne Ruse
ebbcba1b16 Enabled -std=c18 -pedantic, fixed all resulting errors
Thanks @gyrovorbis
2023-01-28 08:54:46 +00:00
Kayne Ruse
f4469fc53d Removed file extension guard 2023-01-27 07:03:36 +00:00
Kayne Ruse
c86c5800a7 Moved guard 2023-01-27 06:31:13 +00:00
Kayne Ruse
e4d843ad3a Type check 2023-01-27 06:16:39 +00:00
Kayne Ruse
6667bce3d7 Finally fixed the buffer
I suppose valgrind, et. al. complaining is a good thing, overall.
2023-01-27 06:01:05 +00:00
Kayne Ruse
50b07da188 Put the clear BEFORE the return 2023-01-27 05:56:23 +00:00
Kayne Ruse
708db75760 Forgot to free this buffer 2023-01-27 05:53:35 +00:00
Kayne Ruse
b632ce77ba Moved drive to filepath code into a function 2023-01-27 05:49:14 +00:00
Kayne Ruse
9b21bfb53b Missed a rename 2023-01-25 13:54:28 +00:00
Kayne Ruse
2e2bee4fa3 Renemed all variables to fit into a namespace
Basically, all Toy varaibles, functions, etc. are prepended with "Toy_",
and macros are prepended with "TOY_". This is to reduce namespace
pollution, which was an issue pointed out to be - blame @GyroVorbis.

I've also bumped the minor version number - theoretically I should bump
the major number, but I'm not quite ready for 1.0 yet.
2023-01-25 12:55:55 +00:00
Kayne Ruse
59b0d15915 Fixed a pattern with parsing identifiers 2023-01-23 21:19:51 +00:00
Kayne Ruse
df85d30553 Added loadScriptBytecode() 2023-01-21 04:27:01 +00:00
Kayne Ruse
d57fca474f Fixed memory leak 2023-01-20 23:09:01 +00:00
Kayne Ruse
69f5151310 Finished runner library 2023-01-20 23:03:00 +00:00
Kayne Ruse
c47ee68b3f Don't use the runner lib yet - will finish in the morning 2023-01-20 13:59:28 +00:00
Kayne Ruse
2c06c5e38b BUGFIX: Buffer overflow 2023-01-20 13:56:07 +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
0649a141dd Moved time header includes, comment tweaks 2023-01-13 15:39:22 +00:00
Kayne Ruse
584fb115b6 Fixed the awful rule110 implementation 2022-11-28 16:48:45 +00:00
Kayne Ruse
fb55f42d0e Tweaked where strlen() is called 2022-11-26 15:53:07 +00:00
Kayne Ruse
cfafba589b All tests passing, repl builds successfully 2022-11-26 09:53:59 +00:00
Kayne Ruse
0b57f7efe7 Added release build targets, because bored 2022-11-16 22:05:47 +00:00