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