Re: Contest
- Posted by Derek Parnell <ddparnell at bigpond.com> Oct 30, 2004
- 513 views
Patrick Barnes wrote: > > On Sat, 30 Oct 2004 06:22:26 -0700, Derek Parnell > <guest at rapideuphoria.com> wrote: > > > according to your rules, > > > 2004 is not a word, but > > > '04 is a word. > > > > > > Even > > > ''' is a word (of length 0). > > > > > > Is this right? > > > > Yep, you got it right. Arrgghhhh!! I made that reply after coming home from a party at the neighbours house. I guess it was the wine talking No, we can't have zero-length tokens, so a string of only quotes cannot be a valid token. You guys are right and I was wrong. > Eep... time to redo my parser again (which unfortunately worked until > you informed us of this) Sorry. Of course this happens with real-life specs too. The customer swears that 'X' is required right to the day you are about to deliver the application to them. Then is "no 'X' is wrong. I need 'Y' instead". -- Derek Parnell Melbourne, Australia