* Push Parsing
Bison can now generate an LALR(1) parser in C with a push interface. That
- is, instead of invoking yyparse, which pulls tokens from `yylex', you can
+ is, instead of invoking `yyparse', which pulls tokens from `yylex', you can
push one token at a time to the parser using `yypush_parse', which will
return to the caller after processing each token. By default, the push
interface is disabled. Either of the following directives will enable it:
%defines "parser.h"
-* When reporting useless rules and nonterminals, Bison now employs the term
- "useless in grammar" instead of "useless" and employs the term "useless in
- parser" instead of "never reduced".
+* When reporting useless rules, useless nonterminals, and unused terminals,
+ Bison now employs the terms "useless in grammar" instead of "useless",
+ "useless in parser" instead of "never reduced", and "unused in grammar"
+ instead of "unused".
* Unreachable State Removal
for further discussion.
* Lookahead Set Correction in the `.output' Report
-
+
When instructed to generate a `.output' file including lookahead sets
(using `--report=lookahead', for example), Bison now prints each reduction's
lookahead set only next to the associated state's one item that (1) is
bug affected only the `.output' file and not the generated parser source
code.
+* --report-file=FILE is a new flag to override the default `.output' file name.
+
* The `=' that used to be required in the following directives is now
deprecated:
See the section `Freeing Discarded Symbols' in the Bison manual for further
details.
+* %left, %right, and %nonassoc can now declare token numbers. This is required
+ by POSIX. However, see the end of section `Operator Precedence' in the Bison
+ manual for a caveat concerning the treatment of literal strings.
+
+* The nonfunctional --no-parser, -n, and %no-parser options have been
+ completely removed from Bison.
+
Changes in version 2.3a, 2006-09-13:
* Instead of %union, you can define and use your own union type
-----
Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
-2004, 2005, 2006, 2007 Free Software Foundation, Inc.
+2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
This file is part of Bison, the GNU Compiler Compiler.