Commit Graph

192 Commits

Author SHA1 Message Date
Stephen Chung
d511aac7a4 Reduce max call stack size for debug. 2020-10-08 23:00:01 +08:00
Stephen Chung
a56859c2ac Add README for docs. 2020-10-07 13:23:28 +08:00
Stephen Chung
1523981e4e Add AST::combine and AST::combine_filtered. 2020-10-07 12:11:25 +08:00
Stephen Chung
df1dd5190e Add usage pattern on multi-layer functions. 2020-10-07 10:43:53 +08:00
Stephen Chung
762072685d Move script optimization into separate section. 2020-10-06 22:35:27 +08:00
Stephen Chung
1de44c7ecd Reserve $ symbol. 2020-10-05 23:02:50 +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
d802829156 Bump version. 2020-10-03 23:29:34 +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
d2c94ba07c Add more module tests. 2020-10-02 14:55:02 +08:00
Stephen Chung
a13fcc5cc2 Refine plugin module docs. 2020-10-01 16:47:02 +08:00
Stephen Chung
07fdd1bef1 Fix image url link. 2020-10-01 00:11:45 +08:00
Stephen Chung
cbc3d8764a Revise docs for 0.19.0. 2020-09-30 23:02:01 +08:00
Stephen Chung
c7dfbd48a6 Restore call_fn_dynamic. 2020-09-29 18:37:00 +08:00
Stephen Chung
64c421b3d7 Revise docs. 2020-09-28 22:14:19 +08:00
Stephen Chung
726b030616 Implement +/- operators for timestamp. 2020-09-26 19:45:33 +08:00
Stephen Chung
03dce86328 Support Dynamic as function default return value. 2020-09-26 16:27:38 +08:00
Stephen Chung
4efe6b90e7 Add string::split(). 2020-09-25 23:02:49 +08:00
Stephen Chung
599fe846cb Add complete_namespace to Module::eval_ast_as_new. 2020-09-25 18:07:39 +08:00
Stephen Chung
e637bfa51d Change pure to independent. 2020-09-25 09:39:18 +08:00
Stephen Chung
c4ec93080e New FileModuleResolver. 2020-09-24 22:50:28 +08:00
Stephen Chung
12e9a8567d Make tables casing consistent. 2020-09-24 11:17:39 +08:00
Stephen Chung
9fcbda1ba4 Add reverse function to arrays. 2020-09-24 10:51:21 +08:00
Stephen Chung
ed38b50490 Add parse_int and parse_float. 2020-09-23 12:00:03 +08:00
Stephen Chung
594dcc3a06 Disallow registering indexers for arrays, maps and strings. 2020-09-22 17:57:56 +08:00
Stephen Chung
283495a02f Setters should have no return value. 2020-09-22 12:14:26 +08:00
Stephen Chung
83f9df2852 Fix op-assignment overrides. 2020-09-21 16:15:52 +08:00
Stephen Chung
c7a675e18a Fix no_object builds. 2020-09-20 14:52:38 +08:00
Stephen Chung
3341f40fd2 Refine docs. 2020-09-20 10:50:58 +08:00
Stephen Chung
2ff3a1fde5 Refine docs. 2020-09-19 12:14:02 +08:00
Stephen Chung
b795ce9f45 Refine docs. 2020-09-18 11:52:23 +08:00
Stephen Chung
1060ff35fd Fix tests. 2020-09-16 21:53:22 -05:00
Stephen Chung
7ceb624ec1 Add combine_with_exported_module. 2020-09-16 21:53:22 -05:00
Stephen Chung
654da2db8a Fix tests. 2020-09-16 21:53:22 -05:00
Stephen Chung
848bdf3f01 Add combine_with_exported_module. 2020-09-16 21:50:44 -05:00
Stephen Chung
c7de72aba2 Clarify private module functions/variables. 2020-09-10 17:42:53 +08:00
Stephen Chung
939f4413de Add multiple registrations of plugin function names. 2020-09-10 12:10:49 +08:00
Stephen Chung
ae953315fe Refine plugins doc. 2020-09-04 15:42:31 +08:00
J Henry Waugh
c5b2debf4a Book updates for Plugins 2020-08-31 19:03:45 -05:00
Stephen Chung
f4e4958973 Fix typos. 2020-08-31 12:03:30 +08:00
Stephen Chung
ef9b90c3ef Add entry on plugins. 2020-08-31 11:23:11 +08:00
Stephen Chung
4d9aad816c Add writeup on plugins. 2020-08-30 23:13:47 +08:00
Stephen Chung
b72a6355fd Fix docs on sign result. 2020-08-30 17:28:53 +08:00
Stephen Chung
9ba7a1245d Restructure book chapters. 2020-08-30 17:27:42 +08:00
Stephen Chung
cd867b180f Restructure book chapters. 2020-08-30 17:25:36 +08:00
Stephen Chung
a72f797da1 Merge branch 'plugins' into plugins_dev 2020-08-23 17:54:37 +08:00
Stephen Chung
e2f271644a Expand packages and raw Engine write-up. 2020-08-23 17:22:39 +08:00
Stephen Chung
d134b72473 Add link from parse_json to serde. 2020-08-23 14:50:53 +08:00
Stephen Chung
c6a3397b29 Remove dependency on num-traits. 2020-08-23 11:16:08 +08:00
Stephen Chung
0b04d05afe Do not parse closures when allow_anonymous_fn is false. 2020-08-22 11:08:27 +08:00
Stephen Chung
6a3e123306 Use split_first_mut instead of split_at_mut. 2020-08-18 23:19:26 +08:00
Stephen Chung
c5360db185 Handle #{ in Engine::parse_json, restrict to object hashes only. 2020-08-18 23:07:17 +08:00
Stephen Chung
111f5931b3 Add multiple instantiation. 2020-08-18 23:06:48 +08:00
Stephen Chung
f9807a3c1e Remove content on avoiding &mut ImmutableString which is invalid. 2020-08-15 00:10:14 +08:00
Stephen Chung
a5b4d61dff Fix docs. 2020-08-11 13:46:09 +08:00
Stephen Chung
2d4b85f67d Add cusotm syntax. 2020-08-10 12:03:22 +08:00
Stephen Chung
c86a979601 Refine docs. 2020-08-07 18:40:31 +08:00
Stephen Chung
0b21d80641 Add patterns section. 2020-08-07 11:44:15 +08:00
Stephen Chung
b8b1efd241 Add note on &T parameters. 2020-08-06 21:11:24 +08:00
Stephen Chung
efe964f009 Fix writeup. 2020-08-06 21:10:41 +08:00
Stephen Chung
2f395492de Simply error code. 2020-08-06 10:17:32 +08:00
Stephen Chung
ffe52bf437 Allow omitting the alias in import statement. 2020-08-05 23:23:53 +08:00
Stephen Chung
bb2c9f7c59 Bump version. 2020-08-05 23:11:54 +08:00
Stephen Chung
ae11dbbefe Fix feature flags. 2020-08-05 22:53:01 +08:00
Stephen Chung
5ea08d2b50 Bump version. 2020-08-05 17:55:36 +08:00
Stephen Chung
9f302d4ef5 Update docs and tests. 2020-08-04 18:39:24 +08:00
Stephen Chung
4878a69503 Add docs for closures. 2020-08-04 16:27:55 +08:00
Stephen Chung
4079164bfd Implement closures. 2020-08-03 12:10:20 +08:00
Stephen Chung
8d0623d07f Add is_shared function. 2020-07-31 18:43:34 +08:00
Stephen Chung
a35155b3e9 Add shared and take to keywords list. 2020-07-31 17:07:09 +08:00
Stephen Chung
7d4620d0d9 Unbounded -> unbound. 2020-07-30 23:29:11 +08:00
Stephen Chung
98b294c699 Implement capturing. 2020-07-30 18:18:28 +08:00
Stephen Chung
8299adf95c Add docs for auto-currying. 2020-07-29 22:43:57 +08:00
Stephen Chung
afbcd0fc0b Replace StaticVec with SmallVec. 2020-07-29 16:10:06 +08:00
Stephen Chung
e2daba55d7 Refine unicode-xid-ident feature writeup. 2020-07-29 13:57:17 +08:00
Stephen Chung
eeb86f5efb Merge branch 'master' of https://github.com/jonathandturner/rhai 2020-07-29 11:43:48 +08:00
ekicyou
aff7550f7d document update 2020-07-29 08:38:38 +09:00
Stephen Chung
b70fd35f4a Revise docs. 2020-07-28 10:25:57 +08:00
Stephen Chung
f05cd1fdf3 Add shared and sync to reserved keywords. 2020-07-28 10:25:26 +08:00
Stephen Chung
a3a167424b Allow Rust functions in FnPtr::call_dynamic. 2020-07-27 12:52:32 +08:00
Stephen Chung
ec5082c328 Better handling of reserved keywords. 2020-07-26 22:25:30 +08:00
Stephen Chung
ce20248792 Add more reserved keywords. 2020-07-26 21:57:30 +08:00
Stephen Chung
878ba0b794 Remove register_raw_fn_XXX API's. 2020-07-26 18:17:55 +08:00
Stephen Chung
5e48478496 Improve writeup. 2020-07-26 10:07:40 +08:00
Stephen Chung
c530792d00 Add repoTree and repoHome macros. 2020-07-25 16:36:50 +08:00
Stephen Chung
6d551f1596 Add currying support. 2020-07-22 23:12:09 +08:00
Stephen Chung
e103c8e66c Refine string docs. 2020-07-22 21:32:56 +08:00
Stephen Chung
abf66850f6 Enable custom syntax without internals. 2020-07-22 17:05:13 +08:00
Stephen Chung
35374f5b3b Simplify custom syntax. 2020-07-22 13:08:51 +08:00
Stephen Chung
16e8ef454f Refine no-std sample. 2020-07-21 23:08:46 +08:00
Stephen Chung
61a1355c59 Add no-std example. 2020-07-21 22:32:24 +08:00
Stephen Chung
700060b6e7 Remove no_std example. 2020-07-19 23:32:16 +08:00
Stephen Chung
686d40d4ae Move anonymous function to own chapter. 2020-07-19 21:18:13 +08:00
Stephen Chung
cf36dc5a57 Support for anonymous functions. 2020-07-19 17:14:55 +08:00
Stephen Chung
2f33edb762 FIx no_std. 2020-07-19 09:10:22 +08:00
Stephen Chung
3ae7cf4018 Improve treatment of disabled symbols and custom symbols. 2020-07-17 14:50:23 +08:00
Stephen Chung
d119e13b79 Allow binding of this pointer in FnPtr calls. 2020-07-17 10:18:07 +08:00
Stephen Chung
197f5d370f Reformat docs. 2020-07-16 12:09:40 +08:00