Welcome to MSDN Blogs Sign in | Join | Help

Craig Skibo's WebLog

Sorry I can't answer the phone right now, I am outside feeding yogurt to the clowns.
VB Parser

When working with users who want to use the code model to parse their files, the first thing they ask for is if they can get into the method bodies to find out what is inside of them. The code model does not allow it because of the complexities of designing one API for all languages (but I am working on it). Paul (one of the people on the VB team) put together a parser, written in VB for VB. I have not looked at it too closely, but you should be able to adapt it to get to the structure of a method/property body. What we usually tell people who want to get to the method body is to, rather than writing a full parser, use the code model to find methods then find the start/end point of the method, and then parse out what they need manually. This should help out a lot. Here is a link to the GDN workspace.

[Edit: 6/18 at 5:28 to fix the link to the workspace]

Posted: Friday, June 18, 2004 10:25 AM by CraigSkibo

Comments

Bill Kidder said:

Is the link correct?

Link:
http://blogs.msdn.com/craigskibo/archive/2004/06/18/workspaces.gotdotnet.com/vbparser

Results:
.Text - Application Error!
Details

FormatException
String was not recognized as a valid DateTime.
# June 18, 2004 3:03 PM

Craig Skibo said:

The link was wrong, it should be working now. Thanks Bill!
# June 18, 2004 5:29 PM

William Bartholomew said:

GOLD Parser is supposedly capable of this as well. I haven't had a chance to check it out yet though.

http://www.devincook.com/goldparser/comparison-parsers.htm
# June 18, 2004 10:39 PM
Leave a Comment

(required) 

(required) 

(optional)

(required) 

  
Enter Code Here: Required

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Page view tracker