Yacc & Lex problem

nntp@faui45 nntp at informatik.uni-erlangen.de
Fri Mar 8 23:26:54 AEST 1991


> [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



More information about the Comp.unix.questions mailing list