1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE section [
|
---|
3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
4 | %general-entities;
|
---|
5 | ]>
|
---|
6 | <section xmlns="http://docbook.org/docbook-ng"
|
---|
7 | xml:id="ch-system-bison" xreflabel="Bison" role="wrap">
|
---|
8 | <info><title>Bison-&bison-version;</title></info>
|
---|
9 | <?dbhtml filename="bison.html"?>
|
---|
10 |
|
---|
11 | <indexterm zone="ch-system-bison"><primary sortas="a-Bison">Bison</primary></indexterm>
|
---|
12 |
|
---|
13 | <section role="package"><info><title/></info>
|
---|
14 | <para>The Bison package contains a parser generator.</para>
|
---|
15 |
|
---|
16 | <segmentedlist>
|
---|
17 | <segtitle>&buildtime;</segtitle>
|
---|
18 | <segtitle>&diskspace;</segtitle>
|
---|
19 | <seglistitem><seg>0.6 SBU</seg><seg>10.6 MB</seg></seglistitem>
|
---|
20 | </segmentedlist>
|
---|
21 |
|
---|
22 | <segmentedlist>
|
---|
23 | <segtitle>Bison installation depends on</segtitle>
|
---|
24 | <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
|
---|
25 | GCC, Gettext, Glibc, Grep, M4, Make, Sed</seg></seglistitem>
|
---|
26 | </segmentedlist>
|
---|
27 | </section>
|
---|
28 |
|
---|
29 | <section role="installation">
|
---|
30 | <info><title>Installation of Bison</title></info>
|
---|
31 |
|
---|
32 | <para>Prepare Bison for compilation:</para>
|
---|
33 |
|
---|
34 | <screen><userinput>./configure --prefix=/usr</userinput></screen>
|
---|
35 |
|
---|
36 | <para>Compile the package:</para>
|
---|
37 |
|
---|
38 | <screen><userinput>make</userinput></screen>
|
---|
39 |
|
---|
40 | <para>To test the results, issue:
|
---|
41 | <userinput>make check</userinput>.</para>
|
---|
42 |
|
---|
43 | <para>Now install the package:</para>
|
---|
44 |
|
---|
45 | <screen><userinput>make install</userinput></screen>
|
---|
46 |
|
---|
47 | </section>
|
---|
48 |
|
---|
49 |
|
---|
50 | <section xml:id="contents-bison" role="content"><info><title>Contents of Bison</title></info>
|
---|
51 |
|
---|
52 | <segmentedlist>
|
---|
53 | <segtitle>Installed programs</segtitle>
|
---|
54 | <segtitle>Installed library</segtitle>
|
---|
55 | <seglistitem><seg>bison and yacc</seg><seg>liby.a</seg></seglistitem>
|
---|
56 | </segmentedlist>
|
---|
57 |
|
---|
58 | <variablelist><title>Short descriptions</title>
|
---|
59 |
|
---|
60 | <varlistentry xml:id="bison">
|
---|
61 | <term><command>bison</command></term>
|
---|
62 | <listitem>
|
---|
63 | <indexterm zone="ch-system-bison bison"><primary sortas="b-bison">bison</primary></indexterm>
|
---|
64 | <para>generates, from a series of rules, a program
|
---|
65 | for analyzing the structure of text files. <command>bison</command> is a replacement for <command>yacc</command>
|
---|
66 | (Yet Another Compiler Compiler).</para>
|
---|
67 | </listitem>
|
---|
68 | </varlistentry>
|
---|
69 |
|
---|
70 | <varlistentry xml:id="yacc">
|
---|
71 | <term><command>yacc</command></term>
|
---|
72 | <listitem>
|
---|
73 | <indexterm zone="ch-system-bison yacc"><primary sortas="b-yacc">yacc</primary></indexterm>
|
---|
74 | <para>is a wrapper for <command>bison</command>, meant for programs
|
---|
75 | that still call <command>yacc</command> instead of <command>bison</command>.
|
---|
76 | It calls <command>bison</command> with the <parameter>-y</parameter> option.</para>
|
---|
77 | </listitem>
|
---|
78 | </varlistentry>
|
---|
79 |
|
---|
80 | <varlistentry xml:id="liby.a">
|
---|
81 | <term><filename class="libraryfile">liby.a</filename></term>
|
---|
82 | <listitem>
|
---|
83 | <indexterm zone="ch-system-bison liby.a"><primary sortas="c-liby.a">liby.a</primary></indexterm>
|
---|
84 | <para>is the Yacc library containing
|
---|
85 | implementations of Yacc-compatible yyerror and main functions. This library
|
---|
86 | is normally not very useful, but POSIX requires it.</para>
|
---|
87 | </listitem>
|
---|
88 | </varlistentry>
|
---|
89 | </variablelist>
|
---|
90 |
|
---|
91 | </section>
|
---|
92 |
|
---|
93 | </section>
|
---|