Stephen Chung
|
a54fbb32ff
|
Add no_position feature.
|
2021-04-22 23:02:25 +08:00 |
|
Stephen Chung
|
fe37edd123
|
Add Stmt::FnCall.
|
2021-04-21 18:16:24 +08:00 |
|
Stephen Chung
|
0f66c67f82
|
Do not unnecessarily use raw strings.
|
2021-04-20 12:01:35 +08:00 |
|
Stephen Chung
|
46b22ddd96
|
Fix tests.
|
2021-04-19 18:08:29 +08:00 |
|
Stephen Chung
|
ea866cead5
|
More array tests.
|
2021-04-19 17:02:17 +08:00 |
|
Stephen Chung
|
1be7e60be2
|
Automatic global module.
|
2021-04-17 17:25:35 +08:00 |
|
Stephen Chung
|
208e5fdbf4
|
New switch errors.
|
2021-04-16 13:28:36 +08:00 |
|
Stephen Chung
|
980a13ca42
|
Add switch case conditions.
|
2021-04-16 12:04:33 +08:00 |
|
Stephen Chung
|
40fda5139d
|
Support negative index counting from end.
|
2021-04-10 15:00:03 +08:00 |
|
Stephen Chung
|
4aaf957d73
|
Gate doc-comment tokenizing.
|
2021-04-09 23:13:33 +08:00 |
|
Stephen Chung
|
0f2e7e3825
|
Fix builds and tests.
|
2021-04-06 23:28:22 +08:00 |
|
Stephen Chung
|
f17a826f99
|
Refine debug print-out.
|
2021-04-06 23:18:41 +08:00 |
|
Stephen Chung
|
7ec49a9510
|
Fix f32_feature with serde.
|
2021-04-06 23:18:28 +08:00 |
|
Stephen Chung
|
a3ee0f4245
|
Fix no_index build.
|
2021-04-05 18:32:20 +08:00 |
|
Stephen Chung
|
00784d39ad
|
PropertyExpected for map literal with interpolated key.
|
2021-04-05 14:51:26 +08:00 |
|
Stephen Chung
|
e6ea006ac6
|
Fix builds.
|
2021-04-05 00:05:56 +08:00 |
|
Stephen Chung
|
0807c474a1
|
Revise using string interpolation.
|
2021-04-04 23:22:45 +08:00 |
|
Stephen Chung
|
aacb7f0b24
|
Ensure no interpolation for normal strings.
|
2021-04-04 15:37:59 +08:00 |
|
Stephen Chung
|
20aaf1826a
|
Fix builds.
|
2021-04-04 15:06:13 +08:00 |
|
Stephen Chung
|
e6c878edf3
|
Implement string interpolation.
|
2021-04-04 13:13:07 +08:00 |
|
Stephen Chung
|
ab0ea87f9c
|
Allow sync in test.
|
2021-04-03 12:10:08 +08:00 |
|
Stephen Chung
|
b1452f4c35
|
Fix no_object build.
|
2021-04-03 12:00:22 +08:00 |
|
Stephen Chung
|
f7ad1cec39
|
Fix builds.
|
2021-04-03 11:49:16 +08:00 |
|
Stephen Chung
|
b089d5b8f4
|
Fix bug in property setter op-assignment.
|
2021-04-03 11:12:35 +08:00 |
|
Stephen Chung
|
a738f750f9
|
Implement string functions with to_string/to_debug.
|
2021-04-02 19:26:55 +08:00 |
|
Stephen Chung
|
b14d18934a
|
Add Dynamic::clone_cast.
|
2021-03-30 18:57:16 +08:00 |
|
Stephen Chung
|
e36e490a30
|
Support back-tick at EOL for literal strings.
|
2021-03-30 13:59:27 +08:00 |
|
Stephen Chung
|
d2ded7733a
|
Add support for line continuation and multi-line string literals.
|
2021-03-30 00:21:09 +08:00 |
|
Stephen Chung
|
7bdc2e3d20
|
Extract constant arguments from function calls.
|
2021-03-28 19:04:25 +08:00 |
|
Stephen Chung
|
ea970631ff
|
Fix test formatting.
|
2021-03-27 18:08:34 +08:00 |
|
Stephen Chung
|
6d1700728a
|
Intern module registration strings.
|
2021-03-24 09:56:25 +08:00 |
|
Stephen Chung
|
1200ffcd2b
|
Add test with &str parameter.
|
2021-03-17 22:32:22 +08:00 |
|
Stephen Chung
|
80c7e9310e
|
Fix unchecked build.
|
2021-03-17 15:26:37 +08:00 |
|
Stephen Chung
|
4581943435
|
Remove public_only parameters.
|
2021-03-17 09:58:08 +08:00 |
|
Stephen Chung
|
082ecaa739
|
Fix feature builds.
|
2021-03-15 23:03:26 +08:00 |
|
Stephen Chung
|
12e3a5b050
|
Add test of functions with context.
|
2021-03-15 21:30:45 +08:00 |
|
Stephen Chung
|
e9f280f917
|
Deprecate Module::set_fn_XXX API.
|
2021-03-15 12:39:06 +08:00 |
|
Stephen Chung
|
d0922adb5b
|
Deprecate RegisterFn and RegisterResultFn.
|
2021-03-15 11:36:30 +08:00 |
|
Stephen Chung
|
4e3fdf6dab
|
Revamp statement block optimization.
|
2021-03-13 23:43:05 +08:00 |
|
Stephen Chung
|
cbad703b00
|
Flatten data structures and more aggressive inlining.
|
2021-03-10 13:32:09 +08:00 |
|
Stephen Chung
|
352408fd36
|
Flatten statement blocks.
|
2021-03-10 12:27:10 +08:00 |
|
Stephen Chung
|
b11b8d6d39
|
Reduce redirections in Stmt.
|
2021-03-09 23:30:48 +08:00 |
|
Stephen Chung
|
975bb3d6bf
|
Map in operator to contains function call.
|
2021-03-09 13:44:54 +08:00 |
|
Stephen Chung
|
57140cbeeb
|
Fix internals build.
|
2021-03-08 15:55:26 +08:00 |
|
Stephen Chung
|
62928f8613
|
Revise function hashing.
|
2021-03-08 15:30:32 +08:00 |
|
Stephen Chung
|
4da5af8aae
|
Do not flatten arguments passed by value.
|
2021-03-06 21:25:49 +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
|
f92e6f3983
|
Fix metadata build.
|
2021-03-05 23:56:00 +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
|
65ef32af19
|
Calculate whether contains global functions during indexing.
|
2021-03-05 20:07:35 +08:00 |
|
Stephen Chung
|
4c5ea8decc
|
Fix switch of non-hashable value.
|
2021-03-05 10:33:48 +08:00 |
|
Stephen Chung
|
01664ef7ee
|
Fix range overflow panics.
|
2021-03-04 23:47:52 +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
|
2c8b15c740
|
Private global functions are still exposed.
|
2021-03-03 11:40:27 +08:00 |
|
Stephen Chung
|
e3e53bd399
|
Introduce RhaiResult.
|
2021-03-02 15:02:28 +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
|
061fce1f02
|
No more pub_only.
|
2021-03-01 15:39:49 +08:00 |
|
Stephen Chung
|
6aa0be546f
|
Replace String::from("...") with "...".into().
|
2021-02-26 11:21:05 +08:00 |
|
Stephen Chung
|
3f4dba9dbc
|
Build in operators between string and char.
|
2021-02-25 13:29:49 +08:00 |
|
Stephen Chung
|
49e5382ab0
|
Do not return default for comparisons between same types.
|
2021-02-25 10:59:11 +08:00 |
|
Stephen Chung
|
4ac05aee8b
|
Disallow implicit comparisons between different numeric types.
|
2021-02-24 15:45:29 +08:00 |
|
Stephen Chung
|
93d970235e
|
Fix no_object.
|
2021-02-23 19:31:43 +08:00 |
|
Stephen Chung
|
36420f0b99
|
Implement print/debug functions via Dynamic parameters.
|
2021-02-23 19:08:05 +08:00 |
|
Stephen Chung
|
9a9adbefcc
|
Wrap eval errors in ErrorInFunctionCall.
|
2021-02-18 14:33:12 +08:00 |
|
Stephen Chung
|
3650b04c38
|
Add Decimal number type.
|
2021-02-13 20:57:56 +08:00 |
|
Stephen Chung
|
8ffb6c03b5
|
Add scientific notation to floats.
|
2021-02-11 19:20:30 +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
|
a76bed2f46
|
Use eval_statements_block when at global.
|
2021-02-07 17:06:33 +08:00 |
|
Stephen Chung
|
903b6d6795
|
Rename set_doc_comments to enable_doc_comments.
|
2021-01-28 16:59:19 +08:00 |
|
Stephen Chung
|
f76daadcba
|
Refine FuncArgs trait.
|
2021-01-28 15:29:55 +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
|
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
|
ec272cf9b9
|
Add Serialize/Deserialize for Dynamic and ImmutableString.
|
2021-01-18 10:30:58 +08:00 |
|
Stephen Chung
|
fe65bf6137
|
Fix bug in optimizer.
|
2021-01-12 23:52:50 +08:00 |
|
Stephen Chung
|
f8b36a470a
|
Fix test.
|
2021-01-09 16:57:21 +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
|
0f1f6c4ad3
|
Add Engine::compile_to_self_contained.
|
2021-01-09 00:24:55 +08:00 |
|
Stephen Chung
|
96b1e7777b
|
Update URL links.
|
2021-01-07 17:30:06 +08:00 |
|
Stephen Chung
|
e2a47b2a65
|
Disallow duplicated function definitions.
|
2021-01-03 20:54:08 +08:00 |
|
Stephen Chung
|
ba7f8c6391
|
Propagate source info.
|
2020-12-30 21:12:51 +08:00 |
|
Stephen Chung
|
13f5cec291
|
Fix call stack limits.
|
2020-12-29 12:29:45 +08:00 |
|
Stephen Chung
|
eca8212f38
|
More code refinements.
|
2020-12-29 10:41:20 +08:00 |
|
Stephen Chung
|
5c813ca7c0
|
Code cleanup.
|
2020-12-28 09:49:54 +08:00 |
|
Stephen Chung
|
6b8d78d64c
|
Streamline parsing.
|
2020-12-27 16:50:48 +08:00 |
|
Stephen Chung
|
48af8719e7
|
Fix closure property access.
|
2020-12-27 11:50:24 +08:00 |
|
Stephen Chung
|
66d3af256e
|
Enhance custom operators.
|
2020-12-26 23:21:09 +08:00 |
|
Stephen Chung
|
dc4e52e795
|
Code enhancements.
|
2020-12-26 13:05:57 +08:00 |
|
Stephen Chung
|
f55a56c6bc
|
Engine::register_global_module and Engine::register_static_module must be passed shared Module.
|
2020-12-23 10:08:43 +08:00 |
|
Stephen Chung
|
15fb03218c
|
Rename packages to global modules.
|
2020-12-22 23:45:14 +08:00 |
|
Stephen Chung
|
2e7ec8f1db
|
IdentX -> Ident.
|
2020-12-22 16:45:56 +08:00 |
|
Stephen Chung
|
ff67efc6d5
|
Add source to contexts.
|
2020-12-21 23:12:45 +08:00 |
|