|Help with Yacc++ ? email@example.com (1992-02-11)|
|Re: Help with Yacc++ ? firstname.lastname@example.org (1992-02-12)|
|Organization:||Computer Science Dept. University of Auckland|
|Date:||Tue, 11 Feb 1992 02:04:22 GMT|
I am having trouble with yacc++, an object oriented version of yacc put
out by a company called Compiler Resources. Does anyone out there use it?
Here is my problem:
I have a grammar
S: E ;
E: Id | -E | E-E | E E ;
This grammar is not accepted by yacc++. It says that with a lookahead of
"-" there are two productions which both reduce to E from a state.
However, when I put it through yacc it only gives shift/reduce errors.
Ha??? How can this be? I don't understand. Can someone please tell me why
yacc [LALR(1)] accepts this but yacc++ [LR(1)] doesn't.
Please reply by e-mail to me at
Return to the
Search the comp.compilers archives again.