X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/110ef36a1a93c60cc83627492de40cb95aedf9b1..ab2a9f579366b0d4940b0ec2d3321d139a7f1f3d:/src/reader.c diff --git a/src/reader.c b/src/reader.c index b6a8f16d..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_reductions", "all"); + muscle_percent_define_default ("lr.default-reductions", "all"); else - muscle_percent_define_default ("lr.default_reductions", "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_reductions", "all", "consistent", "accepting", NULL, + "lr.default-reductions", "all", "consistent", "accepting", NULL, NULL }; muscle_percent_define_check_values (values);