mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +00:00
Update architecture.md
Typo
This commit is contained in:
parent
d7c99931d0
commit
c2064e8bcf
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ Original [libsyntax parser](https://github.com/rust-lang/rust/blob/6b99adeb11313
|
||||||
|
|
||||||
**Architecture Invariant:** the parser is independent of the particular tree structure and particular representation of the tokens.
|
**Architecture Invariant:** the parser is independent of the particular tree structure and particular representation of the tokens.
|
||||||
It transforms one flat stream of events into another flat stream of events.
|
It transforms one flat stream of events into another flat stream of events.
|
||||||
Token independence allows us to pares out both text-based source code and `tt`-based macro input.
|
Token independence allows us to parse out both text-based source code and `tt`-based macro input.
|
||||||
Tree independence allows us to more easily vary the syntax tree implementation.
|
Tree independence allows us to more easily vary the syntax tree implementation.
|
||||||
It should also unlock efficient light-parsing approaches.
|
It should also unlock efficient light-parsing approaches.
|
||||||
For example, you can extract the set of names defined in a file (for typo correction) without building a syntax tree.
|
For example, you can extract the set of names defined in a file (for typo correction) without building a syntax tree.
|
||||||
|
|
Loading…
Reference in a new issue