Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Parsing and preserving comments

Thread Tools

Parsing and preserving comments

Posts: n/a
Hi - I need to parse proprietary language (very Java-like syntax) in
to automate population of data. It would not be a problem if those
files were entirely generated by a scrript - converting spreadsheet
source code. Problem is that when they maintained them by hand they
introduced a lot of comments inside the source code. And they want to
keep making changes by hand if necessary. So I need to parse it but
preserve comments and their position before script would add any new
data or modify current attributes of objects. Does anybody have any
suggestions beyond piling up a lot of pattern matching and hoping to
cover all the corner cases?


Reply With Quote

Thread Tools

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
Preserving photo comments? Terry Pinnell Digital Photography 42 03-17-2013 06:57 PM
Python AST preserving whitespace and comments Michal Kwiatkowski Python 1 08-28-2008 03:30 AM
Sign preserving Vs value preserving C Programming 4 12-07-2007 03:14 PM
A program to replace all JS comments with JSP comments in jsp files Java 0 06-02-2006 06:35 AM
integral promotion, arithmetic conversion, value preserving, unsigned preserving??? TTroy C Programming 16 01-31-2005 10:20 PM