Commit Graph

124 Commits

Author SHA1 Message Date
4b2fd61554 SWAP opcode 2025-10-29 20:37:09 -07:00
c69b172c78 ADD: error checking 2025-10-29 16:03:26 -07:00
0b5d3e634c too chatty 2025-10-29 15:35:10 -07:00
ba8376e2c3 dicts, too 2025-10-29 15:28:34 -07:00
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
030eb74871 mark functions as raw=true to deal with Value directly 2025-10-29 13:10:05 -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
97b6722a11 support roundtrip value conversions 2025-10-26 12:52:57 -07:00
d50b143c9d cough cough 2025-10-26 12:27:02 -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
da61c1de50 isValue() 2025-10-26 08:24:58 -07:00
d359d6e27d even more 2025-10-25 20:34:30 -07:00
eb128ec831 share more 2025-10-25 20:27:38 -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
bbdfcdb54a regexp is valid now 2025-10-25 15:53:07 -07:00
8d9510e9ae update docs 2025-10-25 10:12:36 -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
937861e27b export OpCode 2025-10-25 08:22:50 -07:00
42c0e62597 show natives in debugger/repl 2025-10-25 07:56:06 -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
f79fea33c5 more native named arg tests 2025-10-24 11:00:02 -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
eb4f103ba3 Merge pull request 'Varadic args are always last in javascript' (#3) from varadic-and-named into main
Reviewed-on: #3
2025-10-23 20:30:23 +00:00
995487f2d5 varadic args are always last in javascript 2025-10-23 11:15:02 -07:00
a885a59140 Merge pull request 'Make TRY_CALL work with native functions AND a debug helper' (#2) from TRY_CALL into main
Reviewed-on: #2
2025-10-21 01:53:39 +00:00
47f829fcad A 100% AI written debug function 2025-10-20 09:31:19 -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
93eff53a76 just native, <function> 2025-10-17 12:39:14 -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
23fcf05439 split up tests some 2025-10-16 14:35:24 -07:00
e5be82e75a regexp tests 2025-10-16 14:27:39 -07:00
dd9ec2a7d1 Merge pull request 'Add regex to reef' (#1) from regex into main
Reviewed-on: #1
2025-10-16 21:15:42 +00:00
fa7589293a Update bytecode.ts 2025-10-16 14:13:39 -07:00
1bc46045ba Update value.ts 2025-10-16 14:09:19 -07:00
2be87c381d Add test 2025-10-16 13:42:05 -07:00