Changeset fcc02767 for chapter06/bison.xml
- Timestamp:
- 06/07/2020 08:16:00 PM (4 years ago)
- Branches:
- 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, 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
- Children:
- 595ff03
- Parents:
- d53fefa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/bison.xml
rd53fefa rfcc02767 6 6 ]> 7 7 8 <sect1 id="ch- system-bison" role="wrap">8 <sect1 id="ch-tools-bison" role="wrap"> 9 9 <?dbhtml filename="bison.html"?> 10 10 … … 17 17 <title>Bison-&bison-version;</title> 18 18 19 <indexterm zone="ch- system-bison">19 <indexterm zone="ch-tools-bison"> 20 20 <primary sortas="a-Bison">Bison</primary> 21 <secondary>tools</secondary> 21 22 </indexterm> 22 23 … … 24 25 <title/> 25 26 26 <para>The Bison package contains a parser generator.</para> 27 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 28 href="../chapter08/bison.xml" 29 xpointer="xpointer(/sect1/sect2[1]/para[1])"/> 27 30 28 31 <segmentedlist> … … 31 34 32 35 <seglistitem> 33 <seg>&bison-ch 6-sbu;</seg>34 <seg>&bison-ch 6-du;</seg>36 <seg>&bison-ch5-sbu;</seg> 37 <seg>&bison-ch5-du;</seg> 35 38 </seglistitem> 36 39 </segmentedlist> … … 40 43 <sect2 role="installation"> 41 44 <title>Installation of Bison</title> 42 <!--43 <para>First, fix a build problem with the current version:</para>44 45 45 <screen><userinput remap="pre">sed -i '9327 s/mv/cp/' Makefile.in</userinput></screen>46 -->47 46 <para>Prepare Bison for compilation:</para> 48 47 49 <screen><userinput remap="configure">./configure --prefix=/usr --docdir=/usr/share/doc/bison-&bison-version;</userinput></screen> 48 <screen><userinput remap="configure">./configure --prefix=/usr \ 49 --docdir=/usr/share/doc/bison-&bison-version;</userinput></screen> 50 50 51 <!-- I could not find a race condidtion in the current version. 52 <para>Compile the package, but work around a race condition in the 53 current version:</para> 51 <variablelist> 52 <title>The meaning of the new configure option:</title> 54 53 55 <screen><userinput remap="make">make -j1</userinput></screen>--> 54 <varlistentry> 55 <term><parameter>--docdir=/usr/share/doc/bison-&bison-version;</parameter></term> 56 <listitem> 57 <para>This tells the build system to install bison documentation 58 into a versioned directory.</para> 59 </listitem> 60 </varlistentry> 61 62 </variablelist> 56 63 57 64 <para>Compile the package:</para> 58 65 59 66 <screen><userinput remap="make">make</userinput></screen> 60 61 <para>To test the results (about 5.5 SBU), issue:</para>62 63 <screen><userinput remap="test">make check</userinput></screen>64 65 <para>Fourteen tests fail in the "Diagnostics" section, probably because of66 missing locales.</para>67 68 <!--69 <para>There is a circular dependency between bison and flex with regard to70 the checks. If desired, after installing flex in the next section, the71 bison package can be rebuilt and the bison checks can be run with72 <command>make check</command>.</para>73 -->74 67 75 68 <para>Install the package:</para> … … 79 72 </sect2> 80 73 81 <sect2 id="contents-bison"role="content">82 <title >Contents of Bison</title>74 <sect2 role="content"> 75 <title/> 83 76 84 <segmentedlist> 85 <segtitle>Installed programs</segtitle> 86 <segtitle>Installed library</segtitle> 87 <segtitle>Installed directory</segtitle> 88 89 <seglistitem> 90 <seg>bison and yacc</seg> 91 <seg>liby.a</seg> 92 <seg>/usr/share/bison</seg> 93 </seglistitem> 94 </segmentedlist> 95 96 <variablelist> 97 <bridgehead renderas="sect3">Short Descriptions</bridgehead> 98 <?dbfo list-presentation="list"?> 99 <?dbhtml list-presentation="table"?> 100 101 <varlistentry id="bison"> 102 <term><command>bison</command></term> 103 <listitem> 104 <para>Generates, from a series of rules, a program for analyzing the 105 structure of text files; Bison is a replacement for Yacc (Yet Another 106 Compiler Compiler)</para> 107 <indexterm zone="ch-system-bison bison"> 108 <primary sortas="b-bison">bison</primary> 109 </indexterm> 110 </listitem> 111 </varlistentry> 112 113 <varlistentry id="yacc"> 114 <term><command>yacc</command></term> 115 <listitem> 116 <para>A wrapper for <command>bison</command>, meant for programs that 117 still call <command>yacc</command> instead of <command>bison</command>; 118 it calls <command>bison</command> with the <parameter>-y</parameter> 119 option</para> 120 <indexterm zone="ch-system-bison yacc"> 121 <primary sortas="b-yacc">yacc</primary> 122 </indexterm> 123 </listitem> 124 </varlistentry> 125 126 <varlistentry id="liby"> 127 <term><filename class="libraryfile">liby</filename></term> 128 <listitem> 129 <para>The Yacc library containing implementations of Yacc-compatible 130 <function>yyerror</function> and <function>main</function> functions; 131 this library is normally not very useful, but POSIX requires it</para> 132 <indexterm zone="ch-system-bison liby"> 133 <primary sortas="c-liby">liby</primary> 134 </indexterm> 135 </listitem> 136 </varlistentry> 137 138 </variablelist> 77 <para>Details on this package are located in 78 <xref linkend="contents-bison" role="."/></para> 139 79 140 80 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.