home *** CD-ROM | disk | FTP | other *** search
/ Boston 2 / boston-2.iso / DOS / PROGRAM / C / LEX / LEX.HLP < prev    next >
Text File  |  1993-12-01  |  2KB  |  107 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.                      LEX - Lexical Analyzer Generator
  69.                      ================================
  70.  
  71.   LEX is a program which will generate a table-driven lexical analyzer in
  72.   C.  It takes as it's input a lexical specification in a special
  73.   language which supports "regular expression" notation.  The theory and
  74.   operation of LEX is somewhat complex, so it is suggested that you read
  75.   the LEX documentation before trying to use LEX.
  76.  
  77.   LEX normally reads the grammar from the standard input, writing the C
  78.   program to the file 'lextab.c'.  It may be further controlled by using
  79.   the following flags upon invocation:
  80.  
  81.         -i filename     The grammar is read from 'filename'.
  82.         -o filename     The analyser is written to 'filename'.
  83.         -t name         The default finite-state automaton is named
  84.                         lextab (and it is, by default, written to file
  85.                         'lextab.c').  The -t switch causes the internal
  86.                         tables to be named 'name' and, if the -o switch
  87.                         is not given, written to file 'name.c'.  This is
  88.                         necessary if the processor-switching capabilities
  89.                         described in a later section are to be used.
  90.         -e name         "Easy" command line. "-e name" is equivalent to
  91.                         typing:
  92.                                  -i name.LXI -o name.C -t name
  93.  
  94.                         Do not include device names or file extensions on
  95.                         the "easy" command line.
  96.  
  97.         -v [filename]   Internal state info is written to filename.
  98.                         If filename not present, state information is
  99.                         written to file 'lex.out.'
  100.         -d              Enable various debugging printouts.
  101.         -s              Generate analyzer without references to standard
  102.                         I/O.  Used for programs which do not employ the
  103.                         standard I/O functions.
  104.  
  105. d
  106.                         I/O.  Used for programs which do not employ the
  107.