* data/lalr1.java (Stack): Work around old verifiers that disallow
access to the private fields of an inner class, from the outer class.
We can make Stack's fields public because user code doesn't have access
to the instance of Stack used by parse().
]b4_locations_if([[private ]b4_location_type[[] locStack = new ]b4_location_type[[16];]])[
private ]b4_union_name[[] valueStack = new ]b4_union_name[[16];
- private int size = 16;
- private int height = -1;
+ public int size = 16;
+ public int height = -1;
public final void push (int state, ]b4_union_name[ value]dnl
b4_locations_if([, ]b4_location_type[ loc])[) {
}
// Print the state stack on the debug stream.
- private void print (java.io.PrintStream out)
+ public void print (java.io.PrintStream out)
{
out.print ("Stack now");