[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[9e26f63] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[673b0d8] | 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
[9e26f63] | 7 |
|
---|
[81fd230] | 8 | <sect1 id="ch-system-bison" role="wrap">
|
---|
[9e26f63] | 9 | <?dbhtml filename="bison.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>Bison-&bison-version;</title>
|
---|
| 12 |
|
---|
| 13 | <indexterm zone="ch-system-bison">
|
---|
| 14 | <primary sortas="a-Bison">Bison</primary>
|
---|
| 15 | </indexterm>
|
---|
| 16 |
|
---|
| 17 | <sect2 role="package">
|
---|
| 18 | <title/>
|
---|
[673b0d8] | 19 |
|
---|
[9e26f63] | 20 | <para>The Bison package contains a parser generator.</para>
|
---|
[6370fa6] | 21 |
|
---|
[9e26f63] | 22 | <segmentedlist>
|
---|
| 23 | <segtitle>&buildtime;</segtitle>
|
---|
| 24 | <segtitle>&diskspace;</segtitle>
|
---|
[5888299] | 25 |
|
---|
[9e26f63] | 26 | <seglistitem>
|
---|
| 27 | <seg>0.6 SBU</seg>
|
---|
| 28 | <seg>9.9 MB</seg>
|
---|
| 29 | </seglistitem>
|
---|
| 30 | </segmentedlist>
|
---|
[a001133] | 31 |
|
---|
[9e26f63] | 32 | <segmentedlist>
|
---|
| 33 | <segtitle>&dependencies;</segtitle>
|
---|
[73aedd1d] | 34 |
|
---|
[9e26f63] | 35 | <seglistitem>
|
---|
| 36 | <seg>Bash, Binutils, Coreutils, Diffutils, GCC, Gettext, Glibc,
|
---|
| 37 | Grep, M4, Make, and Sed</seg>
|
---|
| 38 | </seglistitem>
|
---|
| 39 | </segmentedlist>
|
---|
[73aedd1d] | 40 |
|
---|
[9e26f63] | 41 | </sect2>
|
---|
| 42 |
|
---|
| 43 | <sect2 role="installation">
|
---|
| 44 | <title>Installation of Bison</title>
|
---|
| 45 |
|
---|
| 46 | <para>Prepare Bison for compilation:</para>
|
---|
[73aedd1d] | 47 |
|
---|
| 48 | <screen><userinput>./configure --prefix=/usr</userinput></screen>
|
---|
| 49 |
|
---|
[9e26f63] | 50 | <para>The configure system causes bison to be built without support for
|
---|
| 51 | internationalization of error messages if a <command>bison</command>
|
---|
| 52 | program is not already in $PATH. The following addition will correct
|
---|
| 53 | this.</para>
|
---|
[2debf13] | 54 |
|
---|
[9e26f63] | 55 | <screen>echo '#define YYENABLE_NLS 1' >> config.h</screen>
|
---|
[2debf13] | 56 |
|
---|
[9e26f63] | 57 | <para>Compile the package:</para>
|
---|
[73aedd1d] | 58 |
|
---|
| 59 | <screen><userinput>make</userinput></screen>
|
---|
| 60 |
|
---|
[9e26f63] | 61 | <para>To test the results, issue:
|
---|
| 62 | <userinput>make check</userinput>.</para>
|
---|
[73aedd1d] | 63 |
|
---|
[9e26f63] | 64 | <para>Install the package:</para>
|
---|
[73aedd1d] | 65 |
|
---|
| 66 | <screen><userinput>make install</userinput></screen>
|
---|
| 67 |
|
---|
[9e26f63] | 68 | </sect2>
|
---|
| 69 |
|
---|
| 70 | <sect2 id="contents-bison" role="content">
|
---|
| 71 | <title>Contents of Bison</title>
|
---|
| 72 |
|
---|
| 73 | <segmentedlist>
|
---|
| 74 | <segtitle>Installed programs</segtitle>
|
---|
| 75 | <segtitle>Installed library</segtitle>
|
---|
| 76 |
|
---|
| 77 | <seglistitem>
|
---|
| 78 | <seg>bison and yacc</seg>
|
---|
| 79 | <seg>liby.a</seg>
|
---|
| 80 | </seglistitem>
|
---|
| 81 | </segmentedlist>
|
---|
| 82 |
|
---|
| 83 | <variablelist>
|
---|
| 84 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 85 | <?dbfo list-presentation="list"?>
|
---|
| 86 | <?dbhtml list-presentation="table"?>
|
---|
| 87 |
|
---|
| 88 | <varlistentry id="bison">
|
---|
| 89 | <term><command>bison</command></term>
|
---|
| 90 | <listitem>
|
---|
| 91 | <para>Generates, from a series of rules, a program for analyzing the
|
---|
| 92 | structure of text files; Bison is a replacement for Yacc (Yet Another
|
---|
| 93 | Compiler Compiler)</para>
|
---|
| 94 | <indexterm zone="ch-system-bison bison">
|
---|
| 95 | <primary sortas="b-bison">bison</primary>
|
---|
| 96 | </indexterm>
|
---|
| 97 | </listitem>
|
---|
| 98 | </varlistentry>
|
---|
| 99 |
|
---|
| 100 | <varlistentry id="yacc">
|
---|
| 101 | <term><command>yacc</command></term>
|
---|
| 102 | <listitem>
|
---|
| 103 | <para>A wrapper for <command>bison</command>, meant for programs that
|
---|
| 104 | still call <command>yacc</command> instead of <command>bison</command>;
|
---|
| 105 | it calls <command>bison</command> with the <parameter>-y</parameter>
|
---|
| 106 | option</para>
|
---|
| 107 | <indexterm zone="ch-system-bison yacc">
|
---|
| 108 | <primary sortas="b-yacc">yacc</primary>
|
---|
| 109 | </indexterm>
|
---|
| 110 | </listitem>
|
---|
| 111 | </varlistentry>
|
---|
| 112 |
|
---|
| 113 | <varlistentry id="liby.a">
|
---|
| 114 | <term><filename class="libraryfile">liby.a</filename></term>
|
---|
| 115 | <listitem>
|
---|
| 116 | <para>The Yacc library containing implementations of Yacc-compatible
|
---|
| 117 | <function>yyerror</function> and <function>main</function> functions;
|
---|
| 118 | this library is normally not very useful, but POSIX requires it</para>
|
---|
| 119 | <indexterm zone="ch-system-bison liby.a">
|
---|
| 120 | <primary sortas="c-liby.a">liby.a</primary>
|
---|
| 121 | </indexterm>
|
---|
| 122 | </listitem>
|
---|
| 123 | </varlistentry>
|
---|
| 124 |
|
---|
| 125 | </variablelist>
|
---|
| 126 |
|
---|
| 127 | </sect2>
|
---|
[673b0d8] | 128 |
|
---|
| 129 | </sect1>
|
---|