int no_parser_flag = 0;
int token_table_flag = 0;
int verbose_flag = 0;
-int statistics_flag = 0;
int yacc_flag = 0; /* for -y */
int graph_flag = 0;
+int trace_flag = 0;
const char *skeleton = NULL;
+const char *include = NULL;
extern char *program_name;
-d, --defines also produce a header file\n\
-v, --verbose also produce an explanation of the automaton\n\
-b, --file-prefix=PREFIX specify a PREFIX for output files\n\
- -o, --output-file=FILE leave output to FILE\n"), stream);
+ -o, --output=FILE leave output to FILE\n\
+ -g, --graph also produce a VCG description of the automaton\n\
+"), stream);
putc ('\n', stream);
fputs (_("\
{
int c;
- create_long_option_table ();
+ struct option *longopts = long_option_table_new ();
while ((c = getopt_long (argc, argv, shortopts, longopts, NULL)) != EOF)
switch (c)
{
exit (0);
case 'g':
+ /* Here, the -g and --graph=FILE options are differentiated. */
graph_flag = 1;
+ spec_graph_file = optarg;
break;
case 'v':
skeleton = optarg;
break;
+ case 'I':
+ include = optarg;
+ break;
+
case 'd':
+ /* Here, the -d and --defines options are differentiated. */
defines_flag = 1;
+ spec_defines_file = optarg;
break;
case 'l':
exit (1);
}
- XFREE (longopts);
+ free (longopts);
+
if (optind == argc)
{
fprintf (stderr, _("%s: no grammar file given\n"), program_name);