Commit Graph

30 Commits

Author SHA1 Message Date
Kayne Ruse
763581c73b Added header-only parsing to the repl, read more
Also:

* Ensured TOY_VERSION_BUILD is consistent throughout the whole build
* Updated README.md
2023-06-07 23:55:30 +10:00
Kayne Ruse
e2fa1cf2e8 Moved lib_runner's drive system into the core of the lang 2023-03-15 06:12:35 +11:00
Kayne Ruse
88dac53ae0 Added toy.h, thanks for the suggestion GabrielGavrilov!
Resolved #72
2023-03-10 08:41:58 +11:00
Kayne Ruse
92c71a374d Implemented a basic random library 2023-02-23 19:19:17 +11:00
Kayne Ruse
6fa224fa7b Hooks can't be dict keys, tweaked Toy_readFile 2023-02-18 16:47:38 +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
eb8e522bf2 Merged standard and timer, resolved #48 2023-02-13 13:58:41 +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
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
0d7e4db661 Fixed repl bug 2023-02-06 04:47:30 +00:00
Kayne Ruse
7ea249f723 Added the about library, resolved #51 2023-02-05 14:43:46 +00:00
Kayne Ruse
8d278077b1 Added constant folding for strings, tweaked some error messages 2023-02-04 09:50:29 +00:00
Kayne Ruse
a357e0b0d4 Implemented _trim() 2023-01-29 08:30:31 +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
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
cfafba589b All tests passing, repl builds successfully 2022-11-26 09:53:59 +00:00
Kayne Ruse
ec39f099ca Wrote failing TDD test for timer library, not enabled 2022-11-08 19:40:21 +00:00
Kayne Ruse
8072beb007 Moved repl's tools into their own file 2022-10-03 20:18:06 +01:00
Kayne Ruse
3460967e3b Added API macro to some functions 2022-10-02 00:44:46 +01:00
Kayne Ruse
f745470abe Resolved #31, added exit and quit commands to the repl 2022-09-24 06:41:09 +01:00
Kayne Ruse
6a086395be Renamed Node to ASTNode 2022-09-18 19:14:37 +01:00
Kayne Ruse
9c790f8cd6 Got hooks working 2022-09-17 13:01:09 +01:00