add note about macros in parser chapter

This commit is contained in:
mark 2020-04-30 11:36:47 -05:00 committed by Who? Me?!
parent 0bb8093581
commit 4e3759adb8
1 changed files with 5 additions and 0 deletions

View File

@ -38,6 +38,11 @@ To minimise the amount of copying that is done, both the `StringReader` and
`Parser` have lifetimes which bind them to the parent `ParseSess`. This contains
all the information needed while parsing, as well as the `SourceMap` itself.
Note that while parsing, we may encounter macro definitions or invocations. We
set these aside to be expanded (see [this chapter](./macro-expansion.md)).
Expansion may itself require parsing the output of the macro, which may reveal
more macros to be expanded, and so on.
## More on Lexical Analysis
Code for lexical analysis is split between two crates: