Skip to content

Commit

Permalink
Replace letters by foo, bar and buz in lexing example (#1870)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur-Milchior authored Jan 29, 2024
1 parent 4875b60 commit ea1767d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/the-parser.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ characters) and turn it into something the compiler can work with more
conveniently than strings. This happens in two stages: Lexing and Parsing.

Lexing takes strings and turns them into streams of [tokens]. For example,
`a.b + c` would be turned into the tokens `a`, `.`, `b`, `+`, and `c`.
The lexer lives in [`rustc_lexer`][lexer].
`foo.bar + buz` would be turned into the tokens `foo`, `.`,
`bar`, `+`, and `buz`. The lexer lives in [`rustc_lexer`][lexer].

[tokens]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_ast/token/index.html
[lexer]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_lexer/index.html
Expand Down

0 comments on commit ea1767d

Please sign in to comment.