home *** CD-ROM | disk | FTP | other *** search
/ Computer Club Elmshorn Atari PD / CCE_PD.iso / pc / 0400 / CCE_0451.ZIP / CCE_0451.PD / BYACC / BYACC.DOC < prev    next >
Encoding:
Text File  |  1989-12-19  |  2.7 KB  |  133 lines

  1.  
  2.  
  3.  
  4. YACC(1)                   USER COMMANDS                   YACC(1)
  5.  
  6.  
  7.  
  8. NAME
  9.      Yacc - an LALR(1) parser generator
  10.  
  11. SYNOPSIS
  12.      yacc [ -dltv ] [ -b _✓p_✓r_✓e_✓f_✓i_✓x ] _✓f_✓i_✓l_✓e_✓n_✓a_✓m_✓e
  13.  
  14. DESCRIPTION
  15.      _✓Y_✓a_✓c_✓c reads the grammar specification in  the  file  _✓f_✓i_✓l_✓e_✓n_✓a_✓m_✓e
  16.      and  generates  an LR(1) parser for it.  The parsers consist
  17.      of a set of LALR(1) parsing  tables  and  a  driver  routine
  18.      written in the C programming language.  _✓Y_✓a_✓c_✓c normally writes
  19.      the parse tables and the driver routine to the file  _✓y._✓t_✓a_✓b._✓c
  20.      (but see the -b option below).
  21.  
  22.      The following options are available:
  23.  
  24.           -b _✓p_✓r_✓e_✓f_✓i_✓x
  25.                The -b option changes the prefix prepended to  the
  26.                output file names to the string denoted by _✓p_✓r_✓e_✓f_✓i_✓x.
  27.                The default prefix is the character _✓y.
  28.  
  29.           -d   The -d option causes the header file _✓y._✓t_✓a_✓b._✓h to be
  30.                written.
  31.  
  32.           -l   If the -l  option  is  not  specified,  _✓y_✓a_✓c_✓c  will
  33.                insert  #line  directives  in  the generated code.
  34.                The #line directives let  the  C  compiler  relate
  35.                errors  in the generated code to the user's origi-
  36.                nal code.  If the -l  option  is  specified,  _✓y_✓a_✓c_✓c
  37.                will  not  insert the #line directives.  Any #line
  38.                directives specified by the user will be retained.
  39.  
  40.           -t   The -t option will change the preprocessor  direc-
  41.                tives  generated  by _✓y_✓a_✓c_✓c so that debugging state-
  42.                ments will be incorporated in the compiled code.
  43.  
  44.           -v   The -v option causes a human-readable  description
  45.                of  the generated parser to be written to the file
  46.                _✓y._✓o_✓u_✓t_✓p_✓u_✓t.
  47.  
  48.      If the  environment  variable  TMPDIR  is  set,  the  string
  49.      denoted  by TMPDIR will be used as the name of the directory
  50.      where the temporary files are created.
  51.  
  52. FILES
  53.      _✓y._✓t_✓a_✓b._✓c
  54.      _✓y._✓t_✓a_✓b._✓h
  55.      _✓y._✓o_✓u_✓t_✓p_✓u_✓t
  56.      /_✓t_✓m_✓p/_✓y_✓a_✓c_✓c._✓a_✓X_✓X_✓X_✓X_✓X_✓X
  57.      /_✓t_✓m_✓p/_✓y_✓a_✓c_✓c._✓t_✓X_✓X_✓X_✓X_✓X_✓X
  58.      /_✓t_✓m_✓p/_✓y_✓a_✓c_✓c._✓u_✓X_✓X_✓X_✓X_✓X_✓X
  59.  
  60.  
  61.  
  62.  
  63. Sun Release 3.5  Last change: November 22, 1989                 1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. YACC(1)                   USER COMMANDS                   YACC(1)
  71.  
  72.  
  73.  
  74. DIAGNOSTICS
  75.      If there are rules that are never  reduced,  the  number  of
  76.      such  rules is reported on standard error.  If there are any
  77.      LALR(1) conflicts, the number of conflicts  is  reported  on
  78.      standard error.
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  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. Sun Release 3.5  Last change: November 22, 1989                 2
  130.  
  131.  
  132.  
  133.