X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/5bab9d08626390e7db164e57e1d402bf54da61f6..ba5c6d94b602e77be718705fdb70aed255d41e6a:/src/reader.c?ds=sidebyside diff --git a/src/reader.c b/src/reader.c index 78faa6b3..9540a8d7 100644 --- a/src/reader.c +++ b/src/reader.c @@ -555,9 +555,12 @@ 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")) @@ -567,7 +570,7 @@ reader (void) 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,