X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/04a76783abc8d92caa37bfd173a227ffa304ce90..e2742e46ba337f2717a6cd9cfde62bace920e468:/TODO diff --git a/TODO b/TODO index 7bbf4375..80a7cf8c 100644 --- a/TODO +++ b/TODO @@ -1,16 +1,41 @@ -*- outline -*- -* src/reader.c -Complete parse_skel_decl () with parse_dquoted_param (). [ok] -Check and cleanup for CPP-out code. [] +* Prologue +The %union is declared after the user C declarations. It can be +a problem if YYSTYPE is declared after the user part. [] -* src/output.c -Remove %%verbose which is useless. [ok] +Actually, the real problem seems that the %union ought to be output +where it was defined. For instance, in gettext/intl/plural.y, we +have: -* Broken options. -** %no-lines [] + %{ + ... + #include "gettextP.h" + ... + %} + + %union { + unsigned long int num; + enum operator op; + struct expression *exp; + } + + %{ + ... + static int yylex PARAMS ((YYSTYPE *lval, const char **pexp)); + ... + %} + +Where the first part defines struct expression, the second uses it to +define YYSTYPE, and the last uses YYSTYPE. Only this order is valid. + +* --graph +Show reductions. [] + +* Broken options ? +** %no-lines [ok] ** %no-parser [] -** %pure-parser ? [] +** %pure-parser [] ** %semantic-parser [] ** %token-table [] ** Options which could use parse_dquoted_param (). @@ -20,27 +45,21 @@ Maybe transfered in lex.c. *** %file-prefix [] *** %name-prefix [] -Cleanup dirty CPP-out code. [] -** Output sub-skeleton files. [] -Useful for %no_parser. [] -*** New skeleton. [] - -* src/macrotab.[ch] -Removing warnings when compiling. (gcc-warnings). [ok] +** Skeleton strategy. [] +Must we keep %no-parser? + %token-table? +*** New skeletons. [] * src/print_graph.c Find the best graph parameters. [] * doc/bison.texinfo -Update informations about ERROR_VERBOSE. [] -Add explainations about skeleton muscles. [] -Add explainations about %skeleton. [] - -* testsuite. -** tests/reduce.at [] -** tests/calc.at -Remove --yyerror-verbose. [ok] -** tests/torture.at -Remove --yyerror-verbose. [ok] -** tests/calc.at -Test --error-verbose. [ok] +** Update +informations about ERROR_VERBOSE. [] +** Add explainations about +skeleton muscles. [] +%skeleton. [] + +* testsuite +** tests/pure-parser.at [] +New tests.