Stephen Chung
|
cf9d35166d
|
Remove hashing of the entire script by making Expr and Stmt Hash.
|
2021-01-04 11:58:24 +08:00 |
|
Stephen Chung
|
ef48f47b74
|
Refine docs and comments etc.
|
2021-01-02 23:30:10 +08:00 |
|
Stephen Chung
|
8506640073
|
Use NonZeroU64 for function hashes.
|
2020-12-24 16:32:43 +08:00 |
|
Stephen Chung
|
08e7ad8c09
|
Add deprecated packages API.
|
2020-12-23 15:30:35 +08:00 |
|
Stephen Chung
|
cebbc2b607
|
Fix duplicate Ident export.
|
2020-12-23 12:11:53 +08:00 |
|
Stephen Chung
|
2e7ec8f1db
|
IdentX -> Ident.
|
2020-12-22 16:45:56 +08:00 |
|
Stephen Chung
|
26449a9f1c
|
Add ScriptFnMetadata.
|
2020-12-12 18:44:28 +08:00 |
|
Stephen Chung
|
36546c7325
|
Fix builds
|
2020-11-27 23:37:59 +08:00 |
|
Stephen Chung
|
a0979d0c35
|
Code cleanup
|
2020-11-25 09:36:06 +08:00 |
|
Stephen Chung
|
783803ec46
|
Update comments with links.
|
2020-11-20 16:52:28 +08:00 |
|
Stephen Chung
|
038e3c2554
|
Add FnNamespace for module functions.
|
2020-11-17 12:23:53 +08:00 |
|
Stephen Chung
|
d50d48f26f
|
Move definition of Array and Map to lib.rs.
|
2020-11-16 21:14:32 +08:00 |
|
Stephen Chung
|
adb902326e
|
Reduce feature gates on imports.
|
2020-11-16 16:28:04 +08:00 |
|
Stephen Chung
|
bc07b4fa84
|
Fix builds.
|
2020-11-13 18:49:23 +08:00 |
|
Stephen Chung
|
958762079e
|
Change modules to namespace.
|
2020-11-10 23:26:50 +08:00 |
|
Stephen Chung
|
3f6db1d9d4
|
Remove extra export of LexError.
|
2020-11-04 20:20:55 +08:00 |
|
Stephen Chung
|
d7d6f74dfd
|
Add constant NO_POS.
|
2020-11-02 12:50:27 +08:00 |
|
Stephen Chung
|
a2e2b5e2ef
|
Add f32_float feature.
|
2020-11-01 15:48:48 +08:00 |
|
Stephen Chung
|
89811c8dfc
|
Pack Stmt and Expr some more.
|
2020-10-31 14:13:45 +08:00 |
|
Stephen Chung
|
4e115d2bc2
|
Code structure refactor.
|
2020-10-29 11:37:51 +08:00 |
|
Stephen Chung
|
f5ffbfbe06
|
Code structure cleanup.
|
2020-10-28 22:18:44 +08:00 |
|
Stephen Chung
|
f56c3fe9cb
|
Add Ident/IdentX to AST.
|
2020-10-28 19:11:17 +08:00 |
|
Stephen Chung
|
82e6dd446a
|
Encapsulate register_fn_raw parameters into NativeCallContext.
|
2020-10-18 17:02:17 +08:00 |
|
Stephen Chung
|
707ece7e80
|
Refactor iterators API.
|
2020-10-14 23:22:10 +08:00 |
|
Stephen Chung
|
fd5a932611
|
Implement variable resolver.
|
2020-10-11 21:58:11 +08:00 |
|
Stephen Chung
|
612ecc4ebc
|
Move StaticVec definition to lib.rs.
|
2020-10-10 13:41:55 +08:00 |
|
Stephen Chung
|
1e13e6be5f
|
Doc formatting.
|
2020-10-03 18:49:11 +08:00 |
|
Stephen Chung
|
a04ed02b54
|
Simplify macro system and update doc comments.
|
2020-09-30 22:55:40 +08:00 |
|
Stephen Chung
|
93f53fa417
|
Refactor module.rs into files structure.
|
2020-09-25 10:59:21 +08:00 |
|
Stephen Chung
|
a75aba8a85
|
Rename calc_fn_spec to calc_fn_hash.
|
2020-09-11 22:24:44 +08:00 |
|
J Henry Waugh
|
fdcaa90cd9
|
Clean up plugin module for no_module macro support
|
2020-08-12 23:57:57 -05:00 |
|
J Henry Waugh
|
be315aebaf
|
Fix breakage due to write_lock()
|
2020-08-06 18:36:19 -05:00 |
|
J Henry Waugh
|
d01203cb5d
|
New Procedural Macros Crate v0.1
|
2020-08-01 11:52:32 -05:00 |
|
Stephen Chung
|
d63f926701
|
Merge branch 'master' into plugins
|
2020-07-29 23:37:51 +08:00 |
|
Stephen Chung
|
1465ba2315
|
Refactor auto-currying.
|
2020-07-29 22:43:50 +08:00 |
|
Stephen Chung
|
6b600704a3
|
Avoid warnings.
|
2020-07-26 15:53:22 +08:00 |
|
Stephen Chung
|
25ee4b4f82
|
Merge branch 'master' into plugins
|
2020-07-26 14:07:29 +08:00 |
|
Stephen Chung
|
e7af008d74
|
Avoid warnings.
|
2020-07-26 13:51:09 +08:00 |
|
Stephen Chung
|
d278f3725c
|
Merge branch 'master' into plugins
|
2020-07-25 16:16:09 +08:00 |
|
Stephen Chung
|
284e58e8a1
|
Improve documentation on internal types.
|
2020-07-25 15:52:27 +08:00 |
|
Stephen Chung
|
1c58bdb2a1
|
Merge branch 'master' into plugins
|
2020-07-23 18:46:25 +08:00 |
|
Stephen Chung
|
bff266d4e1
|
Move function calling to separate source file.
|
2020-07-23 18:40:42 +08:00 |
|
Stephen Chung
|
a2ddd2175e
|
Merge branch 'master' into plugins
|
2020-07-23 16:12:09 +08:00 |
|
Stephen Chung
|
abf66850f6
|
Enable custom syntax without internals.
|
2020-07-22 17:05:13 +08:00 |
|
Stephen Chung
|
d7d9f42802
|
Merge branch 'master' into plugins
|
2020-07-22 13:33:24 +08:00 |
|
Stephen Chung
|
35374f5b3b
|
Simplify custom syntax.
|
2020-07-22 13:08:51 +08:00 |
|
Stephen Chung
|
e57c15c3e2
|
Merge branch 'master' into plugins
|
2020-07-11 15:11:20 +08:00 |
|
Stephen Chung
|
2a8d63fd5f
|
Refine custom syntax.
|
2020-07-11 15:09:17 +08:00 |
|
Stephen Chung
|
d95761d064
|
Merge branch 'master' into plugins
|
2020-07-10 22:06:02 +08:00 |
|
Stephen Chung
|
ebffbf0f98
|
Refine docs and add custom syntax.
|
2020-07-10 22:01:47 +08:00 |
|
Stephen Chung
|
99164ebceb
|
Add custom syntax.
|
2020-07-09 19:54:28 +08:00 |
|
Stephen Chung
|
3b7a7426cf
|
Merge branch 'master' into plugins
|
2020-07-06 21:52:47 +08:00 |
|
Stephen Chung
|
d0711394f0
|
Expose FnPtr and move name checking into
|
2020-07-06 21:30:35 +08:00 |
|
Stephen Chung
|
fbe15d25b6
|
Merge branch 'master' into plugins
|
2020-07-06 13:11:46 +08:00 |
|
Stephen Chung
|
3e45d5d9a5
|
Refine docs and API.
|
2020-07-06 13:01:57 +08:00 |
|
Stephen Chung
|
ef2d28d423
|
Merge branch 'master' into plugins
|
2020-07-05 18:12:35 +08:00 |
|
Stephen Chung
|
936a3ff44a
|
Add feature to disable symbols.
|
2020-07-05 15:23:51 +08:00 |
|
Stephen Chung
|
d626bf9f5b
|
Refine no_function feature.
|
2020-07-04 16:21:15 +08:00 |
|
Stephen Chung
|
b3b3a083b8
|
Add docs on serde feature.
|
2020-07-04 15:39:40 +08:00 |
|
Stephen Chung
|
2b2deba5e0
|
Remove serde from default feature.
|
2020-07-03 22:48:33 +08:00 |
|
Stephen Chung
|
78c94daf46
|
Add ser::to_dynamic.
|
2020-07-03 22:42:56 +08:00 |
|
Stephen Chung
|
fa84e5c502
|
Add serde deserialization.
|
2020-07-03 17:19:55 +08:00 |
|
Stephen Chung
|
e14cfbd9d7
|
Restore plugins code.
|
2020-07-02 12:47:24 +08:00 |
|
Stephen Chung
|
e614790897
|
Enable function pointers even under no_function.
|
2020-06-30 18:34:58 +08:00 |
|
Stephen Chung
|
d6a08be223
|
Refactor.
|
2020-06-29 23:55:28 +08:00 |
|
Stephen Chung
|
04d2fb5001
|
Fix no_std.
|
2020-06-26 23:24:47 +08:00 |
|
Stephen Chung
|
ab347fa14e
|
Add Module::iter_script_fn.
|
2020-06-26 22:33:27 +08:00 |
|
Stephen Chung
|
31eaf321d0
|
Refactor tokenizer.
|
2020-06-26 19:44:50 +08:00 |
|
Stephen Chung
|
58c198776f
|
Code cleanup.
|
2020-06-25 11:07:46 +08:00 |
|
Stephen Chung
|
54c5c139f9
|
Add internals feature.
|
2020-06-23 10:43:24 +08:00 |
|
Stephen Chung
|
a9b168ba99
|
Refine docs.
|
2020-06-22 22:02:49 +08:00 |
|
Stephen Chung
|
478bc7ab30
|
Change README to point to the Rhai book.
|
2020-06-20 12:23:32 +08:00 |
|
Stephen Chung
|
35fa61cd4b
|
Do not export fn_native.
|
2020-06-18 18:39:28 +08:00 |
|
Stephen Chung
|
e095a87ea2
|
Remove wasm64 target.
|
2020-06-17 16:49:51 +08:00 |
|
Stephen Chung
|
7f4f737ff2
|
Gate WASM target.
|
2020-06-17 09:54:17 +08:00 |
|
Stephen Chung
|
dc540755e7
|
Revert plugins.
|
2020-06-16 09:40:31 +08:00 |
|
jhwgh1968
|
27b8f9929d
|
Basic Implementation of Plugins and Plugin Functions
|
2020-06-02 21:44:28 -05:00 |
|
Stephen Chung
|
a9a95b3c2d
|
Merge branch 'master' into plugins
|
2020-05-28 14:09:27 +08:00 |
|
Stephen Chung
|
b34d5fe3a1
|
Complete ImmutableString.
|
2020-05-26 14:14:03 +08:00 |
|
Stephen Chung
|
99ea2b33c9
|
Use immutable strings.
|
2020-05-25 13:44:28 +08:00 |
|
Stephen Chung
|
2f0ab18b70
|
Merge register_result_fn and register_dynamic_fn.
|
2020-05-22 13:09:17 +08:00 |
|
Stephen Chung
|
39cd1c8413
|
Merge branch 'master' into plugins
|
2020-05-21 09:30:03 +08:00 |
|
Stephen Chung
|
3295060dba
|
Unify all functions under CallableFunction type.
|
2020-05-19 19:03:06 +08:00 |
|
Stephen Chung
|
a22f338b03
|
Back out NativeCallable trait.
|
2020-05-19 10:13:37 +08:00 |
|
Stephen Chung
|
a2c50879fe
|
Fix dropping issues with StaticVec and use it everywhere.
|
2020-05-17 00:24:07 +08:00 |
|
Stephen Chung
|
be97047e51
|
Limit modules loading.
|
2020-05-15 21:40:54 +08:00 |
|
Stephen Chung
|
5d5ceb4049
|
Consolidate all unsafe code under one single file.
|
2020-05-14 18:27:22 +08:00 |
|
Stephen Chung
|
30e5e2f034
|
Use modules to implement packages.
|
2020-05-13 19:21:42 +08:00 |
|
Stephen Chung
|
4a8710a4a9
|
Create NativeCallable trait.
|
2020-05-11 13:36:50 +08:00 |
|
Stephen Chung
|
fa4d391e4b
|
Merge branch 'master' into plugins
|
2020-05-06 20:00:02 +08:00 |
|
Stephen Chung
|
82e1af7acd
|
Implement module resolvers.
|
2020-05-05 23:57:25 +08:00 |
|
Stephen Chung
|
38e717a838
|
Build Module type plus engine hooks.
|
2020-05-05 15:00:10 +08:00 |
|
Stephen Chung
|
c03b162b7e
|
Refactor code base and split into more module files.
|
2020-05-05 12:24:13 +08:00 |
|
Stephen Chung
|
143861747d
|
Rename sub-scope/SubScope to module.
|
2020-05-05 10:39:12 +08:00 |
|
Stephen Chung
|
64036f69ca
|
Refine modules.
|
2020-05-04 23:07:42 +08:00 |
|
jhwgh1968
|
e59f6939f7
|
Added basic Plugin trait and test
|
2020-04-25 19:15:06 -05:00 |
|
Stephen Chung
|
ef9d870a82
|
Remove builtin.rs
|
2020-04-22 19:28:00 +08:00 |
|
Stephen Chung
|
69733688bf
|
Make all public API's return Box<EvalAltResult> to reduce footprint.
|
2020-04-21 23:25:12 +08:00 |
|
Stephen Chung
|
0a75479637
|
Refine packages plumbing.
|
2020-04-21 23:01:10 +08:00 |
|
Stephen Chung
|
0306d15c04
|
Split core and standard libraries into packages.
|
2020-04-21 00:11:25 +08:00 |
|
Stephen Chung
|
a35518fe49
|
Split tokenizer into separate file, plus fix no_std feature.
|
2020-04-15 22:21:23 +08:00 |
|
Stephen Chung
|
5152a40e93
|
Change Dynamic to enum.
|
2020-04-12 23:00:06 +08:00 |
|
Stephen Chung
|
3609150dcf
|
Bump version to 0.12.0.
|
2020-04-09 18:45:49 +08:00 |
|
Stephen Chung
|
34ef2d6e00
|
Rename AnonymousFn to Func
|
2020-04-09 10:38:33 +08:00 |
|
Stephen Chung
|
518725e119
|
Add support for anonymous functions in Rust.
|
2020-04-08 23:01:48 +08:00 |
|
Stephen Chung
|
bcff6bfd71
|
Remove no_stdlib feature in favor of Engine::new_raw().
|
2020-04-08 10:19:03 +08:00 |
|
Stephen Chung
|
e795a50ae2
|
Make Engine reentrant to prepare for parallel execution.
|
2020-04-07 13:23:06 +08:00 |
|
Stephen Chung
|
92b549b828
|
Add features info in docs.
|
2020-04-03 19:42:01 +08:00 |
|
Stephen Chung
|
45ee51874f
|
Add object maps.
|
2020-03-29 23:53:35 +08:00 |
|
Stephen Chung
|
599b81ad8a
|
Remove ScopeEntry and VariableType from public.
|
2020-03-25 11:24:29 +08:00 |
|
Stephen Chung
|
d21f66b911
|
Fixing lint warnings
|
2020-03-24 16:57:35 +08:00 |
|
Stephen Chung
|
cc8ec12691
|
Add more comments and examples.
|
2020-03-19 13:52:10 +08:00 |
|
Stephen Chung
|
0dc51f8e59
|
Removee debug_msgs feature.
|
2020-03-18 22:03:50 +08:00 |
|
Stephen Chung
|
a9c65a962c
|
Split no_stdlib and no_std into two features.
|
2020-03-18 12:04:26 +08:00 |
|
Trangar
|
c8a9df0a0a
|
Added no_std support
|
2020-03-17 19:26:11 +01:00 |
|
Stephen Chung
|
372321dfe3
|
Add full optimization level for aggressive optimizing.
|
2020-03-15 22:39:58 +08:00 |
|
Stephen Chung
|
dd36f3387a
|
Fixup code to make sure all feature builds succeed.
|
2020-03-14 20:06:40 +08:00 |
|
Stephen Chung
|
504fd56f1f
|
More documentation on chained assignment.
|
2020-03-14 14:57:59 +08:00 |
|
Stephen Chung
|
c7a6777b70
|
Merge branch 'master' into master
|
2020-03-13 18:27:53 +08:00 |
|
Jarkko Kuukkanen
|
8c1c37666d
|
Make every file evaluation use PathBuf instead of str
|
2020-03-13 11:53:14 +02:00 |
|
Stephen Chung
|
708c285a0a
|
Add only_i32 and only_i64 features.
|
2020-03-10 23:06:20 +08:00 |
|
Stephen Chung
|
52b5732bcb
|
Add no_inidex feature to disable arrays and indexing.
|
2020-03-10 17:10:33 +08:00 |
|
Stephen Chung
|
55e7af7b04
|
Add AST optimizer.
|
2020-03-09 21:57:07 +08:00 |
|
Stephen Chung
|
c467ffd58d
|
Comment out optimizer for successful build.
|
2020-03-09 21:52:43 +08:00 |
|
Stephen Chung
|
5b5fd162be
|
Use ? operator in tests.
|
2020-03-09 21:09:53 +08:00 |
|
Stephen Chung
|
b1b25d3043
|
Add fallible functions support and replace most arithmetic operations with checked versions.
|
2020-03-08 22:47:13 +08:00 |
|
Stephen Chung
|
bb56a7a843
|
Code refactor, bug fixes, code docs.
|
2020-03-04 22:00:01 +08:00 |
|
Stephen Chung
|
71a3c79915
|
Fix number parsing.
|
2020-03-03 21:39:25 +08:00 |
|
Stephen Chung
|
a1591ae45b
|
Better API for Scope.
|
2020-03-03 15:20:20 +08:00 |
|
Stephen Chung
|
0707fad1ca
|
Refactor tests.
|
2020-03-02 22:11:56 +08:00 |
|
Stephen Chung
|
a5e09295f8
|
Allow comparisons between different types (returning false).
|
2020-03-02 14:28:42 +08:00 |
|
Stephen Chung
|
b152ed88f0
|
Move built-in functions into separate module.
|
2020-03-01 17:37:47 +08:00 |
|
Stephen Chung
|
8723eedca9
|
Rename RegisterBoxFn to RegisterDynamicFn.
|
2020-02-28 23:38:39 +08:00 |
|
Stephen Chung
|
51abc4a2c1
|
Simplify API by introducing the Dynamic and Array type aliases.
|
2020-02-25 15:02:27 +08:00 |
|
Stephen Chung
|
e4e471fd20
|
Add line/position in compilation errors; Add compile to AST; FIx infinite loop in close parens.
|
2020-02-24 23:25:52 +08:00 |
|
Stephen Chung
|
157aa2be94
|
Add for statement and range function; New register_box_fn for functions returning Box<dyn Any> (which should not be boxed again); Register standard utility functions in library (e.g. print, string concat).
|
2020-02-23 22:48:46 +08:00 |
|
timfish
|
82fd20b2b1
|
Rust 2018
|
2019-09-18 11:21:07 +01:00 |
|
Juan Ibiapina
|
e534e907e8
|
Use default rust directory structure for tests
|
2018-06-13 10:56:29 +02:00 |
|
Lukáš Hozda
|
8d07d8e00a
|
lock debug messages behind 'debug_msgs' feature
|
2018-02-09 22:27:41 +01:00 |
|
Lukáš Hozda
|
5edcfc2156
|
minor refactor
|
2017-12-21 12:28:59 +01:00 |
|
torkleyy
|
71ebd0d4d1
|
Use &mut Any instead of &mut Box<Any>
|
2017-12-20 21:52:26 +01:00 |
|
torkleyy
|
348a680980
|
Fix build and all tests
|
2017-12-20 21:09:53 +01:00 |
|
torkleyy
|
f09545921f
|
Rewrite Rhai function dispatching
|
2017-12-20 12:16:14 +01:00 |
|
russ
|
3a5a1d2aff
|
i64 and f64 exponent implementation
|
2017-11-23 23:56:22 -08:00 |
|
Lukáš Hozda
|
8fbeecb31b
|
export EvalAltResult, because it was public already and might be needed for some eval() and consume() calls
|
2017-11-03 18:49:27 +01:00 |
|
Lukáš Hozda
|
50b8fe365a
|
fix warning in lib.rs doctest
|
2017-10-30 08:53:11 +01:00 |
|
Lukáš Hozda
|
47ce39062f
|
initial documentation (WIP)
|
2017-10-28 22:33:00 +02:00 |
|
Lukáš Hozda
|
597c2eda21
|
move tests to a separated module for clarity, lock test module behind #[cfg(test)]
|
2017-10-14 19:49:18 +02:00 |
|
Lukáš Hozda
|
a1e92d006c
|
clippy refactoring
|
2017-10-02 23:44:45 +02:00 |
|
jonathandturner
|
fbf81ff651
|
Add Scope to API. Move todo to github
|
2016-03-04 08:45:43 -05:00 |
|