Lines Matching refs:argv

140   public static void main(String argv[])  in main()  argument
148 parse_args(argv); in main()
246 protected static void parse_args(String argv[]) in parse_args() argument
248 int len = argv.length; in parse_args()
255 if (argv[i].equals("-package")) in parse_args()
258 if (++i >= len || argv[i].startsWith("-") || in parse_args()
259 argv[i].endsWith(".cup")) in parse_args()
263 emit.package_name = argv[i]; in parse_args()
265 else if (argv[i].equals("-parser")) in parse_args()
268 if (++i >= len || argv[i].startsWith("-") || in parse_args()
269 argv[i].endsWith(".cup")) in parse_args()
273 emit.parser_class_name = argv[i]; in parse_args()
275 else if (argv[i].equals("-input")) { in parse_args()
277 if (++i >= len || argv[i].startsWith("-") || in parse_args()
278 argv[i].endsWith(".cup")) in parse_args()
282 emit.input_file_name = argv[i]; in parse_args()
284 else if (argv[i].equals("-symbols")) in parse_args()
287 if (++i >= len || argv[i].startsWith("-") || in parse_args()
288 argv[i].endsWith(".cup")) in parse_args()
292 emit.symbol_const_class_name = argv[i]; in parse_args()
294 else if (argv[i].equals("-nonterms")) in parse_args()
298 else if (argv[i].equals("-expect")) in parse_args()
301 if (++i >= len || argv[i].startsWith("-") || in parse_args()
302 argv[i].endsWith(".cup")) in parse_args()
307 expect_conflicts = Integer.parseInt(argv[i]); in parse_args()
312 else if (argv[i].equals("-out")) in parse_args()
315 if (++i >= len || argv[i].startsWith("-")) in parse_args()
319 if (argv[i].length() != 0) { in parse_args()
320 out_path = argv[i] + File.separator; in parse_args()
328 else if (argv[i].equals("-compact_red")) opt_compact_red = true; in parse_args()
329 else if (argv[i].equals("-nosummary")) no_summary = true; in parse_args()
330 else if (argv[i].equals("-nowarn")) emit.nowarn = true; in parse_args()
331 else if (argv[i].equals("-dump_states")) opt_dump_states = true; in parse_args()
332 else if (argv[i].equals("-dump_tables")) opt_dump_tables = true; in parse_args()
333 else if (argv[i].equals("-progress")) print_progress = true; in parse_args()
334 else if (argv[i].equals("-dump_grammar")) opt_dump_grammar = true; in parse_args()
335 else if (argv[i].equals("-dump")) in parse_args()
337 else if (argv[i].equals("-time")) opt_show_timing = true; in parse_args()
338 else if (argv[i].equals("-debug")) opt_do_debug = true; in parse_args()
341 usage("Unrecognized option \"" + argv[i] + "\""); in parse_args()