Message-Id: <200509301155.j8UBtvEQ032350@delorie.com> X-Authenticated: #27081556 From: Juan Manuel Guerrero To: djgpp-announce AT delorie DOT com Subject: ANNOUNCE: DJGPP port of GNU bison 2.1 uploaded. Date: Fri, 30 Sep 2005 07:25:58 +0200 Content-Disposition: inline X-Y-GMX-Trusted: 0 This is a port of GNU Bison 2.1 to MSDOS/DJGPP. Bison is a Yacc compatible parser generator. Bison 2.1 is mostly a bug fix version since the last official release of Bison. Last-minute testing uncovered one possible problem in the Bison self-test suite. The last test case (test 135, Duplicated user destructor for lookahead) may fail if you are using older versions of GCC. This is a bug in the test case, not a bug in Bison itself, so please don't worry about it if "make check" reports a failure for test 135. DJGPP specific changes. ======================= - The DJGPP port of Bison offers LFN and SFN support depending on which OS it is running. If LFN support is available or not is determinated at run time. If LFN support is available (DOS session under Win9X), the standard posix file name extensions will be used. These are: y.tab.c, y.tab.c++, y.tab.h, y.output, etc. If only SFN support is available (plain DOS), then the standard MSDOS short file names will be used. These are: y_tab.c, y_tab.h, y.out, etc. - It should be noticed that this version of Bison uses the m4 program as a backend to generate the parser file (e.g. y_tab.c, etc.) from the skeleton files. This means that m4 *must* be installed and available when bison's is invoked or bison will not be able to generate the parser file. m4 will use a couple m4 scripts that will be installed in /dev/env/DJDIR/share/bison. This version of bison requires at least m4 1.4.3 available as m4-143b.zip at ftp://ftp.delorie.com and mirrors. - It should also be noticed that the two skeleton files bison.simple and bison.hairy are no longer used nor supported anymore. This applies also to the two environment variables BISON_HAIRY and BISON_SIMPLE. Those variables are *no* longer honored at all. This implies that you can no longer use these variables to point bison to an alternative skeleton file. Use the command line option `-S' instead. - The skeleton file bison.simple is now called yacc.c and is an m4 script. Please notice that the grammar type coded in the skeleton file bison.hairy is no longer supported by the bison maintainer. The other two skeleton files supported by this bison version are glr.c and lalr1.cc. The first one is a generalized LR C parser based on Bison's LALR(1) tables and the second one is a experimental C++ parser class. Here is a list of user-visible changes in version 2.1. taken from the NEWS file: * Bison-generated parsers now support the translation of diagnostics like "syntax error" into languages other than English. The default language is still English. For details, please see the new Internationalization section of the Bison manual. Software distributors should also see the new PACKAGING file. Thanks to Bruno Haible for this new feature. * Wording in the Bison-generated parsers has been changed slightly to simplify translation. In particular, the message "memory exhausted" has replaced "parser stack overflow", as the old message was not always accurate for modern Bison-generated parsers. * Destructors are now called when the parser aborts, for all symbols left behind on the stack. Also, the start symbol is now destroyed after a successful parse. In both cases, the behavior was formerly inconsistent. * When generating verbose diagnostics, Bison-generated parsers no longer quote the literal strings associated with tokens. For example, for a syntax error associated with '%token NUM "number"' they might print 'syntax error, unexpected number' instead of 'syntax error, unexpected "number"'. For futher information about GNU bison please read the info docs and NEWS file. Please also note that the testsuite will only work if LFN are available. Three tests will be skipped (118, 119 and 135). No other tests should fail. The port consists of the usual three packages that have been compiled using stock djdev203 and that can be downloaded from ftp.delorie.com and mirrors as (timestamp 2005-09-29): Bison 2.1 binary, info and man format documentation: ftp://ftp.delorie.com/pub/djgpp/current/v2gnu/bsn21b.zip Bison 2.1 dvi, html, ps and pdf format documentation: ftp://ftp.delorie.com/pub/djgpp/current/v2gnu/bsn21d.zip Bison 2.1 source: ftp://ftp.delorie.com/pub/djgpp/current/v2gnu/bsn21s.zip For the convenience of the WinXP users the binaries has been produced a second time using the djdev204 beta library. This package is available at ftp.delorie.com and mirrors as (timestamp 2005-09-29): Bison 2.1 binary, info and man format documentation: ftp://ftp.delorie.com/pub/djgpp/beta/v2gnu/bsn21b.zip Send GNU bison specific bug reports to . Send suggestions and bug reports concerning the DJGPP port to comp.os.msdos.djgpp or . Enjoy. Guerrero, Juan Manuel