Stephen Chung
|
f995d09d8b
|
Fix bug with calling scripted function.
|
2020-10-16 21:16:06 +08:00 |
|
Stephen Chung
|
849aec0621
|
Set version to 0.19.1.
|
2020-10-16 17:32:26 +08:00 |
|
Stephen Chung
|
707ece7e80
|
Refactor iterators API.
|
2020-10-14 23:22:10 +08:00 |
|
Stephen Chung
|
13c4d0bbb3
|
Adjust precedence of in.
|
2020-10-13 16:01:42 +08:00 |
|
Stephen Chung
|
6db412815b
|
Add chop and extract for arrays.
|
2020-10-13 14:39:49 +08:00 |
|
Stephen Chung
|
1c86c66f1a
|
Add more functions to arrays.
|
2020-10-13 10:57:29 +08:00 |
|
Stephen Chung
|
e6667a3996
|
Revise docs.
|
2020-10-12 23:17:22 +08:00 |
|
Stephen Chung
|
fd5a932611
|
Implement variable resolver.
|
2020-10-11 21:58:11 +08:00 |
|
Stephen Chung
|
9d93dac8e7
|
Reserve some more symbols.
|
2020-10-10 22:14:10 +08:00 |
|
Stephen Chung
|
dd9f58f323
|
Merge ser/de modules.
|
2020-10-10 13:43:14 +08:00 |
|
Stephen Chung
|
1f74b36496
|
Add EntryType::is_constant.
|
2020-10-09 13:23:44 +08:00 |
|
Stephen Chung
|
7ede299aae
|
Allow expressions in constants.
|
2020-10-09 11:15:25 +08:00 |
|
Stephen Chung
|
d511aac7a4
|
Reduce max call stack size for debug.
|
2020-10-08 23:00:01 +08:00 |
|
Stephen Chung
|
1272eeb81a
|
Add/remove #[inline] attributes.
|
2020-10-08 22:25:50 +08:00 |
|
Stephen Chung
|
1523981e4e
|
Add AST::combine and AST::combine_filtered.
|
2020-10-07 12:11:25 +08:00 |
|
Stephen Chung
|
8809d25d3c
|
Add Dynamic::from(&str)
|
2020-10-06 21:25:05 +08:00 |
|
Stephen Chung
|
44f8d9e429
|
Refine Module::iter_script_fn_info.
|
2020-10-05 21:52:39 +08:00 |
|
Stephen Chung
|
2f6bb643aa
|
Remove Module::get_script_function_by_signature.
|
2020-10-05 18:07:40 +08:00 |
|
Stephen Chung
|
82d48df734
|
Merge data type mismatch errors.
|
2020-10-05 13:45:57 +08:00 |
|
Stephen Chung
|
0d0affd5e9
|
Eagerly evaluate built-in operators for OptimizationLevel::Simple.
|
2020-10-05 10:27:31 +08:00 |
|
Stephen Chung
|
23d0f52284
|
Better error messages.
|
2020-10-03 23:27:30 +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
|
e8d5f78f88
|
Simplify code.
|
2020-10-01 23:31:27 +08:00 |
|
Stephen Chung
|
64c421b3d7
|
Revise docs.
|
2020-09-28 22:14:19 +08:00 |
|
Stephen Chung
|
03dce86328
|
Support Dynamic as function default return value.
|
2020-09-26 16:27:38 +08:00 |
|
Stephen Chung
|
da9aa60256
|
Wrap file module functions in ErrorInModule.
|
2020-09-25 20:24:03 +08:00 |
|
Stephen Chung
|
599fe846cb
|
Add complete_namespace to Module::eval_ast_as_new.
|
2020-09-25 18:07:39 +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
|
ed38b50490
|
Add parse_int and parse_float.
|
2020-09-23 12:00:03 +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
|
83f9df2852
|
Fix op-assignment overrides.
|
2020-09-21 16:15:52 +08:00 |
|
Stephen Chung
|
c7a675e18a
|
Fix no_object builds.
|
2020-09-20 14:52:38 +08:00 |
|
Stephen Chung
|
3341f40fd2
|
Refine docs.
|
2020-09-20 10:50:58 +08:00 |
|
Stephen Chung
|
7f8269c288
|
Add bug fixes.
|
2020-09-15 12:21:51 +08:00 |
|
Stephen Chung
|
6c69a40083
|
Allow scripted functions in packages.
|
2020-09-11 22:32:59 +08:00 |
|
Stephen Chung
|
ae953315fe
|
Refine plugins doc.
|
2020-09-04 15:42:31 +08:00 |
|
Stephen Chung
|
ef9b90c3ef
|
Add entry on plugins.
|
2020-08-31 11:23:11 +08:00 |
|
Stephen Chung
|
a72f797da1
|
Merge branch 'plugins' into plugins_dev
|
2020-08-23 17:54:37 +08:00 |
|
Stephen Chung
|
7cd345b128
|
Fix bug in closure capture for no_object.
|
2020-08-23 17:46:39 +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
|
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
|
ac6d519d28
|
Fix bug that consumes first argument in module-qualified call.
|
2020-08-20 16:26:10 +08:00 |
|
Stephen Chung
|
c5360db185
|
Handle #{ in Engine::parse_json, restrict to object hashes only.
|
2020-08-18 23:07:17 +08:00 |
|
Stephen Chung
|
489b1ca00e
|
Add Module::combine.
|
2020-08-15 00:08:00 +08:00 |
|
Stephen Chung
|
5e6d5e8e80
|
Expand getter/setter/indexer API.
|
2020-08-07 11:10:38 +08:00 |
|
Stephen Chung
|
bb2c9f7c59
|
Bump version.
|
2020-08-05 23:11:54 +08:00 |
|
Stephen Chung
|
ae11dbbefe
|
Fix feature flags.
|
2020-08-05 22:53:01 +08:00 |
|
Stephen Chung
|
5ea08d2b50
|
Bump version.
|
2020-08-05 17:55:36 +08:00 |
|
Stephen Chung
|
8a0d0e3e20
|
Unbox error return for Engine::register_custom_syntax.
|
2020-08-05 10:00:20 +08:00 |
|
Stephen Chung
|
9f302d4ef5
|
Update docs and tests.
|
2020-08-04 18:39:24 +08:00 |
|
Stephen Chung
|
4878a69503
|
Add docs for closures.
|
2020-08-04 16:27:55 +08:00 |
|
Stephen Chung
|
3fc35c4f87
|
Merge from master.
|
2020-08-03 13:28:29 +08:00 |
|
Stephen Chung
|
4079164bfd
|
Implement closures.
|
2020-08-03 12:10:20 +08:00 |
|
Stephen Chung
|
096eb4493e
|
Engine::load_package API change.
|
2020-08-02 18:55:22 +08:00 |
|
Stephen Chung
|
98b294c699
|
Implement capturing.
|
2020-07-30 18:18:28 +08:00 |
|
Stephen Chung
|
e2daba55d7
|
Refine unicode-xid-ident feature writeup.
|
2020-07-29 13:57:17 +08:00 |
|
Stephen Chung
|
eeb86f5efb
|
Merge branch 'master' of https://github.com/jonathandturner/rhai
|
2020-07-29 11:43:48 +08:00 |
|
ekicyou
|
a836eb7f8b
|
add RELEASES.md
|
2020-07-29 10:20:25 +09:00 |
|
Stephen Chung
|
057f6435a4
|
Add public_only parameter to module function methods.
|
2020-07-27 18:10:45 +08:00 |
|
Stephen Chung
|
878ba0b794
|
Remove register_raw_fn_XXX API's.
|
2020-07-26 18:17:55 +08:00 |
|
Stephen Chung
|
2b0aacde23
|
Fix Module::set_indexer_set_fn.
|
2020-07-24 23:16:54 +08:00 |
|
Stephen Chung
|
6d551f1596
|
Add currying support.
|
2020-07-22 23:12:09 +08:00 |
|
Stephen Chung
|
abf66850f6
|
Enable custom syntax without internals.
|
2020-07-22 17:05:13 +08:00 |
|
Stephen Chung
|
35374f5b3b
|
Simplify custom syntax.
|
2020-07-22 13:08:51 +08:00 |
|
Stephen Chung
|
cf36dc5a57
|
Support for anonymous functions.
|
2020-07-19 17:14:55 +08:00 |
|
Stephen Chung
|
d119e13b79
|
Allow binding of this pointer in FnPtr calls.
|
2020-07-17 10:18:07 +08:00 |
|
Stephen Chung
|
16fbfbb606
|
Enable call in function-call style.
|
2020-07-16 12:09:31 +08:00 |
|
Stephen Chung
|
a97ffc536c
|
Bump version.
|
2020-07-14 08:42:02 +08:00 |
|
Stephen Chung
|
adc96e24bd
|
Fix all features.
|
2020-07-13 19:38:50 +08:00 |
|
Stephen Chung
|
930abb8b5c
|
Update docs.
|
2020-07-13 13:41:01 +08:00 |
|
Stephen Chung
|
8449f8c55e
|
Make API chainable.
|
2020-07-12 11:46:53 +08:00 |
|
Stephen Chung
|
f36b4a69ae
|
FIXED - method calls inside dot chain.
|
2020-07-09 22:21:07 +08:00 |
|
Stephen Chung
|
99164ebceb
|
Add custom syntax.
|
2020-07-09 19:54:28 +08:00 |
|
Stephen Chung
|
150f02d8b7
|
Update docs regarding modules.
|
2020-07-08 09:48:25 +08:00 |
|
Stephen Chung
|
ff6d205c1d
|
Make Modules::set_raw_fn public.
|
2020-07-07 22:59:23 +08:00 |
|
Stephen Chung
|
d9fe6a1980
|
Add boolean xor operator and readjust % precedence.
|
2020-07-06 12:24:28 +08:00 |
|
Stephen Chung
|
495d202af4
|
Add new AST API.
|
2020-07-06 10:02:54 +08:00 |
|
Stephen Chung
|
a27f89b524
|
Add new register_fn_raw API.
|
2020-07-05 23:08:44 +08:00 |
|
Stephen Chung
|
e390dd73e6
|
Add custom operators.
|
2020-07-05 17:41:45 +08:00 |
|
Stephen Chung
|
936a3ff44a
|
Add feature to disable symbols.
|
2020-07-05 15:23:51 +08:00 |
|
Stephen Chung
|
b3b3a083b8
|
Add docs on serde feature.
|
2020-07-04 15:39:40 +08:00 |
|
Stephen Chung
|
1b7ffdf408
|
Better type display.
|
2020-07-03 10:45:01 +08:00 |
|
Stephen Chung
|
a4af0b0e13
|
Bump version.
|
2020-07-01 23:29:36 +08:00 |
|
Stephen Chung
|
760c13d36e
|
Fix features.
|
2020-07-01 22:21:43 +08:00 |
|
Stephen Chung
|
e614790897
|
Enable function pointers even under no_function.
|
2020-06-30 18:34:58 +08:00 |
|
Stephen Chung
|
527d41d0e3
|
No modules in scope.
|
2020-06-28 15:49:24 +08:00 |
|
Stephen Chung
|
aac04a5e53
|
Remove modules from Scope and use separate stack.
|
2020-06-27 23:56:24 +08:00 |
|
Stephen Chung
|
175c3ccaec
|
OOP support.
|
2020-06-26 10:39:18 +08:00 |
|
Stephen Chung
|
fe640e0e13
|
Implement function pointers.
|
2020-06-25 18:07:57 +08:00 |
|
Stephen Chung
|
54c5c139f9
|
Add internals feature.
|
2020-06-23 10:43:24 +08:00 |
|
Stephen Chung
|
00c4052636
|
Fix pipes in tables.
|
2020-06-21 10:37:17 +08:00 |
|
Stephen Chung
|
ffe0c559be
|
Remove scope parameter from ModuleResolver::resolve.
|
2020-06-20 21:49:45 +08:00 |
|
Stephen Chung
|
a3ea788fb0
|
Bump version.
|
2020-06-18 13:01:07 +08:00 |
|
Stephen Chung
|
7f4f737ff2
|
Gate WASM target.
|
2020-06-17 09:54:17 +08:00 |
|
Stephen Chung
|
b6e1f652b6
|
Fix bug when setting character in string via a method call.
|
2020-06-16 23:49:11 +08:00 |
|
Stephen Chung
|
151cd1af48
|
Support compiling to WASM.
|
2020-06-16 23:47:31 +08:00 |
|
Stephen Chung
|
1adf3cc39a
|
Support for trailing commas.
|
2020-06-16 22:14:46 +08:00 |
|
Stephen Chung
|
bb691a0313
|
Add maximum data size limits.
|
2020-06-14 14:25:47 +08:00 |
|
Stephen Chung
|
b24fdd7a4d
|
Change call_fn_dynamic to accept any type that is IntoIterator<Item=Dynamic>.
|
2020-06-12 19:54:55 +08:00 |
|
Stephen Chung
|
9d91349513
|
Refine position display in error messages.
|
2020-06-12 18:04:16 +08:00 |
|
Stephen Chung
|
13cde456e5
|
Change version to 0.15.1.
|
2020-06-10 22:28:50 +08:00 |
|
Stephen Chung
|
e942ef358c
|
Transparently convert &str to ImmutableString for register_fn.
|
2020-06-07 17:54:33 +08:00 |
|
Stephen Chung
|
5f40a1376a
|
Implement index setters.
|
2020-06-06 13:06:00 +08:00 |
|
Stephen Chung
|
b8da1691d3
|
Consolidate callbacks.
|
2020-06-02 13:33:16 +08:00 |
|
Stephen Chung
|
37135e2551
|
Modify list formatting according to GitHub MD rules.
|
2020-06-01 14:28:39 +08:00 |
|
Stephen Chung
|
3f9d0895de
|
Bump version.
|
2020-06-01 13:26:02 +08:00 |
|
Stephen Chung
|
697bb39a7f
|
Add writeup on Rhai usage scenarios.
|
2020-05-31 15:55:02 +08:00 |
|
Stephen Chung
|
76d792011f
|
Add Engine::call_fn_dynamic.
|
2020-05-31 12:37:19 +08:00 |
|
Stephen Chung
|
666a618e40
|
Add register getter/setter/indexer to modules.
|
2020-05-30 10:28:17 +08:00 |
|
Stephen Chung
|
e1242df5c8
|
Extract copy/restore of first argument in method call.
|
2020-05-29 18:15:58 +08:00 |
|
Stephen Chung
|
854634afa0
|
Allow native overriding implementation of assignment operators.
|
2020-05-27 13:22:10 +08:00 |
|
Stephen Chung
|
b34d5fe3a1
|
Complete ImmutableString.
|
2020-05-26 14:14:03 +08:00 |
|
Stephen Chung
|
bbed4c6ef4
|
Docs.
|
2020-05-24 23:42:40 +08:00 |
|
Stephen Chung
|
d56634cac7
|
Complete built-in operators.
|
2020-05-24 00:29:06 +08:00 |
|
Stephen Chung
|
b49e1e199a
|
Build-in certain common operators.
|
2020-05-23 18:59:28 +08:00 |
|
Stephen Chung
|
800a7bf283
|
Remove unnecessary traits and types.
|
2020-05-21 17:11:01 +08:00 |
|
Stephen Chung
|
fad60c0a7d
|
Bump version.
|
2020-05-20 00:06:07 +08:00 |
|
Stephen Chung
|
1824dced69
|
Limit expression/statement nesting depths.
|
2020-05-18 19:32:22 +08:00 |
|
Stephen Chung
|
f4a528a88a
|
Add release notes.
|
2020-05-18 09:36:34 +08:00 |
|