Commit Graph

3932 Commits

Author SHA1 Message Date
Stephen Chung
80917bfad2 Fix build. 2023-03-08 22:03:03 +08:00
Stephen Chung
8fe5bac3e9 Short-circuit primary data operations. 2023-03-08 21:50:57 +08:00
Stephen Chung
58fad030ee Do not default compares of different types. 2023-03-08 21:47:57 +08:00
Stephen Chung
fa4096e91e Fine tune Engine size. 2023-03-07 16:52:37 +08:00
Stephen Chung
3e784d592d Check for more hash collisions. 2023-03-02 21:59:38 +08:00
Stephen Chung
a2f8d057f8 Add testing-environ feature. 2023-03-02 13:16:15 +08:00
Stephen Chung
86ccb37029 Simplify code. 2023-02-28 22:33:44 +08:00
Stephen Chung
9a5221f60d Add Engine::RAW. 2023-02-25 21:41:11 +08:00
Stephen Chung
5f09b5d9d9 Fix builds. 2023-02-25 20:58:40 +08:00
Stephen Chung
51581cdef5 Make Engine faster to create. 2023-02-25 19:57:19 +08:00
Stephen Chung
c2a8c342bb Modify hashing function. 2023-02-24 14:24:10 +08:00
Stephen Chung
5b200a6d3d Fix build. 2023-02-21 18:20:25 +08:00
Stephen Chung
14e205cabc Satisfy msrv by removing then_some. 2023-02-21 18:16:03 +08:00
Stephen Chung
c58b52f2cb Fix builds. 2023-02-21 18:03:21 +08:00
Stephen Chung
a8be9c4d64 Reduce size of AST. 2023-02-21 17:52:11 +08:00
Stephen Chung
b371c524ae Use indirection for doc. 2023-02-21 17:14:14 +08:00
Stephen Chung
129a5c6e86 Use then/then_some to simplify. 2023-02-21 16:36:57 +08:00
Stephen Chung
00f2b07d38 All symbols to start a custom syntax. 2023-02-20 13:28:17 +08:00
Stephen Chung
426055d4d3 Update rustyline. 2023-02-20 10:06:26 +08:00
Stephen Chung
6d888cc0e4 Fix bug. 2023-02-18 14:28:38 +08:00
Stephen Chung
6b301b4e70 Set allow_loop_expressions to true by default. 2023-02-16 20:35:15 +08:00
Stephen Chung
513a1ab435 Allow access to scope by loaded module. 2023-02-13 21:12:17 +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
Stephen Chung
d0a47d7f66 Refactor to do more pre-calculation work. 2023-02-12 21:50:32 +08:00
Stephen Chung
9f18d6519d Use debug_assert!. 2023-02-12 00:13:54 +08:00
Stephen Chung
8685323b15 Use SmartString for comments. 2023-02-11 23:55:07 +08:00
Stephen Chung
dbac4d5689 Use StraightHashMap. 2023-02-11 23:51:36 +08:00
Stephen Chung
51c61b1bdb
Merge pull request #705 from schungx/master
Remove hashing hack.
2023-02-11 15:24:12 +08:00
Stephen Chung
557b368fdb Fix op-assignment hashes. 2023-02-11 15:06:17 +08:00
Stephen Chung
9cb5154979 Refactor FnCallHashes. 2023-02-11 12:52:07 +08:00
Stephen Chung
e177a5648a Remove hashing hack. 2023-02-11 11:56:20 +08:00
Stephen Chung
75718a5a8b Satisfy clippy. 2023-02-11 00:17:26 +08:00
Stephen Chung
c58fe87107 Fix error. 2023-02-10 23:51:22 +08:00
Stephen Chung
4fe80a2026 Use &Token for op. 2023-02-10 23:42:13 +08:00
Stephen Chung
8d1fa19331 Remove usage of all() 2023-02-10 18:33:22 +08:00
Stephen Chung
97e0578165 Merge branch 'main' of https://github.com/rhaiscript/rhai 2023-02-10 18:32:30 +08:00
Stephen Chung
47f18f0ba7
Merge pull request #688 from Mathieu-Lala/fix/lint
Fix lints warnings and enhance the CI
2023-02-10 18:32:14 +08:00
Mathieu Lala
3523941fee
fix<doc>: rename _item for item 2023-02-10 11:04:14 +01:00
Stephen Chung
89725a6dd4 Fix bug when parsing !in. 2023-02-10 14:58:03 +08:00
Mathieu Lala
8e5b280d8a
fix<doc>: rename _unit for unit 2023-02-09 19:03:02 +01:00
Stephen Chung
2ffffb6fdc
Merge pull request #702 from schungx/master
Add min/max.
2023-02-09 22:21:42 +08:00
Stephen Chung
777f3e219a Add max/min. 2023-02-09 22:09:16 +08:00
Mathieu Lala
9bdf3c290d
pull main & udpate lint 2023-02-05 17:59:02 +01: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
9bd80f607f Merge branch 'main' of https://github.com/rhaiscript/rhai 2023-02-05 21:42:17 +08:00
Stephen Chung
234bf76d0c
Merge pull request #691 from Mathieu-Lala/feat/more-ci
CI: add `cargo hack check --feature-powerset`
2023-02-05 21:41:53 +08:00
Mathieu Lala
da2d3adaef
fix: exclude feature 2023-02-05 13:22:44 +01:00
Mathieu Lala
933ffbc3fc
feat<ci>: for a manual job for 2023-02-05 13:16:55 +01:00