Skip to content

Commit cccee1a

Browse files
authored
Improve link and description of entry points in parser section (#876)
This seemed to be out of date!
1 parent 150b915 commit cccee1a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/the-parser.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ high-level interface to the lexer and some validation routines that run after
2929
macro expansion. In particular, the [`rustc_parse::parser`][parser] contains
3030
the parser implementation.
3131

32-
The main entrypoint to the parser is via the various `parse_*` functions in the
33-
[parser][parser]. They let you do things like turn a [`SourceFile`][sourcefile]
32+
The main entrypoint to the parser is via the various `parse_*` functions and others in the
33+
[parser crate][parser_lib]. They let you do things like turn a [`SourceFile`][sourcefile]
3434
(e.g. the source in a single file) into a token stream, create a parser from
3535
the token stream, and then execute the parser to get a `Crate` (the root AST
3636
node).
@@ -62,6 +62,7 @@ Code for lexical analysis is split between two crates:
6262
[`SourceMap`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_span/source_map/struct.SourceMap.html
6363
[ast module]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_ast/ast/index.html
6464
[rustc_parse]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_parse/index.html
65+
[parser_lib]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_parse/index.html
6566
[parser]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_parse/parser/index.html
6667
[`Parser`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_ast/parse/parser/struct.Parser.html
6768
[`StringReader`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_parse/lexer/struct.StringReader.html

0 commit comments

Comments
 (0)