Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Add vis matcher | Edwin Cheng | 2019-04-19 | 4 | -0/+25 | |
| | ||||||
* | Add literal matcher | Edwin Cheng | 2019-04-19 | 3 | -0/+35 | |
| | ||||||
* | Add lifetime matcher | Edwin Cheng | 2019-04-19 | 4 | -2/+25 | |
| | ||||||
* | add tt matcher | Edwin Cheng | 2019-04-19 | 2 | -0/+28 | |
| | ||||||
* | add block matcher | Edwin Cheng | 2019-04-19 | 4 | -0/+33 | |
| | ||||||
* | Add block matcher | Edwin Cheng | 2019-04-19 | 4 | -0/+26 | |
| | ||||||
* | Merge #1148 | bors[bot] | 2019-04-19 | 2 | -10/+142 | |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 | 2 | -14/+24 | |
| | | ||||||
| * | Add expr, pat, ty and macro_stmts | Edwin Cheng | 2019-04-18 | 2 | -5/+98 | |
| | | ||||||
| * | Add MacroItems and MacroStmts in grammer.ron | Edwin Cheng | 2019-04-18 | 2 | -8/+37 | |
| | | ||||||
* | | Fix missing last token in mbe $repeat parsing | Edwin Cheng | 2019-04-18 | 2 | -1/+24 | |
|/ | ||||||
* | Add `item` matcher in mbe | Edwin Cheng | 2019-04-18 | 4 | -0/+61 | |
| | ||||||
* | Add mbe stmt matcher | Edwin Cheng | 2019-04-17 | 4 | -0/+28 | |
| | ||||||
* | Fix bug and add expr , pat , ty matcher | Edwin Cheng | 2019-04-14 | 5 | -3/+148 | |
| | ||||||
* | Remove skip Delimiter::None and handle Dollars | Edwin Cheng | 2019-04-12 | 4 | -218/+243 | |
| | ||||||
* | Refactoring and add some docs | Edwin Cheng | 2019-04-08 | 2 | -83/+106 | |
| | ||||||
* | Fixed infintite loop bug | Edwin Cheng | 2019-04-08 | 1 | -30/+4 | |
| | ||||||
* | Fixed empty node bug | Edwin Cheng | 2019-04-08 | 1 | -10/+49 | |
| | ||||||
* | Use SubtreeWalker instread of flatten TtToken | Edwin Cheng | 2019-04-08 | 4 | -258/+421 | |
| | ||||||
* | Combine all tokensource to one and refactoring | Edwin Cheng | 2019-04-07 | 5 | -86/+94 | |
| | ||||||
* | Refactoring subtree_source | Edwin Cheng | 2019-04-07 | 4 | -364/+386 | |
| | ||||||
* | Add TtCursorTokenSource and TtCursorTokenSink | Edwin Cheng | 2019-04-06 | 2 | -24/+204 | |
| | ||||||
* | Add path test and empty eat_path handling | Edwin Cheng | 2019-04-06 | 3 | -0/+31 | |
| | ||||||
* | Add proper test for literals and fixed typo bug | Edwin Cheng | 2019-04-05 | 2 | -4/+50 | |
| | ||||||
* | Add classify_literal and undo expose next_token | Edwin Cheng | 2019-04-05 | 2 | -6/+4 | |
| | ||||||
* | Fix literal support in token tree to ast item list | Edwin Cheng | 2019-04-05 | 2 | -2/+43 | |
| | ||||||
* | Clean up | Edwin Cheng | 2019-04-04 | 1 | -29/+29 | |
| | ||||||
* | Add multi-byte token support in tkn tree to ast | Edwin Cheng | 2019-04-04 | 1 | -19/+137 | |
| | ||||||
* | always show token text | Aleksey Kladov | 2019-04-02 | 1 | -8/+8 | |
| | ||||||
* | switch to new rowan | Aleksey Kladov | 2019-04-01 | 1 | -39/+47 | |
| | ||||||
* | hack around non-terminating macro expansion | Aleksey Kladov | 2019-03-17 | 1 | -0/+14 | |
| | ||||||
* | 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 expander unit tests | Wilco Kusee | 2019-03-03 | 1 | -4/+69 | |
| | ||||||
* | Add parser unit tests | Wilco Kusee | 2019-03-03 | 3 | -6/+58 | |
| | ||||||
* | Split parse and expand errors | Wilco Kusee | 2019-03-03 | 4 | -72/+74 | |
| | ||||||
* | Formatting | Wilco Kusee | 2019-03-02 | 1 | -10/+20 | |
| | ||||||
* | Replace option with result in mbe | Wilco Kusee | 2019-03-02 | 4 | -74/+93 | |
| | ||||||
* | Fix a typo | Dale Wijnand | 2019-02-26 | 1 | -4/+4 | |
| | ||||||
* | rename | Aleksey Kladov | 2019-02-24 | 1 | -8/+8 | |
| | ||||||
* | Add a test for macro parsing | Aleksey Kladov | 2019-02-23 | 2 | -10/+80 | |
| | ||||||
* | implement tt -> ast | Aleksey Kladov | 2019-02-23 | 2 | -5/+55 | |
| | ||||||
* | keep-text | Aleksey Kladov | 2019-02-23 | 1 | -10/+17 | |
| | ||||||
* | flatten tt | Aleksey Kladov | 2019-02-23 | 1 | -6/+55 | |
| | ||||||
* | token source scaffold | Aleksey Kladov | 2019-02-23 | 1 | -1/+22 | |
| | ||||||
* | add interface | Aleksey Kladov | 2019-02-23 | 1 | -0/+5 | |
| | ||||||
* | Fix some typos | Pascal Hertleif | 2019-02-12 | 2 | -4/+4 | |
| | ||||||
* | docs | Aleksey Kladov | 2019-02-11 | 1 | -0/+8 | |
| | ||||||
* | assign ids when converting tt | Aleksey Kladov | 2019-02-11 | 2 | -10/+36 | |
| | ||||||
* | assign ids to tokens | Aleksey Kladov | 2019-02-11 | 3 | -3/+5 | |
| | ||||||
* | 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]> |