public String toString() { String result; int cnt; result = "-------- ACTION_TABLE --------\n"; for (int row = 0; row < num_states(); row++) { result += "From state #" + row + "\n"; cnt = 0; for (int col = 0; col < under_state[row].size(); col++) { /* if the action is not an error print it */ if (under_state[row].under_term[col].kind() != parse_action.ERROR) { result += " [term " + col + ":" + under_state[row].under_term[col] + "]"; /* end the line after the 2nd one */ cnt++; if (cnt == 2) { result += "\n"; cnt = 0; } } } /* finish the line if we haven't just done that */ if (cnt != 0) result += "\n"; } result += "------------------------------"; return result; }
public String toString() { String result; int cnt; result = "-------- ACTION_TABLE --------\n"; for (int row = 0; row < num_states(); row++) { result += "From state #" + row + "\n"; cnt = 0; for (int col = 0; col < under_state[row].size(); col++) { /* if the action is not an error print it */ if (under_state[row].under_term[col].kind() != parse_action.ERROR) { result += " [term " + col + ":" + under_state[row].under_term[col] + "]"; /* end the line after the 2nd one */ cnt++; if (cnt == 2) { result += "\n"; cnt = 0; } } } /* finish the line if we haven't just done that */ if (cnt != 0) result += "\n"; } result += "------------------------------"; return result; }
public String toString() { String result; int cnt; result = "-------- ACTION_TABLE --------\n"; for (int row = 0; row < num_states(); row++) { result += "From state #" + row + "\n"; cnt = 0; for (int col = 0; col < under_state[row].size(); col++) { /* if the action is not an error print it */ if (under_state[row].under_term[col].kind() != parse_action.ERROR) { result += " [term " + col + ":" + under_state[row].under_term[col] + "]"; /* end the line after the 2nd one */ cnt++; if (cnt == 2) { result += "\n"; cnt = 0; } } } /* finish the line if we haven't just done that */ if (cnt != 0) result += "\n"; } result += "------------------------------"; return result; }
public String toString() { String result; int cnt; result = "-------- ACTION_TABLE --------\n"; for (int row = 0; row < num_states(); row++) { result += "From state #" + row + "\n"; cnt = 0; for (int col = 0; col < under_state[row].size(); col++) { /* if the action is not an error print it */ if (under_state[row].under_term[col].kind() != parse_action.ERROR) { result += col + ":" + under_state[row].under_term[col] + " "; /* end the line after the 3rd one */ cnt++; if (cnt == 3) { result += "\n"; cnt = 0; } } } /* finish the line if we haven't just done that */ if (cnt != 0) result += "\n"; } result += "------------------------------"; return result; }
public String toString() { String result; int cnt; result = "-------- ACTION_TABLE --------\n"; for (int row = 0; row < num_states(); row++) { result += "From state #" + row + "\n"; cnt = 0; for (int col = 0; col < under_state[row].size(); col++) { /* if the action is not an error print it */ if (under_state[row].under_term[col].kind() != parse_action.ERROR) { result += " [term " + col + ":" + under_state[row].under_term[col] + "]"; /* end the line after the 2nd one */ cnt++; if (cnt == 2) { result += "\n"; cnt = 0; } } } /* finish the line if we haven't just done that */ if (cnt != 0) result += "\n"; } result += "------------------------------"; return result; }
public String toString() { String result; int cnt; result = "-------- ACTION_TABLE --------\n"; for (int row = 0; row < num_states(); row++) { result += "From state #" + row + "\n"; cnt = 0; for (int col = 0; col < parse_action_row.size(); col++) { /* if the action is not an error print it */ if (under_state[row].under_term[col].kind() != parse_action.ERROR) { result += " [term " + col + ":" + under_state[row].under_term[col] + "]"; /* end the line after the 2nd one */ cnt++; if (cnt == 2) { result += "\n"; cnt = 0; } } } /* finish the line if we haven't just done that */ if (cnt != 0) result += "\n"; } result += "------------------------------"; return result; }
public String toString() { String result; int cnt; result = "-------- ACTION_TABLE --------\n"; for (int row = 0; row < num_states(); row++) { result += "From state #" + row + "\n"; cnt = 0; for (int col = 0; col < parse_action_row.size(); col++) { /* if the action is not an error print it */ if (under_state[row].under_term[col].kind() != parse_action.ERROR) { result += " [term " + col + ":" + under_state[row].under_term[col] + "]"; /* end the line after the 2nd one */ cnt++; if (cnt == 2) { result += "\n"; cnt = 0; } } } /* finish the line if we haven't just done that */ if (cnt != 0) result += "\n"; } result += "------------------------------"; return result; }
for (int i = 0; i < act_tab.num_states(); i++)
short[][] action_table = new short[act_tab.num_states()][]; for (int i = 0; i < act_tab.num_states(); i++)
for (int row = 0; row < num_states(); row++)
for (int row = 0; row < num_states(); row++)
short[][] action_table = new short[act_tab.num_states()][]; for (int i = 0; i < act_tab.num_states(); i++)
short[][] action_table = new short[act_tab.num_states()][]; for (int i = 0; i < act_tab.num_states(); i++)
short[][] action_table = new short[act_tab.num_states()][]; for (int i = 0; i < act_tab.num_states(); i++)
for (int row = 0; row < num_states(); row++)
for (int row = 0; row < num_states(); row++)
short[][] action_table = new short[act_tab.num_states()][]; for (int i = 0; i < act_tab.num_states(); i++)
for (int row = 0; row < num_states(); row++)
for (int row = 0; row < num_states(); row++)
for (int row = 0; row < num_states(); row++)