Stephen Chung
|
4da5af8aae
|
Do not flatten arguments passed by value.
|
2021-03-06 21:25:49 +08:00 |
|
Stephen Chung
|
a126d05c3f
|
Skip evaluate condition for loop statement.
|
2021-03-06 16:05:22 +08:00 |
|
Stephen Chung
|
e14bef4b10
|
Trap &mut String parameters.
|
2021-03-06 14:41:35 +08:00 |
|
Stephen Chung
|
fe633ea7d3
|
Fix bug when passing shared string variable to &str parameter.
|
2021-03-06 10:44:55 +08:00 |
|
Stephen Chung
|
426f841aa2
|
Fix serde build.
|
2021-03-05 23:41:20 +08:00 |
|
Stephen Chung
|
a251219730
|
Remove public Dynamic::as_str.
|
2021-03-05 23:00:27 +08:00 |
|
Stephen Chung
|
ca1ce6b6b8
|
Streamline macros.
|
2021-03-05 22:58:20 +08:00 |
|
Stephen Chung
|
65ef32af19
|
Calculate whether contains global functions during indexing.
|
2021-03-05 20:07:35 +08:00 |
|
Stephen Chung
|
4e5039d4fe
|
Fix bug in built-in string operators.
|
2021-03-05 20:06:49 +08:00 |
|
Stephen Chung
|
8f0830af1c
|
Expose Variant under internals.
|
2021-03-05 14:18:36 +08:00 |
|
Stephen Chung
|
2052942d9d
|
Add Dynamic::as_unit.
|
2021-03-05 13:34:58 +08:00 |
|
Stephen Chung
|
88943915a7
|
Fix decimal build.
|
2021-03-05 12:58:27 +08:00 |
|
Stephen Chung
|
4c5ea8decc
|
Fix switch of non-hashable value.
|
2021-03-05 10:33:48 +08:00 |
|
Stephen Chung
|
0fa3968b74
|
Try not to check slice bounds in straight hasher.
|
2021-03-05 09:31:56 +08:00 |
|
Stephen Chung
|
01664ef7ee
|
Fix range overflow panics.
|
2021-03-04 23:47:52 +08:00 |
|
Stephen Chung
|
8d487906cc
|
Remove unnecessary implementation.
|
2021-03-04 22:57:24 +08:00 |
|
Stephen Chung
|
0f56b56b9c
|
Fix range function.
|
2021-03-04 21:43:00 +08:00 |
|
Stephen Chung
|
0589572d19
|
Refine inlining.
|
2021-03-04 18:13:47 +08:00 |
|
Stephen Chung
|
4e69b1847d
|
Turn Shared into alias.
|
2021-03-04 14:08:11 +08:00 |
|
Stephen Chung
|
399e7b0e28
|
Streamline macros.
|
2021-03-04 13:13:51 +08:00 |
|
Stephen Chung
|
22c392d796
|
Fix no_closure build.
|
2021-03-04 10:50:45 +08:00 |
|
Stephen Chung
|
2707b887c6
|
Fix shared value assignments.
|
2021-03-04 10:24:14 +08:00 |
|
Stephen Chung
|
ade290da7e
|
Simplify lifetimes.
|
2021-03-03 22:49:57 +08:00 |
|
Stephen Chung
|
ed568a9395
|
Make RhaiResult internal.
|
2021-03-03 22:49:29 +08:00 |
|
Stephen Chung
|
dfc1ea692f
|
Implement built-in operators with macros.
|
2021-03-03 21:46:48 +08:00 |
|
Stephen Chung
|
41c39a2060
|
Remove Dynamic::as_locked_immutable_string.
|
2021-03-03 18:13:41 +08:00 |
|
Stephen Chung
|
58df3ca141
|
Fix decimal and no_std builds.
|
2021-03-03 13:34:29 +08:00 |
|
Stephen Chung
|
77277ebf37
|
Use as_xxx() API.
|
2021-03-03 13:16:53 +08:00 |
|
Stephen Chung
|
2c8b15c740
|
Private global functions are still exposed.
|
2021-03-03 11:40:27 +08:00 |
|
Stephen Chung
|
ce6e6ceaaa
|
Fix serde build.
|
2021-03-02 23:19:35 +08:00 |
|
Stephen Chung
|
7262d63909
|
Move default comparisons into builtin.
|
2021-03-02 23:08:54 +08:00 |
|
Stephen Chung
|
5b1f80f5ce
|
Store negative result from has_override to function resolution cache.
|
2021-03-02 22:31:07 +08:00 |
|
Stephen Chung
|
6fd2262ace
|
Remove unnecessary is_def_fn function.
|
2021-03-02 22:27:53 +08:00 |
|
Stephen Chung
|
e3e53bd399
|
Introduce RhaiResult.
|
2021-03-02 15:02:28 +08:00 |
|
Stephen Chung
|
521c8fad27
|
Streamline ref object backup.
|
2021-03-02 14:44:21 +08:00 |
|
Stephen Chung
|
b76e8da5ee
|
Cache built-in functions to improve resolution speed.
|
2021-03-02 13:48:41 +08:00 |
|
Stephen Chung
|
67d277aa21
|
Disallow overriding keywords.
|
2021-03-01 22:44:56 +08:00 |
|
Stephen Chung
|
fc10df7d63
|
Keyword can no longer be overloaded.
|
2021-03-01 17:17:13 +08:00 |
|
Stephen Chung
|
b7e864bb78
|
Extract function resolution code.
|
2021-03-01 16:53:03 +08:00 |
|
Stephen Chung
|
b466d58192
|
Remove unnecessary AsRef and impl IntoIterator.
|
2021-03-01 15:58:11 +08:00 |
|
Stephen Chung
|
061fce1f02
|
No more pub_only.
|
2021-03-01 15:39:49 +08:00 |
|
Stephen Chung
|
1300ad8677
|
No need to copy sub-modules.
|
2021-03-01 14:54:20 +08:00 |
|
Stephen Chung
|
733f4af8b3
|
Fix no_std build.
|
2021-03-01 09:30:23 +08:00 |
|
Stephen Chung
|
8eee21ff38
|
Use object map as catch error value.
|
2021-02-28 14:38:34 +08:00 |
|
Stephen Chung
|
66b557692b
|
Allow negative range step.
|
2021-02-27 15:27:40 +08:00 |
|
Stephen Chung
|
082111074e
|
Encapsulate gen_call_signature.
|
2021-02-27 15:07:16 +08:00 |
|
Stephen Chung
|
c8addb45ac
|
Set position for errors in native function call.
|
2021-02-27 15:06:57 +08:00 |
|
Stephen Chung
|
d935401b03
|
Allow evaluating AST in Engine::call_fn_dynamic.
|
2021-02-26 11:21:23 +08:00 |
|
Stephen Chung
|
3f4dba9dbc
|
Build in operators between string and char.
|
2021-02-25 13:29:49 +08:00 |
|
Stephen Chung
|
f03983a9ca
|
Expose Engine::map_type_name.
|
2021-02-25 11:04:01 +08:00 |
|
Stephen Chung
|
1c1dfc701f
|
Fix Decimal.
|
2021-02-25 11:03:54 +08:00 |
|
Stephen Chung
|
9495d3f733
|
Separate op-assignment with other function calls.
|
2021-02-25 10:59:22 +08:00 |
|
Stephen Chung
|
49e5382ab0
|
Do not return default for comparisons between same types.
|
2021-02-25 10:59:11 +08:00 |
|
Stephen Chung
|
02057ef1d2
|
Avoid double checking of builtin's.
|
2021-02-24 23:23:32 +08:00 |
|
Stephen Chung
|
baaa0461bf
|
Limit Dynamic parameters to 16.
|
2021-02-24 22:40:18 +08:00 |
|
Stephen Chung
|
37540fda12
|
Fix bug with op-assignment.
|
2021-02-24 16:17:04 +08:00 |
|
Stephen Chung
|
9d6ad2092c
|
Fix decimal build.
|
2021-02-24 15:56:29 +08:00 |
|
Stephen Chung
|
4ac05aee8b
|
Disallow implicit comparisons between different numeric types.
|
2021-02-24 15:45:29 +08:00 |
|
Stephen Chung
|
0d933d865a
|
Do not test for built-in's when operands are not built-in.
|
2021-02-24 13:53:11 +08:00 |
|
Stephen Chung
|
c501b34191
|
Implement strings concat via Dynamic wildcards.
|
2021-02-24 11:28:21 +08:00 |
|
Stephen Chung
|
c739e54e5b
|
Refine strings package.
|
2021-02-24 11:05:39 +08:00 |
|
Stephen Chung
|
8b67a9a9bc
|
Do not test for op-assignment when not ending with '='.
|
2021-02-24 11:05:16 +08:00 |
|
Stephen Chung
|
71680e3c77
|
Extract op assignment into function.
|
2021-02-24 11:04:54 +08:00 |
|
Stephen Chung
|
6f876e85cc
|
Always call native for op-assignment operators.
|
2021-02-23 20:32:50 +08:00 |
|
Stephen Chung
|
123e9d6901
|
Short-circuits op-assignment for indexing and dotting.
|
2021-02-23 20:03:28 +08:00 |
|
Stephen Chung
|
36420f0b99
|
Implement print/debug functions via Dynamic parameters.
|
2021-02-23 19:08:05 +08:00 |
|
Stephen Chung
|
ba2b0630f7
|
Add support for Dynamic wildcard arguments.
|
2021-02-23 16:06:36 +08:00 |
|
Stephen Chung
|
8248c9999d
|
Add split version for chars.
|
2021-02-23 12:52:47 +08:00 |
|
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 |
|