PC Review


Reply
Thread Tools Rate Thread

CodeDom - parses sourcecode into a tree?

 
 
=?Utf-8?B?RW5nZWxpdA==?=
Guest
Posts: n/a
 
      28th Nov 2005
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/de...parsetopic.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





 
Reply With Quote
 
 
 
 
=?Utf-8?B?QW5kcmV3?=
Guest
Posts: n/a
 
      28th Nov 2005
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.




"Engelit" wrote:

> 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/de...parsetopic.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
>
>
>
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Mail parses attachments wishin' I had Outlook Windows Vista Mail 6 4th Oct 2009 05:14 AM
XML parses HRef inccorectly ennetws Microsoft Excel Programming 0 18th Jul 2008 11:12 PM
IE6 dll files which parses the html content Imran Windows XP Internet Explorer 0 14th Jan 2008 08:16 PM
Latest patch parses 1.1 pages with 2.0 =?Utf-8?B?RGF2aWQgQ2FtZXJvbg==?= Microsoft ASP .NET 16 14th Aug 2007 11:54 AM
What parses the xml/xsl transform in asp.net? System.xml NOT msxml? KathyB Microsoft ASP .NET 0 25th Jun 2003 06:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:32 AM.