Re: Contest
- Posted by Derek Parnell <ddparnell at bigpond.com> Oct 31, 2004
- 507 views
Tommy Carlier wrote: > > I'm a little confused: > > I said: > > This is kind of a problem, I think. One solution would be to > > say in the rules, that a token should have at least 1 letter in > > it to be a valid token. A simple rule, I think, that captures the > > essence of a valid token. > > Derek said: > > Thanks Tommy. Consider it done. What I meant by "Consider it done" was that I will update the rules to further clarify what is a token and what is not. And try to keep it simple. I'm obviously failing miserably to do this. > I think that means that Derek agrees that a token is only a valid token > if it contains at least 1 letter (letter = character between A-Z or a-z). Not quite. A token character can be letters, digits, hyphen, or a quote. The list of valid token characters has been unchanged since day one. The problem seems to be that certain combinations of these token characters are not real tokens. These are the *exceptions* to the rule. I wanted to put in some exceptions so that you'd have to really think about your approach, and it gives various different opportunitites for optimization. > So, if a token doesn't contain any letters, it's not a valid token. > This means that '10-4' is not a token, because it doesn't contain any > letters. Read the rules again. I am *not* saying that at all. -- Derek Parnell Melbourne, Australia