mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-07-26 15:40:32 +00:00
java: fix location handling bug.
Reported at <http://lists.gnu.org/archive/html/bison-patches/2011-02/msg00005.html>. * data/lalr1.java (YYParser::yylloc): For non-empty RHS, fix reversed access to location stack. * THANKS (Bernd Kiefer): Add.
This commit is contained in:
committed by
Joel E. Denny
parent
f3103c5b4f
commit
8db68289d1
@@ -1,3 +1,12 @@
|
|||||||
|
2011-02-19 Bernd Kiefer <[email protected]> (tiny change)
|
||||||
|
|
||||||
|
java: fix location handling bug.
|
||||||
|
Reported at
|
||||||
|
<http://lists.gnu.org/archive/html/bison-patches/2011-02/msg00005.html>.
|
||||||
|
* data/lalr1.java (YYParser::yylloc): For non-empty RHS, fix
|
||||||
|
reversed access to location stack.
|
||||||
|
* THANKS (Bernd Kiefer): Add.
|
||||||
|
|
||||||
2010-05-11 Akim Demaille <[email protected]>
|
2010-05-11 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
doc: please Emacs.
|
doc: please Emacs.
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ Arnold Robbins [email protected]
|
|||||||
Art Haas [email protected]
|
Art Haas [email protected]
|
||||||
Baron Schwartz [email protected]
|
Baron Schwartz [email protected]
|
||||||
Benoit Perrot [email protected]
|
Benoit Perrot [email protected]
|
||||||
|
Bernd Kiefer [email protected]
|
||||||
Bert Deknuydt [email protected]
|
Bert Deknuydt [email protected]
|
||||||
Bill Allombert [email protected]
|
Bill Allombert [email protected]
|
||||||
Bob Rossi [email protected]
|
Bob Rossi [email protected]
|
||||||
|
|||||||
+1
-1
@@ -102,7 +102,7 @@ b4_token_enums(b4_tokens)
|
|||||||
private ]b4_location_type[ yylloc (YYStack rhs, int n)
|
private ]b4_location_type[ yylloc (YYStack rhs, int n)
|
||||||
{
|
{
|
||||||
if (n > 0)
|
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
|
else
|
||||||
return new ]b4_location_type[ (rhs.locationAt (0).end);
|
return new ]b4_location_type[ (rhs.locationAt (0).end);
|
||||||
}]])[
|
}]])[
|
||||||
|
|||||||
Reference in New Issue
Block a user