Kayne Ruse
7ea249f723
Added the about library, resolved #51
2023-02-05 14:43:46 +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
57c16d2ede
Fixed an obscure memory leak, potential issue with lib_runner on linux
2023-02-04 15:30:46 +11:00
Kayne Ruse
2f1613e306
Caught an error in the compiler
2023-02-04 03:03:56 +00:00
Kayne Ruse
90f91a234a
r is a bad character to escape
2023-01-31 12:38:42 +00:00
Kayne Ruse
fcd1cdf70b
Added a few characters that can be escaped
2023-01-31 12:37:18 +00:00
Kayne Ruse
aeda0a0d94
Fixed pointer to int casting
2023-01-28 09:11:38 +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
667efc2feb
Removed nonstandard C constructor attribute
2023-01-28 06:06:04 +00:00
Kayne Ruse
9b21bfb53b
Missed a rename
2023-01-25 13:54:28 +00:00
Kayne Ruse
d3adac8a59
Fixed the parser - whoops
2023-01-25 13:17:57 +00:00
Kayne Ruse
5183037a99
Missed the globals
2023-01-25 13:15:16 +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
Kayne Ruse
6d961cea78
Tweaked refstring, thanks SchuperJesse!
2023-01-23 08:21:51 +00:00
Kayne Ruse
33f360c9cf
Fixed a way to have a bad type, thanks neuf!
2023-01-21 13:33:25 +00:00
Kayne Ruse
d3516b4fc9
Adjusted the interpreter's version guard
2023-01-21 13:10:04 +00:00
Kayne Ruse
69f5151310
Finished runner library
2023-01-20 23:03:00 +00:00
Kayne Ruse
580e407b05
Squeaky clean!
2023-01-16 09:40:32 +00:00
Kayne Ruse
26bd476c2c
Sanitized some addresses
2023-01-16 09:36:05 +00:00
Kayne Ruse
b8b67fce3d
Testing sanitiser
2023-01-16 09:15:20 +00:00
Kayne Ruse
68ed39fc45
Began working on a few bugs, thanks /u/skeeto!
2023-01-16 09:06:35 +00:00
Kayne Ruse
aeecfabbbc
Null pointer exceptions in parser unary function
2023-01-15 18:15:59 +00:00
Kayne Ruse
51740e2b9e
Resolved #25 , Indexing an array with a non-integer causes an error
2023-01-15 15:09:01 +00:00
Kayne Ruse
402abb647c
Dummied out _index
2023-01-15 14:28:53 +00:00
Kayne Ruse
ae1dc5841e
Added ternary operator, resolved #46
2023-01-14 10:24:15 +00:00
Kayne Ruse
3498baad9b
Resolved #45 , Exports region removed
2023-01-13 16:12:44 +00:00
Kayne Ruse
0649a141dd
Moved time header includes, comment tweaks
2023-01-13 15:39:22 +00:00
Kayne Ruse
bf64275aa9
Floats will always print with a trailing number
2023-01-08 13:26:04 +00:00
Kayne Ruse
8009f410a4
Added mustfail test, fixed compound type decl bug
2023-01-08 12:43:25 +00:00
Kayne Ruse
584fb115b6
Fixed the awful rule110 implementation
2022-11-28 16:48:45 +00:00
Kayne Ruse
70698a4a1a
Simplified an optimisation
2022-11-27 02:25:33 +00:00
Kayne Ruse
c1625c53f4
Patched a bug in deepCopyRefString()
2022-11-26 21:33:46 +00:00
Kayne Ruse
f6367fa89d
Updated interpreter
2022-11-26 09:43:19 +00:00
Kayne Ruse
d199209772
Updated compiler
2022-11-26 06:58:38 +00:00
Kayne Ruse
4cf5c6a5bf
Updated parser
2022-11-26 01:59:37 +00:00
Kayne Ruse
30c3a890ee
Adjusted how AST Nodes are generated
2022-11-25 12:29:35 +00:00
Kayne Ruse
923cf70c06
Minimal build of the refstrings in the literal structure
2022-11-23 12:52:49 +00:00
Kayne Ruse
c7465e1204
Added API macro
2022-11-19 08:33:08 +00:00
Kayne Ruse
4518b59417
Added custom allocator support
2022-11-19 08:18:45 +00:00
Kayne Ruse
0b57f7efe7
Added release build targets, because bored
2022-11-16 22:05:47 +00:00
Kayne Ruse
774f3d9e83
Corrected error messages in the timer lib
2022-11-12 10:07:54 +00:00
Kayne Ruse
30b068fcdb
Fixed timer issues, tests should pass
...
Reduced test duration by a factor of 11,000. Don't ask.
Also, something funny is going on with the time headers, so I
stuck them into source/toy_common.h, I'll figure it out later.
2022-11-12 04:45:35 +11:00
Kayne Ruse
3d8ce4e7d8
Trying to fix time and platforms
2022-11-11 17:31:45 +00:00
Kayne Ruse
4dcc05e796
Corrected fnv1 hash algorithm
2022-11-08 19:36:54 +00:00
Kayne Ruse
8498864dde
Resolved a name clash with the engine
2022-11-07 16:38:39 +00:00
Kayne Ruse
5d240f85a6
BUGFIX: chained calls not being dottified
2022-11-04 11:13:40 +01:00
Kayne Ruse
cceefa6375
Resolved #38
2022-11-03 16:25:29 +01:00