Replace letters by foo, bar and buz in lexing example (#1870)
This commit is contained in:
parent
23f15463d9
commit
48fc9c1f27
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue