Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!fauern!faui43.informatik.uni-erlangen.de!richter From: nntp@informatik.uni-erlangen.de (nntp@faui45) Newsgroups: comp.unix.questions Subject: Re: Yacc & Lex problem Message-ID: <1991Mar8.132654.21046@informatik.uni-erlangen.de> Date: 8 Mar 91 13:26:54 GMT References: <26202@adm.brl.mil> Sender: richter@immd4.informatik.uni-erlangen.de (Joachim Richter) Reply-To: richter@medusa.UUCP () Organization: Friedrich-Schiller-Universitaet Jena Lines: 18 > [yacc example deleted] Have you tried compiling with -DYYDEBUG and setting extern int yydebug; to non-zero? This will be useful in determining what a yacc-parser does at run time. The first thing I would look at : Does your lexica analyzer really recognize the 'else' ? Are you sure?? Really ??? (How?) If this does'nt help, I'm willing to help you if you send me the source (via email). So far as I can see, your grammar is correct (but I saw only few relevant lines!) BTW, such questions are usually discussed in comp.lang.misc, comp.lang.c or comp.compilers. See you(r postings/mail) Ingo