Re: Contest
- Posted by Tommy Carlier <tommy.carlier at telenet.be> Oct 30, 2004
- 519 views
cklester wrote: > Derek Parnell wrote: > > Juergen Luethje wrote: > > > Hi Derek, > > > > > > according to your rules, > > > 2004 is not a word, but > > > '04 is a word. > > Would this be a token of "04," despite that "all numbers" is not > considered a valid token? > > > > Even > > > ''' is a word (of length 0). > > > > > > Is this right? > > > > Yep, you got it right. > > Are we supposed to count these zero-length tokens?! 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. -- tommy online: http://users.telenet.be/tommycarlier tommy.blog: http://tommycarlier.blogspot.com Euphoria Message Board: http://uboard.proboards32.com Empire for Euphoria: http://empire.iwireweb.com