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 ...

Get Visual Basic 2015 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.