Home | History | Annotate | Download | only in java_cup

Lines Matching defs:emit

128   /* Additional timing information is also collected in emit */
263 emit.package_name = argv[i];
273 emit.parser_class_name = argv[i];
282 emit.input_file_name = argv[i];
292 emit.symbol_const_class_name = argv[i];
330 else if (argv[i].equals("-nowarn")) emit.nowarn = true;
370 if (emit.input_file_name != null)
372 input_file = new BufferedInputStream(new FileInputStream(emit.input_file_name));
385 out_name = out_path + emit.parser_class_name + ".java";
396 out_name = out_path + emit.symbol_const_class_name + ".java";
422 * of various variables (mostly in the emit class) for small user supplied
438 /* something threw an exception. catch it and emit a message so we
470 emit.unused_term++;
471 if (!emit.nowarn)
489 emit.unused_term++;
490 if (!emit.nowarn)
544 start_state = lalr_state.build_machine(emit.start_production);
569 if (emit.num_conflicts > expect_conflicts)
587 /** Call the emit routines necessary to write out the generated parser. */
590 emit.symbols(symbol_class_file, include_non_terms);
591 emit.parser(parser_class_file, action_table, reduce_table,
592 start_state.index(), emit.start_production, opt_compact_red);
610 /** Emit a long summary message to standard error (System.err) which
641 System.err.println(" " + emit.unused_term + " terminal" +
642 plural(emit.unused_term) + " declared but not used.");
643 System.err.println(" " + emit.unused_non_term + " non terminal" +
644 plural(emit.unused_term) + " declared but not used.");
647 System.err.println(" " + emit.not_reduced + " production" +
648 plural(emit.not_reduced) + " never reduced.");
651 System.err.println(" " + emit.num_conflicts + " conflict" +
652 plural(emit.num_conflicts) + " detected" +
657 System.err.println(" Code written to \"" + emit.parser_class_name +
658 ".java\", and \"" + emit.symbol_const_class_name + ".java\".");
708 if (emit.symbols_time != 0)
710 + timestr(emit.symbols_time, total_time));
711 if (emit.parser_time != 0)
713 + timestr(emit.parser_time, total_time));
714 if (emit.action_code_time != 0)
716 + timestr(emit.action_code_time, total_time));
717 if (emit.production_table_time != 0)
719 + timestr(emit.production_table_time, total_time));
720 if (emit.action_table_time != 0)
722 + timestr(emit.action_table_time, total_time));
723 if (emit.goto_table_time != 0)
725 + timestr(emit.goto_table_time, total_time));