[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[1770019] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[673b0d8] | 3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 4 | %general-entities;
|
---|
| 5 | ]>
|
---|
[81fd230] | 6 | <sect1 id="ch-system-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/>
|
---|
[81fd230] | 13 | <para>The Bison package contains a parser generator.</para>
|
---|
[5888299] | 14 |
|
---|
[a001133] | 15 | <segmentedlist>
|
---|
| 16 | <segtitle>&buildtime;</segtitle>
|
---|
| 17 | <segtitle>&diskspace;</segtitle>
|
---|
[fc1024a] | 18 | <seglistitem><seg>0.6 SBU</seg><seg>9.9 MB</seg></seglistitem>
|
---|
[a001133] | 19 | </segmentedlist>
|
---|
| 20 |
|
---|
[81fd230] | 21 | <segmentedlist>
|
---|
[45992ae] | 22 | <segtitle>&dependencies;</segtitle>
|
---|
[81fd230] | 23 | <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
|
---|
| 24 | GCC, Gettext, Glibc, Grep, M4, Make, and Sed</seg></seglistitem>
|
---|
| 25 | </segmentedlist>
|
---|
[a001133] | 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 |
|
---|
[81fd230] | 42 | <para>Install the package:</para>
|
---|
[73aedd1d] | 43 |
|
---|
| 44 | <screen><userinput>make install</userinput></screen>
|
---|
| 45 |
|
---|
| 46 | </sect2>
|
---|
[6370fa6] | 47 |
|
---|
[c6cb3aa] | 48 | <sect2 id="contents-bison" role="content"><title>Contents of Bison</title>
|
---|
[673b0d8] | 49 |
|
---|
[81fd230] | 50 | <segmentedlist>
|
---|
| 51 | <segtitle>Installed programs</segtitle>
|
---|
| 52 | <segtitle>Installed library</segtitle>
|
---|
| 53 | <seglistitem><seg>bison and yacc</seg><seg>liby.a</seg></seglistitem>
|
---|
| 54 | </segmentedlist>
|
---|
| 55 |
|
---|
| 56 | <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 57 | <?dbfo list-presentation="list"?>
|
---|
[8f97096] | 58 | <?dbhtml list-presentation="table"?>
|
---|
[81fd230] | 59 |
|
---|
| 60 | <varlistentry id="bison">
|
---|
| 61 | <term><command>bison</command></term>
|
---|
| 62 | <listitem>
|
---|
[c5ec23b] | 63 | <para>Generates, from a series of rules, a program for analyzing the structure
|
---|
| 64 | of text files; Bison is a replacement for Yacc (Yet Another Compiler
|
---|
[81fd230] | 65 | Compiler)</para>
|
---|
| 66 | <indexterm zone="ch-system-bison bison"><primary sortas="b-bison">bison</primary></indexterm>
|
---|
| 67 | </listitem>
|
---|
| 68 | </varlistentry>
|
---|
| 69 |
|
---|
| 70 | <varlistentry id="yacc">
|
---|
| 71 | <term><command>yacc</command></term>
|
---|
| 72 | <listitem>
|
---|
[74a8136] | 73 | <para>A wrapper for <command>bison</command>, meant for programs
|
---|
[81fd230] | 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>
|
---|
| 76 | <indexterm zone="ch-system-bison yacc"><primary sortas="b-yacc">yacc</primary></indexterm>
|
---|
| 77 | </listitem>
|
---|
| 78 | </varlistentry>
|
---|
| 79 |
|
---|
| 80 | <varlistentry id="liby.a">
|
---|
| 81 | <term><filename class="libraryfile">liby.a</filename></term>
|
---|
| 82 | <listitem>
|
---|
[74a8136] | 83 | <para>The Yacc library containing implementations of Yacc-compatible
|
---|
[81fd230] | 84 | <emphasis>yyerror</emphasis> and <emphasis>main</emphasis> functions;
|
---|
| 85 | this library is normally not very useful, but POSIX requires
|
---|
| 86 | it</para>
|
---|
| 87 | <indexterm zone="ch-system-bison liby.a"><primary sortas="c-liby.a">liby.a</primary></indexterm>
|
---|
| 88 | </listitem>
|
---|
| 89 | </varlistentry>
|
---|
| 90 | </variablelist>
|
---|
[673b0d8] | 91 |
|
---|
| 92 | </sect2>
|
---|
| 93 |
|
---|
| 94 | </sect1>
|
---|
[81fd230] | 95 |
|
---|