#include "getargs.h"
#include "gram.h"
#include "lalr.h"
+#include "ielr.h"
#include "muscle-tab.h"
#include "nullable.h"
#include "output.h"
generate_states ();
timevar_pop (TV_LR0);
- /* make it deterministic. In file lalr. */
- timevar_push (TV_LALR);
- lalr ();
- timevar_pop (TV_LALR);
+ /* Make it deterministic by computing lookahead sets. Except when LALR(1) is
+ requested, split states to eliminate LR(1)-relative inadequacies. In file
+ lalr and ielr. */
+ ielr ();
/* Find and record any conflicts: places where one token of
lookahead is not enough to disambiguate the parsing. In file
declarations. */
timevar_push (TV_CONFLICTS);
conflicts_solve ();
- muscle_percent_define_default ("lr.keep_unreachable_states", "false");
- if (!muscle_percent_define_flag_if ("lr.keep_unreachable_states"))
+ if (!muscle_percent_define_flag_if ("lr.keep-unreachable-states"))
{
state_number *old_to_new = xnmalloc (nstates, sizeof *old_to_new);
state_number nstates_old = nstates;