bison.xml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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. <sect1 id="ch-system-bison" role="wrap">
  8. <?dbhtml filename="bison.html"?>
  9. <sect1info condition="script">
  10. <productname>bison</productname>
  11. <productnumber>&bison-version;</productnumber>
  12. <address>&bison-url;</address>
  13. </sect1info>
  14. <title>Bison-&bison-version;</title>
  15. <indexterm zone="ch-system-bison">
  16. <primary sortas="a-Bison">Bison</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The Bison package contains a parser generator.</para>
  21. <segmentedlist>
  22. <segtitle>&buildtime;</segtitle>
  23. <segtitle>&diskspace;</segtitle>
  24. <seglistitem>
  25. <seg>&bison-ch6-sbu;</seg>
  26. <seg>&bison-ch6-du;</seg>
  27. </seglistitem>
  28. </segmentedlist>
  29. </sect2>
  30. <sect2 role="installation">
  31. <title>Installation of Bison</title>
  32. <!--
  33. <para>First, fix a build problem with the current version:</para>
  34. <screen><userinput remap="pre">sed -i '9327 s/mv/cp/' Makefile.in</userinput></screen>
  35. -->
  36. <para>Prepare Bison for compilation:</para>
  37. <screen><userinput remap="configure">./configure --prefix=/usr --docdir=/usr/share/doc/bison-&bison-version;</userinput></screen>
  38. <!-- I could not find a race condidtion in the current version.
  39. <para>Compile the package, but work around a race condition in the
  40. current version:</para>
  41. <screen><userinput remap="make">make -j1</userinput></screen>-->
  42. <para>Compile the package:</para>
  43. <screen><userinput remap="make">make</userinput></screen>
  44. <!--
  45. <para>To test the results (about 2.2 SBU), issue:</para>
  46. <screen><userinput remap="test">make check</userinput></screen>
  47. -->
  48. <para>There is a circular dependency between bison and flex with regard to
  49. the checks. If desired, after installing flex in the next section, the
  50. bison package can be rebuilt and the bison checks can be run with
  51. <command>make check</command>.</para>
  52. <para>Install the package:</para>
  53. <screen><userinput remap="install">make install</userinput></screen>
  54. </sect2>
  55. <sect2 id="contents-bison" role="content">
  56. <title>Contents of Bison</title>
  57. <segmentedlist>
  58. <segtitle>Installed programs</segtitle>
  59. <segtitle>Installed library</segtitle>
  60. <segtitle>Installed directory</segtitle>
  61. <seglistitem>
  62. <seg>bison and yacc</seg>
  63. <seg>liby.a</seg>
  64. <seg>/usr/share/bison</seg>
  65. </seglistitem>
  66. </segmentedlist>
  67. <variablelist>
  68. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  69. <?dbfo list-presentation="list"?>
  70. <?dbhtml list-presentation="table"?>
  71. <varlistentry id="bison">
  72. <term><command>bison</command></term>
  73. <listitem>
  74. <para>Generates, from a series of rules, a program for analyzing the
  75. structure of text files; Bison is a replacement for Yacc (Yet Another
  76. Compiler Compiler)</para>
  77. <indexterm zone="ch-system-bison bison">
  78. <primary sortas="b-bison">bison</primary>
  79. </indexterm>
  80. </listitem>
  81. </varlistentry>
  82. <varlistentry id="yacc">
  83. <term><command>yacc</command></term>
  84. <listitem>
  85. <para>A wrapper for <command>bison</command>, meant for programs that
  86. still call <command>yacc</command> instead of <command>bison</command>;
  87. it calls <command>bison</command> with the <parameter>-y</parameter>
  88. option</para>
  89. <indexterm zone="ch-system-bison yacc">
  90. <primary sortas="b-yacc">yacc</primary>
  91. </indexterm>
  92. </listitem>
  93. </varlistentry>
  94. <varlistentry id="liby">
  95. <term><filename class="libraryfile">liby</filename></term>
  96. <listitem>
  97. <para>The Yacc library containing implementations of Yacc-compatible
  98. <function>yyerror</function> and <function>main</function> functions;
  99. this library is normally not very useful, but POSIX requires it</para>
  100. <indexterm zone="ch-system-bison liby">
  101. <primary sortas="c-liby">liby</primary>
  102. </indexterm>
  103. </listitem>
  104. </varlistentry>
  105. </variablelist>
  106. </sect2>
  107. </sect1>