in reply to Help With Parsing and Commenting
There's a few packages that might help, such Parse::Yapp and Parse::RecDescent. To use either of these you'll need a reasonable understanding of parser theory, such as what LR(1) means.
Depending on the situation, you may be able to get away with some simple regular expressions, but if you're dealing with a language of any complexity (such as having comment characters embedded in strings), regexes quickly run out of steam.
|
|---|