--- lalr1.java 2011-02-14 15:21:30.000000000 +0100 +++ lalr1-patched.java 2011-02-14 15:30:24.000000000 +0100 @@ -120,7 +120,7 @@ private ]b4_location_type[ yylloc (YYStack rhs, int n) { if (n > 0) - return new ]b4_location_type[ (rhs.locationAt (1).begin, rhs.locationAt (n).end); + return new ]b4_location_type[ (rhs.locationAt (n-1).begin, rhs.locationAt (0).end); else return new ]b4_location_type[ (rhs.locationAt (0).end); }]])[