Commit Graph

763 Commits

Author SHA1 Message Date
Stephen Chung
1a61ed167c Fix optimizer constants propagation bug. 2023-04-24 12:17:23 +08:00
Stephen Chung
f49ce33a88 Use .take instead of mem::take(). 2023-04-21 10:20:19 +08:00
Stephen Chung
243e04f5ab Fix export shadowing bug. 2023-04-20 22:31:49 +08:00
Stephen Chung
fb88b79178 Fix bug in parsing index chains. 2023-04-19 23:17:54 +08:00
Stephen Chung
dd0d1dd7ca Fix test. 2023-04-11 10:35:24 +08:00
Stephen Chung
8662ffec62 Use unwrap_err. 2023-04-10 23:23:59 +08:00
Stephen Chung
20c535ecd3 Add full optimization test. 2023-04-10 22:29:44 +08:00
Stephen Chung
26ad454cb1 Streamline data types. 2023-04-10 18:47:53 +08:00
Stephen Chung
b5c81c9baa Fix test. 2023-04-10 13:17:48 +08:00
Stephen Chung
120ff91074 Fix bug in optimize_ast skipping Stmt::FnCall. 2023-04-10 13:11:24 +08:00
Stephen Chung
34c7dabe44 Add is_def_fn with 3 parameters. 2023-03-30 16:43:15 +08:00
Stephen Chung
e60d0fc0bc Add typed methods definition. 2023-03-22 16:05:25 +08:00
Stephen Chung
58fad030ee Do not default compares of different types. 2023-03-08 21:47:57 +08:00
Stephen Chung
a8be9c4d64 Reduce size of AST. 2023-02-21 17:52:11 +08:00
Stephen Chung
00f2b07d38 All symbols to start a custom syntax. 2023-02-20 13:28:17 +08:00
Stephen Chung
6b301b4e70 Set allow_loop_expressions to true by default. 2023-02-16 20:35:15 +08:00
Stephen Chung
7fc72e8c28 Use ? in tests. 2023-02-13 08:59:58 +08:00
Stephen Chung
7da20dd090 Forbid floating-point switch cases after range case. 2023-02-13 08:58:59 +08:00
Stephen Chung
10089c5cb0 Support switch range cases for floating-point values. 2023-02-12 23:20:14 +08:00
Mathieu Lala
097fa1f4e3
Merge branch 'main' of github.com:Mathieu-Lala/rhai into fix/lint 2023-02-05 17:18:45 +01:00
Stephen Chung
62696853b4 Fix bug with parsing improper module separator. 2023-01-29 15:23:33 +08:00
Stephen Chung
2c631daa07 Add test for auto global constants for global namespace. 2023-01-28 12:40:42 +08:00
Stephen Chung
733bb07d2d Fix bug in chain parsing. 2023-01-25 07:37:44 +08:00
Mathieu Lala
9af5b1c78e
fix: default clippy lints 2022-12-30 18:07:39 +01:00
Stephen Chung
7c00b74916 Allow string interpolation to work with no packages. 2022-12-27 10:09:40 +08:00
Stephen Chung
07f522e6d7 Fix array bug. 2022-12-26 22:05:29 +08:00
Stephen Chung
52d23522e6 Add for_each for arrays. 2022-12-25 12:44:49 +08:00
Stephen Chung
fd401f3048 Add array API with closure variation that binds to this. 2022-12-24 19:37:06 +08:00
Stephen Chung
6e40215631 Merge branch 'main' of https://github.com/rhaiscript/rhai 2022-12-20 22:19:11 +08:00
Fabrizio Sestito
06b40723e4
Add array find and find_map methods 2022-12-20 13:28:24 +01:00
Stephen Chung
b880893154 Allow negative shift bits. 2022-12-18 14:51:38 +08:00
Stephen Chung
a391f26920 Refine expression nesting level. 2022-12-08 17:18:40 +08:00
Stephen Chung
90998f4f14 Allow closures in parse expressions. 2022-12-06 21:41:38 +08:00
Stephen Chung
e2bd0705b1 Refine auto_restore syntax. 2022-12-04 22:47:10 +08:00
Stephen Chung
6e99e391e1 Fix test. 2022-12-03 10:50:58 +08:00
Stephen Chung
feb764a203 Fix test. 2022-12-02 17:37:35 +08:00
Stephen Chung
b4278fa251 Fix test. 2022-12-02 17:09:48 +08:00
Stephen Chung
fc4c8731f0 Add !in. 2022-11-30 14:11:09 +08:00
Stephen Chung
fbe30b8d0e Change debugger init signature. 2022-11-25 13:20:03 +08:00
Stephen Chung
bda8c2b636 Reduce data sizes. 2022-11-24 20:35:56 +08:00
Stephen Chung
02ef119603 Fix builds. 2022-11-23 17:23:54 +08:00
Stephen Chung
9f5b68549a Deserialize large numbers. 2022-11-23 16:13:57 +08:00
Stephen Chung
4e27039521 Use bitflags. 2022-11-23 11:36:30 +08:00
Stephen Chung
05c7d00a8e Deserialize to serde_json::Value 2022-11-22 16:25:25 +08:00
Stephen Chung
94aeab1015 Remove serde_bytes. 2022-11-22 15:52:31 +08:00
Stephen Chung
b2e4efd872 Fine tune serde. 2022-11-22 15:38:16 +08:00
Stephen Chung
d151c87687 Change call_fn_raw to call_fn_with_options. 2022-11-21 23:42:29 +08:00
Stephen Chung
ce046422f0 Add Dynamic::is_XXX API. 2022-11-09 12:44:57 +08:00
Stephen Chung
b4529b6a64 Add storage API for NativeCallContext. 2022-11-07 16:19:10 +08:00
Stephen Chung
4100e6da64 Use ImmutableString for source. 2022-10-29 14:12:18 +08:00