This project has moved and is read-only. For the latest updates, please go here.

Extracting comments

Apr 22, 2015 at 7:58 AM
I need to extract the text written inside comments. Is there any specific method to do it?

I am able to get the comments using
var comments = compiler.Context.Language.Grammar.NonGrammarTerminals;
The next step is to get the text inside the comments. Can anyone please help me regarding this?

Apr 22, 2015 at 5:12 PM
The result of parsing is ParseTree consisting of ParseTreeNode objects. Each node has Comments property - list of all comments preceding this node.
Marked as answer by sreejas on 4/22/2015 at 9:50 PM