[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 4 | %general-entities;
|
---|
| 5 | ]>
|
---|
[a001133] | 6 | <sect1 id="ch-system-bison" xreflabel="Bison" role="wrap">
|
---|
[673b0d8] | 7 | <title>Bison-&bison-version;</title>
|
---|
| 8 | <?dbhtml filename="bison.html"?>
|
---|
| 9 |
|
---|
| 10 | <indexterm zone="ch-system-bison"><primary sortas="a-Bison">Bison</primary></indexterm>
|
---|
[6370fa6] | 11 |
|
---|
[a001133] | 12 | <sect2 role="package"><title/>
|
---|
[5888299] | 13 | <para>The Bison package contains a parser generator.</para>
|
---|
| 14 |
|
---|
[a001133] | 15 | <segmentedlist>
|
---|
| 16 | <segtitle>&buildtime;</segtitle>
|
---|
| 17 | <segtitle>&diskspace;</segtitle>
|
---|
| 18 | <seglistitem><seg>0.6 SBU</seg><seg>10.6 MB</seg></seglistitem>
|
---|
| 19 | </segmentedlist>
|
---|
| 20 |
|
---|
| 21 | <segmentedlist>
|
---|
| 22 | <segtitle>Bison installation depends on</segtitle>
|
---|
| 23 | <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
|
---|
| 24 | GCC, Gettext, Glibc, Grep, M4, Make, Sed</seg></seglistitem>
|
---|
| 25 | </segmentedlist>
|
---|
| 26 | </sect2>
|
---|
[73aedd1d] | 27 |
|
---|
[a001133] | 28 | <sect2 role="installation">
|
---|
[73aedd1d] | 29 | <title>Installation of Bison</title>
|
---|
| 30 |
|
---|
[9dfc02f] | 31 | <para>Prepare Bison for compilation:</para>
|
---|
[73aedd1d] | 32 |
|
---|
| 33 | <screen><userinput>./configure --prefix=/usr</userinput></screen>
|
---|
| 34 |
|
---|
| 35 | <para>Compile the package:</para>
|
---|
| 36 |
|
---|
| 37 | <screen><userinput>make</userinput></screen>
|
---|
| 38 |
|
---|
[673b0d8] | 39 | <para>To test the results, issue:
|
---|
[8a5f906] | 40 | <userinput>make check</userinput>.</para>
|
---|
[73aedd1d] | 41 |
|
---|
[673b0d8] | 42 | <para>Now install the package:</para>
|
---|
[73aedd1d] | 43 |
|
---|
| 44 | <screen><userinput>make install</userinput></screen>
|
---|
| 45 |
|
---|
| 46 | </sect2>
|
---|
[6370fa6] | 47 |
|
---|
[5888299] | 48 |
|
---|
[c6cb3aa] | 49 | <sect2 id="contents-bison" role="content"><title>Contents of Bison</title>
|
---|
[673b0d8] | 50 |
|
---|
[c6cb3aa] | 51 | <segmentedlist>
|
---|
| 52 | <segtitle>Installed programs</segtitle>
|
---|
| 53 | <segtitle>Installed library</segtitle>
|
---|
| 54 | <seglistitem><seg>bison and yacc</seg><seg>liby.a</seg></seglistitem>
|
---|
| 55 | </segmentedlist>
|
---|
[673b0d8] | 56 |
|
---|
[c6cb3aa] | 57 | <variablelist><title>Short descriptions</title>
|
---|
[6370fa6] | 58 |
|
---|
[b8a819f] | 59 | <varlistentry id="bison">
|
---|
| 60 | <term><command>bison</command></term>
|
---|
[c6cb3aa] | 61 | <listitem>
|
---|
[673b0d8] | 62 | <indexterm zone="ch-system-bison bison"><primary sortas="b-bison">bison</primary></indexterm>
|
---|
[c6cb3aa] | 63 | <para>generates, from a series of rules, a program
|
---|
[3c928f1] | 64 | for analyzing the structure of text files. <command>bison</command> is a replacement for <command>yacc</command>
|
---|
[673b0d8] | 65 | (Yet Another Compiler Compiler).</para>
|
---|
[c6cb3aa] | 66 | </listitem>
|
---|
| 67 | </varlistentry>
|
---|
[673b0d8] | 68 |
|
---|
[b8a819f] | 69 | <varlistentry id="yacc">
|
---|
| 70 | <term><command>yacc</command></term>
|
---|
[c6cb3aa] | 71 | <listitem>
|
---|
[673b0d8] | 72 | <indexterm zone="ch-system-bison yacc"><primary sortas="b-yacc">yacc</primary></indexterm>
|
---|
[3c928f1] | 73 | <para>is a wrapper for <command>bison</command>, meant for programs
|
---|
| 74 | that still call <command>yacc</command> instead of <command>bison</command>.
|
---|
| 75 | It calls <command>bison</command> with the <parameter>-y</parameter> option.</para>
|
---|
[c6cb3aa] | 76 | </listitem>
|
---|
| 77 | </varlistentry>
|
---|
[673b0d8] | 78 |
|
---|
[b8a819f] | 79 | <varlistentry id="liby.a">
|
---|
[e63529b] | 80 | <term><filename class="libraryfile">liby.a</filename></term>
|
---|
[c6cb3aa] | 81 | <listitem>
|
---|
[673b0d8] | 82 | <indexterm zone="ch-system-bison liby.a"><primary sortas="c-liby.a">liby.a</primary></indexterm>
|
---|
[c6cb3aa] | 83 | <para>is the Yacc library containing
|
---|
[673b0d8] | 84 | implementations of Yacc-compatible yyerror and main functions. This library
|
---|
| 85 | is normally not very useful, but POSIX requires it.</para>
|
---|
[c6cb3aa] | 86 | </listitem>
|
---|
| 87 | </varlistentry>
|
---|
| 88 | </variablelist>
|
---|
[673b0d8] | 89 |
|
---|
| 90 | </sect2>
|
---|
| 91 |
|
---|
| 92 | </sect1>
|
---|