diff --git a/src/runtime/c/utils/pgf-translate.c b/src/runtime/c/utils/pgf-translate.c index 129bd29a4..f6c55d6a8 100644 --- a/src/runtime/c/utils/pgf-translate.c +++ b/src/runtime/c/utils/pgf-translate.c @@ -129,14 +129,14 @@ int main(int argc, char* argv[]) { tok = strtok(NULL, " \n"); } + // Now begin enumerating the resulting syntax trees + GuEnum* result = pgf_parse_result(parse, ppool); + clock_t end = clock(); double cpu_time_used = ((double) (end - start)) / CLOCKS_PER_SEC; printf("%.2f sec\n", cpu_time_used); - // Now begin enumerating the resulting syntax trees - GuEnum* result = pgf_parse_result(parse, ppool); - while (true) { PgfExpr expr = gu_next(result, PgfExpr, ppool); // The enumerator will return a null variant at the