Posted: Sun Feb 22, 2004 8:47 pm
Red Hair, you are a genius!
Thanks for your sharp eyes. I think our parsers and text editors count up line numbers differently, but it WAS indeed a "}" that I had omitted. I had been using indents within blocks to keep track of opening and closing brackets, rather than doing a strict count -- lazy man's way. And "else" blocks seem to always throw me off track. The parser did just what it was supposed to do -- it kept patiently looking for a "}" until it could no longer sustain the illusion that the programmer knew what he was doing. It gave me the error message at the point where it lost faith in my competence!
I owe you a beer, or a pepsi, or a steak dinner, or some real estate.
For now, I'll go and sweet-talk my parser. Maybe it'll forgive me...

Thanks for your sharp eyes. I think our parsers and text editors count up line numbers differently, but it WAS indeed a "}" that I had omitted. I had been using indents within blocks to keep track of opening and closing brackets, rather than doing a strict count -- lazy man's way. And "else" blocks seem to always throw me off track. The parser did just what it was supposed to do -- it kept patiently looking for a "}" until it could no longer sustain the illusion that the programmer knew what he was doing. It gave me the error message at the point where it lost faith in my competence!
I owe you a beer, or a pepsi, or a steak dinner, or some real estate.
For now, I'll go and sweet-talk my parser. Maybe it'll forgive me...