[DGD] Grammar question
Jay Shaffstall
jshaffst at netwalk.com
Wed May 14 19:07:19 CEST 2003
Erwin & Keith,
>To parse_string() once you've used a constant string, it won't match
>the more generic tokens that you've defined.
>
>Here's a workaround:
>
> whitespace = /[\b\n\r\t ]/
> word = /[^\b\n\r\t ]+/
> command: 'write' multiword
> multiword: Word multiword
> multiword: Word
>
> Word: word
> Word: 'write'
Thanks! That does take care of the problem. Going back over the parser
docs, I see where this behavior is noted, but that sentence didn't really
mean anything to me the first time I read it. Thanks for the expanded
explanation.
Jay
_________________________________________________________________
List config page: http://list.imaginary.com/mailman/listinfo/dgd
More information about the DGD
mailing list