Commit Graph

296 Commits

Author SHA1 Message Date
Stephen Chung
28743594d0 Use interned strings for AST nodes. 2022-08-13 18:07:42 +08:00
Stephen Chung
be448dfe4d Use identifiers in format! 2022-08-11 19:01:23 +08:00
Stephen Chung
255af006ee Fix doc comments. 2022-08-10 12:48:37 +08:00
Stephen Chung
2f948a784c Clean up more clippy. 2022-07-27 18:04:59 +08:00
Stephen Chung
39dee556c4 Clean up clippy. 2022-07-27 16:04:24 +08:00
Stephen Chung
772087513a Fix doc test. 2022-07-26 17:19:41 +08:00
Stephen Chung
f188f96974 Fix missing feature gate. 2022-07-26 16:49:05 +08:00
Stephen Chung
492d79d8a2 Add documentation to Module. 2022-07-25 17:42:15 +08:00
Stephen Chung
f85ad28e93 Add FnNamespace methods. 2022-07-21 14:01:28 +08:00
quake
8d91e7eb63 chore: clippy fix useless_conversion 2022-07-20 21:28:40 +09:00
quake
299777f1c9 chore: clippy fix needless_borrow 2022-07-20 21:16:35 +09:00
Stephen Chung
b6528bd51d Reduce usage of as_ref and as_mut. 2022-07-05 16:26:38 +08:00
Stephen Chung
6753566b03 Merge set of dynamic functions when merging modules. 2022-06-28 13:57:18 +08:00
Stephen Chung
7068775f19 Use locked_read. 2022-06-26 14:10:09 +08:00
Stephen Chung
84b8e1ed87 Detect whether dynamic functions exist to save checking. 2022-06-24 11:30:54 +08:00
Stephen Chung
b592ac1599 Export locked_read. 2022-06-17 23:36:09 +08:00
Stephen Chung
b9cbeb65d6 Use Option instead of once/empty. 2022-06-11 16:01:15 +08:00
Stephen Chung
4194e2c048 Refine data structures. 2022-05-07 15:54:44 +08:00
Stephen Chung
2a57bd9d25 Mark some types as non_exhaustive. 2022-05-03 21:55:08 +08:00
Stephen Chung
63592ed648 Remove Clone from FileModuleResolver. 2022-04-23 12:49:03 +08:00
Stephen Chung
71bc605fe6 Add scope to FileModuleResolver. 2022-04-22 13:39:51 +08:00
Stephen Chung
40c4906336 Make Module::eval_ast_as_new_raw public. 2022-04-19 08:28:59 +08:00
Stephen Chung
3f74e5e674 Use &Path as source path. 2022-04-18 17:34:53 +08:00
Stephen Chung
7788e1058a Merge use. 2022-04-13 10:35:10 +08:00
Stephen Chung
89ed531363 Fix doc tests. 2022-04-06 17:25:04 +08:00
Stephen Chung
6f4240ed5a Add examples to Module custom type API. 2022-03-30 10:33:43 +08:00
Stephen Chung
1b6de25007 Remove Engine::custom_types. 2022-03-29 08:18:20 +08:00
Stephen Chung
fefa633cf0 Add type alias support for plugin modules. 2022-03-19 09:43:18 +08:00
Stephen Chung
b35d965e55 Reverse Box<[...]> to Vec. 2022-03-06 16:37:27 +08:00
Stephen Chung
8bda8c64df Refine data structures 2022-03-05 17:57:23 +08:00
Stephen Chung
0e9a16e437 Add checks for is_empty. 2022-03-03 13:02:57 +08:00
Stephen Chung
8205547d8a Use bitflags. 2022-02-25 11:42:59 +08:00
Stephen Chung
f47b911681 Remove warning. 2022-02-25 10:03:34 +08:00
Stephen Chung
07a61a9562 Fix build. 2022-02-25 09:00:15 +08:00
Stephen Chung
5931f43d4d Implement Ord and PartialOrd. 2022-02-25 08:37:57 +08:00
Stephen Chung
39ef766bf1 Raise error when exporting local anonymous function. 2022-02-24 11:24:31 +08:00
Stephen Chung
fa8e2e638b Fix bug. 2022-02-23 15:43:27 +08:00
Stephen Chung
d23d1159ab Fix positions. 2022-02-10 17:55:32 +08:00
Stephen Chung
8c5de09446 Fix doc links. 2022-02-09 22:40:13 +08:00
Stephen Chung
f8cee0fe4e Simplify using .. 2022-02-08 09:02:15 +08:00
Stephen Chung
7b92a80c32 Fix encapsulated environment in module functions. 2022-01-30 17:27:13 +08:00
Stephen Chung
8fc80ecd10 Fix formatting. 2022-01-30 11:21:45 +08:00
Stephen Chung
6b02dde848 Gate dead code for no_module. 2022-01-29 11:09:43 +08:00
Stephen Chung
cd4335a16f Fix builds. 2022-01-28 22:11:22 +08:00
Stephen Chung
c397a6dcb5 Fix sync build. 2022-01-28 22:07:49 +08:00
Stephen Chung
c93e94c7cd Fix builds. 2022-01-28 21:35:16 +08:00
Stephen Chung
66af69aaff Refactor and add state to debugger. 2022-01-28 18:59:18 +08:00
Stephen Chung
e476929597 Remove Box on callback traits. 2022-01-27 23:55:32 +08:00
Stephen Chung
fc87dec128 Add debugging interface. 2022-01-27 16:58:11 +08:00
Stephen Chung
fb0b071fe0 Add lifetimes to GlobalRuntimeState and EvalState for future needs. 2022-01-22 17:48:07 +08:00