source: chapter06/bison.xml@ 1d6017e4

Last change on this file since 1d6017e4 was e6ab4b5, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Ported r7294 to r7325 from trunk to alphabetical branch.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/alphabetical/BOOK@7333 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 3.5 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-bison" role="wrap">
9 <?dbhtml filename="bison.html"?>
10
11 <title>Bison-&bison-version;</title>
12
13 <indexterm zone="ch-system-bison">
14 <primary sortas="a-Bison">Bison</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The Bison package contains a parser generator.</para>
21
22 <segmentedlist>
23 <segtitle>&buildtime;</segtitle>
24 <segtitle>&diskspace;</segtitle>
25
26 <seglistitem>
27 <seg>0.6 SBU</seg>
28 <seg>9.9 MB</seg>
29 </seglistitem>
30 </segmentedlist>
31
32 <segmentedlist>
33 <segtitle>&dependencies;</segtitle>
34
35 <seglistitem>
36 <seg>Bash, Binutils, Coreutils, Diffutils, GCC, Gettext, Glibc,
37 Grep, M4, Make, and Sed</seg>
38 </seglistitem>
39 </segmentedlist>
40
41 </sect2>
42
43 <sect2 role="installation">
44 <title>Installation of Bison</title>
45
46 <para>Prepare Bison for compilation:</para>
47
48<screen><userinput>./configure --prefix=/usr</userinput></screen>
49
50 <para>Compile the package:</para>
51
52<screen><userinput>make</userinput></screen>
53
54 <para>To test the results, issue:
55 <userinput>make check</userinput>.</para>
56
57 <para>Install the package:</para>
58
59<screen><userinput>make install</userinput></screen>
60
61 </sect2>
62
63 <sect2 id="contents-bison" role="content">
64 <title>Contents of Bison</title>
65
66 <segmentedlist>
67 <segtitle>Installed programs</segtitle>
68 <segtitle>Installed library</segtitle>
69
70 <seglistitem>
71 <seg>bison and yacc</seg>
72 <seg>liby.a</seg>
73 </seglistitem>
74 </segmentedlist>
75
76 <variablelist>
77 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
78 <?dbfo list-presentation="list"?>
79 <?dbhtml list-presentation="table"?>
80
81 <varlistentry id="bison">
82 <term><command>bison</command></term>
83 <listitem>
84 <para>Generates, from a series of rules, a program for analyzing the
85 structure of text files; Bison is a replacement for Yacc (Yet Another
86 Compiler Compiler)</para>
87 <indexterm zone="ch-system-bison bison">
88 <primary sortas="b-bison">bison</primary>
89 </indexterm>
90 </listitem>
91 </varlistentry>
92
93 <varlistentry id="yacc">
94 <term><command>yacc</command></term>
95 <listitem>
96 <para>A wrapper for <command>bison</command>, meant for programs that
97 still call <command>yacc</command> instead of <command>bison</command>;
98 it calls <command>bison</command> with the <parameter>-y</parameter>
99 option</para>
100 <indexterm zone="ch-system-bison yacc">
101 <primary sortas="b-yacc">yacc</primary>
102 </indexterm>
103 </listitem>
104 </varlistentry>
105
106 <varlistentry id="liby.a">
107 <term><filename class="libraryfile">liby.a</filename></term>
108 <listitem>
109 <para>The Yacc library containing implementations of Yacc-compatible
110 <function>yyerror</function> and <function>main</function> functions;
111 this library is normally not very useful, but POSIX requires it</para>
112 <indexterm zone="ch-system-bison liby.a">
113 <primary sortas="c-liby.a">liby.a</primary>
114 </indexterm>
115 </listitem>
116 </varlistentry>
117
118 </variablelist>
119
120 </sect2>
121
122</sect1>
Note: See TracBrowser for help on using the repository browser.