X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/f16b08196c780556cbf50691e2944960aebc46f6..b7a7016204ebf337b2eb0ba2e6384f0b763f9cba:/src/main.c?ds=sidebyside diff --git a/src/main.c b/src/main.c index 4c66c367..d979bae8 100644 --- a/src/main.c +++ b/src/main.c @@ -40,6 +40,7 @@ #include "output.h" #include "print.h" #include "print_graph.h" +#include "print-xml.h" #include "reader.h" #include "reduce.h" #include "scan-code.h" @@ -151,6 +152,14 @@ main (int argc, char *argv[]) timevar_pop (TV_GRAPH); } + /* Output xml. */ + if (xml_flag) + { + timevar_push (TV_XML); + print_xml (); + timevar_pop (TV_XML); + } + /* Stop if there were errors, to avoid trashing previous output files. */ if (complaint_issued)