X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/1a4648ff0d72c384f6fbfc46d9f23bbb28ca9300..25d810906cecc2ac321e2893b1ad38b376f3d313:/TODO?ds=sidebyside diff --git a/TODO b/TODO index 62622a61..80a7cf8c 100644 --- a/TODO +++ b/TODO @@ -1,11 +1,38 @@ -*- outline -*- -* tokendefs -This muscle should not exist: the information it contains should be -available from the rest of bison. Once the information public, get -rid of it. +* Prologue +The %union is declared after the user C declarations. It can be +a problem if YYSTYPE is declared after the user part. [] -* Broken options ?. +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 [] @@ -23,9 +50,6 @@ Must we keep %no-parser? %token-table? *** New skeletons. [] -* src/macrotab.[ch] -Removing warnings when compiling. (gcc-warnings). [ok] - * src/print_graph.c Find the best graph parameters. [] @@ -36,7 +60,6 @@ informations about ERROR_VERBOSE. [] skeleton muscles. [] %skeleton. [] -* testsuite. -** tests/reduce.at [ok] +* testsuite ** tests/pure-parser.at [] New tests.