Commit Graph

519 Commits

Author SHA1 Message Date
hiperiondev
1e11e9eea7 Start independent code from PC zero. Add hierarchical notation for function index. Add guard for end literals. Some presentation formats. 2023-08-14 14:46:07 -03:00
Kayne Ruse
cce8ae1ea3 Added disassembler, thanks @hiperiondev, bumped minor version v1.3.0 2023-08-14 23:06:05 +10:00
Kayne Ruse
ce54912232 Removed an extra pair of SCOPE_BEGIN and SCOPE_END from function bytecode
This should reduce the memory footprint a bit
2023-08-14 22:17:33 +10:00
Kayne Ruse
23b55fc360 Fixed execFnDecl accidentally modifying the literalCache for a moment, resolved #105 2023-08-14 10:47:10 +10:00
Kayne Ruse
62fe86f99b Fixed indexing in argument lists, resolved #102 2023-08-09 02:25:07 +10:00
Ratstail91
401de578a5 Short circuitable operators are extremely loose 2023-08-06 04:53:46 +10:00
Kayne Ruse
fb4258f9df Fixed broken test 2023-08-06 04:38:55 +10:00
Ratstail91
f885fdaf4c Short circuits are now functioning correctly, resolved #73 2023-08-06 04:28:02 +10:00
Kayne Ruse
cfec1b6911 Added int to float coercions to function args and returns, when specified 2023-08-06 02:17:32 +10:00
Kayne Ruse
a63bdaef1c Merge remote-tracking branch 'refs/remotes/origin/main' 2023-08-04 18:43:32 +10:00
Kayne Ruse
3783c94064 Allow trailing commas when writing a compound 2023-08-04 18:43:07 +10:00
Ratstail91
d292b33184 Tweaked types to stop MSVC complaining 2023-08-04 18:24:54 +10:00
Kayne Ruse
64944c24f6 Snipped some duplicate code, resolved #97 2023-08-04 14:52:01 +10:00
Kayne Ruse
604604e8bc Two opcodes weren't being used, resolved #98 2023-08-04 14:51:08 +10:00
Kayne Ruse
67e49b7477 Fixed the way an identifier was handled, resolved #99 2023-08-04 14:45:07 +10:00
Kayne Ruse
967963c9d7 Fixed a spelling mistake 2023-08-03 15:22:06 +10:00
Kayne Ruse
9b469e6eb0 Merge pull request #94 from Add00/main
Adding a math library to toy
2023-08-03 01:40:19 +10:00
Add00
f8094fa17e Added hyperbolic and additional comparisons 2023-08-02 11:25:27 -04:00
Add00
8714c56c3e Implemented feedback 2023-08-02 08:39:50 -04:00
Add00
9faaa311e0 Fixed Memory Leak 2023-08-01 17:50:20 -04:00
Add00
f5ba1181c0 Added arc versions of trigonometric functions 2023-08-01 13:41:55 -04:00
Add00
b06b2d9485 test cases and additional functions 2023-08-01 09:04:37 -04:00
Add00
e3e9ca7ece Added math library 2023-07-31 23:31:12 -04:00
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
Ratstail91
7690dce3f6 Fixed casting and grouping v1.2.1 2023-07-31 17:26:07 +10:00
Ratstail91
1ed1993489 Whoops, lets try that again. 2023-07-31 16:55:27 +10:00
Ratstail91
9b5327b83d Merge bug 2023-07-31 16:22:04 +10:00
Ratstail91
10dbe8f8f1 Fixed casting + grouping, resolved #67 2023-07-31 16:20:45 +10:00
Ratstail91
9e4ad7a9a5 Fixed casting + grouping, resolved #67 2023-07-31 16:17:33 +10: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
Kayne Ruse
6ba42b5a9b Merge pull request #93 from Add00/main
Adding clamp and lerp functions to standard library
2023-07-31 04:12:15 +10:00
Add00
3cb62274c9 Fixed merge issue 2023-07-30 13:21:42 -04:00
Add00
60b561d809 Merge branch 'Ratstail91:main' into main 2023-07-30 13:16:57 -04:00
Add00
70b2dcd829 Added clamp and lerp functions to standard library 2023-07-30 13:15:39 -04:00
Ratstail91
0955b3ff38 Tweak to the MSVC build 2023-07-31 02:04:27 +10:00
Kayne Ruse
4137935468 Added sign() and normalize() to standard lib 2023-07-30 17:46:00 +10:00
Kayne Ruse
ebeabcb9d4 Reordered some functions for clarity, caught a bug or two 2023-07-28 02:42:57 +10:00
Kayne Ruse
4d33a9473a Added tools/changing-of-the-guard.cpp, resolved #89
A present for @hyperiondev - just run this in the 'includes/' directory.

It's easier than changing things by hand.
2023-07-28 01:09:58 +10:00
Kayne Ruse
61e3cdba82 Fixed a potential linker issue 2023-07-26 08:13:05 +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