I am writing a parser for the #quixotechem project – in this case NWChem output. The output is generated AFAIK by FORTRAN. I am having difficulty parsing it. Why?
Here is some text I can parse (deliberately a snapshot from a text processor):
And here is the evil output:
What unexpected horror (or semi-unexpected, as I’ve had it before) has caused me to waste a lot of time?
Here’s a very strong hint. This is what I get when I load it into my text editor. Whatever has happened? And what could I do to make it at least human readable?
And what piece of code did I have to write last night to solve the problem in future?