CodeDom - parses sourcecode into a tree?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I've encountered the following problem:
My input is a .cs file. The output I need is a parsed tree.

I'd like to use CodeParser.Parse which Compiles the specified text stream
into a CodeCompileUnit. (
http://msdn.microsoft.com/library/d...mcodedomcompilercodeparserclassparsetopic.asp
). However, it seems like there is no implementation of this function in the
..NET framework.

Is that true? is there no way to create a codecompileunit object from a
sourcecode? If so, which parsers would you recommend?
I checked a few, including goldparser and programmar. Is this the right
solution, or am I missing something in the CodeDom solution?

Thanks in advance,
Engel
 
I'm also interested in this. I've seen a couple of C# parsers out there
using things like Mono.... but no Framework support.

How does, for example, Intellisense work in VS 2005.... (where apparently
Intellisense is "aware" of changes before you even rebuild)... ??

I think this would be massively useful to developers to allow them to build
their own development tools.
 
Back
Top