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