Commit Graph

1726 Commits

Author SHA1 Message Date
Stephen Chung
a4b674d015 Trap elapsed error when timestamp is later than now. 2020-10-09 12:51:26 +08:00
Stephen Chung
7ede299aae Allow expressions in constants. 2020-10-09 11:15:25 +08:00
Stephen Chung
d511aac7a4 Reduce max call stack size for debug. 2020-10-08 23:00:01 +08:00
Stephen Chung
1272eeb81a Add/remove #[inline] attributes. 2020-10-08 22:25:50 +08:00
Stephen Chung
e34a370f33 Test optimizer with overriding operator. 2020-10-08 10:34:32 +08:00
Stephen Chung
b2d603ec06 Refine Add/AddAssign for AST and Module. 2020-10-07 23:25:08 +08:00
Stephen Chung
d35c216465 Add README's. 2020-10-07 22:56:21 +08:00
Stephen Chung
0ba219352d Make doc tests runnable. 2020-10-07 22:51:43 +08:00
Stephen Chung
e7f2dc84f1 Revise examples. 2020-10-07 15:55:45 +08:00
Stephen Chung
bc8aa470cb Use Engine::new(). 2020-10-07 15:52:24 +08:00
Stephen Chung
ec19103478 Fix serde typo. 2020-10-07 15:51:00 +08:00
Stephen Chung
d7bfe13b3e Add convenient functions and operators for Module and module resolvers. 2020-10-07 15:40:36 +08:00
Stephen Chung
a56859c2ac Add README for docs. 2020-10-07 13:23:28 +08:00
Stephen Chung
effb11ab94
Merge pull request #251 from schungx/master
Small enhancements.
2020-10-07 13:14:21 +08:00
Stephen Chung
1523981e4e Add AST::combine and AST::combine_filtered. 2020-10-07 12:11:25 +08:00
Stephen Chung
3340760b35 Fix no_std build. 2020-10-07 11:44:06 +08:00
Stephen Chung
df1dd5190e Add usage pattern on multi-layer functions. 2020-10-07 10:43:53 +08:00
Stephen Chung
ae76d9b8ae Add instructions on how to build The Book. 2020-10-07 10:43:39 +08:00
Stephen Chung
762072685d Move script optimization into separate section. 2020-10-06 22:35:27 +08:00
Stephen Chung
ae1157a140 Remove Expr::get_constant_str and change Expr::get_constant_value not to panic. 2020-10-06 22:09:26 +08:00
Stephen Chung
8809d25d3c Add Dynamic::from(&str) 2020-10-06 21:25:05 +08:00
Stephen Chung
1de44c7ecd Reserve $ symbol. 2020-10-05 23:02:50 +08:00
Stephen Chung
44f8d9e429 Refine Module::iter_script_fn_info. 2020-10-05 21:52:39 +08:00
Stephen Chung
2f6bb643aa Remove Module::get_script_function_by_signature. 2020-10-05 18:07:40 +08:00
Stephen Chung
82d48df734 Merge data type mismatch errors. 2020-10-05 13:45:57 +08:00
Stephen Chung
b67a743306 Do not eagerly evaluate is_def_fn and is_def_var. 2020-10-05 12:14:34 +08:00
Stephen Chung
29bf790286 Fix no_function build. 2020-10-05 12:09:45 +08:00
Stephen Chung
4356d02828 Fix no_object builds. 2020-10-05 12:05:46 +08:00
Stephen Chung
0d0affd5e9 Eagerly evaluate built-in operators for OptimizationLevel::Simple. 2020-10-05 10:27:31 +08:00
Stephen Chung
b91a073596 Add events handler pattern. 2020-10-04 23:05:33 +08:00
Stephen Chung
a962debf0d Simplify target back propagation. 2020-10-04 10:40:44 +08:00
Stephen Chung
d802829156 Bump version. 2020-10-03 23:29:34 +08:00
Stephen Chung
23d0f52284 Better error messages. 2020-10-03 23:27:30 +08:00
Stephen Chung
9664ae42a7 Add is_def_XXX tests. 2020-10-03 21:59:19 +08:00
Stephen Chung
1e13e6be5f Doc formatting. 2020-10-03 18:49:11 +08:00
Stephen Chung
fbfb7677c1 Add is_def_var and is_def_fn. 2020-10-03 16:25:58 +08:00
Stephen Chung
eec3f4e1bf Module:;eval_ast_as_new defaults to merging namespaces. 2020-10-03 11:42:54 +08:00
Stephen Chung
a72f70846f Make merged namespace more efficient. 2020-10-02 23:14:33 +08:00
Stephen Chung
08ca90a136 Use ImmutableString for import alias. 2020-10-02 18:52:18 +08:00
Stephen Chung
038b058e63 Use shared AST module. 2020-10-02 16:21:18 +08:00
Stephen Chung
2fd30321a8 Fix test. 2020-10-02 15:31:59 +08:00
Stephen Chung
d2c94ba07c Add more module tests. 2020-10-02 14:55:02 +08:00
Stephen Chung
e8d5f78f88 Simplify code. 2020-10-01 23:31:27 +08:00
Stephen Chung
a13fcc5cc2 Refine plugin module docs. 2020-10-01 16:47:02 +08:00
Stephen Chung
fca908ef58
Merge pull request #249 from schungx/master
Finalize 0.19.0.
2020-10-01 10:43:13 +08:00
Stephen Chung
07fdd1bef1 Fix image url link. 2020-10-01 00:11:45 +08:00
Stephen Chung
45a290f0ea Change doc test from no_run to ignore. 2020-09-30 23:39:46 +08:00
Stephen Chung
2290c72de1 Fix tests. 2020-09-30 23:27:41 +08:00
Stephen Chung
cbc3d8764a Revise docs for 0.19.0. 2020-09-30 23:02:01 +08:00
Stephen Chung
a04ed02b54 Simplify macro system and update doc comments. 2020-09-30 22:55:40 +08:00