Commit Graph

51 Commits

Author SHA1 Message Date
956fd576f8 ADD concats arrays too 2025-10-29 15:25:37 -07:00
9618dd6414 ADD now concats strings, too 2025-10-29 15:20:28 -07:00
b58f848a65 convert native exceptions to shrimp exceptions 2025-10-29 15:07:59 -07:00
3647159286 remove old imports 2025-10-29 14:57:28 -07:00
052f989e82 fix nested globals 2025-10-28 22:59:51 -07:00
Chris Wanstrath
e542070677 vm.set(), new VM(bytecode, globalVars) 2025-10-28 13:05:24 -07:00
e300946c48 throw real errors 2025-10-26 12:25:34 -07:00
bf6607d368 put builtin global functions into a higher scope 2025-10-26 08:53:51 -07:00
286d5ff943 slightly better error message 2025-10-25 20:07:10 -07:00
aa8ecb7cf6 VM constructor also accepts valueFunctions 2025-10-25 19:00:12 -07:00
17d846b999 more repl support 2025-10-25 09:48:17 -07:00
1fb5effb0a add REPL support 2025-10-25 09:10:43 -07:00
46829df28b TypeScriptFunction, more exports 2025-10-25 07:55:58 -07:00
e1e7cdf1ef vm.call() native functions too 2025-10-24 16:25:55 -07:00
797eb281cb vm.call(name, ...args) 2025-10-24 10:53:00 -07:00
91d3eb43e4 Call Reef closures inside native functions 2025-10-24 10:26:18 -07:00
995487f2d5 varadic args are always last in javascript 2025-10-23 11:15:02 -07:00
7f4f73dd41 TRY_CALL recognizes native functions 2025-10-20 09:31:01 -07:00
fa55eb7170 @named in native functions 2025-10-17 14:05:12 -07:00
1cf14636ff add named args to native functions 2025-10-17 13:11:47 -07:00
fe7586a5fa simpler native functions 2025-10-17 12:48:16 -07:00
4d2ae1c9fe tmp change - LOAD_NATIVE 2025-10-17 12:35:38 -07:00
62f890e59d don't be cute 2025-10-17 12:13:28 -07:00
1a18a713d7 DOT_GET 2025-10-16 15:51:38 -07:00
b16351ac95 pass native functions to VM 2025-10-16 15:16:57 -07:00
0844e99d2d fix for using named positional args 2025-10-14 12:32:19 -07:00
Chris Wanstrath
4898a6bb5a failing function test 2025-10-14 12:23:24 -07:00
Chris Wanstrath
df9af925d3 STR_CONCAT #n 2025-10-14 12:14:27 -07:00
Chris Wanstrath
43842adc87 TRY_CALL 2025-10-10 14:21:43 -07:00
80183653f4 ts is trying to narrow the type too hard 2025-10-08 10:01:06 -07:00
78923b3eff more natural native functions 2025-10-08 09:57:49 -07:00
fd447abea8 TRY_LOAD opcode 2025-10-07 22:01:13 -07:00
Chris Wanstrath
060fa064fe add array bytecode API 2025-10-07 12:53:40 -07:00
Chris Wanstrath
d1669f209b debugger 2025-10-06 15:53:19 -07:00
078fc37a02 no kwargs 2025-10-05 22:34:07 -07:00
db4f332472 variadic and named args 2025-10-05 21:07:36 -07:00
e75d119ba8 rest args 2025-10-05 20:52:48 -07:00
d7402d8ebc you too 2025-10-05 20:43:35 -07:00
c0ef5f55eb no continue 2025-10-05 20:26:21 -07:00
0e387fcfe1 no continue, just JUMP 2025-10-05 20:22:03 -07:00
8754afb536 BREAK 2025-10-05 20:08:00 -07:00
45e4c29df4 tail calls 2025-10-05 19:07:28 -07:00
4608ec7b9e update bytecode text language 2025-10-05 18:37:06 -07:00
e16a8104c7 native functions 2025-10-05 18:01:19 -07:00
0a4e6ceef6 finally blocks 2025-10-05 17:59:02 -07:00
2da24ccd32 try / catch / throw 2025-10-05 15:50:37 -07:00
25ed12b3ce CALL / RETURN / MAKE_FUNCTION 2025-10-05 15:47:34 -07:00
6f6ddcea89 ARRAY_PUSH 2025-10-05 15:32:49 -07:00
9a748beacb break/continue coming soon 2025-10-05 15:31:13 -07:00
499584c5fe add... a lot 2025-10-05 15:21:51 -07:00