source: BOOK/final-system/common/flex.xml@ 594c531

sysvinit
Last change on this file since 594c531 was 966dad90, checked in by William Harrington <kb0iic@…>, 8 years ago

Use a link instead of a wrapper script for lex.

  • Property mode set to 100644
File size: 4.4 KB
Line 
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
8<sect1 id="ch-system-flex" role="wrap">
9 <?dbhtml filename="flex.html"?>
10
11 <title>Flex-&flex-version;</title>
12
13 <indexterm zone="ch-system-flex">
14 <primary sortas="a-Flex">Flex</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The Flex package contains a utility for generating programs that
21 recognize patterns in text.</para>
22
23 </sect2>
24
25 <sect2 role="installation">
26 <title>Installation of Flex</title>
27
28 <para os="a">Prepare Flex for compilation:</para>
29
30<screen os="b"><userinput>./configure \
31 --prefix=/usr \
32 --docdir=/usr/share/doc/flex-&flex-version;</userinput></screen>
33
34 <para os="c">Compile the package:</para>
35
36<screen os="d"><userinput>make</userinput></screen>
37
38 <para os="e">To test the results, issue:</para>
39
40<screen os="e2"><userinput remap="test">make check</userinput></screen>
41
42 <para os="e3">The test suite will report 3 failures for tests that
43 use <command>bison</command>, which is not installed yet. For full
44 test coverage, you can run Flex's test suite again after Bison
45 is installed.</para>
46
47 <para os="f">Install the package:</para>
48
49<screen os="g"><userinput>make install</userinput></screen>
50
51 <para os="h">A few programs do not know about <command>flex</command> yet and
52 try to run its predecessor, <command>lex</command>. To support those
53 programs, create a symbolic link named <filename>lex</filename> that
54 runs <filename>flex</filename> in <command>lex</command> emulation
55 mode:</para>
56
57<screen os="i"><userinput>ln -sv flex /usr/bin/lex</userinput></screen>
58
59 </sect2>
60
61 <sect2 id="contents-flex" role="content">
62 <title>Contents of Flex</title>
63
64 <segmentedlist>
65 <segtitle>Installed programs</segtitle>
66 <segtitle>Installed libraries</segtitle>
67 <segtitle>Installed directory</segtitle>
68
69 <seglistitem>
70 <seg>flex, flex++ (link to flex), lex</seg>
71 <seg>libfl.[a,so], libfl_pic.[a,so]</seg>
72 <seg>/usr/share/doc/flex-&flex-version;</seg>
73 </seglistitem>
74 </segmentedlist>
75
76 <variablelist>
77 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
78 <?dbfo list-presentation="list"?>
79 <?dbhtml list-presentation="table"?>
80
81 <varlistentry id="flex">
82 <term><command>flex</command></term>
83 <listitem>
84 <para>A tool for generating programs that recognize patterns in text;
85 it allows for the versatility to specify the rules for pattern-finding,
86 eradicating the need to develop a specialized program</para>
87 <indexterm zone="ch-system-flex flex">
88 <primary sortas="b-flex">flex</primary>
89 </indexterm>
90 </listitem>
91 </varlistentry>
92
93 <varlistentry id="flexpp">
94 <term><command>flex++</command></term>
95 <listitem>
96 <para>Link to <command>flex</command> which makes it generate C++
97 scanner classes</para>
98 <indexterm zone="ch-system-flex flexpp">
99 <primary sortas="b-flex++">flex++</primary>
100 </indexterm>
101 </listitem>
102 </varlistentry>
103
104 <varlistentry id="lex">
105 <term><command>lex</command></term>
106 <listitem>
107 <para>A script that runs <command>flex</command> in
108 <command>lex</command> emulation mode</para>
109 <indexterm zone="ch-system-flex lex">
110 <primary sortas="b-lex">lex</primary>
111 </indexterm>
112 </listitem>
113 </varlistentry>
114
115 <varlistentry id="libfl">
116 <term><filename class="libraryfile">libfl</filename></term>
117 <listitem>
118 <para>The <filename class="libraryfile">flex</filename> library</para>
119 <indexterm zone="ch-system-flex libfl">
120 <primary sortas="c-libfl">libfl</primary>
121 </indexterm>
122 </listitem>
123 </varlistentry>
124
125 <varlistentry id="libfl_pic">
126 <term><filename class="libraryfile">libfl_pic</filename></term>
127 <listitem>
128 <para>The <filename class="libraryfile">flex</filename> library</para>
129 <indexterm zone="ch-system-flex libfl_pic">
130 <primary sortas="c-libfl">libfl_pic</primary>
131 </indexterm>
132 </listitem>
133 </varlistentry>
134
135 </variablelist>
136
137 </sect2>
138
139</sect1>
Note: See TracBrowser for help on using the repository browser.