bison.xml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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-fin-sbu;</seg>
  26. <seg>&bison-fin-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 --docdir=/usr/share/doc/bison-&bison-version;</userinput></screen>
  34. <para>Compile the package:</para>
  35. <screen><userinput remap="make">make</userinput></screen>
  36. <para>To test the results (about 5.5 SBU), issue:</para>
  37. <screen><userinput remap="test">make check</userinput></screen>
  38. <para>Install the package:</para>
  39. <screen><userinput remap="install">make install</userinput></screen>
  40. </sect2>
  41. <sect2 id="contents-bison" role="content">
  42. <title>Contents of Bison</title>
  43. <segmentedlist>
  44. <segtitle>Installed programs</segtitle>
  45. <segtitle>Installed library</segtitle>
  46. <segtitle>Installed directory</segtitle>
  47. <seglistitem>
  48. <seg>bison and yacc</seg>
  49. <seg>liby.a</seg>
  50. <seg>/usr/share/bison</seg>
  51. </seglistitem>
  52. </segmentedlist>
  53. <variablelist>
  54. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  55. <?dbfo list-presentation="list"?>
  56. <?dbhtml list-presentation="table"?>
  57. <varlistentry id="bison">
  58. <term><command>bison</command></term>
  59. <listitem>
  60. <para>Generates, from a series of rules, a program for analyzing the
  61. structure of text files; Bison is a replacement for Yacc (Yet Another
  62. Compiler Compiler)</para>
  63. <indexterm zone="ch-system-bison bison">
  64. <primary sortas="b-bison">bison</primary>
  65. </indexterm>
  66. </listitem>
  67. </varlistentry>
  68. <varlistentry id="yacc">
  69. <term><command>yacc</command></term>
  70. <listitem>
  71. <para>A wrapper for <command>bison</command>, meant for programs that
  72. still call <command>yacc</command> instead of <command>bison</command>;
  73. it calls <command>bison</command> with the <parameter>-y</parameter>
  74. option</para>
  75. <indexterm zone="ch-system-bison yacc">
  76. <primary sortas="b-yacc">yacc</primary>
  77. </indexterm>
  78. </listitem>
  79. </varlistentry>
  80. <varlistentry id="liby">
  81. <term><filename class="libraryfile">liby</filename></term>
  82. <listitem>
  83. <para>The Yacc library containing implementations of Yacc-compatible
  84. <function>yyerror</function> and <function>main</function> functions;
  85. this library is normally not very useful, but POSIX requires it</para>
  86. <indexterm zone="ch-system-bison liby">
  87. <primary sortas="c-liby">liby</primary>
  88. </indexterm>
  89. </listitem>
  90. </varlistentry>
  91. </variablelist>
  92. </sect2>
  93. </sect1>