home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 2 / goldfish_vol2_cd1.bin / files / dev / c / yacc / manual / yacc.man next >
Text File  |  1993-07-09  |  3KB  |  133 lines

  1.  
  2.  
  3.  
  4.      YACC(1)               AMIGA (July 15, 1990)               YACC(1)
  5.  
  6.  
  7.  
  8.      NAME
  9.           Yacc - an LALR(1) parser generator
  10.  
  11.      SYNOPSIS
  12.           yacc [ -dlrtv ] [ -b file_prefix ] [ -p symbol_prefix ]
  13.           filename
  14.  
  15.      DESCRIPTION
  16.           Yacc reads the grammar specification in the file filename
  17.           and generates an LR(1) parser for it.  The parsers consist
  18.           of a set of LALR(1) parsing tables and a driver routine
  19.           written in the C programming language.  Yacc normally writes
  20.           the parse tables and the driver routine to the file y.tab.c.
  21.  
  22.           The following options are available:
  23.  
  24.                -b file_prefix
  25.                     The -b option changes the prefix prepended to the
  26.                     output file names to the string denoted by
  27.                     file_prefix.  The default prefix is the character
  28.                     y.
  29.  
  30.                -d   The -d option causes the header file y.tab.h to be
  31.                     written.
  32.  
  33.                -l   If the -l option is not specified, yacc will
  34.                     insert #line directives in the generated code.
  35.                     The #line directives let the C compiler relate
  36.                     errors in the generated code to the user's
  37.                     original code.  If the -l option is specified,
  38.                     yacc will not insert the #line directives.  #line
  39.                     directives specified by the user will be retained.
  40.  
  41.                -p symbol_prefix
  42.                     The -p option changes the prefix prepended to
  43.                     yacc-generated symbols to the string denoted by
  44.                     symbol_prefix.  The default prefix is the string
  45.                     yy.
  46.  
  47.                -r   The -r option causes yacc to produce separate
  48.                     files for code and tables.  The code file is named
  49.                     y.code.c, and the tables file is named y.tab.c.
  50.  
  51.                -t   The -t option changes the preprocessor directives
  52.                     generated by yacc so that debugging statements
  53.                     will be incorporated in the compiled code.
  54.  
  55.                -v   The -v option causes a human-readable description
  56.                     of the generated parser to be written to the file
  57.                     y.output.
  58.  
  59.           If the environment variable TMPDIR is set, the string
  60.  
  61.  
  62.  
  63.      Page 1                                           (printed 7/9/93)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      YACC(1)               AMIGA (July 15, 1990)               YACC(1)
  71.  
  72.  
  73.  
  74.           denoted by TMPDIR will be used as the name of the directory
  75.           where the temporary files are created.
  76.  
  77.      FILES
  78.           y.code.c
  79.           y.tab.c
  80.           y.tab.h
  81.           y.output
  82.           /tmp/yacc.aXXXXXX
  83.           /tmp/yacc.tXXXXXX
  84.           /tmp/yacc.uXXXXXX
  85.  
  86.      DIAGNOSTICS
  87.           If there are rules that are never reduced, the number of
  88.           such rules is reported on standard error.  If there are any
  89.           LALR(1) conflicts, the number of conflicts is reported on
  90.           standard error.
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                           (printed 7/9/93)
  130.  
  131.  
  132.  
  133.