Understanding Syntax
The Compiler APIs layer exposes the lexical and syntactic structure of source code through syntax trees. These are very important because they allow tools, such as Visual Studio, to process the syntactic structure of the source code in a project; in addition, they allow you to rearrange the code in a managed way without working against pure text. They serve as the basis for compilation, code analysis, refactoring, and code generation, and they constitute the main entry point to identify and categorize the many structural elements of a language. Syntax trees represent everything the compiler finds in the source code—including lexical constructs, white spaces, comments, and syntax tokens—exactly as typed. This also means a ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access