From 1e41004cbf2b951c972ebc94fb52147521ea5e4d Mon Sep 17 00:00:00 2001 From: mark Date: Thu, 30 Apr 2020 11:33:05 -0500 Subject: [PATCH] add a bit to syntax intro --- src/syntax-intro.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/syntax-intro.md b/src/syntax-intro.md index dd7e2d73..43ef4457 100644 --- a/src/syntax-intro.md +++ b/src/syntax-intro.md @@ -6,3 +6,8 @@ out that doing even this involves a lot of work, including lexing, parsing, macro expansion, name resolution, conditional compilation, feature-gate checking, and validation of the AST. In this chapter, we take a look at all of these steps. + +Notably, there isn't always a clean ordering between these tasks. For example, +macro expansion relies on name resolution to resolve the names of macros and +imports. And parsing requires macro expansion, which in turn may require +parsing the output of the macro.