help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Parser Stack Overflow


From: Xinan Tang
Subject: RE: Parser Stack Overflow
Date: Fri, 20 Feb 2004 09:46:22 -0800

Hi 

   In your C code, simply use 

#define YYMAXDEPTH  to_what_value_you_think_is_big

--Xinan

Xambala Inc.

-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf Of
Ranjeeta
Sent: Friday, February 20, 2004 1:07 AM
To: address@hidden
Subject: Parser Stack Overflow

Hi,
I have come across a problem with parser stack over flow. I have seen
code regarding YYMAXDEPTH in bison.simple which is as follows:

/*  YYMAXDEPTH is the maximum size the stacks can grow to
   (effective only if the built-in stack extension method is used).  */
#if YYMAXDEPTH == 0 #undef YYMAXDEPTH #endif #ifndef YYMAXDEPTH #define
YYMAXDEPTH 10000 #endif

I want to use this value of YYMAXDEPTH. Can u pls tell me, what is a
"built-in stack extension method"? Do I have to write any routine in
bison.simple for this method?

Ranjeeta





reply via email to

[Prev in Thread] Current Thread [Next in Thread]