Re: simpleparse parsing problem

2006-09-02 Thread Mike C. Fletcher
David Hirschfield wrote: > Anyone out there use simpleparse? If so, I have a problem that I can't > seem to solve...I need to be able to parse this line: > > """Cen2 = Cen(OUT, "Cep", "ies", wh, 544, (wh/ht));""" > ... > expr:= termlist, ( operator, termlist )+ > I *believe* you want

Re: simpleparse parsing problem

2006-09-01 Thread Paul McGuire
"David Hirschfield" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Anyone out there use simpleparse? If so, I have a problem that I can't > seem to solve...I need to be able to parse this line: > > """Cen2 = Cen(OUT, "Cep", "ies", wh, 544, (wh/ht));""" > > with this grammar: > > gr

simpleparse parsing problem

2006-09-01 Thread David Hirschfield
Anyone out there use simpleparse? If so, I have a problem that I can't seem to solve...I need to be able to parse this line: """Cen2 = Cen(OUT, "Cep", "ies", wh, 544, (wh/ht));""" with this grammar: grammar = r''' declaration := ws, line, (ws, line)*, ws line:= (statement / assignment),