[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: stack overflow in c++
From: |
Xinan Tang |
Subject: |
RE: stack overflow in c++ |
Date: |
Thu, 20 Mar 2003 15:16:52 -0800 |
Hi
Actually only YYMAXDEPTH matters.
You can turn on the YY debug mode:
#define YYDEBUG
and set yydebug=1 in main.c
Then notice a sequence of messages of "Stack size increased to ..."
Please note that each time the stack size should be doubled.
-----Original Message-----
From: Mhaxx [mailto:address@hidden
Sent: Thursday, March 20, 2003 2:11 PM
To: Bison Help
Subject: Re: stack overflow in c++
Hello, I've found an yout post... so I decided to write to you to ask if
you
have any ideas about my incredibile problem...
When I run my parser I get the error: "parser stack overflow".
I've insert into my parser these two rows:
#define YYMAXDEPTH 1000000
#define YYINITDEPTH 10000
but I get the same error, at the same point! (it seems like my two rows
are
ignored...)
I've noted "parser stack overflow" appears under Windows but not under
Linux, I don't know why.
Could you tell me something to do?
I hope you can help me... T.I.A.
Best regards,
Mhaxx
_______________________________________________
address@hidden http://mail.gnu.org/mailman/listinfo/help-bison