help-flex
[Top][All Lists]
Advanced

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

Info pages


From: Akim Demaille
Subject: Info pages
Date: Wed, 10 Dec 2003 12:48:42 +0100
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)

The Flex info pages of 2.5.31 are poor:

- The exact version does not seem to be reported anywhere

- There is no index which is the main point of info

- There remain traces of man pages in the middle of the text!!!
  For instance:

   | Start conditions
   | ****************
   | 
   | `flex' provides a mechanism for conditionally activating rules.  Any
   [...]
   | the line by the string "expect-floats" it will treat it as a single
   | token, the floating-point number 123.456:
   | 
   |      %{
   |      #include <math.h>
   |      %}
   |      %s expect
   |      
   |      %%
   |      expect-floats        BEGIN(expect);
   |      
   |      <expect>[0-9]+"."[0-9]+      {
   |                  printf( "found a float, = %f\n",
   |                          atof( yytext ) );
   |                  }
   |      <expect>\n           {
   |                  /* that's the end of the line, so
   |                   * we need another "expect-number"
   |                   * before we'll recognize any more
   |                   * numbers
   |                   */
   |                  BEGIN(INITIAL);
   |                  }
   |      
   |      [0-9]+      {
=> |      
=> |      Version 2.5               December 1994                        18
=> |      
   |                  printf( "found an integer, = %d\n",
   |                          atoi( yytext ) );
   |                  }
   |      
   |      "."         printf( "found a dot\n" );

!!!




reply via email to

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