X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/db34f7988941444bdc5f2b6adcf7fb83648f9a18..ab2a9f579366b0d4940b0ec2d3321d139a7f1f3d:/src/reader.c?ds=inline diff --git a/src/reader.c b/src/reader.c index f607f9ee..f20d3ca0 100644 --- a/src/reader.c +++ b/src/reader.c @@ -555,23 +555,26 @@ reader (void) gram_scanner_initialize (); gram_parse (); - /* IELR would be a better default, but LALR is historically the default. */ + /* Set front-end %define variable defaults. */ + muscle_percent_define_default ("lr.keep-unreachable-states", "false"); { char *lr_type; + /* IELR would be a better default, but LALR is historically the + default. */ muscle_percent_define_default ("lr.type", "LALR"); lr_type = muscle_percent_define_get ("lr.type"); if (0 != strcmp (lr_type, "canonical LR")) - muscle_percent_define_default ("lr.default_rules", "all"); + muscle_percent_define_default ("lr.default-reductions", "all"); else - muscle_percent_define_default ("lr.default_rules", "accepting"); + muscle_percent_define_default ("lr.default-reductions", "accepting"); free (lr_type); } - /* Check front-end %define variable values. */ + /* Check front-end %define variables. */ { static char const * const values[] = { "lr.type", "LALR", "IELR", "canonical LR", NULL, - "lr.default_rules", "all", "consistent", "accepting", NULL, + "lr.default-reductions", "all", "consistent", "accepting", NULL, NULL }; muscle_percent_define_check_values (values);