diff --git a/src/the-parser.md b/src/the-parser.md index f0436350a..0c68a82c4 100644 --- a/src/the-parser.md +++ b/src/the-parser.md @@ -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