Commit graph

20 commits

Author SHA1 Message Date
wiz
45fa316d57 Update to 2.0:
Changes in version 2.0, 2004-12-25:

* Possibly-incompatible changes

  - Bison-generated parsers no longer default to using the alloca function
    (when available) to extend the parser stack, due to widespread
    problems in unchecked stack-overflow detection.  You can "#define
    YYSTACK_USE_ALLOCA 1" to require the use of alloca, but please read
    the manual to determine safe values for YYMAXDEPTH in that case.

  - Error token location.
    During error recovery, the location of the syntax error is updated
    to cover the whole sequence covered by the error token: it includes
    the shifted symbols thrown away during the first part of the error
    recovery, and the lookahead rejected during the second part.

  - Semicolon changes:
    . Stray semicolons are no longer allowed at the start of a grammar.
    . Semicolons are now required after in-grammar declarations.

  - Unescaped newlines are no longer allowed in character constants or
    string literals.  They were never portable, and GCC 3.4.0 has
    dropped support for them.  Better diagnostics are now generated if
    forget a closing quote.

  - NUL bytes are no longer allowed in Bison string literals, unfortunately.

* New features

  - GLR grammars now support locations.

  - New directive: %initial-action.
    This directive allows the user to run arbitrary code (including
    initializing @$) from yyparse before parsing starts.

  - A new directive "%expect-rr N" specifies the expected number of
    reduce/reduce conflicts in GLR parsers.

  - %token numbers can now be hexadecimal integers, e.g., `%token FOO 0x12d'.
    This is a GNU extension.

  - The option `--report=lookahead' was changed to `--report=look-ahead'.
    The old spelling still works, but is not documented and will be
    removed.

  - Experimental %destructor support has been added to lalr1.cc.

  - New configure option --disable-yacc, to disable installation of the
    yacc command and -ly library introduced in 1.875 for POSIX conformance.

* Bug fixes

  - For now, %expect-count violations are now just warnings, not errors.
    This is for compatibility with Bison 1.75 and earlier (when there are
    reduce/reduce conflicts) and with Bison 1.30 and earlier (when there
    are too many or too few shift/reduce conflicts).  However, in future
    versions of Bison we plan to improve the %expect machinery so that
    these violations will become errors again.

  - Within Bison itself, numbers (e.g., goto numbers) are no longer
    arbitrarily limited to 16-bit counts.

  - Semicolons are now allowed before "|" in grammar rules, as POSIX requires.
2005-02-18 14:41:38 +00:00
cjep
f88af8fabb Append ";" after attribute. From bison CVS repository.
This appears to fix a problem when building print/lilypond.

Bump PKGREVISION.
2003-01-04 20:16:10 +00:00
cjep
bbabdca4c2 Update of devel/bison to version 1.875.
Differences to the plain GNU version in the packages collection:
* We do not install the shell wrapper "yacc" (it is supplied because
POSIX requires it and we already have a yacc command).

Changes since 1.75:
* Numerous bug fixes and improvements including:
   + Compatibility (with 1.35 and Solaris yacc) changes;
   + Fixes for GCC 3.2.1;
   + Use Yacc style of conflict reports;
   + Fix bug where error locations were not being recorded correctly;
   + Fix bad interaction with flex 2.5.23.

Please see the ChangeLog file supplied with the bison source code
for more details.
2003-01-01 13:15:47 +00:00
grant
bb2abd1ee2 USE_PKGLOCALEDIR. 2002-11-30 14:04:01 +00:00
tron
5d82ebfd9f Make sure that locale files go into the correct directory under Solaris. 2002-02-10 19:05:56 +00:00
mjl
04c1aeaf83 Update to bison 1.32
* Fix Yacc output file names
* Portability fixes
* Italian, Dutch, Swedish, Russian translation
* Many Bug Fixes
* Use of alloca in parsers
* When the generated parser lacks debugging code, YYDEBUG is now 0
  (as POSIX requires) instead of being undefined.
* User Actions
  Bison has always permitted actions such as { $$ = $1 }: it adds the
  ending semicolon.  Now if in Yacc compatibility mode, the semicolon
  is no longer output: one has to write { $$ = $1; }.
* Better C++ compliance
  The output parsers try to respect C++ namespaces.
* Reduced Grammars
  Fixed bugs when reporting useless nonterminals.
* 64 bit hosts
  The parsers work properly on 64 bit hosts.
* Error messages
  Some calls to strerror resulted in scrambled or missing error messages.
* The verbose report includes the rule line numbers.
* Rule line numbers are fixed in traces.
* Parse errors
  Verbose parse error messages from the parsers are better looking.
* Fixed parser memory leaks.
  When the generated parser was using malloc to extend its stacks, the
  previous allocations were not freed.
* Fixed verbose output file.
  Some newlines were missing.
  Some conflicts in state descriptions were missing.
* Fixed conflict report.
  Option -v was needed to get the result.
* Fixed incorrect processing of some invalid input.
* Fixed CPP guards: 9foo.h uses BISON_9FOO_H instead of 9FOO_H.
* %token MY_EOF 0 is supported.
  Before, MY_EOF was silently renumbered as 257.
* doc/refcard.tex is updated.
* %output, %file-prefix, %name-prefix.
* --output
* `--defines' and `--graph' have now an optionnal argument which is the
  output file name. `-d' and `-g' do not change, they do not take any
  argument.
* Portability fixes.
* The output file does not define const, as this caused problems when used
  with common autoconfiguration schemes.  If you still use ancient compilers
  that lack const, compile with the equivalent of the C compiler option
  `-Dconst='.  autoconf's AC_C_CONST macro provides one way to do this.
* Added `-g' and `--graph'.
* The input and the output files has automatically a similar extension.
* NLS support updated; should hopefully be less troublesome.
* Added the old Bison reference card.
* Added `--locations' and `%locations'.
* Added `-S' and `--skeleton'.
* `%raw', `-r', `--raw' is disabled.
* Special characters are escaped when output.  This solves the problems
  of the #line lines with path names including backslashes.
* New directives.
* @$ Automatic location tracking.
2002-01-31 13:43:57 +00:00
jlam
626ce7ca93 Don't patch automake source files and remove dependency on automake. 2001-07-15 16:34:57 +00:00
jlam
f03bc9d638 Add patches to Makefile.am and configure.in that mirror patches to
Makefile.in and configure.
2001-06-13 07:55:06 +00:00
jlam
9d719be886 Use ${PKGLOCALEDIR} to determine the location of the installed locale files. 2001-02-28 23:31:06 +00:00
jdolecek
2a83b9a101 add NetBSD RCS id 2000-02-03 18:46:20 +00:00
jdolecek
4a1f68a379 src/getopt.c: include "system.h" to get correct definition of _ macro -
the test here depends on HAVE_LIBINTL_H, which is not set
	by configure
This change makes bison use the internationalized catalogs even for
messages in getopt.c. Bug report submitted to bug-bison@gnu.org.
2000-02-03 18:45:37 +00:00
jdolecek
813c20ccaa add a cast to the bison.simple template to avoid signed/unsigned
comparison in generated code (shows up with gcc -Wsign-compare for example)
2000-02-03 11:48:35 +00:00
jlam
5ce2f7faf8 Add missing bison.info-* and NLS files to pkg/PLIST.
Change to depend on pkgsrc gettext instead.
1999-10-04 17:24:00 +00:00
agc
9b2125c48d Update bison to version 1.28.
Changes include:

* Should compile better now with K&R compilers.

* Added NLS.

* Fixed a problem with escaping the double quote character.

* There is now a FAQ.
1999-08-24 12:51:24 +00:00
frueauf
636c5e9771 Add tab to infofile dir entry for cosmetics. 1999-02-19 08:55:23 +00:00
tv
1c9817afdf Update to 1.27. 1999-02-19 03:27:08 +00:00
tv
8965c0dd46 Make this honor the pkg system's CFLAGS setting. 1998-11-24 15:32:34 +00:00
agc
5b92cad3a8 Modifications to make bison use mkstemp(3). 1998-09-14 15:14:52 +00:00
agc
86db14e819 Add NetBSD RCS Ids. 1998-08-07 10:35:47 +00:00
tron
49a48d689a Add "bison" info file to info files directory, fixes PR pkg/5187. 1998-04-13 10:11:28 +00:00