[DGD] Parse_string confusion

Noah Lee Gibbs angelbob at monkeyspeak.com
Sat Jan 19 00:12:27 CET 2002


  Thanks!  That works great!

-- 
angelbob at monkeyspeak.com
See my page of DGD documentation at
"http://www.angelbob.com/projects/DGD_Page.html"
If you post to the DGD list, you may see yourself there!

On Fri, 18 Jan 2002, S. Foley wrote:

> 
> 
> 
> Noah Lee Gibbs <angelbob at monkeyspeak.com> wrote:
> >return !!parse_string("regstring = /[^A-Z]+/\n\nfull: regstring\n",  > 
> >str);
> 
> I'm not 100% sure I understand the problem, but it seems to me like this 
> grammar would result in a lot of 'Bad token at offset <number>' errors.  
> Basically, if you feed parse_string a string it can't fully 'tokenize' it 
> will generate an error.
> 
> Try this grammar instead:
> 
> return !!parse_string("regstring = /[a-zA-Z]+/     "+
>                        "notregstring = /[^a-zA-Z]+/ "+
>                        "full : regstring",
>                        str
>                       );
> 
> Ignore this if I'm not correctly understanding your problem.
> 
> --Steve
> 
> _________________________________________________________________
> Join the world’s largest e-mail service with MSN Hotmail. 
> http://www.hotmail.com
> 
> _________________________________________________________________
> List config page:  http://list.imaginary.com/mailman/listinfo/dgd
> 

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



More information about the DGD mailing list