[DGD] parse_string

Thomas Conner Annandale gte829m at prism.gatech.edu
Tue Aug 28 03:34:08 CEST 2001


If I'm just missing something obvious, I apologize, but I'm having trouble
with parse_string.  First, it seems to always return nil, and second, I
can't seem to get recursive rules to work.  For example, if I use this
grammar (in /tmp/grammar)...

one = /a/
loop : one      ? write1
loop : loop one ? write1

... and then call

write2(as_string(parse_string(read_file("/tmp/grammar"),"aa")));

I get this output:

write1: ({ "a" })
write2: nil

Am I doing something wrong?


Thomas
www.boredatheist.com


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



More information about the DGD mailing list