I wrote:
 > This is the YASim XML parser.  You hit this line when an
 > unrecognized tag is found in the XML file.

In an attempt to keep blood pressures in a healthy range this morning,
I've modified the YASim parser to print messages and exit on parse
errors, rather than crash.

It's still no more useful, IMHO.  A truly robust error message
implementation would do things like tell you where it was in the
parsing ("a missing control attribute? where?!") and what it was
expecting to find.  That requires more work, more state, and more
code, and hasn't been done.  This just fatally terminates in a
prettier way.  Maybe folks will believe me that this is why I haven't
bothered to do any robust error detection yet; or maybe it's just
because I'm arrogant and amateurish. :)

It's difficult to test this at work (I can run the parser, but not fly
the aircraft), so let me know if I broke something.

Andy

-- 
Andrew J. Ross                NextBus Information Systems
Senior Software Engineer      Emeryville, CA
[EMAIL PROTECTED]              http://www.nextbus.com
"Men go crazy in conflagrations.  They only get better one by one."
  - Sting (misquoted)


_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to