Skip to content

Latest commit

 

History

History
8 lines (7 loc) · 417 Bytes

syntax-intro.md

File metadata and controls

8 lines (7 loc) · 417 Bytes

Syntax and the AST

Working directly with source code is very inconvenient and error-prone. Thus, before we do anything else, we convert raw source code into an AST. It turns 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.