bison.xml 3.9 KB

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