Merge pull request #2707 from reddevilmidzy/fix

Fix function formatting in src/overview.md
This commit is contained in:
Boxy 2025-12-24 05:25:20 +00:00 committed by GitHub
commit f61c7f7ef7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -50,10 +50,10 @@ preserves full fidelity information for both IDEs and procedural macros
The *parser* [translates the token stream from the `lexer` into an Abstract Syntax
Tree (AST)][parser]. It uses a recursive descent (top-down) approach to syntax
analysis. The crate entry points for the `parser` are the
[`Parser::parse_crate_mod()`][parse_crate_mod] and [`Parser::parse_mod()`][parse_mod]
[`Parser::parse_crate_mod`][parse_crate_mod] and [`Parser::parse_mod`][parse_mod]
methods found in [`rustc_parse::parser::Parser`]. The external module parsing
entry point is [`rustc_expand::module::parse_external_mod`][parse_external_mod].
And the macro-`parser` entry point is [`Parser::parse_nonterminal()`][parse_nonterminal].
And the macro-`parser` entry point is [`Parser::parse_nonterminal`][parse_nonterminal].
Parsing is performed with a set of [`parser`] utility methods including [`bump`],
[`check`], [`eat`], [`expect`], [`look_ahead`].