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
62fe86f99b
Fixed indexing in argument lists, resolved #102
2023-08-09 02:25:07 +10:00
Ratstail91
f885fdaf4c
Short circuits are now functioning correctly, resolved #73
2023-08-06 04:28:02 +10:00
Kayne Ruse
cdfe17ad53
Added mecha-style comment docs to a bunch of headers
2023-07-20 19:44:40 +10:00
Kayne Ruse
2157b2f540
Fixed an obscure compiler bug involving assignments and indexing, read more
...
TOY_OP_INDEX_ASSIGN_INTERMEDIATE was being used when it shouldn't have.
Now the check runs down the whole binary->right branch to ensure the given
node doesn't exist in that tree.
2023-06-15 12:29:25 +10:00
Kayne Ruse
07f4a98b95
Replacing Toy_Literal function bytecode with Toy_RefFunction, addressing #77
...
This seems to have worked way too easily.
2023-06-06 23:35:59 +10:00
Kayne Ruse
2edfbbe3ef
Found a compiler bug, thanks Aedan!
2023-03-17 14:01:16 +11:00
Ratstail91
e6d9809da5
Famous last words: I think I fixed it
2023-03-04 22:18:17 +11:00
Kayne Ruse
49f240ea07
Minor tweak
2023-02-18 12:15:23 +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
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
be4cbf1ad6
Pack 'em up!
2023-02-10 21:53:38 +00:00
Kayne Ruse
ee226ea426
Strengthened constness for cstrings and bytecode
2023-02-10 08:52:38 +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
7b26527e95
Nesting index multiplication assignment fixed
...
This affects all arithmetic types applied to inner-nested compounds.
2023-02-05 06:28:24 +00:00
Kayne Ruse
386201b6e9
Added fib-memo.toy, fixed bugs until it worked
2023-02-04 17:01:58 +00:00
Kayne Ruse
8d278077b1
Added constant folding for strings, tweaked some error messages
2023-02-04 09:50:29 +00:00
Kayne Ruse
2f1613e306
Caught an error in the compiler
2023-02-04 03:03:56 +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
047ccc5f16
Prepended file names with "toy_"
2023-01-23 21:45:52 +00:00