]> git.saurik.com Git - bison.git/blame - TODO
(yyparse): Rewrite to avoid "comparison is always true due to limited
[bison.git] / TODO
CommitLineData
416bd7a9
MA
1-*- outline -*-
2
3c146b5e
AD
3* Header guards
4
32f0598d 5From Franc,ois: should we keep the directory part in the CPP guard?
3c146b5e
AD
6
7
efea6231
AD
8* URGENT: Documenting C++ output
9Write a first documentation for C++ output.
10
bc933ef1 11
88bce5a2
AD
12* Documentation
13Before releasing, make sure the documentation refers to the current
14`output' format.
15
16
2ab9a04f
AD
17* Error messages
18Some are really funky. For instance
19
20 type clash (`%s' `%s') on default action
21
22is really weird. Revisit them all.
23
2ab9a04f
AD
24
25* read_pipe.c
26This is not portable to DOS for instance. Implement a more portable
27scheme. Sources of inspiration include GNU diff, and Free Recode.
28
bc933ef1 29
3ae2b51f
AD
30* value_components_used
31Was defined but not used: where was it coming from? It can't be to
32check if %union is used, since the user is free to $<foo>n on her
33union, doesn't she?
34
efea6231 35
2ab9a04f 36* Report
ec3bc396 37
2ab9a04f
AD
38** GLR
39How would Paul like to display the conflicted actions? In particular,
40what when two reductions are possible on a given lookahead, but one is
41part of $default. Should we make the two reductions explicit, or just
42keep $default? See the following point.
d7215705 43
2ab9a04f
AD
44** Disabled Reductions
45See `tests/conflicts.at (Defaulted Conflicted Reduction)', and decide
46what we want to do.
d7215705 47
2ab9a04f 48** Documentation
bc933ef1
AD
49Extend with error productions. The hard part will probably be finding
50the right rule so that a single state does not exhibit too many yet
51undocumented ``features''. Maybe an empty action ought to be
52presented too. Shall we try to make a single grammar with all these
53features, or should we have several very small grammars?
ec3bc396 54
2ab9a04f
AD
55** --report=conflict-path
56Provide better assistance for understanding the conflicts by providing
57a sample text exhibiting the (LALR) ambiguity. See the paper from
58DeRemer and Penello: they already provide the algorithm.
59
ec3bc396 60
948be909 61* Extensions
2ab9a04f
AD
62
63** yyerror, yysymprint interface
64It should be improved, in particular when using Bison features such as
65locations, and YYPARSE_PARAMS. For the time being, it is recommended
66to #define yyerror and yyprint to steal internal variables...
67
68** Several %unions
6cbfbcc5
AD
69I think this is a pleasant (but useless currently) feature, but in the
70future, I want a means to %include other bits of grammars, and _then_
71it will be important for the various bits to define their needs in
72%union.
76551463 73
5c0a0514
AD
74When implementing multiple-%union support, bare the following in mind:
75
76- when --yacc, this must be flagged as an error. Don't make it fatal
77 though.
78
79- The #line must now appear *inside* the definition of yystype.
80 Something like
81
82 {
83 #line 12 "foo.y"
84 int ival;
85 #line 23 "foo.y"
86 char *sval;
87 }
88
fa770c86
AD
89* Unit rules
90Maybe we could expand unit rules, i.e., transform
91
92 exp: arith | bool;
93 arith: exp '+' exp;
94 bool: exp '&' exp;
95
96into
97
98 exp: exp '+' exp | exp '&' exp;
99
100when there are no actions. This can significantly speed up some
d7215705
AD
101grammars. I can't find the papers. In particular the book `LR
102parsing: Theory and Practice' is impossible to find, but according to
103`Parsing Techniques: a Practical Guide', it includes information about
104this issue. Does anybody have it?
fa770c86 105
51dec47b 106
51dec47b 107
2ab9a04f 108* Documentation
51dec47b 109
2ab9a04f
AD
110** History/Bibliography
111Some history of Bison and some bibliography would be most welcome.
112Are there any Texinfo standards for bibliography?
113
114
115
948be909
PE
116* Java, Fortran, etc.
117
948be909 118
f414d77d
AD
119** Java
120
121There are a couple of proposed outputs:
122
123- BYACC/J
124 which is based on Byacc.
125 <http://troi.lincom-asg.com/~rjamison/byacc/>
126
127- Bison Java
128 which is based on Bison.
948be909
PE
129 <http://www.goice.co.jp/member/mo/hack-progs/bison-java.html>
130
f414d77d
AD
131