]> git.saurik.com Git - bison.git/blob - NEWS
Update.
[bison.git] / NEWS
1 Bison News
2 ----------
3
4 Changes in version 1.32a:
5
6 \f
7 Changes in version 1.32, 2002-01-23:
8
9 * Fix Yacc output file names
10
11 * Portability fixes
12
13 * Italian, Dutch translations
14 \f
15 Changes in version 1.31, 2002-01-14:
16
17 * Many Bug Fixes
18
19 * GNU Gettext and %expect
20 GNU Gettext asserts 10 s/r conflicts, but there are 7. Now that
21 Bison dies on incorrect %expectations, we fear there will be
22 too many bug reports for Gettext, so _for the time being_, %expect
23 does not trigger an error when the input file is named `plural.y'.
24
25 * Use of alloca in parsers
26 If YYSTACK_USE_ALLOCA is defined to 0, then the parsers will use
27 malloc exclusively. Since 1.29, but was not NEWS'ed.
28
29 alloca is used only when compiled with GCC, to avoid portability
30 problems as on AIX.
31
32 * When the generated parser lacks debugging code, YYDEBUG is now 0
33 (as POSIX requires) instead of being undefined.
34
35 * User Actions
36 Bison has always permitted actions such as { $$ = $1 }: it adds the
37 ending semicolon. Now if in Yacc compatibility mode, the semicolon
38 is no longer output: one has to write { $$ = $1; }.
39
40 * Better C++ compliance
41 The output parsers try to respect C++ namespaces.
42
43 * Reduced Grammars
44 Fixed bugs when reporting useless nonterminals.
45
46 * 64 bit hosts
47 The parsers work properly on 64 bit hosts.
48
49 * Error messages
50 Some calls to strerror resulted in scrambled or missing error messages.
51
52 * %expect
53 When the number of shift/reduce conflicts is correct, don't issue
54 any warning.
55
56 * The verbose report includes the rule line numbers.
57
58 * Rule line numbers are fixed in traces.
59
60 * Swedish translation
61
62 * Parse errors
63 Verbose parse error messages from the parsers are better looking.
64 Before: parse error: unexpected `'/'', expecting `"number"' or `'-'' or `'(''
65 Now: parse error: unexpected '/', expecting "number" or '-' or '('
66
67 * Fixed parser memory leaks.
68 When the generated parser was using malloc to extend its stacks, the
69 previous allocations were not freed.
70
71 * Fixed verbose output file.
72 Some newlines were missing.
73 Some conflicts in state descriptions were missing.
74
75 * Fixed conflict report.
76 Option -v was needed to get the result.
77
78 * %expect
79 Was not used.
80 Mismatches are errors, not warnings.
81
82 * Fixed incorrect processing of some invalid input.
83
84 * Fixed CPP guards: 9foo.h uses BISON_9FOO_H instead of 9FOO_H.
85
86 * Fixed some typos in the documentation.
87
88 * %token MY_EOF 0 is supported.
89 Before, MY_EOF was silently renumbered as 257.
90
91 * doc/refcard.tex is updated.
92
93 * %output, %file-prefix, %name-prefix.
94 New.
95
96 * --output
97 New, aliasing `--output-file'.
98 \f
99 Changes in version 1.30, 2001-10-26:
100
101 * `--defines' and `--graph' have now an optionnal argument which is the
102 output file name. `-d' and `-g' do not change, they do not take any
103 argument.
104
105 * `%source_extension' and `%header_extension' are removed, failed
106 experiment.
107
108 * Portability fixes.
109 \f
110 Changes in version 1.29, 2001-09-07:
111
112 * The output file does not define const, as this caused problems when used
113 with common autoconfiguration schemes. If you still use ancient compilers
114 that lack const, compile with the equivalent of the C compiler option
115 `-Dconst='. autoconf's AC_C_CONST macro provides one way to do this.
116
117 * Added `-g' and `--graph'.
118
119 * The Bison manual is now distributed under the terms of the GNU FDL.
120
121 * The input and the output files has automatically a similar extension.
122
123 * Russian translation added.
124
125 * NLS support updated; should hopefully be less troublesome.
126
127 * Added the old Bison reference card.
128
129 * Added `--locations' and `%locations'.
130
131 * Added `-S' and `--skeleton'.
132
133 * `%raw', `-r', `--raw' is disabled.
134
135 * Special characters are escaped when output. This solves the problems
136 of the #line lines with path names including backslashes.
137
138 * New directives.
139 `%yacc', `%fixed_output_files', `%defines', `%no_parser', `%verbose',
140 `%debug', `%source_extension' and `%header_extension'.
141
142 * @$
143 Automatic location tracking.
144 \f
145 Changes in version 1.28, 1999-07-06:
146
147 * Should compile better now with K&R compilers.
148
149 * Added NLS.
150
151 * Fixed a problem with escaping the double quote character.
152
153 * There is now a FAQ.
154 \f
155 Changes in version 1.27:
156
157 * The make rule which prevented bison.simple from being created on
158 some systems has been fixed.
159 \f
160 Changes in version 1.26:
161
162 * Bison now uses automake.
163
164 * New mailing lists: <bug-bison@gnu.org> and <help-bison@gnu.org>.
165
166 * Token numbers now start at 257 as previously documented, not 258.
167
168 * Bison honors the TMPDIR environment variable.
169
170 * A couple of buffer overruns have been fixed.
171
172 * Problems when closing files should now be reported.
173
174 * Generated parsers should now work even on operating systems which do
175 not provide alloca().
176 \f
177 Changes in version 1.25, 1995-10-16:
178
179 * Errors in the input grammar are not fatal; Bison keeps reading
180 the grammar file, and reports all the errors found in it.
181
182 * Tokens can now be specified as multiple-character strings: for
183 example, you could use "<=" for a token which looks like <=, instead
184 of chosing a name like LESSEQ.
185
186 * The %token_table declaration says to write a table of tokens (names
187 and numbers) into the parser file. The yylex function can use this
188 table to recognize multiple-character string tokens, or for other
189 purposes.
190
191 * The %no_lines declaration says not to generate any #line preprocessor
192 directives in the parser file.
193
194 * The %raw declaration says to use internal Bison token numbers, not
195 Yacc-compatible token numbers, when token names are defined as macros.
196
197 * The --no-parser option produces the parser tables without including
198 the parser engine; a project can now use its own parser engine.
199 The actions go into a separate file called NAME.act, in the form of
200 a switch statement body.
201 \f
202 Changes in version 1.23:
203
204 The user can define YYPARSE_PARAM as the name of an argument to be
205 passed into yyparse. The argument should have type void *. It should
206 actually point to an object. Grammar actions can access the variable
207 by casting it to the proper pointer type.
208
209 Line numbers in output file corrected.
210 \f
211 Changes in version 1.22:
212
213 --help option added.
214 \f
215 Changes in version 1.20:
216
217 Output file does not redefine const for C++.
218
219 Local Variables:
220 mode: outline
221 End: