Stephen Chung
|
6ebe002b18
|
Check for missing docs.
|
2022-06-05 18:17:44 +08:00 |
|
Stephen Chung
|
47d0d014e3
|
Reduce cloning.
|
2022-05-19 14:32:43 +08:00 |
|
Stephen Chung
|
c7aea45d4b
|
Add to_int for decimal.
|
2022-05-09 14:20:33 +08:00 |
|
Stephen Chung
|
b4fea634b0
|
Avoid unnecessary allocations.
|
2022-05-07 16:29:20 +08:00 |
|
Stephen Chung
|
c3d013bddc
|
Add to_json for maps.
|
2022-04-21 12:15:21 +08:00 |
|
Stephen Chung
|
63359f3f81
|
Unused parameters naming.
|
2022-04-11 16:29:16 +08:00 |
|
Stephen Chung
|
1777ee7f6f
|
Allow strings to be iterable.
|
2022-04-09 13:37:43 +08:00 |
|
Stephen Chung
|
6422fddd6d
|
Better names for iterators.
|
2022-04-09 13:11:32 +08:00 |
|
Stephen Chung
|
8bd33d7b34
|
Change string splitting.
|
2022-04-09 13:07:42 +08:00 |
|
Stephen Chung
|
42b6796200
|
Fix no-std build.
|
2022-03-28 12:53:49 +08:00 |
|
Stephen Chung
|
cad4c7a942
|
Add starts_with and ends_with for strings.
|
2022-03-23 14:28:45 +08:00 |
|
Stephen Chung
|
dc8c4ed8f4
|
Improve string functions.
|
2022-03-17 17:00:48 +08:00 |
|
Stephen Chung
|
963af0653e
|
Fix sleep function.
|
2022-03-09 09:41:53 +08:00 |
|
Stephen Chung
|
1e4abd012c
|
Minor refactor.
|
2022-03-09 09:25:55 +08:00 |
|
Stephen Chung
|
cbb1c5c6a0
|
Add sleep.
|
2022-03-08 18:26:32 +08:00 |
|
Stephen Chung
|
8bda8c64df
|
Refine data structures
|
2022-03-05 17:57:23 +08:00 |
|
Stephen Chung
|
d2ad56e279
|
Improve string parameters.
|
2022-02-24 13:39:10 +08:00 |
|
Stephen Chung
|
664e3d31e5
|
BLOB's and strings.
|
2022-02-12 23:39:07 +08:00 |
|
Stephen Chung
|
83e1e88531
|
Add specific implementations for to_string.
|
2022-02-12 16:23:36 +08:00 |
|
Stephen Chung
|
d1a97be9e3
|
New syntax for package definition.
|
2022-02-10 12:33:48 +08:00 |
|
Stephen Chung
|
340a047369
|
Add fail on invalid property for maps.
|
2022-02-09 13:12:43 +08:00 |
|
Stephen Chung
|
f8cee0fe4e
|
Simplify using ..
|
2022-02-08 09:02:15 +08:00 |
|
Stephen Chung
|
4a80483749
|
Support call stack and FunctionExit for native functions.
|
2022-02-02 14:47:35 +08:00 |
|
Stephen Chung
|
6b02dde848
|
Gate dead code for no_module.
|
2022-01-29 11:09:43 +08:00 |
|
Stephen Chung
|
66af69aaff
|
Refactor and add state to debugger.
|
2022-01-28 18:59:18 +08:00 |
|
Stephen Chung
|
d75c3e1592
|
Change stack trace object property name.
|
2022-01-27 16:58:11 +08:00 |
|
Stephen Chung
|
c8357de1c8
|
Fix feature builds.
|
2022-01-27 16:58:11 +08:00 |
|
Stephen Chung
|
3c2ac7f0c5
|
Add ability for debugger to throw errors.
|
2022-01-27 16:58:11 +08:00 |
|
Stephen Chung
|
cc64ae3939
|
Fix no-std build.
|
2022-01-27 16:58:11 +08:00 |
|
Stephen Chung
|
2dc1fea40a
|
Remove non_snake_case warnings.
|
2022-01-27 16:58:11 +08:00 |
|
Stephen Chung
|
aee35e5f20
|
Add DebuggingPackage.
|
2022-01-27 16:58:11 +08:00 |
|
Stephen Chung
|
c32ace40a4
|
Fix builds.
|
2022-01-22 17:27:18 +08:00 |
|
Stephen Chung
|
3d4abeed0e
|
New metadata functions.
|
2022-01-20 08:16:38 +08:00 |
|
Stephen Chung
|
86fc2f7bf1
|
Refine types display.
|
2022-01-17 21:51:04 +08:00 |
|
Stephen Chung
|
16c03cc864
|
Add comments to standard library functions.
|
2022-01-17 21:49:06 +08:00 |
|
Stephen Chung
|
5232bbbff8
|
Add get/set methods to arrays, blobs, maps and strings.
|
2022-01-17 10:21:03 +08:00 |
|
Stephen Chung
|
57cfd6a354
|
Fix builds.
|
2022-01-16 23:15:37 +08:00 |
|
Stephen Chung
|
3667761340
|
Fix bugs and add comments to standard library.
|
2022-01-15 23:34:38 +08:00 |
|
Stephen Chung
|
e24848668a
|
Fix build.
|
2022-01-15 11:35:44 +08:00 |
|
Stephen Chung
|
e2e0b8d083
|
Fix Array::chop.
|
2022-01-14 10:04:24 +08:00 |
|
Stephen Chung
|
96764c0d2d
|
Fix UINT -> UNSIGNED_INT.
|
2022-01-13 22:51:56 +08:00 |
|
Stephen Chung
|
5ab7c59ba0
|
Fix Array::pad infinite loop.
|
2022-01-13 22:05:07 +08:00 |
|
Stephen Chung
|
0f4e8848f9
|
Extract index calculataion into functions.
|
2022-01-13 18:13:27 +08:00 |
|
Stephen Chung
|
37dbc68bf5
|
Use target_family for wasm.
|
2022-01-12 08:12:28 +08:00 |
|
Stephen Chung
|
047e65223d
|
Fix builds.
|
2022-01-07 12:19:01 +08:00 |
|
Stephen Chung
|
33bfff3722
|
Fix build.
|
2022-01-06 23:29:11 +08:00 |
|
Stephen Chung
|
c75d51ae88
|
Reduce unnecessary data size checking.
|
2022-01-06 22:10:16 +08:00 |
|
Stephen Chung
|
80edb1200d
|
Fix Array::pad limits.
|
2022-01-06 15:30:17 +08:00 |
|
Stephen Chung
|
bc6bf6c6ba
|
Change expect("exists") to unwrap().
|
2022-01-06 11:07:52 +08:00 |
|
Stephen Chung
|
328f6910b6
|
Refactor wasm feature gates.
|
2022-01-04 22:16:20 +08:00 |
|
Stephen Chung
|
1d1e473ac4
|
Minor refactor.
|
2022-01-03 23:16:47 +08:00 |
|
Stephen Chung
|
8961f36e8e
|
Move bit-fields into new package.
|
2022-01-03 23:10:20 +08:00 |
|
Stephen Chung
|
8329baea29
|
Fix doc comments.
|
2021-12-31 23:01:34 +08:00 |
|
Stephen Chung
|
f3a8364936
|
Split blob write into write_utf8 and write_ascii.
|
2021-12-31 17:49:38 +08:00 |
|
Stephen Chung
|
ce93f56813
|
Rename parameters.
|
2021-12-31 17:49:19 +08:00 |
|
Stephen Chung
|
64bf2eef5c
|
Better error messages.
|
2021-12-30 12:19:41 +08:00 |
|
Stephen Chung
|
e8b070cbf8
|
Fix builds.
|
2021-12-27 22:28:11 +08:00 |
|
Stephen Chung
|
757eacfdde
|
No need for types with Into::into.
|
2021-12-27 16:59:05 +08:00 |
|
Stephen Chung
|
05d4c81e7a
|
Use type alias for error.
|
2021-12-27 12:27:31 +08:00 |
|
Stephen Chung
|
e7ca3f41dd
|
Fix formatting.
|
2021-12-27 11:43:11 +08:00 |
|
Stephen Chung
|
01c35808cb
|
Use type alias
|
2021-12-25 23:49:14 +08:00 |
|
Stephen Chung
|
5c31ec7f78
|
Fix array bug.
|
2021-12-22 22:22:20 +08:00 |
|
Stephen Chung
|
3751b6d018
|
Build in array/blob concat functions.
|
2021-12-22 19:59:48 +08:00 |
|
Stephen Chung
|
422db4269e
|
Allow multiple packages in def_package.
|
2021-12-22 12:41:55 +08:00 |
|
Stephen Chung
|
bca9fe53b0
|
New syntax for def_package.
|
2021-12-20 11:42:39 +08:00 |
|
Stephen Chung
|
123012404b
|
Add Blob::write for strings.
|
2021-12-18 23:03:35 +08:00 |
|
Stephen Chung
|
541ef319bb
|
Merge branch 'v1.3-fixes'
|
2021-12-18 18:22:20 +08:00 |
|
Stephen Chung
|
9736171089
|
Fix bug in hex parsing for negative numbers.
|
2021-12-18 17:07:30 +08:00 |
|
Stephen Chung
|
0ae4d14a62
|
Move BLOB concat and push to builtin.
|
2021-12-18 15:37:20 +08:00 |
|
Stephen Chung
|
9cf8360616
|
Move blob functions to builtin.
|
2021-12-18 14:58:02 +08:00 |
|
Stephen Chung
|
2b79a65454
|
Move range contains into builtin.
|
2021-12-18 14:50:37 +08:00 |
|
Stephen Chung
|
29a9b3878d
|
Fix builds.
|
2021-12-17 16:32:34 +08:00 |
|
Stephen Chung
|
abbfa3777d
|
Add more range API's.
|
2021-12-15 22:12:51 +08:00 |
|
Stephen Chung
|
59a9ff0b0f
|
Fix range precedences and add comparison operators.
|
2021-12-15 14:18:03 +08:00 |
|
Stephen Chung
|
eda80488d5
|
Fix builds.
|
2021-12-15 12:46:25 +08:00 |
|
Stephen Chung
|
ef14079c61
|
Add ranges.
|
2021-12-15 12:06:17 +08:00 |
|
Stephen Chung
|
5eaf85254f
|
Fix builds.
|
2021-12-12 17:26:15 +08:00 |
|
Stephen Chung
|
6af406bafc
|
Add parse/write to blobs.
|
2021-12-12 16:29:54 +08:00 |
|
Stephen Chung
|
d9d44a9683
|
Add Engine::register_type_with_name_raw.
|
2021-12-09 12:49:12 +08:00 |
|
Stephen Chung
|
4421f33b2c
|
Fix bug in blob's.
|
2021-12-07 19:03:04 +08:00 |
|
Stephen Chung
|
2a7a648429
|
Reduce feature gates.
|
2021-12-06 20:52:47 +08:00 |
|
Stephen Chung
|
ba0a6c667e
|
Add FnPtr::call_within_context.
|
2021-11-29 12:43:59 +08:00 |
|
Stephen Chung
|
95dc2ad502
|
Remove fields and parameters under no_function.
|
2021-11-29 09:43:35 +08:00 |
|
Stephen Chung
|
9fa4d60336
|
Minor code and docs refactor.
|
2021-11-28 22:57:28 +08:00 |
|
Stephen Chung
|
4fc088a0f1
|
Fix feature builds.
|
2021-11-27 23:20:05 +08:00 |
|
Stephen Chung
|
fc472f641b
|
Remove blob functions for filtering.
|
2021-11-23 23:01:14 +08:00 |
|
Stephen Chung
|
b7b42e658a
|
Fix blob methods.
|
2021-11-23 22:52:10 +08:00 |
|
Stephen Chung
|
93b802effd
|
Merge branch 'v1.2-fixes'
|
2021-11-23 22:46:16 +08:00 |
|
Stephen Chung
|
2b0b79870e
|
Fix bug in array methods.
|
2021-11-23 22:37:18 +08:00 |
|
Stephen Chung
|
0c89a9c4c5
|
Change parameter name.
|
2021-11-23 18:10:01 +08:00 |
|
Stephen Chung
|
a757dfe89d
|
Add blobs.
|
2021-11-23 14:58:54 +08:00 |
|
Stephen Chung
|
90200e607c
|
Fix doc comment links.
|
2021-11-20 21:29:36 +08:00 |
|
Stephen Chung
|
c2c30f7711
|
Use fold.
|
2021-11-16 13:15:43 +08:00 |
|
Stephen Chung
|
64b889fb95
|
Restructure code base.
|
2021-11-13 22:36:23 +08:00 |
|
Stephen Chung
|
38884ede46
|
Reducce panic messages.
|
2021-11-13 12:23:35 +08:00 |
|
Stephen Chung
|
68c0ee08c0
|
Reduce usage of Default::default() to make it easier to refactor.
|
2021-11-07 18:12:37 +08:00 |
|
Stephen Chung
|
61cc3d0bf2
|
Merge branch 'v1.1-fixes'
|
2021-11-05 23:26:00 +08:00 |
|
Stephen Chung
|
eeca8c90aa
|
Make sure the global namespace is always searched first.
|
2021-11-05 23:22:05 +08:00 |
|
Stephen Chung
|
46e99df9cd
|
Reverse regression on string + operator.
|
2021-11-05 20:34:27 +08:00 |
|
Stephen Chung
|
ff9ac41da2
|
Merge branch 'v1.1-fixes'
|
2021-11-01 10:08:27 +08:00 |
|
Stephen Chung
|
b23bdb6d13
|
Remove unnecessary string builtins.
|
2021-11-01 09:42:22 +08:00 |
|
Stephen Chung
|
a5ae002cb7
|
Refine namespace display.
|
2021-10-27 23:30:25 +08:00 |
|
Stephen Chung
|
34cf494545
|
Add Array::sort with no predicate.
|
2021-10-23 11:51:48 +08:00 |
|
Stephen Chung
|
83f83307ca
|
Fix builds.
|
2021-10-21 19:30:58 +08:00 |
|
Stephen Chung
|
315a891ba6
|
Fine tune array methods.
|
2021-10-21 19:04:53 +08:00 |
|
Stephen Chung
|
1c921f3784
|
Add dedup to array.
|
2021-10-21 17:59:54 +08:00 |
|
Stephen Chung
|
9c16d90de9
|
Use #[inline(always)] only when relatively certain.
|
2021-10-21 17:26:43 +08:00 |
|
Stephen Chung
|
313999b0ac
|
Reduce nesting in plugin sub-modules.
|
2021-10-20 16:22:12 +08:00 |
|
Stephen Chung
|
c8e7c970d1
|
Add variants of Array methods taking FnPtr with function names.
|
2021-10-20 11:06:38 +08:00 |
|
Stephen Chung
|
3001e90775
|
Deprecate From<EvalAltResult> for Result<T, Box<EvalAltResult>> because it is clearer for code to explicitly wrap errors in Err.
|
2021-10-19 23:52:58 +08:00 |
|
Stephen Chung
|
6d31bb0d19
|
Do not inline error path functions.
|
2021-10-19 20:16:36 +08:00 |
|
Stephen Chung
|
2334cd8f56
|
Avoid cloning in array methods as much as possible.
|
2021-10-19 19:57:15 +08:00 |
|
Stephen Chung
|
a130960627
|
Fix empty strings.
|
2021-09-26 21:25:29 +08:00 |
|
Stephen Chung
|
3557db88e8
|
Merge empty strings.
|
2021-09-26 21:18:52 +08:00 |
|
Stephen Chung
|
adbe9a292e
|
Short circuit functions if empty: array, map, string.
|
2021-09-20 18:35:23 +08:00 |
|
Stephen Chung
|
6e7fbfa66f
|
Add pop to string.
|
2021-09-20 16:25:23 +08:00 |
|
Stephen Chung
|
e191f9d91e
|
Merge branch 'bug-fixes'
|
2021-09-19 22:34:47 +08:00 |
|
Stephen Chung
|
5163fb0a33
|
Upgrade to rust-decimal 1.16 and add sin/cos/tan.
|
2021-09-15 10:41:35 +08:00 |
|
Stephen Chung
|
08155c0978
|
Fix sign function for NaN.
|
2021-09-14 22:33:10 +08:00 |
|
Stephen Chung
|
b961a10d27
|
Refine code.
|
2021-09-12 14:33:48 +08:00 |
|
Stephen Chung
|
6510b617fe
|
Reduce usage of Default::default()
|
2021-09-11 19:40:40 +08:00 |
|
Stephen Chung
|
aec4417bd5
|
Refine expect messages.
|
2021-08-26 23:58:41 +08:00 |
|
Stephen Chung
|
288d575046
|
Add log10 for Decimal.
|
2021-08-17 15:50:56 +08:00 |
|
Stephen Chung
|
94674679d9
|
Rename as_string and as_immutable_string.
|
2021-08-17 15:50:55 +08:00 |
|
Stephen Chung
|
e0cae4546c
|
Polyfiill some functions for decimal+no_float.
|
2021-08-17 15:50:54 +08:00 |
|
Stephen Chung
|
0f46bc7725
|
Fix builds.
|
2021-08-13 14:04:27 +08:00 |
|
Stephen Chung
|
dba4510456
|
Better function parameter names.
|
2021-08-13 13:42:39 +08:00 |
|
Stephen Chung
|
df482d3574
|
Satisfy clippy.
|
2021-07-24 14:11:16 +08:00 |
|
Stephen Chung
|
713f8ea672
|
Implement more methods for custom iterators.
|
2021-07-12 13:05:38 +08:00 |
|
Stephen Chung
|
e0673a2f1a
|
Change some #[inline(always)] to [#inline].
|
2021-07-10 11:06:13 +08:00 |
|
Stephen Chung
|
4adc044c79
|
Fix builds.
|
2021-07-04 16:51:05 +08:00 |
|
Stephen Chung
|
bd35999b75
|
Remove unnecessary Box::new().
|
2021-06-29 21:58:05 +08:00 |
|
Stephen Chung
|
d146de4ff9
|
Make FnPtr::fn_name_raw const.
|
2021-06-29 21:47:27 +08:00 |
|
Stephen Chung
|
7196b017f5
|
Add is_odd, is_even and is_zero.
|
2021-06-27 22:10:52 +08:00 |
|
Stephen Chung
|
178fe6b978
|
Remove deprecated API.
|
2021-06-24 09:48:44 +08:00 |
|
Stephen Chung
|
4093727dcb
|
New string functions.
|
2021-06-17 13:31:58 +08:00 |
|
Stephen Chung
|
40e33fa6f9
|
Add to_hex, to_octal and to_binary.
|
2021-06-16 23:49:18 +08:00 |
|
Stephen Chung
|
42a14ab4cc
|
Make file structures consistent.
|
2021-06-16 18:36:33 +08:00 |
|
Stephen Chung
|
743d48f44f
|
Code style cleanup.
|
2021-06-13 17:41:34 +08:00 |
|
Stephen Chung
|
8ca24059b1
|
Add #[must_use]
|
2021-06-12 22:47:43 +08:00 |
|
Stephen Chung
|
79d9977cd5
|
Change take_string and take_immutable_string to as_XXX.
|
2021-06-10 10:45:44 +08:00 |
|
Stephen Chung
|
411b718a3b
|
Fix test.
|
2021-06-07 11:21:45 +08:00 |
|
Stephen Chung
|
989cb702c0
|
Use chars() to iterate strings.
|
2021-06-07 09:47:49 +08:00 |
|
Stephen Chung
|
4cf6550fc6
|
Fix tests.
|
2021-06-02 15:05:33 +08:00 |
|
Stephen Chung
|
71684f5e2a
|
Implement bit-fields.
|
2021-06-02 14:29:18 +08:00 |
|
Stephen Chung
|
76bd48d0a6
|
Code style refinements.
|
2021-05-29 18:33:29 +08:00 |
|
Stephen Chung
|
dfea3ed22a
|
Code style refactor.
|
2021-05-25 10:54:48 +08:00 |
|
Stephen Chung
|
58d6a88bc4
|
Use checked exp for decimal.
|
2021-05-24 12:12:29 +08:00 |
|
Stephen Chung
|
98a232cb8c
|
Prevent exp underflow.
|
2021-05-23 11:54:40 +08:00 |
|
Stephen Chung
|
cc3e2d79a5
|
Replace unwrap with expect.
|
2021-05-22 19:14:24 +08:00 |
|