Stephen Chung
|
492d79d8a2
|
Add documentation to Module.
|
2022-07-25 17:42:15 +08:00 |
|
Stephen Chung
|
96bfd93610
|
Keep module docs as one string.
|
2022-07-25 14:11:54 +08:00 |
|
Stephen Chung
|
148bbcb860
|
Fix missing field.
|
2022-07-25 13:53:28 +08:00 |
|
Stephen Chung
|
5d799fd325
|
Add module documentation.
|
2022-07-25 13:40:23 +08:00 |
|
Stephen Chung
|
6bc0118074
|
Add FnAccess methods.
|
2022-07-21 14:01:28 +08:00 |
|
Stephen Chung
|
8215c75a17
|
Merge branch 'main' of https://github.com/rhaiscript/rhai
|
2022-07-20 21:09:03 +08:00 |
|
quake
|
a0c07631e2
|
chore: clippy fix rust style
|
2022-07-20 21:38:50 +09:00 |
|
quake
|
8d91e7eb63
|
chore: clippy fix useless_conversion
|
2022-07-20 21:28:40 +09:00 |
|
Stephen Chung
|
5149c56256
|
Streamline switch case AST structure.
|
2022-07-19 13:33:53 +08:00 |
|
Stephen Chung
|
281e94fc62
|
Switch case condition that is constant () no longer optimizes to false.
|
2022-07-18 23:28:12 +08:00 |
|
Stephen Chung
|
f2724444bb
|
Make default switch case Optional.
|
2022-07-18 22:30:09 +08:00 |
|
Stephen Chung
|
7dca916c45
|
Allow duplicated switch cases.
|
2022-07-18 13:40:41 +08:00 |
|
Stephen Chung
|
4b760d1d0f
|
Unroll switch ranges if possible.
|
2022-07-18 08:54:10 +08:00 |
|
Stephen Chung
|
b4dbc7619a
|
Add no_custom_syntax.
|
2022-07-05 22:59:03 +08:00 |
|
Stephen Chung
|
b6528bd51d
|
Reduce usage of as_ref and as_mut.
|
2022-07-05 16:26:38 +08:00 |
|
Stephen Chung
|
dee66a409f
|
Add case alternatives for switch.
|
2022-07-04 17:42:24 +08:00 |
|
Stephen Chung
|
7068775f19
|
Use locked_read.
|
2022-06-26 14:10:09 +08:00 |
|
Stephen Chung
|
2b44778a5c
|
Add elvis operator for indexing.
|
2022-06-12 00:32:12 +08:00 |
|
Stephen Chung
|
8999872d62
|
Add null coalescing operator.
|
2022-06-10 11:22:33 +08:00 |
|
Stephen Chung
|
0f1e51b1c9
|
Support Elvis operator.
|
2022-06-10 10:26:06 +08:00 |
|
Stephen Chung
|
a31a4e4887
|
Fix builds.
|
2022-06-09 18:06:00 +08:00 |
|
Stephen Chung
|
285bf23dfa
|
Minor refactor.
|
2022-06-09 08:41:51 +08:00 |
|
Stephen Chung
|
8501d9d33f
|
Improve speed on common dot/index expressions.
|
2022-06-07 20:38:05 +08:00 |
|
Stephen Chung
|
6467b52761
|
Fix no_function.
|
2022-06-05 19:35:18 +08:00 |
|
Stephen Chung
|
99bcd8497a
|
Remove lifetime on OpAssignment.
|
2022-05-26 18:17:08 +08:00 |
|
Stephen Chung
|
9c1a49da0b
|
Fix AST combine.
|
2022-05-21 11:31:15 +08:00 |
|
Stephen Chung
|
46c1d86221
|
Fix merge AST with self-contained AST.
|
2022-05-20 21:49:27 +08:00 |
|
Stephen Chung
|
130b93d029
|
Use bit-flags for options.
|
2022-05-19 21:40:22 +08:00 |
|
Stephen Chung
|
857ae7a64a
|
Comments update.
|
2022-05-19 14:41:48 +08:00 |
|
Stephen Chung
|
04df4d2547
|
Fix indexing parsing.
|
2022-05-17 11:06:34 +08:00 |
|
Stephen Chung
|
2a57bd9d25
|
Mark some types as non_exhaustive.
|
2022-05-03 21:55:08 +08:00 |
|
Stephen Chung
|
2889ca0988
|
Add Start/End to DebuggerEvent.
|
2022-04-26 16:36:24 +08:00 |
|
Stephen Chung
|
5e4f27ae25
|
Add Token::Unit.
|
2022-04-21 10:04:46 +08:00 |
|
Stephen Chung
|
299d6ef308
|
Type checking in switch case condition.
|
2022-04-19 21:45:11 +08:00 |
|
Stephen Chung
|
770b2e04cc
|
Simplify switch condition.
|
2022-04-19 16:20:43 +08:00 |
|
Stephen Chung
|
60a933862e
|
Streamline op-assignments.
|
2022-04-18 23:12:47 +08:00 |
|
Stephen Chung
|
7788e1058a
|
Merge use.
|
2022-04-13 10:35:10 +08:00 |
|
Stephen Chung
|
63359f3f81
|
Unused parameters naming.
|
2022-04-11 16:29:16 +08:00 |
|
Stephen Chung
|
99118fe2c3
|
Minor refactors.
|
2022-03-20 21:58:43 +08:00 |
|
Stephen Chung
|
1e4abd012c
|
Minor refactor.
|
2022-03-09 09:25:55 +08:00 |
|
Stephen Chung
|
b35d965e55
|
Reverse Box<[...]> to Vec.
|
2022-03-06 16:37:27 +08:00 |
|
Stephen Chung
|
165fbbc855
|
Fix no_module builds.
|
2022-03-05 18:32:50 +08:00 |
|
Stephen Chung
|
8bda8c64df
|
Refine data structures
|
2022-03-05 17:57:23 +08:00 |
|
Stephen Chung
|
e06c2b2abb
|
Remove constants in function call expressions.
|
2022-03-05 12:06:47 +08:00 |
|
Stephen Chung
|
0335035b0f
|
Fix bug with eager optimization of method calls.
|
2022-03-04 12:22:44 +08:00 |
|
Stephen Chung
|
83755bf936
|
Refine doc comments.
|
2022-03-01 15:34:15 +08:00 |
|
Stephen Chung
|
61e6403ac6
|
Fix bug.
|
2022-02-26 17:44:39 +08:00 |
|
Stephen Chung
|
e767731953
|
Fix no_function feature.
|
2022-02-26 17:41:27 +08:00 |
|
Stephen Chung
|
9ef522b699
|
Use SmartString in parsing.
|
2022-02-26 17:28:58 +08:00 |
|
Stephen Chung
|
8205547d8a
|
Use bitflags.
|
2022-02-25 11:42:59 +08:00 |
|
Stephen Chung
|
23c74cac61
|
Use boxed slices.
|
2022-02-25 08:38:03 +08:00 |
|
Stephen Chung
|
5931f43d4d
|
Implement Ord and PartialOrd.
|
2022-02-25 08:37:57 +08:00 |
|
Stephen Chung
|
73f10b8adc
|
Minor housekeeping.
|
2022-02-24 10:36:20 +08:00 |
|
Stephen Chung
|
bb04fab011
|
Optimize variable shadowing.
|
2022-02-18 15:04:46 +08:00 |
|
Stephen Chung
|
1011602cf6
|
Fix no-std build.
|
2022-02-16 18:05:09 +08:00 |
|
Stephen Chung
|
0d2e3d82f3
|
Reduce size of Stmt.
|
2022-02-16 17:51:14 +08:00 |
|
Stephen Chung
|
cf0660e36b
|
Expand StmtBlock inline size.
|
2022-02-16 12:57:26 +08:00 |
|
Stephen Chung
|
84face341a
|
Fix doc comments.
|
2022-02-15 15:49:03 +08:00 |
|
Stephen Chung
|
d23d1159ab
|
Fix positions.
|
2022-02-10 17:55:32 +08:00 |
|
Stephen Chung
|
e5a673b3ae
|
Add position info for closures.
|
2022-02-09 13:40:51 +08:00 |
|
Stephen Chung
|
3b9dbd5fce
|
Add Span.
|
2022-02-08 23:01:47 +08:00 |
|
Stephen Chung
|
8cf6f424a5
|
Use turbofish notation.
|
2022-02-08 21:28:15 +08:00 |
|
Stephen Chung
|
7686ca619a
|
Use .. for (_).
|
2022-02-08 09:46:14 +08:00 |
|
Stephen Chung
|
f8cee0fe4e
|
Simplify using ..
|
2022-02-08 09:02:15 +08:00 |
|
Stephen Chung
|
f09abd7ab3
|
Fix builds.
|
2022-02-04 13:31:33 +08:00 |
|
Stephen Chung
|
6c1c8bc538
|
Improve position display.
|
2022-02-04 12:04:33 +08:00 |
|
Stephen Chung
|
f1458e79e0
|
Improve AST debug display.
|
2022-01-31 13:38:27 +08:00 |
|
Stephen Chung
|
7b92a80c32
|
Fix encapsulated environment in module functions.
|
2022-01-30 17:27:13 +08:00 |
|
Stephen Chung
|
19ef92a3f3
|
Fix builds.
|
2022-01-29 13:37:58 +08:00 |
|
Stephen Chung
|
6b02dde848
|
Gate dead code for no_module.
|
2022-01-29 11:09:43 +08:00 |
|
Stephen Chung
|
20baae71d4
|
Factor tuples into structs to aid in understanding.
|
2022-01-28 10:11:40 +08:00 |
|
Stephen Chung
|
b86dd3f586
|
Add missing data size check.
|
2022-01-28 08:28:31 +08:00 |
|
Stephen Chung
|
b9f2fdb635
|
Rename AST option flags.
|
2022-01-28 08:28:17 +08:00 |
|
Stephen Chung
|
fc87dec128
|
Add debugging interface.
|
2022-01-27 16:58:11 +08:00 |
|
Stephen Chung
|
69dab31617
|
Remove need for default features in dependencies.
|
2022-01-27 08:22:20 +08:00 |
|
Stephen Chung
|
c79f1e44e4
|
Refine position display of indexing.
|
2022-01-25 10:56:22 +08:00 |
|
Stephen Chung
|
97be256a1a
|
Fix bug with optimizing op-assignment operators.
|
2022-01-23 21:09:37 +08:00 |
|
Stephen Chung
|
afb651d0aa
|
Support converting literal FnPtr.
|
2022-01-08 14:00:41 +08:00 |
|
Stephen Chung
|
bc6bf6c6ba
|
Change expect("exists") to unwrap().
|
2022-01-06 11:07:52 +08:00 |
|
Stephen Chung
|
328f6910b6
|
Refactor wasm feature gates.
|
2022-01-04 22:16:20 +08:00 |
|
Stephen Chung
|
1d1e473ac4
|
Minor refactor.
|
2022-01-03 23:16:47 +08:00 |
|
Stephen Chung
|
135b1f54c2
|
Remove Option from source and use empty string as no source.
|
2022-01-01 17:20:00 +08:00 |
|
Stephen Chung
|
64bf2eef5c
|
Better error messages.
|
2021-12-30 12:19:41 +08:00 |
|
Stephen Chung
|
1fd242ed2c
|
Flatten nested block scopes.
|
2021-12-30 12:14:54 +08:00 |
|
Stephen Chung
|
807240e249
|
Rename Imports to GlobalRuntimeState.
|
2021-12-28 11:42:52 +08:00 |
|
Stephen Chung
|
a78488d935
|
Rename Imports to GlobalRuntimeState.
|
2021-12-27 23:03:30 +08:00 |
|
Stephen Chung
|
757eacfdde
|
No need for types with Into::into.
|
2021-12-27 16:59:05 +08:00 |
|
Stephen Chung
|
01c35808cb
|
Use type alias
|
2021-12-25 23:49:14 +08:00 |
|
Stephen Chung
|
1c50efbac8
|
Unroll switch range case if range has only one number.
|
2021-12-22 10:48:19 +08:00 |
|
Stephen Chung
|
dc6896fbe2
|
Add OpAssignment::new_from_token.
|
2021-12-17 16:55:24 +08:00 |
|
Stephen Chung
|
29a9b3878d
|
Fix builds.
|
2021-12-17 16:32:34 +08:00 |
|
Stephen Chung
|
c7ec27acc7
|
Split AST into separate files.
|
2021-12-17 16:07:13 +08:00 |
|