1 This package contains the GNU Bison parser generator.
5 Here are basic installation instructions for a repository checkout:
7 $ git submodule update --init
10 then proceed with the usual `configure && make` steps.
12 The file README-hacking.md is about building, modifying and checking Bison.
15 See the file INSTALL for generic compilation and installation instructions.
17 Bison requires GNU m4 1.4.6 or later. See
18 https://ftp.gnu.org/gnu/m4/m4-1.4.6.tar.gz.
20 ## Colored diagnostics
21 As an experimental feature, diagnostics are now colored, controlled by the
22 `--color` and `--style` options.
24 To use them, install the libtextstyle library before configuring Bison. It
25 is available from https://alpha.gnu.org/gnu/gettext/, for instance
26 https://alpha.gnu.org/gnu/gettext/libtextstyle-0.8.tar.gz.
28 The option --color supports the following arguments:
29 - always, yes: Enable colors.
30 - never, no: Disable colors.
31 - auto, tty (default): Enable colors if the output device is a tty.
33 To customize the styles, create a CSS file, say `bison-bw.css`, similar to
37 .error { font-weight: 800; text-decoration: underline; }
40 then invoke bison with `--style=bison-bw.css`, or set the `BISON_STYLE`
41 environment variable to `bison-bw.css`.
44 If you pass `--enable-relocatable` to `configure`, Bison is relocatable.
46 A relocatable program can be moved or copied to a different location on the
47 file system. It can also be used through mount points for network sharing.
48 It is possible to make symlinks to the installed and moved programs, and
49 invoke them through the symlink.
51 See "Enabling Relocatability" in the documentation.
53 ## Internationalization
54 Bison supports two catalogs: one for Bison itself (i.e., for the
55 maintainer-side parser generation), and one for the generated parsers (i.e.,
56 for the user-side parser execution). The requirements between both differ:
57 bison needs ngettext, the generated parsers do not. To simplify the build
58 system, neither are installed if ngettext is not supported, even if
59 generated parsers could have been localized. See
60 http://lists.gnu.org/archive/html/bug-bison/2009-08/msg00006.html for more
64 See the section FAQ in the documentation (doc/bison.info) for frequently
65 asked questions. The documentation is also available in PDF and HTML,
66 provided you have a recent version of Texinfo installed: run `make pdf` or
69 If you have questions about using Bison and the documentation does not
70 answer them, please send mail to <help-bison@gnu.org>.
73 Please send bug reports to <bug-bison@gnu.org>. Be sure to include the
74 version number from `bison --version`, and a complete, self-contained test
75 case in each bug report.
77 # Copyright statements
78 For any copyright year range specified as YYYY-ZZZZ in this package, note
79 that the range specifies every single year in that closed interval.
83 Copyright (C) 1992, 1998-1999, 2003-2005, 2008-2015, 2018-2019 Free
84 Software Foundation, Inc.
86 This file is part of GNU bison, the GNU Compiler Compiler.
88 This program is free software: you can redistribute it and/or modify
89 it under the terms of the GNU General Public License as published by
90 the Free Software Foundation, either version 3 of the License, or
91 (at your option) any later version.
93 This program is distributed in the hope that it will be useful,
94 but WITHOUT ANY WARRANTY; without even the implied warranty of
95 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
96 GNU General Public License for more details.
98 You should have received a copy of the GNU General Public License
99 along with this program. If not, see <http://www.gnu.org/licenses/>.
104 ispell-dictionary: "american"
107 LocalWords: parsers ngettext Texinfo pdf html YYYY ZZZZ ispell american
108 LocalWords: MERCHANTABILITY