Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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]> | ||||
| * | make macro-rules eq | Aleksey Kladov | 2019-02-11 | 1 | -10/+10 |
| | | |||||
* | | typo | Aleksey Kladov | 2019-02-11 | 1 | -1/+1 |
|/ | |||||
* | reformat the world | Aleksey Kladov | 2019-02-08 | 1 | -20/+8 |
| | |||||
* | mbe: Ensure repetition separator matches | Jeff Muizelaar | 2019-02-05 | 1 | -0/+24 |
| | |||||
* | mbe: Add support matching for matching idents | Jeff Muizelaar | 2019-02-04 | 1 | -0/+24 |
| | |||||
* | Factor out rules parsing | Jeff Muizelaar | 2019-02-04 | 1 | -24/+20 |
| | |||||
* | Make sure we match the entire pattern | Jeff Muizelaar | 2019-02-03 | 1 | -1/+31 |
| | |||||
* | Fill out test a little more | Jeff Muizelaar | 2019-02-03 | 1 | -14/+18 |
| | | | | | This factors out an assert_expansion function to make things more managable. | ||||
* | Fix macro_rules separator parsing. | Jeff Muizelaar | 2019-02-03 | 1 | -0/+42 |
| | | | | | macro_rules rules are separated by ';' including an optional ';' at the end | ||||
* | explain the magic | Aleksey Kladov | 2019-01-31 | 1 | -0/+7 |
| | |||||
* | cleanup the api | Aleksey Kladov | 2019-01-31 | 1 | -5/+66 |
| | |||||
* | move test | Aleksey Kladov | 2019-01-31 | 1 | -1/+8 |
| | |||||
* | split macros across crates | Aleksey Kladov | 2019-01-31 | 1 | -0/+88 |