Stephen Chung
|
29150faef2
|
Improve AST evaluation efficiency by sharing functions.
|
2020-04-04 22:00:44 +08:00 |
|
Stephen Chung
|
d1cffac420
|
Reduce overhead of Engine by not creating hash maps until used.
|
2020-04-04 13:05:20 +08:00 |
|
Stephen Chung
|
12a379dd57
|
Add stepped range function and keys/values for maps.
|
2020-04-04 12:20:24 +08:00 |
|
Stephen Chung
|
92b549b828
|
Add features info in docs.
|
2020-04-03 19:42:01 +08:00 |
|
Stephen Chung
|
c6216c0823
|
Add back doc for on_print and on_debug.
|
2020-04-03 17:18:30 +08:00 |
|
Stephen Chung
|
a79f2a209c
|
Make Engine Send+Sync.
|
2020-04-03 17:17:00 +08:00 |
|
Stephen Chung
|
9d7091ad9d
|
Use formatting commands for padding.
|
2020-04-02 22:37:35 +08:00 |
|
Stephen Chung
|
0873bdc152
|
Add sync feature to make Dynamic, Scope and AST Send + Sync .
|
2020-04-02 19:40:02 +08:00 |
|
Stephen Chung
|
2c86abc58c
|
Merge branch 'master' of https://github.com/schungx/rhai
|
2020-04-02 12:39:32 +08:00 |
|
Stephen Chung
|
5e7c9b47d5
|
Rename downcast to try_cast and add cast for Dynamic.
|
2020-04-02 12:35:44 +08:00 |
|
Stephen Chung
|
246f5fbbe6
|
Rename downcast to try_cast and add cast for Dynamic.
|
2020-04-02 12:18:22 +08:00 |
|
Stephen Chung
|
c4a51b1390
|
Add append/mixin functions for arrays and maps.
|
2020-04-01 22:56:54 +08:00 |
|
Stephen Chung
|
4ea2fb88ae
|
Add continue statement.
|
2020-04-01 16:22:18 +08:00 |
|
Stephen Chung
|
9aff10aca4
|
Remove hard-wired version to num-traits.
|
2020-04-01 10:28:07 +08:00 |
|
Stephen Chung
|
d614d5da1a
|
Merge pull request #120 from schungx/master
Add object maps.
|
2020-04-01 10:25:49 +08:00 |
|
Stephen Chung
|
246a865abd
|
Fix doc test.
|
2020-04-01 10:21:49 +08:00 |
|
Stephen Chung
|
d7ac57c060
|
Minor code cleanup.
|
2020-04-01 09:51:33 +08:00 |
|
Stephen Chung
|
dcf5eaf64d
|
Add to_string to prepare for string interpolation.
|
2020-03-31 10:00:17 +08:00 |
|
Stephen Chung
|
c17dc34f86
|
Refine code.
|
2020-03-30 22:19:37 +08:00 |
|
Stephen Chung
|
01c0b51017
|
Change object maps to #{ ... }
|
2020-03-30 17:40:26 +08:00 |
|
Stephen Chung
|
ee18f047b4
|
Fix test.
|
2020-03-30 16:18:33 +08:00 |
|
Stephen Chung
|
0a8b324fec
|
Merge branch 'object_maps'
|
2020-03-30 16:13:12 +08:00 |
|
Stephen Chung
|
9f3113b11c
|
Encapsulate getters/setters.
|
2020-03-30 16:10:50 +08:00 |
|
Stephen Chung
|
273fc59a30
|
Refine tests.
|
2020-03-30 16:10:40 +08:00 |
|
Stephen Chung
|
fce51758d1
|
Add support for string literal property names in object maps.
|
2020-03-30 12:14:59 +08:00 |
|
Stephen Chung
|
45ee51874f
|
Add object maps.
|
2020-03-29 23:53:35 +08:00 |
|
Stephen Chung
|
ef6c6ea6d2
|
Add no_object feature to disable objects.
|
2020-03-29 17:15:12 +08:00 |
|
Stephen Chung
|
a8a4ed2967
|
Merge all MissingXXX errors into MissingToken.
|
2020-03-29 13:44:27 +08:00 |
|
Stephen Chung
|
65c4639068
|
Merge pull request #116 from schungx/master
Efficiency improvements and code refactor.
|
2020-03-28 11:14:34 +08:00 |
|
Stephen Chung
|
ef6dd9414a
|
Allow if expressions.
|
2020-03-27 23:47:23 +08:00 |
|
Stephen Chung
|
a541a4507f
|
Remove internal function.
|
2020-03-27 16:46:19 +08:00 |
|
Stephen Chung
|
796690f506
|
Detect duplicated parameters in function definitions.
|
2020-03-27 16:46:08 +08:00 |
|
Stephen Chung
|
337a96394f
|
Limit function calls depth.
|
2020-03-27 14:34:01 +08:00 |
|
Stephen Chung
|
cc8554d095
|
Add merge/+ to AST.
|
2020-03-27 11:50:24 +08:00 |
|
Stephen Chung
|
a8b270a661
|
Remove hard-coded version numbers for no_std build dependencies.
|
2020-03-26 20:26:27 +08:00 |
|
Stephen Chung
|
56df5c49c8
|
Encapsulate FunctionsLib to hold script-defined functions.
|
2020-03-26 20:26:05 +08:00 |
|
Stephen Chung
|
8679982b4b
|
Use references for function call args.
|
2020-03-26 10:56:28 +08:00 |
|
Stephen Chung
|
ea4d3fa6b8
|
Avoid I and O as generic parameters.
|
2020-03-26 10:56:18 +08:00 |
|
Stephen Chung
|
6308e54119
|
Simplify.
|
2020-03-26 10:55:50 +08:00 |
|
Stephen Chung
|
a5a161ec88
|
Format getter/setter function name using constants.
|
2020-03-26 10:55:33 +08:00 |
|
Stephen Chung
|
2bb2e871ab
|
Remove regnster_fn support for first argument of &type (not used).
|
2020-03-25 17:21:58 +08:00 |
|
Stephen Chung
|
ff8756018b
|
Refactor error display.
|
2020-03-25 11:51:13 +08:00 |
|
Stephen Chung
|
b603a85bca
|
Add expression eval test.
|
2020-03-25 11:50:58 +08:00 |
|
Stephen Chung
|
5aea997672
|
Refine Scope API.
|
2020-03-25 11:27:18 +08:00 |
|
Stephen Chung
|
3bc02a99ad
|
Format comments.
|
2020-03-25 11:27:09 +08:00 |
|
Stephen Chung
|
599b81ad8a
|
Remove ScopeEntry and VariableType from public.
|
2020-03-25 11:24:29 +08:00 |
|
Stephen Chung
|
180c4dee08
|
Document macros.
|
2020-03-25 11:24:06 +08:00 |
|
Stephen Chung
|
928f044553
|
Fix lint warnings in examples
|
2020-03-24 17:30:04 +08:00 |
|
Stephen Chung
|
d21f66b911
|
Fixing lint warnings
|
2020-03-24 16:57:35 +08:00 |
|
Stephen Chung
|
3ea482567f
|
Simplify code style.
|
2020-03-24 16:46:47 +08:00 |
|