source: chapter06/bison.xml@ b06ca36

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since b06ca36 was b06ca36, checked in by Manuel Canales Esparcia <manuel@…>, 17 years ago

Updated book sources to use DocBook-XML DTD 4.5

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

  • Property mode set to 100644
File size: 3.6 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/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>&bison-ch6-sbu;</seg>
28 <seg>&bison-ch6-du;</seg>
29 </seglistitem>
30 </segmentedlist>
31
32 </sect2>
33
34 <sect2 role="installation">
35 <title>Installation of Bison</title>
36
37 <para>Prepare Bison for compilation:</para>
38
39<screen><userinput>./configure --prefix=/usr</userinput></screen>
40
41 <para>The configure system causes bison to be built without support for
42 internationalization of error messages if a <command>bison</command>
43 program is not already in $PATH. The following addition will correct
44 this.</para>
45
46<screen><userinput>echo '#define YYENABLE_NLS 1' &gt;&gt; config.h</userinput></screen>
47
48 <para>Compile the package:</para>
49
50<screen><userinput>make</userinput></screen>
51
52 <para>To test the results, issue:
53 <userinput>make check</userinput>.</para>
54
55 <para>Install the package:</para>
56
57<screen><userinput>make install</userinput></screen>
58
59 </sect2>
60
61 <sect2 id="contents-bison" role="content">
62 <title>Contents of Bison</title>
63
64 <segmentedlist>
65 <segtitle>Installed programs</segtitle>
66 <segtitle>Installed library</segtitle>
67
68 <seglistitem>
69 <seg>bison and yacc</seg>
70 <seg>liby.a</seg>
71 </seglistitem>
72 </segmentedlist>
73
74 <variablelist>
75 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
76 <?dbfo list-presentation="list"?>
77 <?dbhtml list-presentation="table"?>
78
79 <varlistentry id="bison">
80 <term><command>bison</command></term>
81 <listitem>
82 <para>Generates, from a series of rules, a program for analyzing the
83 structure of text files; Bison is a replacement for Yacc (Yet Another
84 Compiler Compiler)</para>
85 <indexterm zone="ch-system-bison bison">
86 <primary sortas="b-bison">bison</primary>
87 </indexterm>
88 </listitem>
89 </varlistentry>
90
91 <varlistentry id="yacc">
92 <term><command>yacc</command></term>
93 <listitem>
94 <para>A wrapper for <command>bison</command>, meant for programs that
95 still call <command>yacc</command> instead of <command>bison</command>;
96 it calls <command>bison</command> with the <parameter>-y</parameter>
97 option</para>
98 <indexterm zone="ch-system-bison yacc">
99 <primary sortas="b-yacc">yacc</primary>
100 </indexterm>
101 </listitem>
102 </varlistentry>
103
104 <varlistentry id="liby.a">
105 <term><filename class="libraryfile">liby.a</filename></term>
106 <listitem>
107 <para>The Yacc library containing implementations of Yacc-compatible
108 <function>yyerror</function> and <function>main</function> functions;
109 this library is normally not very useful, but POSIX requires it</para>
110 <indexterm zone="ch-system-bison liby.a">
111 <primary sortas="c-liby.a">liby.a</primary>
112 </indexterm>
113 </listitem>
114 </varlistentry>
115
116 </variablelist>
117
118 </sect2>
119
120</sect1>
Note: See TracBrowser for help on using the repository browser.