Commit Graph

2201 Commits

Author SHA1 Message Date
Stephen Chung
643ecc86a3 Minor refactor 2020-10-20 09:21:41 +08:00
Stephen Chung
f2b6d58122 Bump version. 2020-10-20 09:21:36 +08:00
Stephen Chung
13f1ae577b Use plugins to define functions. 2020-10-19 23:49:01 +08:00
Stephen Chung
1f9fb34e75
Merge pull request #263 from schungx/master
Refactor.
2020-10-19 21:16:09 +08:00
Stephen Chung
ccba5f2188 Move custom syntax into separate function. 2020-10-19 19:21:40 +08:00
Stephen Chung
a9fd0ff4de Encapsulate scope into EvalContext;
Fix bug with custom syntax delta.
2020-10-19 19:11:55 +08:00
Stephen Chung
d1f9f4096d Update badges 2020-10-19 17:26:47 +08:00
Stephen Chung
c8c4ca21ad Update docs. 2020-10-19 14:26:15 +08:00
Stephen Chung
5c7c947488
Merge pull request #262 from schungx/master
Support NativeCallContext parameter in plugin functions.
2020-10-18 22:56:08 +08:00
Stephen Chung
d68c951795 Pad string to exact length even when padding string is not multiple. 2020-10-18 22:47:58 +08:00
Stephen Chung
8a17856f27 Fix test. 2020-10-18 22:38:15 +08:00
Stephen Chung
25f820f5bf Reimplement pad for string. 2020-10-18 22:36:58 +08:00
Stephen Chung
ea814779bf Fix test. 2020-10-18 22:24:01 +08:00
Stephen Chung
6e5c903241 Fix no_module build. 2020-10-18 22:10:08 +08:00
Stephen Chung
46b92c9d1f Allow NativeCallContext in function arguments. 2020-10-18 21:47:34 +08:00
Stephen Chung
dc4c47e008 Fix no_function and no_module builds. 2020-10-18 17:29:11 +08:00
Stephen Chung
232ff91957 Fix doc test. 2020-10-18 17:08:57 +08:00
Stephen Chung
82e6dd446a Encapsulate register_fn_raw parameters into NativeCallContext. 2020-10-18 17:02:17 +08:00
Stephen Chung
58c820785b Add drain and retain for arrays. 2020-10-18 13:18:12 +08:00
Stephen Chung
aa6d00f253 Fix bug. 2020-10-17 20:01:31 +08:00
Stephen Chung
f903eda8ab Catch Fn and eval in method call at parse time. 2020-10-17 18:18:29 +08:00
Stephen Chung
7a4905209c Introduce EvalAltResult::ErrorSystem. 2020-10-17 16:34:07 +08:00
Stephen Chung
8eb6c821d4 Fix tests. 2020-10-17 14:08:59 +08:00
Stephen Chung
39474d6420 Streamline function pointers and currying. 2020-10-17 13:49:16 +08:00
Stephen Chung
a16fc71935 Encapsulate RwLock and RefCell into Locked. 2020-10-16 23:41:56 +08:00
Stephen Chung
bd90f3cc26
Merge pull request #261 from schungx/master
Fix bug with 0.19.1.
2020-10-16 21:32:59 +08:00
Stephen Chung
d88adfd73d Fix test. 2020-10-16 21:26:38 +08:00
Stephen Chung
6f134368c3 Bump version. 2020-10-16 21:19:24 +08:00
Stephen Chung
f995d09d8b Fix bug with calling scripted function. 2020-10-16 21:16:06 +08:00
Stephen Chung
e62df6cbed Remove none for array. 2020-10-16 21:02:16 +08:00
Stephen Chung
29374a8ce7 Update version. 2020-10-16 17:48:50 +08:00
Stephen Chung
ae6dbd6c84
Merge pull request #259 from schungx/master
Refactor and minor enhancements.
2020-10-16 17:40:58 +08:00
Stephen Chung
849aec0621 Set version to 0.19.1. 2020-10-16 17:32:26 +08:00
Stephen Chung
54d5b29390 Remove clone. 2020-10-15 23:44:05 +08:00
Stephen Chung
1e21a7f7e7 Introduce IndexChainValue. 2020-10-15 23:30:30 +08:00
Stephen Chung
fb05e811b7 Map::keys and Map::values can be used method-call style. 2020-10-15 22:11:40 +08:00
Stephen Chung
3b99b8f166 Simplify iterator registration. 2020-10-15 22:11:18 +08:00
Stephen Chung
ea9ef1091a Add example to function pointer. 2020-10-15 20:05:23 +08:00
Stephen Chung
a6fa94d946 Rhai function names with $ and . no longer fail. 2020-10-15 14:36:10 +08:00
Stephen Chung
8abb3c5203 Fix ui tests. 2020-10-15 14:06:54 +08:00
Stephen Chung
3c9250b0bf Skip wrapping if function returns Dynamicc. 2020-10-15 13:28:22 +08:00
Stephen Chung
707ece7e80 Refactor iterators API. 2020-10-14 23:22:10 +08:00
Stephen Chung
e0c39edff4 Enhance array functions. 2020-10-14 21:27:31 +08:00
Stephen Chung
3df8d6c398 Fix typo. 2020-10-13 17:16:19 +08:00
Stephen Chung
13c4d0bbb3 Adjust precedence of in. 2020-10-13 16:01:42 +08:00
Stephen Chung
9dceeaf114 Reserve ** operator. 2020-10-13 15:51:59 +08:00
Stephen Chung
037e8334d4 Reset modulo precedence. 2020-10-13 15:49:09 +08:00
Stephen Chung
28697e0380 Remove support for script-line native functions. 2020-10-13 14:40:02 +08:00
Stephen Chung
6db412815b Add chop and extract for arrays. 2020-10-13 14:39:49 +08:00
Stephen Chung
737c0aca44
Merge pull request #257 from schungx/master
New methods for arrays.
2020-10-13 13:28:30 +08:00