Stephen Chung
|
e88713611c
|
Add split for arrays.
|
2021-02-23 11:57:50 +08:00 |
|
Stephen Chung
|
ac3d8e35d4
|
Add splitn, rsplit and rsplitn equivalents to strings.
|
2021-02-23 11:56:04 +08:00 |
|
Stephen Chung
|
0b49865f29
|
Fix no_std build.
|
2021-02-21 14:41:20 +08:00 |
|
Stephen Chung
|
4120e3c88e
|
Include decimal in generated docs.
|
2021-02-21 14:26:31 +08:00 |
|
Stephen Chung
|
54e26059dc
|
Set correct position for system errors inside function calls.
|
2021-02-20 14:32:37 +08:00 |
|
Stephen Chung
|
72334f0c42
|
Lower release stack overflow protection limit.
|
2021-02-20 14:05:47 +08:00 |
|
Stephen Chung
|
5285dad1a8
|
Fix feature build.
|
2021-02-19 23:48:11 +08:00 |
|
Stephen Chung
|
182fc2c3d1
|
Check for constant values passed to methods.
|
2021-02-19 23:13:53 +08:00 |
|
Stephen Chung
|
724ad05916
|
Add wasm64 as potential target.
|
2021-02-19 15:50:48 +08:00 |
|
Stephen Chung
|
4e3ab7fa6a
|
Add compiler guards for mutually-exclusive features.
|
2021-02-19 15:49:51 +08:00 |
|
Stephen Chung
|
b789c319e7
|
Rename serde_impl to serde.
|
2021-02-19 15:17:14 +08:00 |
|
Stephen Chung
|
bd5ff457d2
|
Built-in interop between FLOAT/Decimal and INT.
|
2021-02-19 11:47:26 +08:00 |
|
Stephen Chung
|
7b8322b6e1
|
Scope implements IntoIterator.
|
2021-02-18 23:35:22 +08:00 |
|
Stephen Chung
|
d2121e2183
|
Add operators between FLOAT/Decimal and INT.
|
2021-02-18 14:33:27 +08:00 |
|
Stephen Chung
|
9a9adbefcc
|
Wrap eval errors in ErrorInFunctionCall.
|
2021-02-18 14:33:12 +08:00 |
|
Stephen Chung
|
f8a7ada2a2
|
Implement Add and AddAssign to Position, fix bug in Position::is_beginning_of_line
|
2021-02-18 10:47:57 +08:00 |
|
Stephen Chung
|
cc90b5ffab
|
Remove unnecessary lifetimes.
|
2021-02-17 19:28:07 +08:00 |
|
Stephen Chung
|
678d0f5e33
|
Fix f32_float build.
|
2021-02-17 14:05:35 +08:00 |
|
Stephen Chung
|
a2277d07f3
|
Add arithmetic operators between FLOAT and INT.
|
2021-02-17 13:06:47 +08:00 |
|
Stephen Chung
|
b2ca8c34d1
|
Add atan2 and hypot functions.
|
2021-02-17 12:27:27 +08:00 |
|
Stephen Chung
|
909d48caed
|
Provide short-cuts to Decimal calculations.
|
2021-02-15 17:42:33 +08:00 |
|
Stephen Chung
|
f5c2903071
|
Refine Decimal rounding.
|
2021-02-15 12:07:45 +08:00 |
|
Stephen Chung
|
40e4a92401
|
Support scientific notation for Decimal parsing.
|
2021-02-14 17:34:53 +08:00 |
|
Stephen Chung
|
fc21756785
|
Add rounding functions to Decimal numbers.
|
2021-02-13 23:25:22 +08:00 |
|
Stephen Chung
|
224d93f167
|
Add comparison operators for Decimals.
|
2021-02-13 23:01:34 +08:00 |
|
Stephen Chung
|
61a01ea957
|
Add comments to Union.
|
2021-02-13 23:01:26 +08:00 |
|
Stephen Chung
|
f498dc81a3
|
Fix codegen test.
|
2021-02-13 22:19:46 +08:00 |
|
Stephen Chung
|
3650b04c38
|
Add Decimal number type.
|
2021-02-13 20:57:56 +08:00 |
|
Stephen Chung
|
4fdd58f220
|
Change AST filters to Fn from FnMut.
|
2021-02-13 10:56:09 +08:00 |
|
Stephen Chung
|
2846d1b63f
|
Change token to use FloatWrapper.
|
2021-02-12 23:07:28 +08:00 |
|
Stephen Chung
|
aea5ec50c9
|
Fix no-std build.
|
2021-02-11 21:46:11 +08:00 |
|
Stephen Chung
|
6f71367c15
|
Use scneitific notation when printing large or small floating-point numbers.
|
2021-02-11 21:28:07 +08:00 |
|
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
|
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
|
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
|
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
|
c5e2620d0f
|
Minor code refactors.
|
2021-02-03 19:14:26 +08:00 |
|
Stephen Chung
|
42058836ba
|
Fix panic in property access parsing error.
|
2021-01-31 18:44:50 +08:00 |
|
Stephen Chung
|
7fc38d4cd2
|
Change rhaiscript.github.io to rhai.rs
|
2021-01-30 07:19:54 +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
|
e902c74073
|
Add threading example.
|
2021-01-25 11:31:54 +08:00 |
|
Stephen Chung
|
c245fe88fd
|
Allow stacking ! operators.
|
2021-01-24 21:21: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
|
0f7b390881
|
Serialize Timestamp with type name instead of panic.
|
2021-01-19 14:22: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 |
|
Stephen Chung
|
65621b79b1
|
Fix volatile warnings.
|
2021-01-16 14:46:03 +08:00 |
|
Ilya Lakhin
|
421baebbc1
|
Exposing AST functions shared module under internals feature
|
2021-01-16 01:38:50 +07:00 |
|
Stephen Chung
|
c4b6c31bf0
|
Use ahash as default hasher.
|
2021-01-15 23:52:56 +08:00 |
|
Stephen Chung
|
1c7884f0d8
|
Switch to fxhash for fast hashing.
|
2021-01-15 23:30:45 +08:00 |
|
Stephen Chung
|
92c7fd9e5b
|
Better error messages.
|
2021-01-15 17:13:04 +08:00 |
|
Stephen Chung
|
3f44e2893c
|
Wrap up 0.19.10.
|
2021-01-14 19:07:03 +08:00 |
|
Stephen Chung
|
fe65bf6137
|
Fix bug in optimizer.
|
2021-01-12 23:52:50 +08:00 |
|
Stephen Chung
|
8c47d61456
|
Refine documentation and comments.
|
2021-01-11 23:09:33 +08:00 |
|
Stephen Chung
|
5b9a18f5b8
|
Fix FileModuleResolver::clear_cache_for_path.
|
2021-01-10 19:34:26 +08:00 |
|
Stephen Chung
|
14fe4f9f1b
|
Change resolve_ast return type.
|
2021-01-09 23:26:50 +08:00 |
|
Stephen Chung
|
0b6657d1b1
|
Fix clippy.
|
2021-01-09 17:13:34 +08:00 |
|
Stephen Chung
|
e5b345bca4
|
Fix feature builds.
|
2021-01-09 17:06:01 +08:00 |
|
Stephen Chung
|
ad250fc973
|
Recursive self-contained AST.
|
2021-01-09 16:52:22 +08:00 |
|
Stephen Chung
|
637f47d259
|
Split AST::set_source into set_source/clear_source.
|
2021-01-09 15:20:07 +08:00 |
|
Stephen Chung
|
1513e6ab6a
|
Fix internals build.
|
2021-01-09 00:49:50 +08:00 |
|
Stephen Chung
|
bfe9ac2188
|
Fix feature builds.
|
2021-01-09 00:40:44 +08:00 |
|
Stephen Chung
|
0f1f6c4ad3
|
Add Engine::compile_to_self_contained.
|
2021-01-09 00:24:55 +08:00 |
|
Stephen Chung
|
b96c832141
|
Add EvalAltResult::clear_position().
|
2021-01-08 14:29:57 +08:00 |
|
Stephen Chung
|
ec18bd26a2
|
Handle no-std without sync.
|
2021-01-07 22:52:20 +08:00 |
|
Stephen Chung
|
96b1e7777b
|
Update URL links.
|
2021-01-07 17:30:06 +08:00 |
|
Stephen Chung
|
e059ca009c
|
Fix feature builds.
|
2021-01-06 18:22:45 +08:00 |
|
Stephen Chung
|
a5d6392107
|
Use NonZero for limits.
|
2021-01-06 13:46:53 +08:00 |
|
Stephen Chung
|
3fbcefe0ed
|
Move HashableHashMap to utils.
|
2021-01-05 18:37:07 +08:00 |
|
Stephen Chung
|
d5891d4802
|
Remove eval_expr_as_target.
|
2021-01-05 18:01:42 +08:00 |
|
Stephen Chung
|
cf9d35166d
|
Remove hashing of the entire script by making Expr and Stmt Hash.
|
2021-01-04 11:58:24 +08:00 |
|
Stephen Chung
|
e2a47b2a65
|
Disallow duplicated function definitions.
|
2021-01-03 20:54:08 +08:00 |
|
Stephen Chung
|
103af43f68
|
Fix typo in sync.
|
2021-01-03 13:46:08 +08:00 |
|
Stephen Chung
|
33f7c8557c
|
Put source into AST.
|
2021-01-03 13:30:01 +08:00 |
|
Stephen Chung
|
d3894e8aef
|
Add #[inline]
|
2021-01-03 13:29:42 +08:00 |
|
Stephen Chung
|
70a0d6ce58
|
Make id_raw return Option<&ImmutableString>
|
2021-01-03 11:25:25 +08:00 |
|
Stephen Chung
|
e3b7aa47a0
|
Merge branch 'master' of https://github.com/schungx/rhai
|
2021-01-03 11:15:57 +08:00 |
|
Ilya Lakhin
|
85ec781a35
|
Module::id_raw became crate-public
|
2021-01-03 09:29:50 +07:00 |
|
Ilya Lakhin
|
acbf5d8723
|
AST::set_source affects internal module id
|
2021-01-03 09:29:50 +07:00 |
|
Stephen Chung
|
1bbf473ec7
|
Add source info to native calls.
|
2021-01-03 00:20:13 +08:00 |
|