Parsing and preserving comments

W

Woland99

Hi - I need to parse proprietary language (very Java-like syntax) in
order
to automate population of data. It would not be a problem if those
source
files were entirely generated by a scrript - converting spreadsheet
into
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?

JT
 

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

Members online

Forum statistics

Threads
473,744
Messages
2,569,480
Members
44,900
Latest member
Nell636132

Latest Threads

Top