CodeDom - parses sourcecode into a tree?

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
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top