Commit Graph

109 Commits

Author SHA1 Message Date
Add00
81fe278c96 Added partial cos and sine implementations 2023-07-31 19:02:55 -04:00
Add00
027d093e21 Added math constants for pi and e 2023-07-31 13:56:06 -04:00
Add00
2eaf7fc71a Merge branch 'main' of https://github.com/Add00/Toy 2023-07-31 13:16:01 -04:00
Add00
c43310f316 Code clean up 2023-07-31 13:13:10 -04:00
Add00
6e07c5f2f4 Merge branch 'Ratstail91:main' into main 2023-07-31 13:11:06 -04:00
Add00
5317a12383 Added radian and degree conversion functions. 2023-07-30 23:17:43 -04:00
Ratstail91
35bfa1b9f1 Tweak, these were annoying me 2023-07-31 12:06:04 +10:00
Kayne Ruse
7f692b4cb4 Renamed the about library to toy_version_info library, resovled #81 2023-07-31 11:15:10 +10:00
Kayne Ruse
0cef0abdb5 Adjusted the layout of nativeClamp() and nativeLerp(), thanks Add00! 2023-07-31 04:51:40 +10:00
Add00
3cb62274c9 Fixed merge issue 2023-07-30 13:21:42 -04:00
Add00
70b2dcd829 Added clamp and lerp functions to standard library 2023-07-30 13:15:39 -04:00
Kayne Ruse
4137935468 Added sign() and normalize() to standard lib 2023-07-30 17:46:00 +10:00
Ratstail91
3b7d2be87e Discovered and fixed a misplaced macro 2023-07-26 01:44:15 +10:00
Kayne Ruse
fa175203c9 Tweaked docs 2023-07-26 01:08:54 +10:00
Kayne Ruse
b4a3e9b42b Renamed drive system files, see #88 2023-07-26 00:53:41 +10:00
Kayne Ruse
6347778ead Moved drive system to repl, resolved #88 2023-07-26 00:46:47 +10:00
Kayne Ruse
ba98624e82 Fixed C-API function name, resolved #87, thanks @hiperiondev 2023-07-26 00:22:45 +10:00
Kayne Ruse
29c130135c Tweak 2023-07-23 18:34:52 +10:00
Kayne Ruse
01eca37560 Comment tweak 2023-07-22 19:14:33 +10:00
Kayne Ruse
8e5ec7d847 Tweaked docs in repl_tools.h and toy.h 2023-07-22 19:11:45 +10:00
Kayne Ruse
1ec0f63f76 Removed unneeded safties from the libs
I missed removing these before, and I haven't needed these in a long time.
2023-07-21 04:25:36 +10:00
Kayne Ruse
67fce427eb Added an initial sorted test to the sort() function 2023-06-13 08:17:42 +10:00
Kayne Ruse
8a2cb61435 Made quicksort on mostly-sorted arrays more efficient 2023-06-13 07:28:54 +10:00
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
Ratstail91
efc1e764d2 Patched a casting error in round 2023-02-27 23:27:11 +11:00
Kayne Ruse
348b7b8c24 Added some math utils to standard
* ceil
* floor
* max
* min
* round
2023-02-27 21:32:31 +11:00
Ratstail91
e9b347acb6 MSVC + Box Engine are dumber than a bag of rocks 2023-02-25 04:40:12 +11:00
Kayne Ruse
92c71a374d Implemented a basic random library 2023-02-23 19:19:17 +11:00
Kayne Ruse
3e6d21afbb Added abs(), hash() to libstandard 2023-02-23 18:36:12 +11: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
6fa224fa7b Hooks can't be dict keys, tweaked Toy_readFile 2023-02-18 16:47:38 +00:00
Kayne Ruse
49f240ea07 Minor tweak 2023-02-18 12:15:23 +00:00
Kayne Ruse
2adb9d9158 Tweaked lib runner API 2023-02-16 22:04:47 +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
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
eb8e522bf2 Merged standard and timer, resolved #48 2023-02-13 13:58:41 +00:00
Kayne Ruse
16b71ba6f4 Implemented quicksort in _sort() 2023-02-13 13:31:58 +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
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