Is it possible to parse c#

Mar 2, 2008 at 11:08 PM
If I have an object model, and a piece of c# code using that object model, can I use Flee to parse the c# code to find out what properties of the object model are beeing "referenced/used" by the c# code?

Best regards
Mar 5, 2008 at 2:08 AM
The expression language that Flee uses is different from C# so you can't use it to parse C# code.

Fortunately, you can use a tool like ANTLR to generate a parser for C#. Once you have the parser, you can feed it the C# code and be notified when it hits a certain language element.

People have already written several grammars on this page and there are already several complete C# grammars like this one.