Lots of coding done while sick - Journal of Omnifarious
Feb. 11th, 2003
10:29 pm - Lots of coding done while sick
I'm close to having the whole message infrastructure for the General Presence hub rebuilt in an easier to use way.
I'm building 'DOM' style representations of the incoming XML. This will let me quickly prototype up something to handle a protocol without hand writing a picky parser. It will accept a really loose form of the protocol at first, but at least it will work.
Hopefully, later, I can add a component that automatically checks it against some facsimile of a DTD. Probably not directly from the DTD. I'll probably have to translate the rules in the DTD into some very similar C++ structure or code, but that will be lots easier than what I had been doing, which was writing careful state machines (that are NOT directly related to the DTD) for parsing.
I've been strangely productive just before bedtime with this cold or whatever it is. It's kind of annoying in a way. Especially when the cold itself makes it hard to sleep.