Using SyntaxTree

0

I'm studying C # and I came across SyntaxTree while reading about Roslyn .

I also read the documentation from Microsoft itself at the link: Introduction to Syntax Analysis

However I still have two questions, just to fix the content I'm studying.

The questions are:

  • How can SyntaxTree be really useful in my application?

  • When should I use it?

Thank you.

    
asked by anonymous 05.12.2018 / 11:31

1 answer

1

Gean, good afternoon! As stated at the beginning of the post that you used as the basis for the question, you could say that utility in common, commercial systems would be zero even as the great Maniero already said. The functionality of the class in question comes solely and exclusively to list points of the structure of a system according to the following quotation (taken from the initial text):

  

These data structures have sufficient detail   represent any program of any size. These structures   can describe complete programs that compile and execute   correctly. They can also describe incomplete programs,   while you write them in the editor.

    
03.01.2019 / 17:26