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
"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
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),