Re: simpleparse - what is wrong with my grammar?

2008-02-25 Thread Laszlo Nagy
You've created an infinitely recursing grammar. SimpleParse is a straightforward recursive descent parser without look-ahead (unless explicitly coded) or ambiguity resolution. You are asking it to parse expr to see if expr,binop,expr is matched. It will continue recursing down into

Re: simpleparse - what is wrong with my grammar?

2008-02-25 Thread Mike C. Fletcher
Laszlo Nagy wrote: ... Is there any way I can specify precedence tables? Or do I have to use a different parser generator then? You normally specify them as top_precedence/second_precedence/last_precedence sets. SimpleParse' limitation is with ambiguity, not with precedence. SimpleParse

simpleparse - what is wrong with my grammar?

2008-02-24 Thread Laszlo Nagy
The program below gives me segmentation fault (core dumped). Environment: Linux gandalf-desktop 2.6.20-16-generic #2 SMP Tue Feb 12 05:41:34 UTC 2008 i686 GNU/Linux Python 2.5.1 What is wrong with my grammar? Can it be an internal error in simpleparse? Thanks, Laszlo from

Re: simpleparse - what is wrong with my grammar?

2008-02-24 Thread Gary Herron
Laszlo Nagy wrote: The program below gives me segmentation fault (core dumped). Environment: Linux gandalf-desktop 2.6.20-16-generic #2 SMP Tue Feb 12 05:41:34 UTC 2008 i686 GNU/Linux Python 2.5.1 What is wrong with my grammar? Can it be an internal error in simpleparse? There's

Re: simpleparse - what is wrong with my grammar?

2008-02-24 Thread Mike C. Fletcher
Laszlo Nagy wrote: The program below gives me segmentation fault (core dumped). Environment: Linux gandalf-desktop 2.6.20-16-generic #2 SMP Tue Feb 12 05:41:34 UTC 2008 i686 GNU/Linux Python 2.5.1 What is wrong with my grammar? Can it be an internal error in simpleparse? You've