X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/714720fcfeefcf360d698710b7ae566115f1b090..4aacc3a71d90a41ff446d32e573e5212b1779a10:/TODO?ds=inline diff --git a/TODO b/TODO index 0f65b205..13fab6e8 100644 --- a/TODO +++ b/TODO @@ -1,38 +1,68 @@ -*- outline -*- -* src/reader.c -** Complete parse_skel_decl () with parse_dquoted_param (). [] -** Check and cleanup for CPP-out code. [] - -* src/output.c -** Output sub-skeleton files. [] -** Cleanup dirty CPP-out code. [] -*** Useful for %no_parser. [] -**** New skeleton. [] -** s/definitions/prologue/ s/user_code/epilogue/. [ok] -** s/macro/muscle/. [ok] -** Synchronize `#line' directive with user file. [] - -* src/getargs.c src/lex.c -** Synchronize percent and command line options. [] - -* src/macrotab.[ch] -** Removing warnings when compiling. (gcc-warnings). [ok] -** s/macro/muscle/. [ok] -*** Rename files. [] -*** Rename functions [] -*** Echo modifications src/Makefile src/output.c src/reader.c -*** src/main.c src/macrotab.c. [] +* NEWS +Sort from 1.31 NEWS. + +* Prologue +The %union is declared after the user C declarations. It can be +a problem if YYSTYPE is declared after the user part. [] + +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: + + %{ + ... + #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 [] +** %semantic-parser [] +** %token-table [] +** Options which could use parse_dquoted_param (). +Maybe transfered in lex.c. +*** %skeleton [ok] +*** %output [] +*** %file-prefix [] +*** %name-prefix [] + +** Skeleton strategy. [] +Must we keep %no-parser? + %token-table? +*** New skeletons. [] * src/print_graph.c -** Find the best graph parameters. [] +Find the best graph parameters. [] * doc/bison.texinfo -** Echo modifications of prologue and epilogue. [] -** Add informations about YYERROR_VERBOSE. [] -** Add explainations about skeleton muscles. [] -** Add explainations about %skeleton. [] - -* tests/ -** Repair Bison to success tests. [ok] +** Update +informations about ERROR_VERBOSE. [] +** Add explainations about +skeleton muscles. [] +%skeleton. [] +* testsuite +** tests/pure-parser.at [] +New tests.