From ea1767da4917f5bb960ba4c28e74fb6f6907247d Mon Sep 17 00:00:00 2001 From: Arthur Milchior Date: Mon, 29 Jan 2024 20:53:07 +0100 Subject: [PATCH] Replace letters by foo, bar and buz in lexing example (#1870) --- src/the-parser.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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