24 |
#include "getargs.h" |
#include "getargs.h" |
25 |
#include "symtab.h" |
#include "symtab.h" |
26 |
#include "gram.h" |
#include "gram.h" |
|
#include "lex.h" |
|
27 |
#include "output.h" |
#include "output.h" |
28 |
#include "options.h" |
#include "options.h" |
29 |
|
|
76 |
/* Hidden. */ |
/* Hidden. */ |
77 |
OPTN ("trace", no, &trace_flag, 0, 1) |
OPTN ("trace", no, &trace_flag, 0, 1) |
78 |
|
|
|
/* |
|
|
* Percent declarations. |
|
|
*/ |
|
|
|
|
|
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 ("union", no, NULL, tok_union) |
|
|
DRTV ("expect", no, NULL, tok_expect) |
|
|
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 ("verbose", no, &report_flag, tok_intopt) |
|
|
DRTV ("error-verbose",no, &error_verbose, tok_intopt) |
|
|
|
|
79 |
/* FIXME: semantic parsers will output an `include' of an |
/* FIXME: semantic parsers will output an `include' of an |
80 |
output file: be sure that the naem included is indeed the name of |
output file: be sure that the naem included is indeed the name of |
81 |
the output file. */ /* FIXME Should we activate this options ? |
the output file. */ /* FIXME Should we activate this options ? |
82 |
*/ |
*/ |
83 |
BOTH ("output", required, &spec_outfile, tok_stropt, 'o') |
OPTN ("output", required, &spec_outfile, 0, 'o') |
84 |
BOTH ("file-prefix", required, &spec_file_prefix, tok_stropt, 'b') |
OPTN ("file-prefix", required, &spec_file_prefix, 0, 'b') |
85 |
BOTH ("name-prefix", required, &spec_name_prefix, tok_stropt, 'p') |
OPTN ("name-prefix", required, &spec_name_prefix, 0, 'p') |
|
|
|
|
DRTV ("define", no, NULL, tok_define) |
|
|
DRTV ("pure-parser", no, &pure_parser, tok_intopt) |
|
86 |
|
|
87 |
/* |
/* |
88 |
* Percent and command line declarations. |
* Percent and command line declarations. |
89 |
*/ |
*/ |
90 |
|
|
91 |
/* Output. */ |
/* Output. */ |
92 |
BOTH ("defines", optional, &defines_flag, tok_intopt, 'd') |
OPTN ("defines", optional, &defines_flag, 0, 'd') |
93 |
|
|
94 |
/* Operation modes. */ |
/* Operation modes. */ |
95 |
BOTH ("fixed-output-files", no, &yacc_flag, tok_intopt, 'y') |
OPTN ("fixed-output-files", no, &yacc_flag, 0, 'y') |
96 |
BOTH ("yacc", no, &yacc_flag, tok_intopt, 'y') |
OPTN ("yacc", no, &yacc_flag, 0, 'y') |
97 |
|
|
98 |
/* Parser. */ |
/* Parser. */ |
99 |
BOTH ("debug", no, &debug_flag, tok_intopt, 't') |
OPTN ("debug", no, &debug_flag, 0, 't') |
100 |
BOTH ("locations", no, &locations_flag, tok_intopt, 1) |
OPTN ("locations", no, &locations_flag, 0, 1) |
101 |
BOTH ("no-lines", no, &no_lines_flag, tok_intopt, 'l') |
OPTN ("no-lines", no, &no_lines_flag, 0, 'l') |
102 |
BOTH ("no-parser", no, &no_parser_flag, tok_intopt, 'n') |
OPTN ("no-parser", no, &no_parser_flag, 0, 'n') |
103 |
BOTH ("raw", no, 0, tok_obsolete, 0) |
OPTN ("raw", no, 0, 0, 0) |
104 |
BOTH ("skeleton", required, 0, tok_skel, 'S') |
OPTN ("skeleton", required, 0, 0, 'S') |
105 |
BOTH ("token-table", no, &token_table_flag, tok_intopt, 'k') |
OPTN ("token-table", no, &token_table_flag, 0, 'k') |
106 |
|
|
107 |
{0, 0, 0, 0, 0, 0} |
{0, 0, 0, 0, 0, 0} |
108 |
}; |
}; |