* src/gram.h, src/gram.c (pure_parser, glr_parser): Move to...

* src/getargs.c, src/getargs.h: here, as bool, not int.
(nondeterministic_parser): New.
* src/parse-gram.y, src/scan-gram.l: Support
%nondeterministic-parser.
* src/output.c (prepare): Use nondeterministic_parser instead
of glr_parser where appropriate.
* src/tables.c (conflict_row, action_row, save_row)
(token_actions, token_actions, pack_vector): Ditto.
This commit is contained in:
Akim Demaille
2003-04-29 12:57:36 +00:00
parent a06ea4aa98
commit 916708d59e
11 changed files with 374 additions and 344 deletions

View File

@@ -54,6 +54,10 @@ int yacc_flag = 0; /* for -y */
int graph_flag = 0;
int trace_flag = trace_none;
bool nondeterministic_parser = false;
bool glr_parser = false;
bool pure_parser = false;
const char *skeleton = NULL;
const char *include = NULL;