|Questions about Yacc (YYMAXDEPTH) srini@synopsys.Synopsys.COM (1991-03-05)|
|Re: Questions about Yacc (YYMAXDEPTH) email@example.com (1991-03-07)|
|Re: Questions about Yacc (YYMAXDEPTH) firstname.lastname@example.org (1991-03-08)|
|Re: Questions about Yacc (YYMAXDEPTH) email@example.com (Kathy Harris) (1991-03-13)|
|From:||firstname.lastname@example.org (Brian Bliss)|
|Organization:||Center for Supercomputing Research and Development|
|Date:||Fri, 8 Mar 91 20:31:07 GMT|
In article <694@synopsys.COM>, srini@synopsys.Synopsys.COM (Srinivas
|> I notice that Yacc uses a #define named YYMAXDEPTH and that this value has
|> been set at 150.
|> (1) I notice that even for moderately nested constructs, this seems
|> insufficient. (I get a Yacc stack overflow).
If you get overflows, you are probably using too many right-recursive
productions in you grammar. change these to left-recursive productions
and the stack won't grow without bound. (i.e. lemme see your grammar).
Return to the
Search the comp.compilers archives again.