Commit Graph

86 Commits

Author SHA1 Message Date
Kayne Ruse
3498baad9b Resolved #45, Exports region removed 2023-01-13 16:12:44 +00:00
Kayne Ruse
70698a4a1a Simplified an optimisation 2022-11-27 02:25:33 +00:00
Kayne Ruse
f6367fa89d Updated interpreter 2022-11-26 09:43:19 +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
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
bd348abf32 Added dot chaining for functions
Well, it should work without issues...
2022-10-14 23:58:15 +01:00
Kayne Ruse
bd4ab2aa04 Added the opaque keyword 2022-10-03 21:32:09 +01:00
Kayne Ruse
6a086395be Renamed Node to ASTNode 2022-09-18 19:14:37 +01:00
Kayne Ruse
ac37a017bb Fixed astype null 2022-09-14 18:42:33 +01:00
Kayne Ruse
95ba865cab Packaged toy as a dll 2022-09-11 07:56:06 +01:00
Kayne Ruse
cbc937884e Found a rare lexer bug 2022-09-10 19:11:16 +01:00
Kayne Ruse
a7ca6d23d7 Reviewed the spec, fixed some bugs 2022-09-10 14:11:13 +01:00
Kayne Ruse
a0ea0f7f31 More subtle bugfixes 2022-09-08 05:42:39 +01:00
Kayne Ruse
5861602f23 changed dot operator to access global functions 2022-09-08 01:18:20 +01:00
Kayne Ruse
9a55ff221a Fixed some indexing bugs 2022-09-07 18:43:32 +01:00
Kayne Ruse
23fdec541d Changed my mind about oftype/typeof 2022-09-07 15:02:17 +01:00
Kayne Ruse
4137b7f057 switched typeof for oftype, switched typeas for astype 2022-09-07 14:47:57 +01:00
Kayne Ruse
17f1dc8647 cleaning up tests 2022-09-06 09:22:50 +01:00
Kayne Ruse
b8f20add66 Finished slice and dot notation, needs a lot of testing 2022-09-06 06:46:50 +01:00
Kayne Ruse
304e1a5fb0 Plumbing for index and dot notations is working 2022-09-05 17:43:42 +01:00
Kayne Ruse
82c03ecb33 Added the typeas keyword to avoid ambiguity 2022-09-05 12:24:42 +01:00
Kayne Ruse
2aecf6e8a1 Implemented typeof and added resetInterpreter() 2022-09-05 10:56:35 +01:00
Kayne Ruse
f80709ae41 Solved a function scope issue 2022-09-05 16:39:09 +10:00
Kayne Ruse
7fb9ebbce0 Import and export are working 2022-09-05 06:39:05 +01:00
Kayne Ruse
fb1ac71f42 Resolved #18 2022-09-05 03:35:17 +01:00
Kayne Ruse
36154b25ac Changed dict type syntax to using a colon instead of a comma 2022-09-04 09:01:09 +01:00
Kayne Ruse
d2aacea8c5 This is really getting hard 2022-09-03 11:58:36 +10:00
Kayne Ruse
1c6c7e5d4f I GIVE UP 2022-08-29 21:38:54 +10:00
Kayne Ruse
d055e9dc94 WE ARE THE CHAMPIONS! 2022-08-29 15:33:58 +10:00
Kayne Ruse
a6f0200255 Eventually gonna squash all of today's work 2022-08-29 04:08:31 +01:00
Kayne Ruse
f705d82aee Wrote some small tests 2022-08-28 09:35:46 +01:00
Kayne Ruse
9c766ec61e Working on memory issues 2022-08-28 01:35:00 +01:00
Kayne Ruse
90e5a5d08b Rest parameter working 2022-08-27 11:59:54 +01:00
Kayne Ruse
a4f1e048e9 Function calls, with args and single returns are working 2022-08-26 01:48:26 +01:00
Kayne Ruse
041fe99e01 Function declaration seems to work 2022-08-25 15:19:08 +01:00
Kayne Ruse
4f70bea808 Implemented logical && and || 2022-08-23 05:07:17 +01:00
Kayne Ruse
6939b216a9 Added arithmetic assign operators 2022-08-23 03:33:28 +01:00
Kayne Ruse
08e2adab50 #15 Fixed some of the worst memory leaks 2022-08-22 20:51:09 +01:00
Kayne Ruse
5b82ed8e45 Must force a type when dealing with compound types 2022-08-22 14:27:41 +01:00
Kayne Ruse
300f8e382b Store complex types in variables 2022-08-22 13:28:44 +01:00
Kayne Ruse
45920f763c Tweaked error messages 2022-08-22 05:17:17 +01:00
Kayne Ruse
df6bd58b1a Types are first-class citizens 2022-08-22 01:59:29 +01:00
Kayne Ruse
b385b461e0 Increment and decrement operators work 2022-08-21 00:23:09 +01:00
Kayne Ruse
c64d451287 Added string concatenation 2022-08-20 22:58:50 +01:00
Kayne Ruse
18c5fb6add Break and continue keywords are working 2022-08-20 20:08:22 +01:00
Kayne Ruse
f5e060051e While and for loops are working 2022-08-20 13:27:47 +01:00
Kayne Ruse
975ed41d14 If-then-else is working with jump statements 2022-08-20 12:38:29 +01:00
Kayne Ruse
8309535bbe Fixed negation issue, moved some scripts to test/ 2022-08-20 07:20:29 +01:00