Commit Graph

431 Commits

Author SHA1 Message Date
Stephen Chung
6b301b4e70 Set allow_loop_expressions to true by default. 2023-02-16 20:35:15 +08:00
Stephen Chung
513a1ab435 Allow access to scope by loaded module. 2023-02-13 21:12:17 +08:00
Stephen Chung
10089c5cb0 Support switch range cases for floating-point values. 2023-02-12 23:20:14 +08:00
Stephen Chung
89725a6dd4 Fix bug when parsing !in. 2023-02-10 14:58:03 +08:00
Stephen Chung
777f3e219a Add max/min. 2023-02-09 22:09:16 +08:00
Stephen Chung
675a45fac7 Fix bug. 2023-02-03 15:11:40 +08:00
Stephen Chung
62696853b4 Fix bug with parsing improper module separator. 2023-01-29 15:23:33 +08:00
Stephen Chung
733bb07d2d Fix bug in chain parsing. 2023-01-25 07:37:44 +08:00
Stephen Chung
ae02668d08 Mark pure. 2023-01-03 14:00:18 +08:00
Stephen Chung
bb1136e8ad Refine what can be called in method style. 2022-12-27 22:06:51 +08:00
Stephen Chung
7c00b74916 Allow string interpolation to work with no packages. 2022-12-27 10:09:40 +08:00
Stephen Chung
52d23522e6 Add for_each for arrays. 2022-12-25 12:44:49 +08:00
Stephen Chung
fd401f3048 Add array API with closure variation that binds to this. 2022-12-24 19:37:06 +08:00
Stephen Chung
9bf3a9d78f Add Engine::compact_script. 2022-12-21 13:54:54 +08:00
Stephen Chung
d94f362b51 Fix up find/find_map. 2022-12-20 22:27:29 +08:00
Stephen Chung
cabab14475 Deprecate array methods that take function names as parameters. 2022-12-19 22:42:21 +08:00
Stephen Chung
b880893154 Allow negative shift bits. 2022-12-18 14:51:38 +08:00
Stephen Chung
82a455b4d7 Add Dynamic::deep_scan. 2022-12-13 13:35:23 +08:00
Stephen Chung
3cc016b03c Add Index/IndexMut and iter_curry/iter_curry_mut to FnPtr. 2022-12-13 13:34:17 +08:00
Stephen Chung
d350a948e7 Allow exporting function pointers from modules. 2022-12-12 18:31:02 +08:00
Stephen Chung
397b5eb39d Move restore up one level. 2022-12-11 21:50:47 +08:00
Stephen Chung
91f149270a Add link to scripted function definition. 2022-12-11 00:08:25 +08:00
Stephen Chung
a391f26920 Refine expression nesting level. 2022-12-08 17:18:40 +08:00
Stephen Chung
90998f4f14 Allow closures in parse expressions. 2022-12-06 21:41:38 +08:00
Stephen Chung
de0707f64f Use macro auto_restore!. 2022-12-04 14:06:54 +08:00
Stephen Chung
4998eb6139 Add has_context to plugin functions. 2022-12-03 17:03:15 +08:00
Stephen Chung
e10576abff Process block comments better. 2022-12-02 14:06:31 +08:00
Stephen Chung
fcc363af60 Add doc-comments on plugin modules to Module::doc field. 2022-12-01 23:29:42 +08:00
Stephen Chung
0c4935febb Merge multiple doc-comment lines into one. 2022-12-01 14:35:45 +08:00
Stephen Chung
28640a6fe4 code cleanup. 2022-12-01 14:24:08 +08:00
Stephen Chung
fc4c8731f0 Add !in. 2022-11-30 14:11:09 +08:00
Stephen Chung
d645d8271c More code refactor. 2022-11-25 20:42:16 +08:00
Stephen Chung
fbe30b8d0e Change debugger init signature. 2022-11-25 13:20:03 +08:00
Stephen Chung
9f5b68549a Deserialize large numbers. 2022-11-23 16:13:57 +08:00
Stephen Chung
2c73d403f7 EvalContext::scope_mut returns &mut Scope. 2022-11-23 13:22:47 +08:00
Stephen Chung
be040287dc Make Engine::set_XXX chainable. 2022-11-22 13:11:47 +08:00
Stephen Chung
d151c87687 Change call_fn_raw to call_fn_with_options. 2022-11-21 23:42:29 +08:00
Stephen Chung
f7c8238613 Remove volatile warning from TypeBuilder API. 2022-11-19 19:04:28 +08:00
Stephen Chung
bf845fbd7a Export CallableFunction. 2022-11-17 18:05:52 +08:00
Stephen Chung
1b248b5af7 Speed up static hashing default case. 2022-11-09 21:16:28 +08:00
Stephen Chung
a1d42b826a Simplify Dynamic::as_XXX calls. 2022-11-09 20:18:11 +08:00
Stephen Chung
ce046422f0 Add Dynamic::is_XXX API. 2022-11-09 12:44:57 +08:00
Stephen Chung
e93923b3b6 Move level into GlobalRuntimeState. 2022-11-08 21:28:20 +08:00
Stephen Chung
b4529b6a64 Add storage API for NativeCallContext. 2022-11-07 16:19:10 +08:00
Stephen Chung
d2cd70bf53 Minor stylistic fixes. 2022-11-04 21:22:31 +08:00
Stephen Chung
c14fbdb14d Add loop expressions. 2022-10-29 12:09:18 +08:00
Stephen Chung
4100645512 Move pure checking out of functions. 2022-10-27 20:42:10 +08:00
Stephen Chung
a6a570131a Add no_time. 2022-10-15 12:37:42 +08:00
Stephen Chung
ea63c66cf0 Add call_native_fn for context. 2022-10-14 16:57:14 +08:00
Stephen Chung
b65b7b05a5 Allow global functions in non-aliased imports. 2022-10-14 12:14:28 +08:00