Subversion Repositories svn LFS-FR

Rev

Blame | Last modification | View Log | RSS feed

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
 <!ENTITY % general-entities SYSTEM "../../general.ent">
  %general-entities;
]>

<sect1 id="ch-system-bison" role="wrap">
  <?dbhtml filename="bison.html"?>

  <title>Bison-&bison-version;</title>

  <indexterm zone="ch-system-bison">
    <primary sortas="a-Bison">Bison</primary>
  </indexterm>

  <sect2 role="package">
    <title/>

    <para>The Bison package contains a parser generator.</para>

  </sect2>

  &env-target;

  <sect2 role="installation">
    <title>Installation of Bison</title>

    <para os="a">Prepare Bison for compilation:</para>

<screen os="b"><userinput>./configure --build=${CLFS_HOST} --host=${CLFS_TARGET} \
    --prefix=/usr</userinput></screen>

    <para os="b1">The configure system causes Bison to be built without support
    for internationalization of error messages if a <command>bison</command>
    program is not already in ${PATH}.  The following addition will correct
    this:</para>

<screen os="b2"><userinput>cat &gt;&gt; config.h &lt;&lt; "EOF"
#define YYENABLE_NLS 1
EOF</userinput></screen>  

    <para os="c">Compile the package:</para>

<screen os="d"><userinput>make</userinput></screen>

    <para os="e">Install the package:</para>

<screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen>

  </sect2>

  <sect2 id="contents-bison" role="content">
    <title>Contents of Bison</title>

    <segmentedlist>
      <segtitle>Installed programs</segtitle>
      <segtitle>Installed library</segtitle>

      <seglistitem>
        <seg>bison and yacc</seg>
        <seg>liby.a</seg>
      </seglistitem>
    </segmentedlist>

    <variablelist>
      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
      <?dbfo list-presentation="list"?>
      <?dbhtml list-presentation="table"?>

      <varlistentry id="bison">
        <term><command>bison</command></term>
        <listitem>
          <para>Generates, from a series of rules, a program for analyzing
          the structure of text files; Bison is a replacement for Yacc (Yet
          Another Compiler Compiler)</para>
          <indexterm zone="ch-system-bison bison">
            <primary sortas="b-bison">bison</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="yacc">
        <term><command>yacc</command></term>
        <listitem>
          <para>A wrapper for <command>bison</command>, meant for programs that
          still call <command>yacc</command> instead of <command>bison</command>;
          it calls <command>bison</command> with the <option>-y</option>
          option</para>
          <indexterm zone="ch-system-bison yacc">
            <primary sortas="b-yacc">yacc</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="liby.a">
        <term><filename class="libraryfile">liby.a</filename></term>
        <listitem>
          <para>The Yacc library containing implementations of Yacc-compatible
          <emphasis>yyerror</emphasis> and <emphasis>main</emphasis> functions;
          this library is normally not very useful, but POSIX requires it</para>
          <indexterm zone="ch-system-bison liby.a">
            <primary sortas="c-liby.a">liby.a</primary>
          </indexterm>
        </listitem>
      </varlistentry>

    </variablelist>

  </sect2>

</sect1>