Re: Contest

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu