Files
LFS_Book/chapter06/bison.xml
Anton Maisak 8378a293bb SYNC
Revision: 11459
Author: bdubbs
Date: 1 сентября 2018 г. 22:12:51
Message:
Trivial text corrections
----
Modified : /trunk/BOOK/appendices/dependencies.xml
Modified : /trunk/BOOK/chapter01/whatsnew.xml
2018-09-02 11:59:51 +03:00

125 lines
4.7 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="UTF-8"?>
<!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"?>
<sect1info condition="script">
<productname>bison</productname>
<productnumber>&bison-version;</productnumber>
<address>&bison-url;</address>
</sect1info>
<title>Bison-&bison-version;</title>
<indexterm zone="ch-system-bison">
<primary sortas="a-Bison">Bison</primary>
</indexterm>
<sect2 role="package">
<title/>
<para>Пакет содержит GNU версию yacc (Ещё один компилятор компиляторов) необходимый для сборки некоторых пакетов LFS системы.</para>
<segmentedlist>
<segtitle>&buildtime;</segtitle>
<segtitle>&diskspace;</segtitle>
<seglistitem>
<seg>&bison-ch6-sbu;</seg>
<seg>&bison-ch6-du;</seg>
</seglistitem>
</segmentedlist>
</sect2>
<sect2 role="installation">
<title>Установка пакета Bison</title>
<para>Подготовьте пакет Bison к компиляции:</para>
<screen><userinput remap="configure">./configure --prefix=/usr --docdir=/usr/share/doc/bison-&bison-version;</userinput></screen>
<para>Скомпилируйте пакет:</para>
<screen><userinput remap="make">make</userinput></screen>
<!--
<para>Для выполнения тестов (about 2.2 SBU), выполните следующую команду:</para>
<screen><userinput remap="test">make check</userinput></screen>
-->
<para>Есть циклическая зависимость между bison и flex при проверке. При желании, после установки пакета flex в следующем разделе,
bison можно пересобрать и наборы тестов можно будет запустить командой <command>make check</command>.</para>
<para>Установите пакет:</para>
<screen><userinput remap="install">make install</userinput></screen>
</sect2>
<sect2 id="contents-bison" role="content">
<title>Содержимое пакета Bison</title>
<segmentedlist>
<segtitle>Установленные программы</segtitle>
<segtitle>Установленная библиотека</segtitle>
<segtitle>Каталог установки</segtitle>
<seglistitem>
<seg>bison and yacc</seg>
<seg>liby.a</seg>
<seg>/usr/share/bison</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Краткое описание</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="bison">
<term><command>bison</command></term>
<listitem>
<para>Генерирует из набора правил программу для анализа
структуры текстовых файлов. Bison является заменой Yacc (еще один
компилятор компиляторов )</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>Обертка для<command>bison</command>,предназначенная для программ, которые
все еще вызывают <command>yacc</command> вместо <command>bison</command>;
она вызывает <command>bison</command>с аргументом <parameter>-y</parameter>
</para>
<indexterm zone="ch-system-bison yacc">
<primary sortas="b-yacc">yacc</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="liby">
<term><filename class="libraryfile">liby</filename></term>
<listitem>
<para>Библиотека Yacc содержит реализацию Yacc-совместимых функций <function>yyerror</function> и <function>main</function>; Эта библиотека обычно не очень полезна, но POSIX требует её</para>
<indexterm zone="ch-system-bison liby">
<primary sortas="c-liby">liby</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>