Kayne Ruse
15f99495a1
Aesthetics
2023-02-05 11:31:17 +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
2776c87026
Ambiguous ternary syntax might be an issue
2023-02-04 02:59:10 +00:00
Kayne Ruse
8cc33f5fbb
Added to ternary expression tests
2023-02-03 17:22:44 +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
e265038547
Tested custom char trims
2023-01-29 08:38:26 +00:00
Kayne Ruse
a357e0b0d4
Implemented _trim()
2023-01-29 08:30:31 +00:00
Kayne Ruse
2c5e3c6aa5
Started working on compound library
2023-01-29 07:23:52 +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
4bce10803e
Added official support for mingw32
2023-01-28 07:56:11 +00:00
Kayne Ruse
daee91904d
Trying to test on windows
2023-01-28 06:20:36 +00:00
Kayne Ruse
c397384766
Merge remote-tracking branch 'refs/remotes/origin/main'
2023-01-28 06:11:54 +00:00
Kayne Ruse
667efc2feb
Removed nonstandard C constructor attribute
2023-01-28 06:06:04 +00:00
Kayne Ruse
f4469fc53d
Removed file extension guard
2023-01-27 07:03:36 +00:00
Kayne Ruse
c86c5800a7
Moved guard
2023-01-27 06:31:13 +00:00
Kayne Ruse
e4d843ad3a
Type check
2023-01-27 06:16:39 +00:00
Kayne Ruse
6667bce3d7
Finally fixed the buffer
...
I suppose valgrind, et. al. complaining is a good thing, overall.
2023-01-27 06:01:05 +00:00
Kayne Ruse
50b07da188
Put the clear BEFORE the return
2023-01-27 05:56:23 +00:00
Kayne Ruse
708db75760
Forgot to free this buffer
2023-01-27 05:53:35 +00:00
Kayne Ruse
b632ce77ba
Moved drive to filepath code into a function
2023-01-27 05:49:14 +00:00
Kayne Ruse
b2c3dd894c
Added a memusage tool
2023-01-25 15:11:22 +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.
v0.8.0
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
59b0d15915
Fixed a pattern with parsing identifiers
2023-01-23 21:19:51 +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
df85d30553
Added loadScriptBytecode()
2023-01-21 04:27:01 +00:00
Kayne Ruse
d57fca474f
Fixed memory leak
2023-01-20 23:09:01 +00:00
Kayne Ruse
69f5151310
Finished runner library
2023-01-20 23:03:00 +00:00
Kayne Ruse
c47ee68b3f
Don't use the runner lib yet - will finish in the morning
2023-01-20 13:59:28 +00:00
Kayne Ruse
2c06c5e38b
BUGFIX: Buffer overflow
2023-01-20 13:56:07 +00:00
Kayne Ruse
e6e24ca19f
Began working on runner library
2023-01-20 13:42:45 +00:00
Kayne Ruse
390f60e0ce
F around and find out
2023-01-16 09:48:20 +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