Stephen Chung
|
2c94f956e5
|
Fix error message.
|
2023-03-22 21:38:55 +08:00 |
|
Stephen Chung
|
9d4972f6d3
|
Fix builds.
|
2023-03-22 16:16:33 +08:00 |
|
Stephen Chung
|
e60d0fc0bc
|
Add typed methods definition.
|
2023-03-22 16:05:25 +08:00 |
|
Stephen Chung
|
3d4a278f2e
|
Remove ASTFlags::EMPTY.
|
2023-03-22 10:19:30 +08:00 |
|
Stephen Chung
|
7caf80e27c
|
Remove BP optimization.
|
2023-03-18 09:50:50 +08:00 |
|
Stephen Chung
|
29d6cdcc39
|
Remove branch prediction hack.
|
2023-03-18 09:27:47 +08:00 |
|
Stephen Chung
|
7cda806b53
|
Move tools out of src.
|
2023-03-17 07:09:56 +08:00 |
|
Stephen Chung
|
95e7ec46ce
|
FIx builds.
|
2023-03-17 06:46:43 +08:00 |
|
Stephen Chung
|
76ab1e290d
|
Update docs.
|
2023-03-17 06:41:44 +08:00 |
|
Stephen Chung
|
091e16124c
|
Add isAnonymous to JSON metadata.
|
2023-03-17 06:28:00 +08:00 |
|
Stephen Chung
|
c62162b3c5
|
Use {} style for auto_restore.
|
2023-03-17 06:15:59 +08:00 |
|
Stephen Chung
|
a3324ceb3d
|
Reduce lifted out variants.
|
2023-03-16 19:00:59 +08:00 |
|
Stephen Chung
|
c7d40945ee
|
Attempt to prevent building lookup tables on dispatch.
|
2023-03-16 18:03:54 +08:00 |
|
Stephen Chung
|
9ce581f745
|
Make track_progress inline.
|
2023-03-16 13:30:32 +08:00 |
|
Stephen Chung
|
55f022174b
|
Remove matching by ASCII because compiler should already optimize.
|
2023-03-16 13:05:29 +08:00 |
|
Stephen Chung
|
952c77d9bb
|
Fix feature.
|
2023-03-15 18:31:53 +08:00 |
|
Stephen Chung
|
41636eac55
|
Fine tune table-driven tokenizing.
|
2023-03-15 17:22:11 +08:00 |
|
Stephen Chung
|
2aa7b99d1e
|
Revise table-driven parsing.
|
2023-03-15 08:54:34 +08:00 |
|
Stephen Chung
|
f46cbdde49
|
Speed up parsing.
|
2023-03-15 08:01:44 +08:00 |
|
Stephen Chung
|
906ab3a295
|
Add short-circuits to op-assignments.
|
2023-03-09 22:03:27 +08:00 |
|
Stephen Chung
|
bb404a415d
|
Remove warnings.
|
2023-03-08 22:48:36 +08:00 |
|
Stephen Chung
|
e8dfabf967
|
Add floating-point.
|
2023-03-08 22:48:31 +08:00 |
|
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
|
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
|
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
|
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
|
9608e58ded
|
Use remove for flags.
|
2023-02-03 15:58:07 +08:00 |
|
Stephen Chung
|
675a45fac7
|
Fix bug.
|
2023-02-03 15:11:40 +08:00 |
|
Stephen Chung
|
ca02d46a49
|
Use iterators.
|
2023-01-31 19:44:46 +08:00 |
|
Stephen Chung
|
faa48f78c3
|
Refine hashing.
|
2023-01-31 16:37:50 +08:00 |
|
Stephen Chung
|
08f428def2
|
Fix diagnostic messages.
|
2023-01-30 13:03:47 +08:00 |
|
Stephen Chung
|
6400b33b1b
|
Use bitflag options for chains parsing.
|
2023-01-30 12:31:33 +08:00 |
|
Stephen Chung
|
62696853b4
|
Fix bug with parsing improper module separator.
|
2023-01-29 15:23:33 +08:00 |
|
Stephen Chung
|
f4949a2beb
|
Always search scope after scope is modified.
|
2023-01-27 22:31:14 +08:00 |
|
Stephen Chung
|
733bb07d2d
|
Fix bug in chain parsing.
|
2023-01-25 07:37:44 +08:00 |
|
Stephen Chung
|
ea3efe654c
|
Avoid unnecessarily creating Scope.
|
2023-01-11 11:42:46 +08:00 |
|
Stephen Chung
|
6d64a75bd2
|
Avoid creating new Scope.
|
2023-01-11 09:34:54 +08:00 |
|
Stephen Chung
|
dd2a0a64aa
|
Remove Token::NONE.
|
2023-01-08 21:15:16 +08:00 |
|
Stephen Chung
|
541951ec3f
|
Remove macro_use in types.
|
2023-01-06 15:43:53 +08:00 |
|
Stephen Chung
|
ae02668d08
|
Mark pure.
|
2023-01-03 14:00:18 +08:00 |
|
Mathieu Lala
|
af2e331b0f
|
fix: not #cfg
|
2022-12-30 20:45:26 +01:00 |
|
Mathieu Lala
|
c5002801c8
|
ci: add feature powerset & style: used #[cfg(all(..))]
|
2022-12-30 19:29:27 +01:00 |
|
Mathieu Lala
|
9af5b1c78e
|
fix: default clippy lints
|
2022-12-30 18:07:39 +01:00 |
|
Stephen Chung
|
a478d57e01
|
Fix builds.
|
2022-12-30 22:21:22 +08:00 |
|
Stephen Chung
|
ee8e745429
|
Change fold to for.
|
2022-12-29 17:51:27 +08:00 |
|
Stephen Chung
|
1a00ca0905
|
Change try_for_each to for.
|
2022-12-29 13:35:42 +08:00 |
|
Stephen Chung
|
858a6ad588
|
Make parse call arguments uniform.
|
2022-12-29 12:18:41 +08:00 |
|
Stephen Chung
|
00c434eb71
|
Use Option<Token> instead of Token::NONE.
|
2022-12-27 22:51:38 +08:00 |
|
Stephen Chung
|
bb1136e8ad
|
Refine what can be called in method style.
|
2022-12-27 22:06:51 +08: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
|
c5cb2d5e0f
|
Simplify Array::pad.
|
2022-12-26 17:32:46 +08:00 |
|
Stephen Chung
|
d47bfa431a
|
Revise built-in macros.
|
2022-12-26 11:46:11 +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
|
ffa1f5fb4a
|
Fix builds.
|
2022-12-23 18:54:55 +08:00 |
|
Stephen Chung
|
cb09393dba
|
Encapsulate into FlowControl type.
|
2022-12-23 14:26:06 +08:00 |
|
Stephen Chung
|
80ccd75514
|
Satisfy clippy.
|
2022-12-22 17:34:58 +08:00 |
|
Stephen Chung
|
bbd94dbffb
|
Use document-features.
|
2022-12-22 09:33:12 +08:00 |
|
Stephen Chung
|
481546124a
|
Fix builds.
|
2022-12-21 13:58:47 +08:00 |
|
Stephen Chung
|
9bf3a9d78f
|
Add Engine::compact_script.
|
2022-12-21 13:54:54 +08:00 |
|