Has anyone written a grammar file that will support TSM dsm.sys files? I wrote a basic attempt at one, that works, except for the exlusions of comments, and deploys doesn't work with it. Its attached here.
I am also looking to see if anyone has written a grammar that works with lpfc.conf, (kernel configuration file on solaris for Emulex HBA's) - I used our value equals multi value grammar, and while it parses most of the entries, it doesn't handle the multi line values in the file that looks as follows.
Anyone written one yet?
Can you look for comma-whitespace-EOL as a delimiter for records? You might end up with a blank value after the last line but it shouldn't hurt.
This is where PCRE would be of great value to grammar rules as it has the ability to look forward to validate matches.