views:

37

answers:

0

Apparently, these productions (code extract below) "look good", but I am getting a shift/reduce error as follows:

[Logical = Relational] followed by GreaterThan (reduce) [Relational = Relational GreaterThan Binary] (shift)

Any insight would be greatly appreciated.

Thanks!

logical = {simple} relational | {exclusive_and} logical excl_and relational | {exclusive_or} logical excl_or relational ;

relational = {simple} binary | {less_than} relational less_than binary | {greater_than} relational greater_than binary;

binary = {simple} term | {addition} binary plus term | {subtraction} binary minus term ;

EDITED: The error was elsewhere in the code. This section was accurate.