On Fri, 15 Mar 2002 10:02:38 -0800,
Andy Ross <[EMAIL PROTECTED]> wrote in message
<[EMAIL PROTECTED]>:
> 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.
..this message could go in as a comment? To tell _why_.
--
..med vennlig hilsen = with Kind Regards from Arnt... ;-)
Scenarios always come in sets of three:
best case, worst case, and just in case.
_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel