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 | </sect2>
|
---|
23 |
|
---|
24 | <sect2 role="installation">
|
---|
25 | <title>Installation of Bison</title>
|
---|
26 |
|
---|
27 | <para os="a">Prepare Bison for compilation:</para>
|
---|
28 |
|
---|
29 | <screen os="b"><userinput>./configure --build=${CLFS_HOST} --host=${CLFS_TARGET} \
|
---|
30 | --prefix=/usr</userinput></screen>
|
---|
31 |
|
---|
32 | <para os="b1">The configure system causes Bison to be built without support
|
---|
33 | for internationalization of error messages if a <command>bison</command>
|
---|
34 | program is not already in ${PATH}. The following addition will correct
|
---|
35 | this:</para>
|
---|
36 |
|
---|
37 | <screen os="b2"><userinput>echo '#define YYENABLE_NLS 1' >> config.h</userinput></screen>
|
---|
38 |
|
---|
39 | <para os="c">Compile the package:</para>
|
---|
40 |
|
---|
41 | <screen os="d"><userinput>make</userinput></screen>
|
---|
42 |
|
---|
43 | <para os="e">Install the package:</para>
|
---|
44 |
|
---|
45 | <screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
|
---|
46 |
|
---|
47 | </sect2>
|
---|
48 |
|
---|
49 | <sect2 id="contents-bison" role="content">
|
---|
50 | <title>Contents of Bison</title>
|
---|
51 |
|
---|
52 | <segmentedlist>
|
---|
53 | <segtitle>Installed programs</segtitle>
|
---|
54 | <segtitle>Installed library</segtitle>
|
---|
55 |
|
---|
56 | <seglistitem>
|
---|
57 | <seg>bison and yacc</seg>
|
---|
58 | <seg>liby.a</seg>
|
---|
59 | </seglistitem>
|
---|
60 | </segmentedlist>
|
---|
61 |
|
---|
62 | <variablelist>
|
---|
63 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
64 | <?dbfo list-presentation="list"?>
|
---|
65 | <?dbhtml list-presentation="table"?>
|
---|
66 |
|
---|
67 | <varlistentry id="bison">
|
---|
68 | <term><command>bison</command></term>
|
---|
69 | <listitem>
|
---|
70 | <para>Generates, from a series of rules, a program for analyzing
|
---|
71 | the structure of text files; Bison is a replacement for Yacc (Yet
|
---|
72 | Another Compiler Compiler)</para>
|
---|
73 | <indexterm zone="ch-system-bison bison">
|
---|
74 | <primary sortas="b-bison">bison</primary>
|
---|
75 | </indexterm>
|
---|
76 | </listitem>
|
---|
77 | </varlistentry>
|
---|
78 |
|
---|
79 | <varlistentry id="yacc">
|
---|
80 | <term><command>yacc</command></term>
|
---|
81 | <listitem>
|
---|
82 | <para>A wrapper for <command>bison</command>, meant for programs that
|
---|
83 | still call <command>yacc</command> instead of <command>bison</command>;
|
---|
84 | it calls <command>bison</command> with the <option>-y</option>
|
---|
85 | option</para>
|
---|
86 | <indexterm zone="ch-system-bison yacc">
|
---|
87 | <primary sortas="b-yacc">yacc</primary>
|
---|
88 | </indexterm>
|
---|
89 | </listitem>
|
---|
90 | </varlistentry>
|
---|
91 |
|
---|
92 | <varlistentry id="liby.a">
|
---|
93 | <term><filename class="libraryfile">liby.a</filename></term>
|
---|
94 | <listitem>
|
---|
95 | <para>The Yacc library containing implementations of Yacc-compatible
|
---|
96 | <emphasis>yyerror</emphasis> and <emphasis>main</emphasis> functions;
|
---|
97 | this library is normally not very useful, but POSIX requires it</para>
|
---|
98 | <indexterm zone="ch-system-bison liby.a">
|
---|
99 | <primary sortas="c-liby.a">liby.a</primary>
|
---|
100 | </indexterm>
|
---|
101 | </listitem>
|
---|
102 | </varlistentry>
|
---|
103 |
|
---|
104 | </variablelist>
|
---|
105 |
|
---|
106 | </sect2>
|
---|
107 |
|
---|
108 | </sect1>
|
---|