Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | use usual token tree for macro expansion | Aleksey Kladov | 2019-09-17 | 1 | -96/+61 |
| | |||||
* | cleanup expansion to item list | Aleksey Kladov | 2019-09-10 | 1 | -2/+2 |
| | |||||
* | allow rustfmt to reorder imports | Aleksey Kladov | 2019-07-04 | 1 | -8/+2 |
| | | | | | | This wasn't a right decision in the first place, the feature flag was broken in the last rustfmt release, and syntax highlighting of imports is more important anyway | ||||
* | By pass unbind $var while mbe expanding | Edwin Cheng | 2019-05-03 | 1 | -1/+1 |
| | |||||
* | Refactor out tests module and remove empty subtree | Edwin Cheng | 2019-05-03 | 1 | -1137/+1 |
| | |||||
* | Fixed old incorrect test | Edwin Cheng | 2019-05-02 | 1 | -1/+1 |
| | |||||
* | Compare text instead | Edwin Cheng | 2019-05-02 | 1 | -2/+2 |
| | |||||
* | Add empty bindings and some refactoring | Edwin Cheng | 2019-05-02 | 1 | -1/+19 |
| | |||||
* | Refactor parser handle mult-char punct internally | Edwin Cheng | 2019-04-28 | 1 | -13/+17 |
| | |||||
* | Fix more bugs | Edwin Cheng | 2019-04-25 | 1 | -2/+110 |
| | |||||
* | Add handling `token` seperator in mbe | Edwin Cheng | 2019-04-25 | 1 | -189/+27 |
| | |||||
* | Fix incorrect repeat sep eating | Edwin Cheng | 2019-04-25 | 1 | -1/+257 |
| | |||||
* | Remove unused print out | Edwin Cheng | 2019-04-22 | 1 | -67/+63 |
| | |||||
* | Add a test for #1178 case | Edwin Cheng | 2019-04-22 | 1 | -3/+102 |
| | |||||
* | Add tests | Edwin Cheng | 2019-04-21 | 1 | -2/+87 |
| | |||||
* | Fix bugs | Edwin Cheng | 2019-04-20 | 1 | -23/+87 |
| | |||||
* | Disable test_tt_xx | Edwin Cheng | 2019-04-19 | 1 | -23/+23 |
| | |||||
* | Add back missing assert | Edwin Cheng | 2019-04-19 | 1 | -2/+3 |
| | |||||
* | Add vis matcher | Edwin Cheng | 2019-04-19 | 1 | -0/+12 |
| | |||||
* | Add literal matcher | Edwin Cheng | 2019-04-19 | 1 | -0/+12 |
| | |||||
* | Add lifetime matcher | Edwin Cheng | 2019-04-19 | 1 | -1/+12 |
| | |||||
* | add tt matcher | Edwin Cheng | 2019-04-19 | 1 | -0/+24 |
| | |||||
* | add block matcher | Edwin Cheng | 2019-04-19 | 1 | -0/+19 |
| | |||||
* | Add block matcher | Edwin Cheng | 2019-04-19 | 1 | -0/+12 |
| | |||||
* | Merge #1148 | bors[bot] | 2019-04-19 | 1 | -10/+76 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1148: Add token_tree_to_xxx functions r=matklad a=edwin0cheng <del>As discus in PR #1147 , this PR added a `mbe::MacroKind` . Currently only 2 kind of macro are supported, `SourceFile` and `Block`.</del> Added following functions for `tt::TokenTree` and `ast::Node` conversion: * token_tree_to_expr * token_tree_to_pat * token_tree_to_ty * token_tree_to_macro_stmts * token_tree_to_macro_items And added two new syntax kind: * MACRO_ITEMS * MACRO_STMTS Co-authored-by: Edwin Cheng <[email protected]> | ||||
| * | Return Result for token_tree_to_xx functions | Edwin Cheng | 2019-04-18 | 1 | -4/+7 |
| | | |||||
| * | Add expr, pat, ty and macro_stmts | Edwin Cheng | 2019-04-18 | 1 | -0/+57 |
| | | |||||
| * | Add MacroItems and MacroStmts in grammer.ron | Edwin Cheng | 2019-04-18 | 1 | -8/+14 |
| | | |||||
* | | Fix missing last token in mbe $repeat parsing | Edwin Cheng | 2019-04-18 | 1 | -0/+24 |
|/ | |||||
* | Add `item` matcher in mbe | Edwin Cheng | 2019-04-18 | 1 | -0/+44 |
| | |||||
* | Add mbe stmt matcher | Edwin Cheng | 2019-04-17 | 1 | -0/+15 |
| | |||||
* | Fix bug and add expr , pat , ty matcher | Edwin Cheng | 2019-04-14 | 1 | -0/+97 |
| | |||||
* | Remove skip Delimiter::None and handle Dollars | Edwin Cheng | 2019-04-12 | 1 | -2/+55 |
| | |||||
* | Use SubtreeWalker instread of flatten TtToken | Edwin Cheng | 2019-04-08 | 1 | -3/+31 |
| | |||||
* | Combine all tokensource to one and refactoring | Edwin Cheng | 2019-04-07 | 1 | -0/+1 |
| | |||||
* | Refactoring subtree_source | Edwin Cheng | 2019-04-07 | 1 | -1/+3 |
| | |||||
* | Add path test and empty eat_path handling | Edwin Cheng | 2019-04-06 | 1 | -0/+22 |
| | |||||
* | Add proper test for literals and fixed typo bug | Edwin Cheng | 2019-04-05 | 1 | -4/+7 |
| | |||||
* | Add classify_literal and undo expose next_token | Edwin Cheng | 2019-04-05 | 1 | -4/+2 |
| | |||||
* | Fix literal support in token tree to ast item list | Edwin Cheng | 2019-04-05 | 1 | -0/+41 |
| | |||||
* | always show token text | Aleksey Kladov | 2019-04-02 | 1 | -8/+8 |
| | |||||
* | add name resolution from the old impl | Aleksey Kladov | 2019-03-17 | 1 | -10/+10 |
| | | | | unlike the old impl, this also handles macro imports across crates | ||||
* | Add parser unit tests | Wilco Kusee | 2019-03-03 | 1 | -1/+1 |
| | |||||
* | Split parse and expand errors | Wilco Kusee | 2019-03-03 | 1 | -5/+8 |
| | |||||
* | Replace option with result in mbe | Wilco Kusee | 2019-03-02 | 1 | -3/+12 |
| | |||||
* | Add a test for macro parsing | Aleksey Kladov | 2019-02-23 | 1 | -2/+59 |
| | |||||
* | implement tt -> ast | Aleksey Kladov | 2019-02-23 | 1 | -1/+1 |
| | |||||
* | Fix some typos | Pascal Hertleif | 2019-02-12 | 1 | -3/+3 |
| | |||||
* | assign ids when converting tt | Aleksey Kladov | 2019-02-11 | 1 | -4/+4 |
| | |||||
* | Merge #790 | bors[bot] | 2019-02-11 | 1 | -10/+10 |
|\ | | | | | | | | | | | | | | | 790: make macro-rules eq r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]> |