How about using FSM (;:) here?
----- Original Message ---- From: Raul Miller <[email protected]> To: Programming forum <[email protected]> Sent: Wed, October 7, 2009 11:23:24 AM Subject: Re: [Jprogramming] Balanced parens On Wed, Oct 7, 2009 at 10:45 AM, R.E. Boss <[email protected]> wrote: > Thanks to Schott who pointed out I misunderstood the specs. If incremental processing is really desirable, the data structures should include the queue of unprocessed characters and a stack of unclosed [ { ( (bill lam's suggesion.) -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
