X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/1509d42fcb8fb8a78d46f0c26b863cafd347bee5..c6f1a33c06db52ed122d0922885602cf37f99941:/src/main.c diff --git a/src/main.c b/src/main.c index 64d6c346..6b73f9eb 100644 --- a/src/main.c +++ b/src/main.c @@ -29,6 +29,7 @@ #include "files.h" #include "complain.h" #include "derives.h" +#include "tables.h" #include "output.h" #include "reader.h" #include "lalr.h" @@ -131,12 +132,18 @@ main (int argc, char *argv[]) timevar_pop (TV_GRAPH); } + /* Compute the parser tables. */ + timevar_push (TV_ACTIONS); + tables_generate (); + timevar_pop (TV_ACTIONS); + /* Output the tables and the parser to ftable. In file output. */ timevar_push (TV_PARSER); output (); timevar_pop (TV_PARSER); timevar_push (TV_FREE); + tables_free (); states_free (); reduce_free (); conflicts_free ();