Commit Graph

437 Commits

Author SHA1 Message Date
Stephen Chung
41636eac55 Fine tune table-driven tokenizing. 2023-03-15 17:22:11 +08:00
Stephen Chung
f46cbdde49 Speed up parsing. 2023-03-15 08:01:44 +08:00
Stephen Chung
906ab3a295 Add short-circuits to op-assignments. 2023-03-09 22:03:27 +08:00
Stephen Chung
58fad030ee Do not default compares of different types. 2023-03-08 21:47:57 +08:00
Stephen Chung
5f09b5d9d9 Fix builds. 2023-02-25 20:58:40 +08:00
Stephen Chung
00f2b07d38 All symbols to start a custom syntax. 2023-02-20 13:28:17 +08:00
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