Stephen Chung
|
0d0affd5e9
|
Eagerly evaluate built-in operators for OptimizationLevel::Simple.
|
2020-10-05 10:27:31 +08:00 |
|
Stephen Chung
|
a962debf0d
|
Simplify target back propagation.
|
2020-10-04 10:40:44 +08:00 |
|
Stephen Chung
|
23d0f52284
|
Better error messages.
|
2020-10-03 23:27:30 +08:00 |
|
Stephen Chung
|
1e13e6be5f
|
Doc formatting.
|
2020-10-03 18:49:11 +08:00 |
|
Stephen Chung
|
fbfb7677c1
|
Add is_def_var and is_def_fn.
|
2020-10-03 16:25:58 +08:00 |
|
Stephen Chung
|
eec3f4e1bf
|
Module:;eval_ast_as_new defaults to merging namespaces.
|
2020-10-03 11:42:54 +08:00 |
|
Stephen Chung
|
a72f70846f
|
Make merged namespace more efficient.
|
2020-10-02 23:14:33 +08:00 |
|
Stephen Chung
|
08ca90a136
|
Use ImmutableString for import alias.
|
2020-10-02 18:52:18 +08:00 |
|
Stephen Chung
|
038b058e63
|
Use shared AST module.
|
2020-10-02 16:21:18 +08:00 |
|
Stephen Chung
|
d2c94ba07c
|
Add more module tests.
|
2020-10-02 14:55:02 +08:00 |
|
Stephen Chung
|
e8d5f78f88
|
Simplify code.
|
2020-10-01 23:31:27 +08:00 |
|
Stephen Chung
|
2290c72de1
|
Fix tests.
|
2020-09-30 23:27:41 +08:00 |
|
Stephen Chung
|
a04ed02b54
|
Simplify macro system and update doc comments.
|
2020-09-30 22:55:40 +08:00 |
|
Stephen Chung
|
e526b53b42
|
No need to merge module if empty.
|
2020-09-30 09:57:21 +08:00 |
|
Stephen Chung
|
c7dfbd48a6
|
Restore call_fn_dynamic.
|
2020-09-29 18:37:00 +08:00 |
|
Stephen Chung
|
69054f1b69
|
Change lib to &Module.
|
2020-09-29 18:17:41 +08:00 |
|
Stephen Chung
|
ea78fa2b27
|
Change SharedPluginFunction to Shared<FnPlugin>
|
2020-09-29 13:06:48 +08:00 |
|
Stephen Chung
|
2123b0a279
|
Module::eval_ast_as_new will merge global and module namespaces if private_namespace is true.
|
2020-09-28 18:53:03 +08:00 |
|
Stephen Chung
|
5e43f2e5a4
|
Better error handling messages.
|
2020-09-28 11:19:49 +08:00 |
|
Stephen Chung
|
a1cf852bb9
|
Merge in function pointer arguments.
|
2020-09-28 11:01:25 +08:00 |
|
Stephen Chung
|
f92d992165
|
Handle timestamps in serde.
|
2020-09-27 22:34:07 +08:00 |
|
Stephen Chung
|
e1ce67adc2
|
Add TimeStamp variant.
|
2020-09-27 22:15:35 +08:00 |
|
Stephen Chung
|
516f7b60d9
|
Fix no_std build.
|
2020-09-27 18:47:20 +08:00 |
|
Stephen Chung
|
a2694114d1
|
Better panic messages.
|
2020-09-27 11:14:50 +08:00 |
|
Stephen Chung
|
726b030616
|
Implement +/- operators for timestamp.
|
2020-09-26 19:45:33 +08:00 |
|
Stephen Chung
|
e0483f2a50
|
Implement Dynamic::From<Instant>
|
2020-09-26 19:41:04 +08:00 |
|
Stephen Chung
|
03dce86328
|
Support Dynamic as function default return value.
|
2020-09-26 16:27:38 +08:00 |
|
Stephen Chung
|
e62d1cd3ff
|
Better error message for setter.
|
2020-09-26 12:34:06 +08:00 |
|
Stephen Chung
|
4efe6b90e7
|
Add string::split().
|
2020-09-25 23:02:49 +08:00 |
|
Stephen Chung
|
da9aa60256
|
Wrap file module functions in ErrorInModule.
|
2020-09-25 20:24:03 +08:00 |
|
Stephen Chung
|
39bbff878c
|
Fix doc test.
|
2020-09-25 20:00:49 +08:00 |
|
Stephen Chung
|
f406fc0ac0
|
Fix function calls.
|
2020-09-25 19:07:24 +08:00 |
|
Stephen Chung
|
599fe846cb
|
Add complete_namespace to Module::eval_ast_as_new.
|
2020-09-25 18:07:39 +08:00 |
|
Stephen Chung
|
93f53fa417
|
Refactor module.rs into files structure.
|
2020-09-25 10:59:21 +08:00 |
|
Stephen Chung
|
e637bfa51d
|
Change pure to independent.
|
2020-09-25 09:39:18 +08:00 |
|
Stephen Chung
|
6a53c446d3
|
Fix no_function build.
|
2020-09-24 23:32:54 +08:00 |
|
Stephen Chung
|
c4ec93080e
|
New FileModuleResolver.
|
2020-09-24 22:50:28 +08:00 |
|
Stephen Chung
|
b8aeaa84de
|
Add functions to iterate script function definitions.
|
2020-09-24 16:10:25 +08:00 |
|
Stephen Chung
|
9fcbda1ba4
|
Add reverse function to arrays.
|
2020-09-24 10:51:21 +08:00 |
|
Stephen Chung
|
d91d983c74
|
Enable dots on numbers to parse as method calls.
|
2020-09-23 22:48:28 +08:00 |
|
Stephen Chung
|
39433164f2
|
Fix no_float build.
|
2020-09-23 12:06:17 +08:00 |
|
Stephen Chung
|
4e0f887025
|
Merge branch 'master' into plugins
|
2020-09-23 12:00:15 +08:00 |
|
Stephen Chung
|
ed38b50490
|
Add parse_int and parse_float.
|
2020-09-23 12:00:03 +08:00 |
|
Stephen Chung
|
5718f454c4
|
Merge pull request #60 from jhwgh1968/plugins
Remove redundant clones in codegen
|
2020-09-23 11:54:57 +08:00 |
|
J Henry Waugh
|
d65042088e
|
Remove redundant clones in codegen
|
2020-09-22 21:38:59 -05:00 |
|
Stephen Chung
|
035b9cb839
|
Avoid &mut ImmutableString.
|
2020-09-22 22:45:11 +08:00 |
|
Stephen Chung
|
5a37497a22
|
Flatten type groups and types in parentheses.
|
2020-09-22 21:29:44 +08:00 |
|
Stephen Chung
|
3224c5baf5
|
Avoid &mut ImmutableString.
|
2020-09-22 19:42:44 +08:00 |
|
Stephen Chung
|
02f37870e5
|
Better position of string literal errors.
|
2020-09-22 19:18:06 +08:00 |
|
Stephen Chung
|
41a16c9cf7
|
Use modules.
|
2020-09-22 19:17:50 +08:00 |
|
Stephen Chung
|
e7566da7d2
|
Fix no_std build.
|
2020-09-22 18:06:36 +08:00 |
|
Stephen Chung
|
594dcc3a06
|
Disallow registering indexers for arrays, maps and strings.
|
2020-09-22 17:57:56 +08:00 |
|
Stephen Chung
|
283495a02f
|
Setters should have no return value.
|
2020-09-22 12:14:26 +08:00 |
|
Stephen Chung
|
8095ebc9e4
|
Remove unused imports.
|
2020-09-21 18:00:46 +08:00 |
|
Stephen Chung
|
83f9df2852
|
Fix op-assignment overrides.
|
2020-09-21 16:15:52 +08:00 |
|
J Henry Waugh
|
c8dffff515
|
Fix clippy::perf lint errors
|
2020-09-20 13:07:46 -05:00 |
|
J Henry Waugh
|
788a22108b
|
Hide clippy errors from exported modules
|
2020-09-20 13:03:35 -05:00 |
|
Stephen Chung
|
a49b58002a
|
Fix doc tests.
|
2020-09-20 15:55:11 +08:00 |
|
Stephen Chung
|
c7a675e18a
|
Fix no_object builds.
|
2020-09-20 14:52:38 +08:00 |
|
Stephen Chung
|
1ae6af5289
|
Merge branch 'plugins_dev' of https://github.com/schungx/rhai into plugins
|
2020-09-20 14:32:44 +08:00 |
|
Stephen Chung
|
2ba875a177
|
Use take_string for &str and String parameters.
|
2020-09-20 14:23:14 +08:00 |
|
Stephen Chung
|
5a7a0f11ae
|
Fix doc test.
|
2020-09-20 10:51:37 +08:00 |
|
Stephen Chung
|
cfe28c9282
|
Remove Position parameter from plugin call function.
|
2020-09-20 10:51:37 +08:00 |
|
Stephen Chung
|
3341f40fd2
|
Refine docs.
|
2020-09-20 10:50:58 +08:00 |
|
Stephen Chung
|
39546b7053
|
Enable &str and String parameters in module functions.
|
2020-09-19 18:12:23 +08:00 |
|
Stephen Chung
|
848bdf3f01
|
Add combine_with_exported_module.
|
2020-09-16 21:50:44 -05:00 |
|
Ilya Lakhin
|
4bb1a34abb
|
Fixes bug in Module::set_fn_4_mut
|
2020-09-15 10:14:34 +07:00 |
|
Stephen Chung
|
db59aed14e
|
Fix bug in optimizer for if statements with empty true blocks.
|
2020-09-14 22:24:55 +08:00 |
|
Stephen Chung
|
6c69a40083
|
Allow scripted functions in packages.
|
2020-09-11 22:32:59 +08:00 |
|
Stephen Chung
|
a75aba8a85
|
Rename calc_fn_spec to calc_fn_hash.
|
2020-09-11 22:24:44 +08:00 |
|
Stephen Chung
|
d1ab9a2848
|
Fix bug on unary function hashes.
|
2020-09-11 22:09:09 +08:00 |
|
Stephen Chung
|
fed65676a2
|
cargo fmt.
|
2020-09-10 17:42:34 +08:00 |
|
Stephen Chung
|
d41fde9c31
|
Use multiple renames to simplify plugins.
|
2020-09-08 18:01:34 +08:00 |
|
Stephen Chung
|
91b4f8a6bc
|
Fix no-std build.
|
2020-08-31 12:09:52 +08:00 |
|
Stephen Chung
|
ee3781e86e
|
Simplify error handling code.
|
2020-08-31 11:46:32 +08:00 |
|
Stephen Chung
|
32985c9480
|
Fix string package for no_std.
|
2020-08-30 23:18:47 +08:00 |
|
Stephen Chung
|
75ca495199
|
Nicer formatting/less indentation of module plugin blocks.
|
2020-08-30 17:28:53 +08:00 |
|
Stephen Chung
|
9ab3d87cfc
|
Refactor.
|
2020-08-24 22:37:44 +08:00 |
|
Stephen Chung
|
2fbc1b7910
|
Add missing pub to functions.
|
2020-08-24 10:38:15 +08:00 |
|
Stephen Chung
|
03237c9852
|
Merge branch 'plugins' into plugins_dev
|
2020-08-24 08:36:15 +08:00 |
|
J Henry Waugh
|
9fe3672514
|
string_more: add missing pub from crop_string
|
2020-08-23 17:49:50 -05:00 |
|
Stephen Chung
|
1dacf21a84
|
Fix no_std builds by pulling in num-traits.
|
2020-08-23 18:28:55 +08:00 |
|
Stephen Chung
|
3902e49a7d
|
Fix bug in right-shifts.
|
2020-08-23 18:04:19 +08:00 |
|
Stephen Chung
|
a72f797da1
|
Merge branch 'plugins' into plugins_dev
|
2020-08-23 17:54:37 +08:00 |
|
Stephen Chung
|
4fff90d19b
|
Merge branch 'master' into plugins
|
2020-08-23 17:54:02 +08:00 |
|
Stephen Chung
|
7cd345b128
|
Fix bug in closure capture for no_object.
|
2020-08-23 17:46:39 +08:00 |
|
Stephen Chung
|
57acd618de
|
Merge branch 'master' into plugins
|
2020-08-23 17:24:27 +08:00 |
|
Stephen Chung
|
e2f271644a
|
Expand packages and raw Engine write-up.
|
2020-08-23 17:22:39 +08:00 |
|
Stephen Chung
|
196e145c96
|
Derive standard traits for Limits.
|
2020-08-23 16:29:32 +08:00 |
|
Stephen Chung
|
c62914b91a
|
Merge branch 'master' into plugins_dev
|
2020-08-22 23:04:34 +08:00 |
|
Stephen Chung
|
86c7862ac4
|
Merge branch 'master' into plugins
|
2020-08-22 23:03:32 +08:00 |
|
Stephen Chung
|
177a0de23c
|
Fix closure test.
|
2020-08-22 23:01:25 +08:00 |
|
Stephen Chung
|
3042e3d9db
|
Merge branch 'master' into plugins_dev
|
2020-08-22 22:51:41 +08:00 |
|
Stephen Chung
|
0ece75aba3
|
Allow module access in closures.
|
2020-08-22 22:44:24 +08:00 |
|
Stephen Chung
|
211ce54973
|
Move most packages to modules.
|
2020-08-22 22:26:49 +08:00 |
|
Stephen Chung
|
5d6fdba24d
|
Merge branch 'plugins' into plugins_dev
|
2020-08-22 16:20:53 +08:00 |
|
J Henry Waugh
|
15a8f528ae
|
Avoid export_fn+cfg attributes in Rhai packages
|
2020-08-21 23:26:24 -05:00 |
|
Stephen Chung
|
0b04d05afe
|
Do not parse closures when allow_anonymous_fn is false.
|
2020-08-22 11:08:27 +08:00 |
|
Stephen Chung
|
08977e2a62
|
Use combine_flatten for plugin modules.
|
2020-08-21 21:48:45 +08:00 |
|
Stephen Chung
|
3c0d431fd2
|
Merge branch 'plugins' into plugins_dev
|
2020-08-20 22:14:56 +08:00 |
|