[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


From: Akim Demaille
Subject: 06-using-flex.patch
Date: 16 Oct 2000 09:48:27 +0200
User-agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)

Index: ChangeLog
from  Akim Demaille  <address@hidden>
        * doc/autoconf.texi (Particular Programs): Some notes on the
        portability of Flex.

Index: doc/autoconf.texi
--- doc/autoconf.texi Sun, 15 Oct 2000 09:30:12 +0200 akim (ace/16_autoconf.t 666)
+++ doc/autoconf.texi Sun, 15 Oct 2000 21:21:57 +0200 akim (ace/16_autoconf.t 666)
@@ -2646,6 +2646,28 @@ @node Particular Programs, Generic Progr
 the base of the file name that the lexer generates; usually
 @file{lex.yy}, but sometimes something else.  These results vary
 according to whether @code{lex} or @code{flex} is being used.
+You are encouraged to use Flex in your sources, since it is both more
+pleasant to use than plain Lex, and it is more portable.  But in order
+to ensure portability, you must either provide a function @code{yywrap},
+or if you don't use it (i.e., your scanner has no @samp{#include}-like
+feature), simply include a @samp{%noyywrap} statement in the scanner's
+source.  Once this done, the scanner is portable (well, unless
address@hidden felt free to use nonportable constructs) and does not depend
+on any library.  In this case, and in this case only, it is suggested
+that you use this Autoconf snippet:
+if test "$LEX" != flex; then
+  LEX="$missing_dir/missing flex"
address@hidden example
+The shell script @command{missing} can be found in the Automake
 @end defmac

 @defmac AC_PROG_LN_S

reply via email to

[Prev in Thread] Current Thread [Next in Thread]