Commit 744a5d0e authored by Johannes Roith's avatar Johannes Roith

Remove pointless warning.

parent 00e0150b
......@@ -45,24 +45,12 @@ public class LALRResult {
result.action_table = new parse_action_table(context);
result.reduce_table = new parse_reduce_table(context);
for (Enumeration st = lalr_state.all(context); st.hasMoreElements(); )
{
for (Enumeration st = lalr_state.all(context); st.hasMoreElements(); ) {
lalr_state lst = (lalr_state)st.nextElement();
lst.build_table_entries(result.action_table, result.reduce_table);
}
result.action_table.check_reductions();
int expect_conflicts = 0; // TODO: arbitrary?
// if we have more conflicts than we expected issue a message and die
if (context.num_conflicts > expect_conflicts)
{
System.err.println("*** More conflicts encountered than expected.");
return result;
}
result.action_table.check_reductions();
return result;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment