simpleparse parsing problem

Mike C. Fletcher mcfletch at
Sat Sep 2 15:40:06 CEST 2006

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 wanted that to be *, not +

Best way to write a SimpleParse grammar is from the ground up, using 
test cases, so test each thing you think you're parsing. Makes it much 
easier to spot situations like this.


  Mike C. Fletcher
  Designer, VR Plumber, Coder

More information about the Python-list mailing list