Hmm. Ok, its quite possible i got that wrong. Ill double check in the dragon when I get home (hopefuly soon.)
But surely the stack itself is a form of context? I mean without _somehow_ counting how many parens you have gone through how do you determine if all the parens have been properly balanced? And counting would seem to me to be a form of context. Also how does such an approach determine that ([)] is an error without context? (Hmm, is the last a good point, im not real sure.)
BTW, Im really not offering the above as a definitive statement (just in case anybody missed the ?), just my gut reaction.
Thanks for the reply, I had a feeling after I had posted it that someone would call me on this one, and that i wouldnt be able to properly respond until I get home. *sigh*
--- demerphq
my friends call me, usually because I'm late....
|