source: BOOK/final-system/common/bison.xml@ 1ad19d5

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 1ad19d5 was e1153ea, checked in by Jim Gifford <clfs@…>, 19 years ago

r3371@server (orig r1554): chris | 2006-05-10 14:03:44 -0700
Removed dependency info from individual package instructions

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