diff options
Diffstat (limited to 'chapter06/flex.xml')
-rw-r--r-- | chapter06/flex.xml | 42 |
1 files changed, 27 insertions, 15 deletions
diff --git a/chapter06/flex.xml b/chapter06/flex.xml index 855238aa6..c4bc1e664 100644 --- a/chapter06/flex.xml +++ b/chapter06/flex.xml @@ -78,34 +78,46 @@ chmod 755 /usr/bin/lex</userinput></screen> </sect2> -<sect2 id="contents-flex"><title>Contents of Flex</title> - -<para><emphasis>Installed programs</emphasis>: flex, flex++ (link to flex) -and lex</para> - -<para><emphasis>Installed library</emphasis>: libfl.a</para> - -</sect2> +<sect2 id="contents-flex" role="content"><title>Contents of Flex</title> +<segmentedlist> +<segtitle>Installed programs</segtitle> +<segtitle>Installed library</segtitle> +<seglistitem><seg>flex, flex++ (link to flex) and lex</seg> +<seg>libfl.a</seg></seglistitem> +</segmentedlist> -<sect2><title>Short descriptions</title> +<variablelist><title>Short descriptions</title> +<varlistentry> +<term id="flex"><command>flex</command></term> +<listitem> <indexterm zone="ch-system-flex flex"><primary sortas="b-flex">flex</primary></indexterm> -<para id="flex"><command>flex</command> is a tool for generating programs that +<para>is a tool for generating programs that recognize patterns in text. Pattern recognition is useful in many applications. From a set of rules on what to look for, flex makes a program that looks for those patterns. The reason to use flex is that it is much easier to specify the rules for a pattern-finding program than to write the program.</para> +</listitem> +</varlistentry> +<varlistentry> +<term id="flex-"><command>flex++</command></term> +<listitem> <indexterm zone="ch-system-flex flex-"><primary sortas="b-flex++">flex++</primary></indexterm> -<para id="flex-"><command>flex++</command> invokes a version of flex that is used -exclusively for C++ scanners.</para> +<para>invokes a version of flex that is used exclusively for C++ scanners.</para> +</listitem> +</varlistentry> +<varlistentry> +<term id="libfl.a"><command>libfl.a</command></term> +<listitem> <indexterm zone="ch-system-flex libfl.a"><primary sortas="c-libfl.a">libfl.a</primary></indexterm> -<para id="libfl.a"><command>libfl.a</command> is the flex library.</para> +<para>is the flex library.</para> +</listitem> +</varlistentry> +</variablelist> </sect2> - - </sect1> |