Commit Graph

112 Commits

Author SHA1 Message Date
Stephen Chung
6be29cae54 Fix reverse lookup table for keywords 2023-04-25 22:33:29 +08:00
Stephen Chung
0206f776db Add is_symbol_disabled and is_custom_keyword. 2023-04-11 11:38:48 +08:00
Stephen Chung
637728de6a Fix builds. 2023-03-30 17:41:21 +08:00
Stephen Chung
2a98d38a7e is_shared is made reserved. 2023-03-30 16:26:58 +08:00
Stephen Chung
2e724b804e Remove indirection. 2023-03-23 13:37:10 +08:00
Stephen Chung
3c7cd8e278 Use debug_assert. 2023-03-23 09:12:48 +08:00
Stephen Chung
76ab1e290d Update docs. 2023-03-17 06:41:44 +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
14e205cabc Satisfy msrv by removing then_some. 2023-02-21 18:16:03 +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
9f18d6519d Use debug_assert!. 2023-02-12 00:13:54 +08:00
Stephen Chung
75718a5a8b Satisfy clippy. 2023-02-11 00:17:26 +08:00
Stephen Chung
97e0578165 Merge branch 'main' of https://github.com/rhaiscript/rhai 2023-02-10 18:32:30 +08:00
Stephen Chung
89725a6dd4 Fix bug when parsing !in. 2023-02-10 14:58:03 +08:00
Mathieu Lala
9bdf3c290d
pull main & udpate lint 2023-02-05 17:59:02 +01:00
Stephen Chung
dd2a0a64aa Remove Token::NONE. 2023-01-08 21:15:16 +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
80ccd75514 Satisfy clippy. 2022-12-22 17:34:58 +08:00
Stephen Chung
9bf3a9d78f Add Engine::compact_script. 2022-12-21 13:54:54 +08:00
Stephen Chung
e10576abff Process block comments better. 2022-12-02 14:06:31 +08:00
Stephen Chung
fc4c8731f0 Add !in. 2022-11-30 14:11:09 +08:00
Stephen Chung
c509cc896d Revise documentation. 2022-11-29 15:50:58 +08:00
Stephen Chung
0c85f0c796 Code cleanup and refactor. 2022-11-28 23:24:22 +08:00
Stephen Chung
d645d8271c More code refactor. 2022-11-25 20:42:16 +08:00
Stephen Chung
2bf8e610a3 Reduce size of Engine. 2022-11-24 22:58:42 +08:00
Stephen Chung
3e7408511e Satisfy more clippy. 2022-11-23 16:14:11 +08:00
Stephen Chung
4e27039521 Use bitflags. 2022-11-23 11:36:30 +08:00
Stephen Chung
d911327242 Use SmartString for buffers and literal_syntax can panic. 2022-11-22 23:30:43 +08:00
Stephen Chung
ad018aaae3 Move FloatWrapper into types. 2022-11-08 23:17:31 +08:00
Stephen Chung
32493524ed Code cleanup. 2022-10-30 22:16:09 +08:00
Stephen Chung
c9184db4d2 Refine native/script code splits. 2022-10-30 15:45:25 +08:00
Stephen Chung
6c777e68d3 Refine inlining. 2022-09-28 12:06:22 +08:00
Stephen Chung
25476d1cea Mark debug functions cold. 2022-09-27 08:52:39 +08:00
Stephen Chung
e9a270f6ba Fix feature builds. 2022-09-25 23:07:47 +08:00
Stephen Chung
bf02d040e2 Use tokens to speed up function name lookup. 2022-09-25 23:03:18 +08:00
Stephen Chung
def1a683ef Distinguish string literals from identifiers in custom syntax parser. 2022-09-24 16:59:01 +08:00
Stephen Chung
b9478e601c Use SmartString. 2022-09-14 12:11:18 +08:00
Stephen Chung
80772df4f4 Shut up clippy. 2022-08-29 14:27:05 +08:00
Stephen Chung
bf5d6ab35a Shut up clippy. 2022-08-27 16:26:41 +08:00
Stephen Chung
689ed48235 Add missing reserved tokens. 2022-08-20 21:55:00 +08:00
Stephen Chung
a51f6138f6 Reduce API changes. 2022-08-19 13:21:47 +08:00
Stephen Chung
a9b6e8b98c Fix builds. 2022-08-18 21:16:42 +08:00
Stephen Chung
1bba34b9b7 Reserve |> and <| symbols. 2022-08-18 16:59:54 +08:00
Stephen Chung
be448dfe4d Use identifiers in format! 2022-08-11 19:01:23 +08:00