Advertisement

Meet Roslyn Syntax API

  • Sudipta Mukherjee
Chapter

Abstract

Until recently the biggest challenge for metaprogramming in .NET was that there was not a decent C# parser that could have been used to parse C# programs with confidence and keep up with the modifications made in the language specification. Some companies and individuals (including yours truly) have had to write their own parser to parse C# source code—because parsing is the first step to analyzing source code. Till Roslyn came into picture, compilers used to be like black boxes. Source code used to go at one end, and machine instructions/executibles came out the other end. However, in parsing code, compilers gained lot of knowledge, all of which used to get lost in the process. This knowledge could have served as the basis for writing analyzers.

Keywords

Source Code Current Node Loop Variable Compiler Design Variable Declaration 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Supplementary material

393743_1_En_1_MOESM1_ESM.zip (104 kb)
9781484219249_Mukherjee_ESM (zip 105 kb)

Copyright information

© Sudipta Mukherjee 2016

Authors and Affiliations

  • Sudipta Mukherjee
    • 1
  1. 1.Varthur HobliIndia

Personalised recommendations