- {opt_percent, "token", 0, NULL, tok_token, 0},
- {opt_percent, "term", 0, NULL, tok_token, 0},
- {opt_percent, "nterm", 0, NULL, tok_nterm, 0},
- {opt_percent, "type", 0, NULL, tok_type, 0},
- {opt_percent, "guard", 0, NULL, tok_guard, 0},
- {opt_percent, "union", 0, NULL, tok_union, 0},
- {opt_percent, "expect", 0, NULL, tok_expect, 0},
- {opt_percent, "thong", 0, NULL, tok_thong, 0},
- {opt_percent, "start", 0, NULL, tok_start, 0},
- {opt_percent, "left", 0, NULL, tok_left, 0},
- {opt_percent, "right", 0, NULL, tok_right, 0},
- {opt_percent, "nonassoc", 0, NULL, tok_nonassoc, 0},
- {opt_percent, "binary", 0, NULL, tok_nonassoc, 0},
- {opt_percent, "prec", 0, NULL, tok_prec, 0},
-#if 0
- /* For the time being, this is not enabled yet, while it's possible
- though, since we use obstacks. The only risk is with semantic
- parsers which will output an `include' of an output file: be sure
- that the naem included is indeed the name of the output file. */
- /* FIXME Should we activate this options ? */
- {opt_both, "output-file", required_argument, &spec_outfile, tok_setopt, 'o'},
- {opt_both, "file-prefix", required_argument,&spec_file_prefix,tok_setopt,'b'},
- {opt_both, "name-prefix", required_argument,&spec_name_prefix,tok_setopt,'p'},
-#endif
- {opt_percent, "header-extension", 0, NULL, tok_hdrext, 0},
- {opt_percent, "source-extension", 0, NULL, tok_srcext, 0},
- {opt_percent, "define", 0, NULL, tok_define, 0},
- {opt_percent, "semantic-parser", 0, &semantic_parser, tok_noop, 0},
- {opt_percent, "pure-parser", 0, &pure_parser, tok_noop, 0},
+ DRTV ("token", no, NULL, tok_token)
+ DRTV ("term", no, NULL, tok_token)
+ DRTV ("nterm", no, NULL, tok_nterm)
+ DRTV ("type", no, NULL, tok_type)
+ DRTV ("guard", no, NULL, tok_guard)
+ DRTV ("union", no, NULL, tok_union)
+ DRTV ("expect", no, NULL, tok_expect)
+ DRTV ("thong", no, NULL, tok_thong)
+ DRTV ("start", no, NULL, tok_start)
+ DRTV ("left", no, NULL, tok_left)
+ DRTV ("right", no, NULL, tok_right)
+ DRTV ("nonassoc", no, NULL, tok_nonassoc)
+ DRTV ("binary", no, NULL, tok_nonassoc)
+ DRTV ("prec", no, NULL, tok_prec)
+ DRTV ("error-verbose",no, &error_verbose, tok_intopt)
+
+ /* FIXME: semantic parsers will output an `include' of an
+ output file: be sure that the naem included is indeed the name of
+ the output file. */ /* FIXME Should we activate this options ?
+ */
+ BOTH ("output", required, &spec_outfile, tok_stropt, 'o')
+ BOTH ("file-prefix", required, &spec_file_prefix, tok_stropt, 'b')
+ BOTH ("name-prefix", required, &spec_name_prefix, tok_stropt, 'p')
+
+ DRTV ("define", no, NULL, tok_define)
+ DRTV ("semantic-parser",no, &semantic_parser, tok_intopt)
+ DRTV ("pure-parser", no, &pure_parser, tok_intopt)