Implementing parser support for a new C# language feature
Lexical analysis and Syntax analysis (Parsing) are initial phases of the C# compiler that transform the input source text into a syntax tree with nodes and tokens and reports syntax diagnostics. This section will enable you to add the lexer and parser support for a new C# language feature: Switch operator (?::). For details on the intended functionality of this operator, read the section New language feature: Switch Operator (?::) at the start of this chapter. For details on the grammar and syntax definitions for this operator, read the previous recipe.
Getting Started
You need to ensure that you have enlisted and built Roslyn sources with VS2017 tag on your machine. For further guidance, refer to the recipe, Setting up Roslyn, enlistment in Chapter 8, Contribute Simple Functionality to Roslyn C# Compiler Open Source Code.
Additionally, git commit https://github.com/mavasani/roslyn/commit/4b50f662c53e1b9fc83f81a819f29d11b85505d5 on your...