flex.xml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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>Prepare Flex for compilation:</para>
  34. <screen><userinput remap="configure">./configure --prefix=/usr --docdir=/usr/share/doc/flex-&flex-version;</userinput></screen>
  35. <para>Compile the package:</para>
  36. <screen><userinput remap="make">make</userinput></screen>
  37. <para>To test the results (about 0.5 SBU), issue:</para>
  38. <screen><userinput remap="test">make check</userinput></screen>
  39. <para>Install the package:</para>
  40. <screen><userinput remap="install">make install</userinput></screen>
  41. <para>A few programs do not know about <command>flex</command> yet and
  42. try to run its predecessor, <command>lex</command>. To support those
  43. programs, create a symbolic link named <filename>lex</filename> that
  44. runs <filename>flex</filename> in <command>lex</command> emulation
  45. mode:</para>
  46. <screen><userinput remap="install">ln -sv flex /usr/bin/lex</userinput></screen>
  47. </sect2>
  48. <sect2 id="contents-flex" role="content">
  49. <title>Contents of Flex</title>
  50. <segmentedlist>
  51. <segtitle>Installed programs</segtitle>
  52. <segtitle>Installed libraries</segtitle>
  53. <segtitle>Installed directory</segtitle>
  54. <seglistitem>
  55. <seg>flex, flex++ (link to flex), and lex (link to flex)</seg>
  56. <seg>libfl.so and libfl_pic.so</seg>
  57. <seg>/usr/share/doc/flex-&flex-version;</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="flex">
  65. <term><command>flex</command></term>
  66. <listitem>
  67. <para>A tool for generating programs that recognize patterns in text;
  68. it allows for the versatility to specify the rules for pattern-finding,
  69. eradicating the need to develop a specialized program</para>
  70. <indexterm zone="ch-system-flex flex">
  71. <primary sortas="b-flex">flex</primary>
  72. </indexterm>
  73. </listitem>
  74. </varlistentry>
  75. <varlistentry id="flexpp">
  76. <term><command>flex++</command></term>
  77. <listitem>
  78. <para>An extension of flex, is used for generating C++ code
  79. and classes. It is a symbolic link to <command>flex</command></para>
  80. <indexterm zone="ch-system-flex flexpp">
  81. <primary sortas="b-flex++">flex++</primary>
  82. </indexterm>
  83. </listitem>
  84. </varlistentry>
  85. <varlistentry id="lex">
  86. <term><command>lex</command></term>
  87. <listitem>
  88. <para>A script that runs <command>flex</command> in
  89. <command>lex</command> emulation mode</para>
  90. <indexterm zone="ch-system-flex lex">
  91. <primary sortas="b-lex">lex</primary>
  92. </indexterm>
  93. </listitem>
  94. </varlistentry>
  95. <varlistentry id="libfl">
  96. <term><filename class="libraryfile">libfl</filename></term>
  97. <listitem>
  98. <para>The <filename class="libraryfile">flex</filename> library</para>
  99. <indexterm zone="ch-system-flex libfl">
  100. <primary sortas="c-libfl">libfl</primary>
  101. </indexterm>
  102. </listitem>
  103. </varlistentry>
  104. </variablelist>
  105. </sect2>
  106. </sect1>