This project is read-only.

ScintillaNET Basic Parsing

Nov 26, 2010 at 7:28 PM

For my editor, I need to find out all the variables that are delcared. So If I did the following:


int Variable1;

float Variable2;

double Variable3;

I would need to be able to find out the type (int, float, double) and the names (Variable1, 2, 3), all separately, most probably stored in a structure. Would there be any easy way to do this? Or would I have to utilize Scintilla's text property and do it all manually. 

Nov 29, 2010 at 12:49 PM

I did something similar using RegularExpressions.

Since I've not used the new ScintillaNET (I believe it's V3.0) I don't know if there is a buildIn method for that but as said before, in version 2.0 I used RegularExpressions for that matter.