about summary refs log tree commit diff
path: root/src/librustc_parse/parser/nonterminal.rs
AgeCommit message (Collapse)AuthorLines
2020-08-30mv compiler to compiler/mark-170/+0
2020-08-20Capture tokens for Pat used in macro_rules! argumentAaron Hill-1/+8
This extends PR #73293 to handle patterns (Pat). Unlike expressions, patterns do not support custom attributes, so we only need to capture tokens during macro_rules! argument parsing.
2020-08-02Introduce NonterminalKindAleksey Kladov-0/+163
It encapsulate the (part of) the interface between the parser and macro by example (macro_rules) parser. The second bit is somewhat more general `parse_ast_fragment`, which is the reason why we keep some `parse_xxx` functions as public.