Aleksey Kladov
|
5c5bde47fb
|
Rename some tokens
|
2020-04-10 17:07:09 +02:00 |
|
Edwin Cheng
|
19d952c603
|
Improve tt::Subtree debug print
|
2020-04-10 00:17:32 +08:00 |
|
Edwin Cheng
|
53d05448c1
|
Add L_DOLLAR for TYPE_RECOVERY_SET
|
2020-04-08 18:34:20 +08:00 |
|
Edwin Cheng
|
adc54632ae
|
Add open delim when delim not match
|
2020-03-21 05:20:28 +08:00 |
|
Edwin Cheng
|
622c843a4c
|
Add TokenConvertor trait
|
2020-03-21 03:08:56 +08:00 |
|
Edwin Cheng
|
27c516970b
|
Add test for delim bug
|
2020-03-20 23:36:29 +08:00 |
|
Florian Diebold
|
d655749aae
|
Turn ExpandResult into struct
|
2020-03-16 18:38:19 +01:00 |
|
Florian Diebold
|
0660dd10d2
|
Fix performance problem
|
2020-03-16 18:38:19 +01:00 |
|
Florian Diebold
|
b973158aeb
|
Make MBE expansion more resilient (WIP)
|
2020-03-16 18:38:19 +01:00 |
|
Edwin Cheng
|
e7206467d5
|
Add parse_to_token_tree
|
2020-03-09 00:13:04 +08:00 |
|
Edwin Cheng
|
0563cc8291
|
fix regression from #3451
|
2020-03-06 04:32:08 +08:00 |
|
Edwin Cheng
|
6794d50a9b
|
Fixed whitespace bug
|
2020-03-04 23:41:14 +08:00 |
|
Edwin Cheng
|
028595548b
|
Fix #3436
|
2020-03-04 23:41:14 +08:00 |
|
Edwin Cheng
|
3dc3d9d18f
|
Fix a bug for single dollar sign macro
|
2020-03-04 01:03:44 +08:00 |
|
Veetaha
|
5f15e3aeb0
|
ra_mbe: Remove explicit type annotation
|
2020-02-22 13:14:46 +02:00 |
|
Veetaha
|
28bdb65407
|
ra_mbe: added test for malformed token in macro invokation
There was a panic where lexer returned None on malformed tokens.
But now we just ignore tokenization errors in mbe.
|
2020-02-22 13:10:54 +02:00 |
|
Vincent Rouillé
|
dc98930965
|
Add details about test_repeat_bad_var current state
|
2019-12-30 17:12:20 +01:00 |
|
Vincent Rouillé
|
6d84dee4e7
|
fix #2520: change expand_repeat loop stop condition
|
2019-12-28 22:48:49 +01:00 |
|
Aleksey Kladov
|
6edc54a1e6
|
Refactor macro tests
|
2019-12-19 16:23:23 +01:00 |
|
Aleksey Kladov
|
5c3c2b8690
|
Fix parsing of interpolated expressions
|
2019-12-19 14:43:19 +01:00 |
|
Edwin Cheng
|
2ea1cfd780
|
Rename range to by_kind
|
2019-12-18 11:36:10 +08:00 |
|
Edwin Cheng
|
e16f3a5ee2
|
Add test for token map
|
2019-12-18 11:20:23 +08:00 |
|
Edwin Cheng
|
59295854f8
|
Add token id to delims
|
2019-12-18 11:20:22 +08:00 |
|
Edwin Cheng
|
aceb9d7fb0
|
Add token ids for all tt::Leaf
|
2019-12-18 11:20:22 +08:00 |
|
Edwin Cheng
|
98f98cbb54
|
Refactor tt::Delimiter
|
2019-12-13 21:53:34 +08:00 |
|
Aleksey Kladov
|
70f2a21b55
|
Remove typed macro parsing API
We do type-erasure on every path anyway, so it doesn't make much sense
to duplicate this function for every type
|
2019-11-09 13:14:10 +03:00 |
|
Edwin Cheng
|
159da285e9
|
Add macro_expansion_info in hir_expand
|
2019-11-05 01:38:20 +08:00 |
|
Edwin Cheng
|
04af290d4e
|
Add TokenId Shif in macro_rules
|
2019-11-04 23:22:18 +08:00 |
|
Aleksey Kladov
|
b31b7ab238
|
slightly cleanup macro tests
|
2019-09-19 13:44:51 +03:00 |
|
Aleksey Kladov
|
4551182f94
|
use usual token tree for macro expansion
|
2019-09-17 15:51:48 +03:00 |
|
Aleksey Kladov
|
9eb14e1170
|
cleanup expansion to item list
|
2019-09-10 22:22:57 +03:00 |
|
Aleksey Kladov
|
6e5198cd6d
|
add fragmets to expansion
|
2019-09-10 20:26:41 +03:00 |
|
Aleksey Kladov
|
1c5800dee8
|
"Fix" mbe to work with decomposed tokens
We regressed $i * 2 where $i = 1 + 1, need to fix that!
|
2019-09-10 15:56:05 +03:00 |
|
Aleksey Kladov
|
e94587e315
|
fix assists
|
2019-09-02 21:52:06 +03:00 |
|
Aleksey Kladov
|
5b18a4eef9
|
rename struct -> record, pos -> tuple
|
2019-08-23 16:59:50 +03:00 |
|
Aleksey Kladov
|
c9cfd57eea
|
switch to upstream rowan's API
|
2019-07-20 20:12:06 +03:00 |
|
Aleksey Kladov
|
6d5d82e412
|
move debug_dump to fmt::Debug
|
2019-07-20 12:48:24 +03:00 |
|
Aleksey Kladov
|
08fd402ef2
|
migrate mbe to the new rowan
|
2019-07-19 13:16:24 +03:00 |
|
Aleksey Kladov
|
df33e7685b
|
use Parse in mbe
|
2019-07-18 23:19:04 +03:00 |
|
Aleksey Kladov
|
deab4caa7b
|
make Parse fields private
this is in preparation for the new rowan API
|
2019-07-12 19:41:13 +03:00 |
|
Aleksey Kladov
|
61e1474ab3
|
fix typos in mbe tests
|
2019-05-28 18:46:11 +03:00 |
|
Aleksey Kladov
|
2e3f5af9d4
|
move mbe to the new API
|
2019-05-28 17:39:01 +03:00 |
|
Edwin Cheng
|
ad9d2012de
|
Fix match literal
|
2019-05-20 18:29:02 +08:00 |
|
Edwin Cheng
|
a48e33f139
|
Fixed missing empty vars
|
2019-05-05 10:32:57 +08:00 |
|
Edwin Cheng
|
036141663b
|
Quote the quoted comment
|
2019-05-04 19:34:02 +08:00 |
|
Edwin Cheng
|
e7e896170a
|
Convert doc comment to attr
|
2019-05-04 15:00:16 +08:00 |
|
Edwin Cheng
|
4ba4747578
|
Mark unused mbe variable as Binding::Empty
|
2019-05-04 01:14:25 +08:00 |
|
Edwin Cheng
|
31909cc7d7
|
By pass unbind $var while mbe expanding
|
2019-05-03 23:23:21 +08:00 |
|
Edwin Cheng
|
e8e46100d6
|
Refactor out tests module and remove empty subtree
|
2019-05-03 21:38:00 +08:00 |
|