Re: Questions about Yacc (YYMAXDEPTH) (Brian Bliss)
Fri, 8 Mar 91 20:31:07 GMT

          From comp.compilers

Related articles
Questions about Yacc (YYMAXDEPTH) srini@synopsys.Synopsys.COM (1991-03-05)
Re: Questions about Yacc (YYMAXDEPTH) (1991-03-07)
Re: Questions about Yacc (YYMAXDEPTH) (1991-03-08)
Re: Questions about Yacc (YYMAXDEPTH) (Kathy Harris) (1991-03-13)
| List of all articles for this month |

Newsgroups: comp.compilers
From: (Brian Bliss)
Keywords: yacc
Organization: Center for Supercomputing Research and Development
References: <694@synopsys.COM>
Date: Fri, 8 Mar 91 20:31:07 GMT

In article <694@synopsys.COM>, srini@synopsys.Synopsys.COM (Srinivas
Raghvendra) writes:
|> 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).


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.