]>
Commit | Line | Data |
---|---|---|
1 | -*- outline -*- | |
2 | ||
3 | * Prologue | |
4 | The %union is declared after the user C declarations. It can be | |
5 | a problem if YYSTYPE is declared after the user part. [] | |
6 | ||
7 | Actually, the real problem seems that the %union ought to be output | |
8 | where it was defined. For instance, in gettext/intl/plural.y, we | |
9 | have: | |
10 | ||
11 | %{ | |
12 | ... | |
13 | #include "gettextP.h" | |
14 | ... | |
15 | %} | |
16 | ||
17 | %union { | |
18 | unsigned long int num; | |
19 | enum operator op; | |
20 | struct expression *exp; | |
21 | } | |
22 | ||
23 | %{ | |
24 | ... | |
25 | static int yylex PARAMS ((YYSTYPE *lval, const char **pexp)); | |
26 | ... | |
27 | %} | |
28 | ||
29 | Where the first part defines struct expression, the second uses it to | |
30 | define YYSTYPE, and the last uses YYSTYPE. Only this order is valid. | |
31 | ||
32 | * --graph | |
33 | Show reductions. [] | |
34 | ||
35 | * Broken options ? | |
36 | ** %no-lines [ok] | |
37 | ** %no-parser [] | |
38 | ** %pure-parser [] | |
39 | ** %semantic-parser [] | |
40 | ** %token-table [] | |
41 | ** Options which could use parse_dquoted_param (). | |
42 | Maybe transfered in lex.c. | |
43 | *** %skeleton [ok] | |
44 | *** %output [] | |
45 | *** %file-prefix [] | |
46 | *** %name-prefix [] | |
47 | ||
48 | ** Skeleton strategy. [] | |
49 | Must we keep %no-parser? | |
50 | %token-table? | |
51 | *** New skeletons. [] | |
52 | ||
53 | * src/print_graph.c | |
54 | Find the best graph parameters. [] | |
55 | ||
56 | * doc/bison.texinfo | |
57 | ** Update | |
58 | informations about ERROR_VERBOSE. [] | |
59 | ** Add explainations about | |
60 | skeleton muscles. [] | |
61 | %skeleton. [] | |
62 | ||
63 | * testsuite | |
64 | ** tests/pure-parser.at [] | |
65 | New tests. |