Commit Graph

75 Commits

Author SHA1 Message Date
d7a971db24 scope.vars() 2025-11-08 08:40:15 -08:00
f439c25742 add TYPE opcode 2025-11-08 00:01:21 -08:00
47e227f50c don't need vm for simple toValue calls 2025-11-07 23:36:53 -08:00
15884ac239 add bitwise operators 2025-11-07 22:51:28 -08:00
bffb83a528 more robust isValue() check 2025-11-05 15:43:30 -08:00
e7201e691c even more debug info 2025-11-05 15:16:41 -08:00
11b119a322 give more info on toValue() error 2025-11-05 15:11:24 -08:00
f1cc717711 pushScope accepts locals 2025-11-05 13:55:59 -08:00
54cd9ce8e8 add pushScope/popScope for Power Users 2025-11-05 13:49:19 -08:00
0f39e9401e fromValue can convert native functions now 2025-11-01 23:09:11 -07:00
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
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
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
17d846b999 more repl support 2025-10-25 09:48:17 -07:00
1fb5effb0a add REPL support 2025-10-25 09:10:43 -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
995487f2d5 varadic args are always last in javascript 2025-10-23 11:15:02 -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
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
2be87c381d Add test 2025-10-16 13:42:05 -07:00
Chris Wanstrath
4898a6bb5a failing function test 2025-10-14 12:23:24 -07:00
Chris Wanstrath
173fd28d6f simplify 2025-10-14 12:19:49 -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
Chris Wanstrath
8975bb91bd fix validator 2025-10-10 14:02:49 -07:00
0bb0af6c1e ok 2025-10-08 10:01:35 -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
27857bfae8 add emoji support 2025-10-07 16:18:44 -07:00
Chris Wanstrath
060fa064fe add array bytecode API 2025-10-07 12:53:40 -07:00