[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[e6ab4b5] | 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 | ]>
|
---|
[e6ab4b5] | 7 |
|
---|
[81fd230] | 8 | <sect1 id="ch-system-bison" role="wrap">
|
---|
[e6ab4b5] | 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 |
|
---|
[e6ab4b5] | 20 | <para>The Bison package contains a parser generator.</para>
|
---|
[6370fa6] | 21 |
|
---|
[e6ab4b5] | 22 | <segmentedlist>
|
---|
| 23 | <segtitle>&buildtime;</segtitle>
|
---|
| 24 | <segtitle>&diskspace;</segtitle>
|
---|
[5888299] | 25 |
|
---|
[e6ab4b5] | 26 | <seglistitem>
|
---|
| 27 | <seg>0.6 SBU</seg>
|
---|
| 28 | <seg>9.9 MB</seg>
|
---|
| 29 | </seglistitem>
|
---|
| 30 | </segmentedlist>
|
---|
[a001133] | 31 |
|
---|
[e6ab4b5] | 32 | <segmentedlist>
|
---|
| 33 | <segtitle>&dependencies;</segtitle>
|
---|
[73aedd1d] | 34 |
|
---|
[e6ab4b5] | 35 | <seglistitem>
|
---|
| 36 | <seg>Bash, Binutils, Coreutils, Diffutils, GCC, Gettext, Glibc,
|
---|
| 37 | Grep, M4, Make, and Sed</seg>
|
---|
| 38 | </seglistitem>
|
---|
| 39 | </segmentedlist>
|
---|
[73aedd1d] | 40 |
|
---|
[e6ab4b5] | 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 |
|
---|
[e6ab4b5] | 50 | <para>Compile the package:</para>
|
---|
[73aedd1d] | 51 |
|
---|
| 52 | <screen><userinput>make</userinput></screen>
|
---|
| 53 |
|
---|
[e6ab4b5] | 54 | <para>To test the results, issue:
|
---|
| 55 | <userinput>make check</userinput>.</para>
|
---|
[73aedd1d] | 56 |
|
---|
[e6ab4b5] | 57 | <para>Install the package:</para>
|
---|
[73aedd1d] | 58 |
|
---|
| 59 | <screen><userinput>make install</userinput></screen>
|
---|
| 60 |
|
---|
[e6ab4b5] | 61 | </sect2>
|
---|
| 62 |
|
---|
| 63 | <sect2 id="contents-bison" role="content">
|
---|
| 64 | <title>Contents of Bison</title>
|
---|
| 65 |
|
---|
| 66 | <segmentedlist>
|
---|
| 67 | <segtitle>Installed programs</segtitle>
|
---|
| 68 | <segtitle>Installed library</segtitle>
|
---|
| 69 |
|
---|
| 70 | <seglistitem>
|
---|
| 71 | <seg>bison and yacc</seg>
|
---|
| 72 | <seg>liby.a</seg>
|
---|
| 73 | </seglistitem>
|
---|
| 74 | </segmentedlist>
|
---|
| 75 |
|
---|
| 76 | <variablelist>
|
---|
| 77 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 78 | <?dbfo list-presentation="list"?>
|
---|
| 79 | <?dbhtml list-presentation="table"?>
|
---|
| 80 |
|
---|
| 81 | <varlistentry id="bison">
|
---|
| 82 | <term><command>bison</command></term>
|
---|
| 83 | <listitem>
|
---|
| 84 | <para>Generates, from a series of rules, a program for analyzing the
|
---|
| 85 | structure of text files; Bison is a replacement for Yacc (Yet Another
|
---|
| 86 | Compiler Compiler)</para>
|
---|
| 87 | <indexterm zone="ch-system-bison bison">
|
---|
| 88 | <primary sortas="b-bison">bison</primary>
|
---|
| 89 | </indexterm>
|
---|
| 90 | </listitem>
|
---|
| 91 | </varlistentry>
|
---|
| 92 |
|
---|
| 93 | <varlistentry id="yacc">
|
---|
| 94 | <term><command>yacc</command></term>
|
---|
| 95 | <listitem>
|
---|
| 96 | <para>A wrapper for <command>bison</command>, meant for programs that
|
---|
| 97 | still call <command>yacc</command> instead of <command>bison</command>;
|
---|
| 98 | it calls <command>bison</command> with the <parameter>-y</parameter>
|
---|
| 99 | option</para>
|
---|
| 100 | <indexterm zone="ch-system-bison yacc">
|
---|
| 101 | <primary sortas="b-yacc">yacc</primary>
|
---|
| 102 | </indexterm>
|
---|
| 103 | </listitem>
|
---|
| 104 | </varlistentry>
|
---|
| 105 |
|
---|
| 106 | <varlistentry id="liby.a">
|
---|
| 107 | <term><filename class="libraryfile">liby.a</filename></term>
|
---|
| 108 | <listitem>
|
---|
| 109 | <para>The Yacc library containing implementations of Yacc-compatible
|
---|
| 110 | <function>yyerror</function> and <function>main</function> functions;
|
---|
| 111 | this library is normally not very useful, but POSIX requires it</para>
|
---|
| 112 | <indexterm zone="ch-system-bison liby.a">
|
---|
| 113 | <primary sortas="c-liby.a">liby.a</primary>
|
---|
| 114 | </indexterm>
|
---|
| 115 | </listitem>
|
---|
| 116 | </varlistentry>
|
---|
| 117 |
|
---|
| 118 | </variablelist>
|
---|
| 119 |
|
---|
| 120 | </sect2>
|
---|
[673b0d8] | 121 |
|
---|
| 122 | </sect1>
|
---|