Thanks Thomas! And thanks for all the help I got! The problem is solved at this point. Regards, Angela ------------------------------------------ Dept. of CS, Rice Unitersity http://www.cs.rice.edu/~yz2/ ------------------------------------------ On Oct 31, 2007, at 10:16 AM, Thomas Gazagnaire wrote: > Well, I think you have a problem in your grammar rules. Your are > defining the same PLUS, MINUS, STAR and DIVIDE rules in multiple > places in your code. Try to define them once, only in the "exp" > rule. Them, remove in the "exp" rule :