Commit Graph

3643 Commits

Author SHA1 Message Date
Stephen Chung
8ffb6c03b5 Add scientific notation to floats. 2021-02-11 19:20:30 +08:00
Stephen Chung
d49581356d Remove duplicated functions lookup for script function call. 2021-02-11 12:13:30 +08:00
Stephen Chung
645e1fe583 Add missing cases to Expr::walk. 2021-02-11 01:47:09 +08:00
Stephen Chung
bd633a2540
Merge pull request #347 from schungx/master
Use radians for trig and ** for exponentiation.
2021-02-10 12:55:58 +08:00
Stephen Chung
61638d6566 Use ** for power/exponentiation. 2021-02-10 12:41:27 +08:00
Stephen Chung
8c26b49a39 Change trig functions to take/return radians. 2021-02-10 12:10:50 +08:00
Stephen Chung
8f47f7c9e2 Add new floating-point functions. 2021-02-09 15:57:38 +08:00
Stephen Chung
812da25098
Merge pull request #346 from schungx/master
Fix bugs.
2021-02-09 14:51:15 +08:00
Stephen Chung
4815de3634 Fix codegen test error display. 2021-02-09 14:34:51 +08:00
Stephen Chung
88b01d6aba Refine docs. 2021-02-09 14:22:55 +08:00
Stephen Chung
2dd5aceb1d Fix panic of continue/break/return in try-catch block. 2021-02-09 14:22:21 +08:00
Stephen Chung
e88e65f36e Fix bug with parsing empty statements. 2021-02-09 14:08:17 +08:00
Stephen Chung
58528db45c Encapsulate functions resolution cache into State API. 2021-02-07 17:56:29 +08:00
Stephen Chung
a76bed2f46 Use eval_statements_block when at global. 2021-02-07 17:06:33 +08:00
Stephen Chung
e22bb35f82
Merge pull request #342 from schungx/master
Improve function resolution.
2021-02-07 16:09:36 +08:00
Stephen Chung
f388d22c0f Fix no_module build., 2021-02-07 15:52:06 +08:00
Stephen Chung
aafff4fb93 Use stacked functions resolution caches to further improve performance. 2021-02-07 15:41:40 +08:00
Stephen Chung
7b87f81850 Add has_override and script calls to function resolution cache. 2021-02-07 15:09:27 +08:00
Stephen Chung
a54b88a8b0 Dynamic::into_shared not available under no_closure. 2021-02-06 22:16:44 +08:00
Stephen Chung
dff124b242 Save functions resolution cache during script call. 2021-02-06 22:16:05 +08:00
Stephen Chung
24ed5ef99a Bump version. 2021-02-03 19:23:50 +08:00
Stephen Chung
f1c2562873 Fix keyword typo. 2021-02-03 19:22:35 +08:00
Stephen Chung
c5e2620d0f Minor code refactors. 2021-02-03 19:14:26 +08:00
Stephen Chung
17f1bf6014
Merge pull request #341 from schungx/master
Fix panic in property access parsing error.
2021-01-31 18:51:41 +08:00
Stephen Chung
42058836ba Fix panic in property access parsing error. 2021-01-31 18:44:50 +08:00
Stephen Chung
3a8a56dafd
Merge pull request #339 from schungx/master
Change rhaiscript.github.io to rhai.rs
2021-01-30 08:15:51 +08:00
Stephen Chung
7fc38d4cd2 Change rhaiscript.github.io to rhai.rs 2021-01-30 07:19:54 +08:00
Stephen Chung
38266f3bd8
Merge pull request #338 from schungx/master
Fix bug and FuncArgs enhancement.
2021-01-29 23:27:46 +08:00
Stephen Chung
bb925a697c Fix bug in Array::insert. 2021-01-29 22:29:36 +08:00
Stephen Chung
903b6d6795 Rename set_doc_comments to enable_doc_comments. 2021-01-28 16:59:19 +08:00
Stephen Chung
cef61bc924 Fix no_function build. 2021-01-28 16:48:56 +08:00
Stephen Chung
f76daadcba Refine FuncArgs trait. 2021-01-28 15:29:55 +08:00
Stephen Chung
d14168a419 Refine Dynamic::take_immutable_string when shared. 2021-01-27 18:34:32 +08:00
Stephen Chung
2a209b82e9 Fix threading example for sync. 2021-01-25 12:55:10 +08:00
Stephen Chung
e902c74073 Add threading example. 2021-01-25 11:31:54 +08:00
Stephen Chung
ab317bec4e Add test for NativeCallContext. 2021-01-24 21:33:05 +08:00
Stephen Chung
c245fe88fd Allow stacking ! operators. 2021-01-24 21:21:15 +08:00
Stephen Chung
d2908384c2
Merge pull request #335 from schungx/master
Fix plugin function argument bug.
2021-01-23 11:25:15 +08:00
Stephen Chung
049f472ac9 Fix bug in internals. 2021-01-23 10:34:38 +08:00
Stephen Chung
3b42cc5bb2 Fix bug where plugin module parameters are consumed. 2021-01-23 09:37:27 +08:00
Stephen Chung
8aae3ac46c Add function name to NativeCallContext. 2021-01-21 21:49:25 +08:00
Stephen Chung
f6553c1426 Fix feature builds. 2021-01-21 10:32:05 +08:00
Stephen Chung
62462ffead Add wasm-bindgen and stdweb for WASM builds. 2021-01-20 23:17:28 +08:00
Stephen Chung
9acf7b4774 Bump ahash to 0.6. 2021-01-19 14:23:05 +08:00
Stephen Chung
0f7b390881 Serialize Timestamp with type name instead of panic. 2021-01-19 14:22:55 +08:00
Stephen Chung
0a763542ad
Merge pull request #333 from schungx/master
Serialize/Deserialize for Dynamic and wasm-bindgen/stdweb features.
2021-01-18 12:07:09 +08:00
Stephen Chung
aef18b5473 Add wasm-bindgen and stdweb features. 2021-01-18 11:35:55 +08:00
Stephen Chung
4a8debb5ed Fix builds. 2021-01-18 10:56:42 +08:00
Stephen Chung
ec272cf9b9 Add Serialize/Deserialize for Dynamic and ImmutableString. 2021-01-18 10:30:58 +08:00
Stephen Chung
6b5a14ee88 Fix compilation bug. 2021-01-18 10:23:41 +08:00