flex.xml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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-flex" role="wrap">
  8. <?dbhtml filename="flex.html"?>
  9. <sect1info condition="script">
  10. <productname>flex</productname>
  11. <productnumber>&flex-version;</productnumber>
  12. <address>&flex-url;</address>
  13. </sect1info>
  14. <title>Flex-&flex-version;</title>
  15. <indexterm zone="ch-system-flex">
  16. <primary sortas="a-Flex">Flex</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The Flex package contains a utility for generating programs that
  21. recognize patterns in text.</para>
  22. <segmentedlist>
  23. <segtitle>&buildtime;</segtitle>
  24. <segtitle>&diskspace;</segtitle>
  25. <seglistitem>
  26. <seg>&flex-ch6-sbu;</seg>
  27. <seg>&flex-ch6-du;</seg>
  28. </seglistitem>
  29. </segmentedlist>
  30. </sect2>
  31. <sect2 role="installation">
  32. <title>Installation of Flex</title>
  33. <para>The build procedure assumes the <application>help2man</application>
  34. program is available to create a man page from the executable --help option.
  35. This is not present, so we use an environment variable to skip this process.
  36. Now, prepare Flex for compilation:</para>
  37. <screen><userinput remap="configure">HELP2MAN=/tools/bin/true \
  38. ./configure --prefix=/usr --docdir=/usr/share/doc/flex-&flex-version;</userinput></screen>
  39. <para>Compile the package:</para>
  40. <screen><userinput remap="make">make</userinput></screen>
  41. <para>To test the results (about 0.5 SBU), issue:</para>
  42. <screen><userinput remap="test">make check</userinput></screen>
  43. <para>There is one known test failure.</para>
  44. <para>Install the package:</para>
  45. <screen><userinput remap="install">make install</userinput></screen>
  46. <para>A few programs do not know about <command>flex</command> yet and
  47. try to run its predecessor, <command>lex</command>. To support those
  48. programs, create a symbolic link named <filename>lex</filename> that
  49. runs <filename>flex</filename> in <command>lex</command> emulation
  50. mode:</para>
  51. <screen><userinput remap="install">ln -sv flex /usr/bin/lex</userinput></screen>
  52. </sect2>
  53. <sect2 id="contents-flex" role="content">
  54. <title>Contents of Flex</title>
  55. <segmentedlist>
  56. <segtitle>Installed programs</segtitle>
  57. <segtitle>Installed libraries</segtitle>
  58. <segtitle>Installed directory</segtitle>
  59. <seglistitem>
  60. <seg>flex, flex++ (link to flex), and lex (link to flex)</seg>
  61. <seg>libfl.so and libfl_pic.so</seg>
  62. <seg>/usr/share/doc/flex-&flex-version;</seg>
  63. </seglistitem>
  64. </segmentedlist>
  65. <variablelist>
  66. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  67. <?dbfo list-presentation="list"?>
  68. <?dbhtml list-presentation="table"?>
  69. <varlistentry id="flex">
  70. <term><command>flex</command></term>
  71. <listitem>
  72. <para>A tool for generating programs that recognize patterns in text;
  73. it allows for the versatility to specify the rules for pattern-finding,
  74. eradicating the need to develop a specialized program</para>
  75. <indexterm zone="ch-system-flex flex">
  76. <primary sortas="b-flex">flex</primary>
  77. </indexterm>
  78. </listitem>
  79. </varlistentry>
  80. <varlistentry id="flexpp">
  81. <term><command>flex++</command></term>
  82. <listitem>
  83. <para>An extension of flex, is used for generating C++ code
  84. and classes. It is a symbolic link to <command>flex</command></para>
  85. <indexterm zone="ch-system-flex flexpp">
  86. <primary sortas="b-flex++">flex++</primary>
  87. </indexterm>
  88. </listitem>
  89. </varlistentry>
  90. <varlistentry id="lex">
  91. <term><command>lex</command></term>
  92. <listitem>
  93. <para>A script that runs <command>flex</command> in
  94. <command>lex</command> emulation mode</para>
  95. <indexterm zone="ch-system-flex lex">
  96. <primary sortas="b-lex">lex</primary>
  97. </indexterm>
  98. </listitem>
  99. </varlistentry>
  100. <varlistentry id="libfl">
  101. <term><filename class="libraryfile">libfl</filename></term>
  102. <listitem>
  103. <para>The <filename class="libraryfile">flex</filename> library</para>
  104. <indexterm zone="ch-system-flex libfl">
  105. <primary sortas="c-libfl">libfl</primary>
  106. </indexterm>
  107. </listitem>
  108. </varlistentry>
  109. </variablelist>
  110. </sect2>
  111. </sect1>