[DGD] Question about parse_string

Jay Shaffstall jshaffst at netwalk.com
Mon Jul 1 22:59:59 CEST 2002


>Oops, my mistake.  The extra rule should be:
>
>     garbage = /./
>
>Otherwise the longest match for " pole" will be the garbage token, rather
>than whitespace followed by "pole".

Ah, and whitespace as well can remove the +, since it's defining a type of 
token.  It's parsing now, and I'm a bit closer to understanding how to 
construct these grammars (you'd think that something more would have stuck 
from my various college classes that dealt with grammars).

Thanks!

Jay


_________________________________________________________________
List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list