Update section following current state
This commit is contained in:
parent
39dd586828
commit
84d2a48f81
|
|
@ -69,14 +69,13 @@ defined in [`src/librustc_expand/mbe/macro_parser.rs`][code_mp].
|
||||||
The interface of the macro parser is as follows (this is slightly simplified):
|
The interface of the macro parser is as follows (this is slightly simplified):
|
||||||
|
|
||||||
```rust,ignore
|
```rust,ignore
|
||||||
fn parse(
|
fn parse_tt(
|
||||||
sess: ParserSession,
|
parser: &mut Cow<Parser>,
|
||||||
tts: TokenStream,
|
ms: &[TokenTree],
|
||||||
ms: &[TokenTree]
|
|
||||||
) -> NamedParseResult
|
) -> NamedParseResult
|
||||||
```
|
```
|
||||||
|
|
||||||
In this interface:
|
We use these items in macro parser:
|
||||||
|
|
||||||
- `sess` is a "parsing session", which keeps track of some metadata. Most
|
- `sess` is a "parsing session", which keeps track of some metadata. Most
|
||||||
notably, this is used to keep track of errors that are generated so they can
|
notably, this is used to keep track of errors that are generated so they can
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue