Kayne Ruse
eae96d6403
Corrected the order of arguments to Toy_callLiteralFn()
2023-02-14 08:00:35 +00:00
Kayne Ruse
b55b8e879e
Added -n option to diable print newline
2023-02-13 15:51:38 +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
8653a2663f
Added _indexOf
2023-02-12 14:32:26 +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
996744d7ec
Resolved #59
2023-02-11 05:10:32 +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
be4cbf1ad6
Pack 'em up!
2023-02-10 21:53:38 +00:00
Kayne Ruse
aeb008c684
Fixed unary negation bug, removed newline from print
2023-02-10 18:38:25 +00:00
Kayne Ruse
3ba2e420ea
Added _every() and _some()
2023-02-10 15:00:15 +00:00
Kayne Ruse
c81a139c97
Now handles unterminated block comments without freezing
2023-02-10 12:26:38 +00:00
Kayne Ruse
66ea684a90
Disabled comments in the repl
2023-02-10 12:11:42 +00:00
Kayne Ruse
a26a6a56d0
Patched a pre/postfix increment/decrement segfault
2023-02-10 11:49:59 +00:00
Kayne Ruse
ee226ea426
Strengthened constness for cstrings and bytecode
2023-02-10 08:52:38 +00:00
Kayne Ruse
76a0290290
Removed export keyword from README.md
2023-02-09 17:46:28 +00:00
Kayne Ruse
e8160eb9df
Fixed string indexing with null
2023-02-09 16:46:36 +00:00
Kayne Ruse
276648630e
trying to uncluster-bomb the builtin functions
2023-02-09 16:12:42 +00:00
Kayne Ruse
e946a5f071
Patched segault in parser
2023-02-09 12:37:18 +00:00
Kayne Ruse
932401c26d
Can now correctly parse escaped characters
2023-02-09 08:44:08 +00:00
Kayne Ruse
fc67d6a18b
Fixed a segfault
2023-02-09 08:24:16 +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
b8e3324acb
tweak
2023-02-07 18:32:59 +00:00
Kayne Ruse
0b9051cab2
Experimenting with numbers
2023-02-06 05:37:41 +00:00
Kayne Ruse
c875ae7a0e
Added _forEach and _map, added tests for them
2023-02-06 00:51:07 +00:00
Kayne Ruse
41d274177a
String concatenation restricted to + and += signs
2023-02-05 15:15:32 +00:00
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