lfs-ru/chapter08/bison.xml
2023-05-24 11:00:49 +05:00

122 lines
4.1 KiB
XML
Raw 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>Пакет Bison содержит генератор синтаксического анализа.</para>
<segmentedlist>
<segtitle>&buildtime;</segtitle>
<segtitle>&diskspace;</segtitle>
<seglistitem>
<seg>&bison-fin-sbu;</seg>
<seg>&bison-fin-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>Для тестирования пакета (около 5,5 SBU), выполните:</para>
<screen><userinput remap="test">make check</userinput></screen>
<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 и 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 (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>Обертка для <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>