X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/84072495292eb90d6683fbabe159bf8900193810..aa3bcdf35e6e0daab858e528cfd84042a962bb0c:/data/lalr1.java?ds=sidebyside diff --git a/data/lalr1.java b/data/lalr1.java index a6829d3f..309fc956 100644 --- a/data/lalr1.java +++ b/data/lalr1.java @@ -120,7 +120,7 @@ b4_locations_if([[ 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); }]])[