Re: Problem finding cause of memory exhausted

2008-05-13 Thread Laurence Finston
On Tue, 13 May 2008, Frans Englich wrote: > On Saturday 10 May 2008 21:00:50 Laurence Finston wrote: > I agree, I don't think this is caused by wrong recursion. I can't change my > grammar, and I can't discard tokens based on the test expression because it > cannot be evaluated at parse time. M

Re: Problem finding cause of memory exhausted

2008-05-13 Thread Frans Englich
On Tuesday 13 May 2008 11:20:16 Hans Aberg wrote: > On 13 May 2008, at 10:53, Frans Englich wrote: > > yyoverflow is undefined. Even undefined it to be sure. > > The file yacc.c has a segment looking like: >#ifdef yyoverflow > yyoverflow (YY_("memory exhausted"), ... > >#else /* no yy

Re: Problem finding cause of memory exhausted

2008-05-13 Thread Hans Aberg
On 13 May 2008, at 10:53, Frans Englich wrote: yyoverflow is undefined. Even undefined it to be sure. The file yacc.c has a segment looking like: #ifdef yyoverflow yyoverflow (YY_("memory exhausted"), ... #else /* no yyoverflow */ # ifndef YYSTACK_RELOCATE goto yyexhausted

Re: Problem finding cause of memory exhausted

2008-05-13 Thread Hans Aberg
On 8 May 2008, at 16:46, Frans Englich wrote: I'm running into "memory exhausted"... How should I approach this problem? The C stack can be both static (or user defined) and dynamic. This is regulated by the parameter yyoverflow; if it is undefined, one gets the dynamic stack (or so is

Re: Problem finding cause of memory exhausted

2008-05-13 Thread Frans Englich
On Tuesday 13 May 2008 10:46:05 Hans Aberg wrote: > On 8 May 2008, at 16:46, Frans Englich wrote: > > I'm running into "memory exhausted"... > > > > How should I approach this problem? > > The C stack can be both static (or user defined) and dynamic. This is > regulated by the parameter yyoverflow;

Re: Problem finding cause of memory exhausted

2008-05-13 Thread Frans Englich
On Saturday 10 May 2008 21:00:50 Laurence Finston wrote: > On Thu, 8 May 2008, Frans Englich wrote: > > I'm running into "memory exhausted" and from reading section 2.3 this is > > apparently caused by doing right recursion instead of left recursion. My > > grammar is fairly large(grammar file is 3

Re: Problem finding cause of memory exhausted

2008-05-10 Thread Laurence Finston
On Thu, 8 May 2008, Frans Englich wrote: > I'm running into "memory exhausted" and from reading section 2.3 this is > apparently caused by doing right recursion instead of left recursion. My > grammar is fairly large(grammar file is 3400 lines) and I simply have trouble > finding where I do rig

Problem finding cause of memory exhausted

2008-05-08 Thread Frans Englich
Hi, I'm running into "memory exhausted" and from reading section 2.3 this is apparently caused by doing right recursion instead of left recursion. My grammar is fairly large(grammar file is 3400 lines) and I simply have trouble finding where I do right recursion. How should I approach this pr