home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / flex254.zip / parse.c < prev    next >
C/C++ Source or Header  |  1998-02-15  |  50KB  |  1,895 lines

  1.  
  2. /*  A Bison parser, made from parse.y
  3.  by  GNU Bison version 1.25
  4.   */
  5.  
  6. #define YYBISON 1  /* Identify Bison output.  */
  7.  
  8. #define    CHAR    258
  9. #define    NUMBER    259
  10. #define    SECTEND    260
  11. #define    SCDECL    261
  12. #define    XSCDECL    262
  13. #define    NAME    263
  14. #define    PREVCCL    264
  15. #define    EOF_OP    265
  16. #define    OPTION_OP    266
  17. #define    OPT_OUTFILE    267
  18. #define    OPT_PREFIX    268
  19. #define    OPT_YYCLASS    269
  20. #define    CCE_ALNUM    270
  21. #define    CCE_ALPHA    271
  22. #define    CCE_BLANK    272
  23. #define    CCE_CNTRL    273
  24. #define    CCE_DIGIT    274
  25. #define    CCE_GRAPH    275
  26. #define    CCE_LOWER    276
  27. #define    CCE_PRINT    277
  28. #define    CCE_PUNCT    278
  29. #define    CCE_SPACE    279
  30. #define    CCE_UPPER    280
  31. #define    CCE_XDIGIT    281
  32.  
  33. #line 9 "parse.y"
  34.  
  35. /*-
  36.  * Copyright (c) 1990 The Regents of the University of California.
  37.  * All rights reserved.
  38.  *
  39.  * This code is derived from software contributed to Berkeley by
  40.  * Vern Paxson.
  41.  * 
  42.  * The United States Government has rights in this work pursuant
  43.  * to contract no. DE-AC03-76SF00098 between the United States
  44.  * Department of Energy and the University of California.
  45.  *
  46.  * Redistribution and use in source and binary forms with or without
  47.  * modification are permitted provided that: (1) source distributions retain
  48.  * this entire copyright notice and comment, and (2) distributions including
  49.  * binaries display the following acknowledgement:  ``This product includes
  50.  * software developed by the University of California, Berkeley and its
  51.  * contributors'' in the documentation or other materials provided with the
  52.  * distribution and in all advertising materials mentioning features or use
  53.  * of this software.  Neither the name of the University nor the names of
  54.  * its contributors may be used to endorse or promote products derived from
  55.  * this software without specific prior written permission.
  56.  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
  57.  * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
  58.  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  59.  */
  60.  
  61. /* $Header: /home/daffy/u0/vern/flex/RCS/parse.y,v 2.28 95/04/21 11:51:51 vern Exp $ */
  62.  
  63.  
  64. /* Some versions of bison are broken in that they use alloca() but don't
  65.  * declare it properly.  The following is the patented (just kidding!)
  66.  * #ifdef chud to fix the problem, courtesy of Francois Pinard.
  67.  */
  68. #ifdef YYBISON
  69. /* AIX requires this to be the first thing in the file.  What a piece.  */
  70. # ifdef _AIX
  71.  #pragma alloca
  72. # endif
  73. #endif
  74.  
  75. #include "flexdef.h"
  76.  
  77. /* The remainder of the alloca() cruft has to come after including flexdef.h,
  78.  * so HAVE_ALLOCA_H is (possibly) defined.
  79.  */
  80. #ifdef YYBISON
  81. # ifdef __GNUC__
  82. #  ifndef alloca
  83. #   define alloca __builtin_alloca
  84. #  endif
  85. # else
  86. #  if HAVE_ALLOCA_H
  87. #   include <alloca.h>
  88. #  else
  89. #   ifdef __hpux
  90. void *alloca ();
  91. #   else
  92. #    ifdef __TURBOC__
  93. #     include <malloc.h>
  94. #    else
  95. char *alloca ();
  96. #    endif
  97. #   endif
  98. #  endif
  99. # endif
  100. #endif
  101.  
  102. /* Bletch, ^^^^ that was ugly! */
  103.  
  104.  
  105. int pat, scnum, eps, headcnt, trailcnt, anyccl, lastchar, i, rulelen;
  106. int trlcontxt, xcluflg, currccl, cclsorted, varlength, variable_trail_rule;
  107.  
  108. int *scon_stk;
  109. int scon_stk_ptr;
  110.  
  111. static int madeany = false;  /* whether we've made the '.' character class */
  112. int previous_continued_action;    /* whether the previous rule's action was '|' */
  113.  
  114. /* Expand a POSIX character class expression. */
  115. #define CCL_EXPR(func) \
  116.     { \
  117.     int c; \
  118.     for ( c = 0; c < csize; ++c ) \
  119.         if ( isascii(c) && func(c) ) \
  120.             ccladd( currccl, c ); \
  121.     }
  122.  
  123. /* While POSIX defines isblank(), it's not ANSI C. */
  124. #define IS_BLANK(c) ((c) == ' ' || (c) == '\t')
  125.  
  126. /* On some over-ambitious machines, such as DEC Alpha's, the default
  127.  * token type is "long" instead of "int"; this leads to problems with
  128.  * declaring yylval in flexdef.h.  But so far, all the yacc's I've seen
  129.  * wrap their definitions of YYSTYPE with "#ifndef YYSTYPE"'s, so the
  130.  * following should ensure that the default token type is "int".
  131.  */
  132. #define YYSTYPE int
  133.  
  134. #ifndef YYSTYPE
  135. #define YYSTYPE int
  136. #endif
  137. #include <stdio.h>
  138.  
  139. #ifndef __cplusplus
  140. #ifndef __STDC__
  141. #define const
  142. #endif
  143. #endif
  144.  
  145.  
  146.  
  147. #define    YYFINAL        107
  148. #define    YYFLAG        -32768
  149. #define    YYNTBASE    48
  150.  
  151. #define YYTRANSLATE(x) ((unsigned)(x) <= 281 ? yytranslate[x] : 73)
  152.  
  153. static const char yytranslate[] = {     0,
  154.      2,     2,     2,     2,     2,     2,     2,     2,     2,    28,
  155.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  156.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  157.      2,     2,     2,    42,     2,    36,     2,     2,     2,    43,
  158.     44,    34,    39,    35,    47,    41,    38,     2,     2,     2,
  159.      2,     2,     2,     2,     2,     2,     2,     2,     2,    32,
  160.     27,    33,    40,     2,     2,     2,     2,     2,     2,     2,
  161.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  162.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  163.     45,     2,    46,    31,     2,     2,     2,     2,     2,     2,
  164.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  165.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  166.      2,     2,    29,    37,    30,     2,     2,     2,     2,     2,
  167.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  168.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  169.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  170.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  171.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  172.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  173.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  174.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  175.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  176.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  177.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  178.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  179.      2,     2,     2,     2,     2,     1,     2,     3,     4,     5,
  180.      6,     7,     8,     9,    10,    11,    12,    13,    14,    15,
  181.     16,    17,    18,    19,    20,    21,    22,    23,    24,    25,
  182.     26
  183. };
  184.  
  185. #if YYDEBUG != 0
  186. static const short yyprhs[] = {     0,
  187.      0,     6,     7,    11,    14,    15,    17,    19,    21,    23,
  188.     26,    28,    30,    33,    36,    37,    41,    45,    49,    55,
  189.     61,    62,    63,    66,    68,    70,    72,    73,    78,    82,
  190.     83,    87,    89,    91,    93,    96,   100,   103,   105,   109,
  191.    111,   114,   117,   119,   122,   125,   128,   135,   141,   146,
  192.    148,   150,   152,   156,   160,   162,   166,   171,   176,   179,
  193.    182,   183,   185,   187,   189,   191,   193,   195,   197,   199,
  194.    201,   203,   205,   207,   210
  195. };
  196.  
  197. static const short yyrhs[] = {    49,
  198.     50,    51,    57,    58,     0,     0,    50,    52,    53,     0,
  199.     50,    54,     0,     0,     1,     0,     5,     0,     6,     0,
  200.      7,     0,    53,     8,     0,     8,     0,     1,     0,    11,
  201.     55,     0,    55,    56,     0,     0,    12,    27,     8,     0,
  202.     13,    27,     8,     0,    14,    27,     8,     0,    57,    61,
  203.     58,    59,    28,     0,    57,    61,    29,    57,    30,     0,
  204.      0,     0,    31,    64,     0,    64,     0,    10,     0,     1,
  205.      0,     0,    32,    60,    62,    33,     0,    32,    34,    33,
  206.      0,     0,    62,    35,    63,     0,    63,     0,     1,     0,
  207.      8,     0,    66,    65,     0,    66,    65,    36,     0,    65,
  208.     36,     0,    65,     0,    65,    37,    67,     0,    67,     0,
  209.     65,    38,     0,    67,    68,     0,    68,     0,    68,    34,
  210.      0,    68,    39,     0,    68,    40,     0,    68,    29,     4,
  211.     35,     4,    30,     0,    68,    29,     4,    35,    30,     0,
  212.     68,    29,     4,    30,     0,    41,     0,    69,     0,     9,
  213.      0,    42,    72,    42,     0,    43,    65,    44,     0,     3,
  214.      0,    45,    70,    46,     0,    45,    31,    70,    46,     0,
  215.     70,     3,    47,     3,     0,    70,     3,     0,    70,    71,
  216.      0,     0,    15,     0,    16,     0,    17,     0,    18,     0,
  217.     19,     0,    20,     0,    21,     0,    22,     0,    23,     0,
  218.     24,     0,    25,     0,    26,     0,    72,     3,     0,     0
  219. };
  220.  
  221. #endif
  222.  
  223. #if YYDEBUG != 0
  224. static const short yyrline[] = { 0,
  225.    112,   141,   149,   150,   151,   152,   156,   164,   167,   171,
  226.    174,   177,   181,   184,   185,   188,   193,   195,   199,   201,
  227.    203,   206,   219,   255,   279,   302,   306,   310,   313,   330,
  228.    334,   336,   338,   342,   365,   420,   423,   466,   484,   490,
  229.    495,   522,   530,   534,   541,   547,   553,   581,   595,   614,
  230.    636,   654,   661,   664,   667,   678,   681,   688,   716,   727,
  231.    734,   742,   743,   744,   745,   746,   747,   748,   749,   750,
  232.    751,   752,   758,   761,   771
  233. };
  234. #endif
  235.  
  236.  
  237. #if YYDEBUG != 0 || defined (YYERROR_VERBOSE)
  238.  
  239. static const char * const yytname[] = {   "$","error","$undefined.","CHAR","NUMBER",
  240. "SECTEND","SCDECL","XSCDECL","NAME","PREVCCL","EOF_OP","OPTION_OP","OPT_OUTFILE",
  241. "OPT_PREFIX","OPT_YYCLASS","CCE_ALNUM","CCE_ALPHA","CCE_BLANK","CCE_CNTRL","CCE_DIGIT",
  242. "CCE_GRAPH","CCE_LOWER","CCE_PRINT","CCE_PUNCT","CCE_SPACE","CCE_UPPER","CCE_XDIGIT",
  243. "'='","'\\n'","'{'","'}'","'^'","'<'","'>'","'*'","','","'$'","'|'","'/'","'+'",
  244. "'?'","'.'","'\"'","'('","')'","'['","']'","'-'","goal","initlex","sect1","sect1end",
  245. "startconddecl","namelist1","options","optionlist","option","sect2","initforrule",
  246. "flexrule","scon_stk_ptr","scon","namelist2","sconname","rule","re","re2","series",
  247. "singleton","fullccl","ccl","ccl_expr","string", NULL
  248. };
  249. #endif
  250.  
  251. static const short yyr1[] = {     0,
  252.     48,    49,    50,    50,    50,    50,    51,    52,    52,    53,
  253.     53,    53,    54,    55,    55,    56,    56,    56,    57,    57,
  254.     57,    58,    59,    59,    59,    59,    60,    61,    61,    61,
  255.     62,    62,    62,    63,    64,    64,    64,    64,    65,    65,
  256.     66,    67,    67,    68,    68,    68,    68,    68,    68,    68,
  257.     68,    68,    68,    68,    68,    69,    69,    70,    70,    70,
  258.     70,    71,    71,    71,    71,    71,    71,    71,    71,    71,
  259.     71,    71,    71,    72,    72
  260. };
  261.  
  262. static const short yyr2[] = {     0,
  263.      5,     0,     3,     2,     0,     1,     1,     1,     1,     2,
  264.      1,     1,     2,     2,     0,     3,     3,     3,     5,     5,
  265.      0,     0,     2,     1,     1,     1,     0,     4,     3,     0,
  266.      3,     1,     1,     1,     2,     3,     2,     1,     3,     1,
  267.      2,     2,     1,     2,     2,     2,     6,     5,     4,     1,
  268.      1,     1,     3,     3,     1,     3,     4,     4,     2,     2,
  269.      0,     1,     1,     1,     1,     1,     1,     1,     1,     1,
  270.      1,     1,     1,     2,     0
  271. };
  272.  
  273. static const short yydefact[] = {     2,
  274.      0,     6,     0,     7,     8,     9,    15,    21,     0,     4,
  275.     13,    30,    12,    11,     3,     0,     0,     0,    14,    27,
  276.      1,    22,    10,     0,     0,     0,     0,     0,    21,     0,
  277.     16,    17,    18,    29,    33,    34,     0,    32,    30,    26,
  278.     55,    52,    25,     0,    50,    75,     0,    61,     0,    24,
  279.     38,     0,    40,    43,    51,    28,     0,    20,    23,     0,
  280.      0,    61,     0,    19,    37,     0,    41,    35,    42,     0,
  281.     44,    45,    46,    31,    74,    53,    54,     0,    59,    62,
  282.     63,    64,    65,    66,    67,    68,    69,    70,    71,    72,
  283.     73,    56,    60,    39,    36,     0,    57,     0,    49,     0,
  284.     58,     0,    48,    47,     0,     0,     0
  285. };
  286.  
  287. static const short yydefgoto[] = {   105,
  288.      1,     3,     8,     9,    15,    10,    11,    19,    12,    21,
  289.     49,    28,    22,    37,    38,    50,    51,    52,    53,    54,
  290.     55,    63,    93,    60
  291. };
  292.  
  293. static const short yypact[] = {-32768,
  294.     78,-32768,    81,-32768,-32768,-32768,-32768,-32768,     6,-32768,
  295.     -2,     5,-32768,-32768,    -7,   -14,     1,     9,-32768,    28,
  296. -32768,    14,-32768,    55,    65,    74,    57,    30,-32768,    -1,
  297. -32768,-32768,-32768,-32768,-32768,-32768,    58,-32768,    44,-32768,
  298. -32768,-32768,-32768,    24,-32768,-32768,    24,    63,    69,-32768,
  299.     23,    24,    24,    41,-32768,-32768,    90,-32768,-32768,    26,
  300.     27,-32768,     0,-32768,-32768,    24,-32768,    59,    41,    95,
  301. -32768,-32768,-32768,-32768,-32768,-32768,-32768,    32,    53,-32768,
  302. -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
  303. -32768,-32768,-32768,    24,-32768,     4,-32768,    98,-32768,     2,
  304. -32768,    72,-32768,-32768,   103,   104,-32768
  305. };
  306.  
  307. static const short yypgoto[] = {-32768,
  308. -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,    76,    84,
  309. -32768,-32768,-32768,-32768,    50,    64,    25,-32768,    43,   -49,
  310. -32768,    48,-32768,-32768
  311. };
  312.  
  313.  
  314. #define    YYLAST        110
  315.  
  316.  
  317. static const short yytable[] = {    40,
  318.     23,    41,    79,    69,   -22,   102,    13,    42,    43,    16,
  319.     17,    18,    24,    14,    80,    81,    82,    83,    84,    85,
  320.     86,    87,    88,    89,    90,    91,    41,    25,    75,    44,
  321.     35,   103,    42,    99,    79,    26,    20,    36,   100,    45,
  322.     46,    47,    29,    48,    69,    92,    80,    81,    82,    83,
  323.     84,    85,    86,    87,    88,    89,    90,    91,    65,    66,
  324.     67,    27,    31,    66,    45,    46,    47,    76,    48,    70,
  325.     77,    61,    32,    58,    71,    20,    68,    97,     2,    72,
  326.     73,    33,    -5,    -5,    -5,     4,     5,     6,    -5,    34,
  327.     56,     7,    57,    62,    95,    66,    64,    36,    96,    98,
  328.    101,   104,   106,   107,    39,    30,    74,    59,    94,    78
  329. };
  330.  
  331. static const short yycheck[] = {     1,
  332.      8,     3,     3,    53,     0,     4,     1,     9,    10,    12,
  333.     13,    14,    27,     8,    15,    16,    17,    18,    19,    20,
  334.     21,    22,    23,    24,    25,    26,     3,    27,     3,    31,
  335.      1,    30,     9,    30,     3,    27,    32,     8,    35,    41,
  336.     42,    43,    29,    45,    94,    46,    15,    16,    17,    18,
  337.     19,    20,    21,    22,    23,    24,    25,    26,    36,    37,
  338.     38,    34,     8,    37,    41,    42,    43,    42,    45,    29,
  339.     44,    47,     8,    30,    34,    32,    52,    46,     1,    39,
  340.     40,     8,     5,     6,     7,     5,     6,     7,    11,    33,
  341.     33,    11,    35,    31,    36,    37,    28,     8,     4,    47,
  342.      3,    30,     0,     0,    29,    22,    57,    44,    66,    62
  343. };
  344. /* -*-C-*-  Note some compilers choke on comments on `#line' lines.  */
  345. #line 3 "bison.simple"
  346.  
  347. /* Skeleton output parser for bison,
  348.    Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc.
  349.  
  350.    This program is free software; you can redistribute it and/or modify
  351.    it under the terms of the GNU General Public License as published by
  352.    the Free Software Foundation; either version 2, or (at your option)
  353.    any later version.
  354.  
  355.    This program is distributed in the hope that it will be useful,
  356.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  357.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  358.    GNU General Public License for more details.
  359.  
  360.    You should have received a copy of the GNU General Public License
  361.    along with this program; if not, write to the Free Software
  362.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  363.  
  364. /* As a special exception, when this file is copied by Bison into a
  365.    Bison output file, you may use that output file without restriction.
  366.    This special exception was added by the Free Software Foundation
  367.    in version 1.24 of Bison.  */
  368.  
  369. #ifndef alloca
  370. #ifdef __GNUC__
  371. #define alloca __builtin_alloca
  372. #else /* not GNU C.  */
  373. #if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi)
  374. #include <alloca.h>
  375. #else /* not sparc */
  376. #if defined (MSDOS) && !defined (__TURBOC__)
  377. #include <malloc.h>
  378. #else /* not MSDOS, or __TURBOC__ */
  379. #if defined(_AIX)
  380. #include <malloc.h>
  381.  #pragma alloca
  382. #else /* not MSDOS, __TURBOC__, or _AIX */
  383. #ifdef __hpux
  384. #ifdef __cplusplus
  385. extern "C" {
  386. void *alloca (unsigned int);
  387. };
  388. #else /* not __cplusplus */
  389. void *alloca ();
  390. #endif /* not __cplusplus */
  391. #endif /* __hpux */
  392. #endif /* not _AIX */
  393. #endif /* not MSDOS, or __TURBOC__ */
  394. #endif /* not sparc.  */
  395. #endif /* not GNU C.  */
  396. #endif /* alloca not defined.  */
  397.  
  398. /* This is the parser code that is written into each bison parser
  399.   when the %semantic_parser declaration is not specified in the grammar.
  400.   It was written by Richard Stallman by simplifying the hairy parser
  401.   used when %semantic_parser is specified.  */
  402.  
  403. /* Note: there must be only one dollar sign in this file.
  404.    It is replaced by the list of actions, each action
  405.    as one case of the switch.  */
  406.  
  407. #define yyerrok        (yyerrstatus = 0)
  408. #define yyclearin    (yychar = YYEMPTY)
  409. #define YYEMPTY        -2
  410. #define YYEOF        0
  411. #define YYACCEPT    return(0)
  412. #define YYABORT     return(1)
  413. #define YYERROR        goto yyerrlab1
  414. /* Like YYERROR except do call yyerror.
  415.    This remains here temporarily to ease the
  416.    transition to the new meaning of YYERROR, for GCC.
  417.    Once GCC version 2 has supplanted version 1, this can go.  */
  418. #define YYFAIL        goto yyerrlab
  419. #define YYRECOVERING()  (!!yyerrstatus)
  420. #define YYBACKUP(token, value) \
  421. do                                \
  422.   if (yychar == YYEMPTY && yylen == 1)                \
  423.     { yychar = (token), yylval = (value);            \
  424.       yychar1 = YYTRANSLATE (yychar);                \
  425.       YYPOPSTACK;                        \
  426.       goto yybackup;                        \
  427.     }                                \
  428.   else                                \
  429.     { yyerror ("syntax error: cannot back up"); YYERROR; }    \
  430. while (0)
  431.  
  432. #define YYTERROR    1
  433. #define YYERRCODE    256
  434.  
  435. #ifndef YYPURE
  436. #define YYLEX        yylex()
  437. #endif
  438.  
  439. #ifdef YYPURE
  440. #ifdef YYLSP_NEEDED
  441. #ifdef YYLEX_PARAM
  442. #define YYLEX        yylex(&yylval, &yylloc, YYLEX_PARAM)
  443. #else
  444. #define YYLEX        yylex(&yylval, &yylloc)
  445. #endif
  446. #else /* not YYLSP_NEEDED */
  447. #ifdef YYLEX_PARAM
  448. #define YYLEX        yylex(&yylval, YYLEX_PARAM)
  449. #else
  450. #define YYLEX        yylex(&yylval)
  451. #endif
  452. #endif /* not YYLSP_NEEDED */
  453. #endif
  454.  
  455. /* If nonreentrant, generate the variables here */
  456.  
  457. #ifndef YYPURE
  458.  
  459. int    yychar;            /*  the lookahead symbol        */
  460. YYSTYPE    yylval;            /*  the semantic value of the        */
  461.                 /*  lookahead symbol            */
  462.  
  463. #ifdef YYLSP_NEEDED
  464. YYLTYPE yylloc;            /*  location data for the lookahead    */
  465.                 /*  symbol                */
  466. #endif
  467.  
  468. int yynerrs;            /*  number of parse errors so far       */
  469. #endif  /* not YYPURE */
  470.  
  471. #if YYDEBUG != 0
  472. int yydebug;            /*  nonzero means print parse trace    */
  473. /* Since this is uninitialized, it does not stop multiple parsers
  474.    from coexisting.  */
  475. #endif
  476.  
  477. /*  YYINITDEPTH indicates the initial size of the parser's stacks    */
  478.  
  479. #ifndef    YYINITDEPTH
  480. #define YYINITDEPTH 200
  481. #endif
  482.  
  483. /*  YYMAXDEPTH is the maximum size the stacks can grow to
  484.     (effective only if the built-in stack extension method is used).  */
  485.  
  486. #if YYMAXDEPTH == 0
  487. #undef YYMAXDEPTH
  488. #endif
  489.  
  490. #ifndef YYMAXDEPTH
  491. #define YYMAXDEPTH 10000
  492. #endif
  493.  
  494. /* Prevent warning if -Wstrict-prototypes.  */
  495. #ifdef __GNUC__
  496. int yyparse (void);
  497. #endif
  498.  
  499. #if __GNUC__ > 1        /* GNU C and GNU C++ define this.  */
  500. #define __yy_memcpy(TO,FROM,COUNT)    __builtin_memcpy(TO,FROM,COUNT)
  501. #else                /* not GNU C or C++ */
  502. #ifndef __cplusplus
  503.  
  504. /* This is the most reliable way to avoid incompatibilities
  505.    in available built-in functions on various systems.  */
  506. static void
  507. __yy_memcpy (to, from, count)
  508.      char *to;
  509.      char *from;
  510.      int count;
  511. {
  512.   register char *f = from;
  513.   register char *t = to;
  514.   register int i = count;
  515.  
  516.   while (i-- > 0)
  517.     *t++ = *f++;
  518. }
  519.  
  520. #else /* __cplusplus */
  521.  
  522. /* This is the most reliable way to avoid incompatibilities
  523.    in available built-in functions on various systems.  */
  524. static void
  525. __yy_memcpy (char *to, char *from, int count)
  526. {
  527.   register char *f = from;
  528.   register char *t = to;
  529.   register int i = count;
  530.  
  531.   while (i-- > 0)
  532.     *t++ = *f++;
  533. }
  534.  
  535. #endif
  536. #endif
  537.  
  538. #line 196 "bison.simple"
  539.  
  540. /* The user can define YYPARSE_PARAM as the name of an argument to be passed
  541.    into yyparse.  The argument should have type void *.
  542.    It should actually point to an object.
  543.    Grammar actions can access the variable by casting it
  544.    to the proper pointer type.  */
  545.  
  546. #ifdef YYPARSE_PARAM
  547. #ifdef __cplusplus
  548. #define YYPARSE_PARAM_ARG void *YYPARSE_PARAM
  549. #define YYPARSE_PARAM_DECL
  550. #else /* not __cplusplus */
  551. #define YYPARSE_PARAM_ARG YYPARSE_PARAM
  552. #define YYPARSE_PARAM_DECL void *YYPARSE_PARAM;
  553. #endif /* not __cplusplus */
  554. #else /* not YYPARSE_PARAM */
  555. #define YYPARSE_PARAM_ARG
  556. #define YYPARSE_PARAM_DECL
  557. #endif /* not YYPARSE_PARAM */
  558.  
  559. int
  560. yyparse(YYPARSE_PARAM_ARG)
  561.      YYPARSE_PARAM_DECL
  562. {
  563.   register int yystate;
  564.   register int yyn;
  565.   register short *yyssp;
  566.   register YYSTYPE *yyvsp;
  567.   int yyerrstatus;    /*  number of tokens to shift before error messages enabled */
  568.   int yychar1 = 0;        /*  lookahead token as an internal (translated) token number */
  569.  
  570.   short    yyssa[YYINITDEPTH];    /*  the state stack            */
  571.   YYSTYPE yyvsa[YYINITDEPTH];    /*  the semantic value stack        */
  572.  
  573.   short *yyss = yyssa;        /*  refer to the stacks thru separate pointers */
  574.   YYSTYPE *yyvs = yyvsa;    /*  to allow yyoverflow to reallocate them elsewhere */
  575.  
  576. #ifdef YYLSP_NEEDED
  577.   YYLTYPE yylsa[YYINITDEPTH];    /*  the location stack            */
  578.   YYLTYPE *yyls = yylsa;
  579.   YYLTYPE *yylsp;
  580.  
  581. #define YYPOPSTACK   (yyvsp--, yyssp--, yylsp--)
  582. #else
  583. #define YYPOPSTACK   (yyvsp--, yyssp--)
  584. #endif
  585.  
  586.   int yystacksize = YYINITDEPTH;
  587.  
  588. #ifdef YYPURE
  589.   int yychar;
  590.   YYSTYPE yylval;
  591.   int yynerrs;
  592. #ifdef YYLSP_NEEDED
  593.   YYLTYPE yylloc;
  594. #endif
  595. #endif
  596.  
  597.   YYSTYPE yyval;        /*  the variable used to return        */
  598.                 /*  semantic values from the action    */
  599.                 /*  routines                */
  600.  
  601.   int yylen;
  602.  
  603. #if YYDEBUG != 0
  604.   if (yydebug)
  605.     fprintf(stderr, "Starting parse\n");
  606. #endif
  607.  
  608.   yystate = 0;
  609.   yyerrstatus = 0;
  610.   yynerrs = 0;
  611.   yychar = YYEMPTY;        /* Cause a token to be read.  */
  612.  
  613.   /* Initialize stack pointers.
  614.      Waste one element of value and location stack
  615.      so that they stay on the same level as the state stack.
  616.      The wasted elements are never initialized.  */
  617.  
  618.   yyssp = yyss - 1;
  619.   yyvsp = yyvs;
  620. #ifdef YYLSP_NEEDED
  621.   yylsp = yyls;
  622. #endif
  623.  
  624. /* Push a new state, which is found in  yystate  .  */
  625. /* In all cases, when you get here, the value and location stacks
  626.    have just been pushed. so pushing a state here evens the stacks.  */
  627. yynewstate:
  628.  
  629.   *++yyssp = yystate;
  630.  
  631.   if (yyssp >= yyss + yystacksize - 1)
  632.     {
  633.       /* Give user a chance to reallocate the stack */
  634.       /* Use copies of these so that the &'s don't force the real ones into memory. */
  635.       YYSTYPE *yyvs1 = yyvs;
  636.       short *yyss1 = yyss;
  637. #ifdef YYLSP_NEEDED
  638.       YYLTYPE *yyls1 = yyls;
  639. #endif
  640.  
  641.       /* Get the current used size of the three stacks, in elements.  */
  642.       int size = yyssp - yyss + 1;
  643.  
  644. #ifdef yyoverflow
  645.       /* Each stack pointer address is followed by the size of
  646.      the data in use in that stack, in bytes.  */
  647. #ifdef YYLSP_NEEDED
  648.       /* This used to be a conditional around just the two extra args,
  649.      but that might be undefined if yyoverflow is a macro.  */
  650.       yyoverflow("parser stack overflow",
  651.          &yyss1, size * sizeof (*yyssp),
  652.          &yyvs1, size * sizeof (*yyvsp),
  653.          &yyls1, size * sizeof (*yylsp),
  654.          &yystacksize);
  655. #else
  656.       yyoverflow("parser stack overflow",
  657.          &yyss1, size * sizeof (*yyssp),
  658.          &yyvs1, size * sizeof (*yyvsp),
  659.          &yystacksize);
  660. #endif
  661.  
  662.       yyss = yyss1; yyvs = yyvs1;
  663. #ifdef YYLSP_NEEDED
  664.       yyls = yyls1;
  665. #endif
  666. #else /* no yyoverflow */
  667.       /* Extend the stack our own way.  */
  668.       if (yystacksize >= YYMAXDEPTH)
  669.     {
  670.       yyerror("parser stack overflow");
  671.       return 2;
  672.     }
  673.       yystacksize *= 2;
  674.       if (yystacksize > YYMAXDEPTH)
  675.     yystacksize = YYMAXDEPTH;
  676.       yyss = (short *) alloca (yystacksize * sizeof (*yyssp));
  677.       __yy_memcpy ((char *)yyss, (char *)yyss1, size * sizeof (*yyssp));
  678.       yyvs = (YYSTYPE *) alloca (yystacksize * sizeof (*yyvsp));
  679.       __yy_memcpy ((char *)yyvs, (char *)yyvs1, size * sizeof (*yyvsp));
  680. #ifdef YYLSP_NEEDED
  681.       yyls = (YYLTYPE *) alloca (yystacksize * sizeof (*yylsp));
  682.       __yy_memcpy ((char *)yyls, (char *)yyls1, size * sizeof (*yylsp));
  683. #endif
  684. #endif /* no yyoverflow */
  685.  
  686.       yyssp = yyss + size - 1;
  687.       yyvsp = yyvs + size - 1;
  688. #ifdef YYLSP_NEEDED
  689.       yylsp = yyls + size - 1;
  690. #endif
  691.  
  692. #if YYDEBUG != 0
  693.       if (yydebug)
  694.     fprintf(stderr, "Stack size increased to %d\n", yystacksize);
  695. #endif
  696.  
  697.       if (yyssp >= yyss + yystacksize - 1)
  698.     YYABORT;
  699.     }
  700.  
  701. #if YYDEBUG != 0
  702.   if (yydebug)
  703.     fprintf(stderr, "Entering state %d\n", yystate);
  704. #endif
  705.  
  706.   goto yybackup;
  707.  yybackup:
  708.  
  709. /* Do appropriate processing given the current state.  */
  710. /* Read a lookahead token if we need one and don't already have one.  */
  711. /* yyresume: */
  712.  
  713.   /* First try to decide what to do without reference to lookahead token.  */
  714.  
  715.   yyn = yypact[yystate];
  716.   if (yyn == YYFLAG)
  717.     goto yydefault;
  718.  
  719.   /* Not known => get a lookahead token if don't already have one.  */
  720.  
  721.   /* yychar is either YYEMPTY or YYEOF
  722.      or a valid token in external form.  */
  723.  
  724.   if (yychar == YYEMPTY)
  725.     {
  726. #if YYDEBUG != 0
  727.       if (yydebug)
  728.     fprintf(stderr, "Reading a token: ");
  729. #endif
  730.       yychar = YYLEX;
  731.     }
  732.  
  733.   /* Convert token to internal form (in yychar1) for indexing tables with */
  734.  
  735.   if (yychar <= 0)        /* This means end of input. */
  736.     {
  737.       yychar1 = 0;
  738.       yychar = YYEOF;        /* Don't call YYLEX any more */
  739.  
  740. #if YYDEBUG != 0
  741.       if (yydebug)
  742.     fprintf(stderr, "Now at end of input.\n");
  743. #endif
  744.     }
  745.   else
  746.     {
  747.       yychar1 = YYTRANSLATE(yychar);
  748.  
  749. #if YYDEBUG != 0
  750.       if (yydebug)
  751.     {
  752.       fprintf (stderr, "Next token is %d (%s", yychar, yytname[yychar1]);
  753.       /* Give the individual parser a way to print the precise meaning
  754.          of a token, for further debugging info.  */
  755. #ifdef YYPRINT
  756.       YYPRINT (stderr, yychar, yylval);
  757. #endif
  758.       fprintf (stderr, ")\n");
  759.     }
  760. #endif
  761.     }
  762.  
  763.   yyn += yychar1;
  764.   if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1)
  765.     goto yydefault;
  766.  
  767.   yyn = yytable[yyn];
  768.  
  769.   /* yyn is what to do for this token type in this state.
  770.      Negative => reduce, -yyn is rule number.
  771.      Positive => shift, yyn is new state.
  772.        New state is final state => don't bother to shift,
  773.        just return success.
  774.      0, or most negative number => error.  */
  775.  
  776.   if (yyn < 0)
  777.     {
  778.       if (yyn == YYFLAG)
  779.     goto yyerrlab;
  780.       yyn = -yyn;
  781.       goto yyreduce;
  782.     }
  783.   else if (yyn == 0)
  784.     goto yyerrlab;
  785.  
  786.   if (yyn == YYFINAL)
  787.     YYACCEPT;
  788.  
  789.   /* Shift the lookahead token.  */
  790.  
  791. #if YYDEBUG != 0
  792.   if (yydebug)
  793.     fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]);
  794. #endif
  795.  
  796.   /* Discard the token being shifted unless it is eof.  */
  797.   if (yychar != YYEOF)
  798.     yychar = YYEMPTY;
  799.  
  800.   *++yyvsp = yylval;
  801. #ifdef YYLSP_NEEDED
  802.   *++yylsp = yylloc;
  803. #endif
  804.  
  805.   /* count tokens shifted since error; after three, turn off error status.  */
  806.   if (yyerrstatus) yyerrstatus--;
  807.  
  808.   yystate = yyn;
  809.   goto yynewstate;
  810.  
  811. /* Do the default action for the current state.  */
  812. yydefault:
  813.  
  814.   yyn = yydefact[yystate];
  815.   if (yyn == 0)
  816.     goto yyerrlab;
  817.  
  818. /* Do a reduction.  yyn is the number of a rule to reduce with.  */
  819. yyreduce:
  820.   yylen = yyr2[yyn];
  821.   if (yylen > 0)
  822.     yyval = yyvsp[1-yylen]; /* implement default value of the action */
  823.  
  824. #if YYDEBUG != 0
  825.   if (yydebug)
  826.     {
  827.       int i;
  828.  
  829.       fprintf (stderr, "Reducing via rule %d (line %d), ",
  830.            yyn, yyrline[yyn]);
  831.  
  832.       /* Print the symbols being reduced, and their result.  */
  833.       for (i = yyprhs[yyn]; yyrhs[i] > 0; i++)
  834.     fprintf (stderr, "%s ", yytname[yyrhs[i]]);
  835.       fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]);
  836.     }
  837. #endif
  838.  
  839.  
  840.   switch (yyn) {
  841.  
  842. case 1:
  843. #line 113 "parse.y"
  844. { /* add default rule */
  845.             int def_rule;
  846.  
  847.             pat = cclinit();
  848.             cclnegate( pat );
  849.  
  850.             def_rule = mkstate( -pat );
  851.  
  852.             /* Remember the number of the default rule so we
  853.              * don't generate "can't match" warnings for it.
  854.              */
  855.             default_rule = num_rules;
  856.  
  857.             finish_rule( def_rule, false, 0, 0 );
  858.  
  859.             for ( i = 1; i <= lastsc; ++i )
  860.                 scset[i] = mkbranch( scset[i], def_rule );
  861.  
  862.             if ( spprdflt )
  863.                 add_action(
  864.                 "YY_FATAL_ERROR( \"flex scanner jammed\" )" );
  865.             else
  866.                 add_action( "ECHO" );
  867.  
  868.             add_action( ";\n\tYY_BREAK\n" );
  869.             ;
  870.     break;}
  871. case 2:
  872. #line 142 "parse.y"
  873. { /* initialize for processing rules */
  874.  
  875.             /* Create default DFA start condition. */
  876.             scinstal( "INITIAL", false );
  877.             ;
  878.     break;}
  879. case 6:
  880. #line 153 "parse.y"
  881. { synerr( "unknown error processing section 1" ); ;
  882.     break;}
  883. case 7:
  884. #line 157 "parse.y"
  885. {
  886.             check_options();
  887.             scon_stk = allocate_integer_array( lastsc + 1 );
  888.             scon_stk_ptr = 0;
  889.             ;
  890.     break;}
  891. case 8:
  892. #line 165 "parse.y"
  893. { xcluflg = false; ;
  894.     break;}
  895. case 9:
  896. #line 168 "parse.y"
  897. { xcluflg = true; ;
  898.     break;}
  899. case 10:
  900. #line 172 "parse.y"
  901. { scinstal( nmstr, xcluflg ); ;
  902.     break;}
  903. case 11:
  904. #line 175 "parse.y"
  905. { scinstal( nmstr, xcluflg ); ;
  906.     break;}
  907. case 12:
  908. #line 178 "parse.y"
  909. { synerr( "bad start condition list" ); ;
  910.     break;}
  911. case 16:
  912. #line 189 "parse.y"
  913. {
  914.             outfilename = copy_string( nmstr );
  915.             did_outfilename = 1;
  916.             ;
  917.     break;}
  918. case 17:
  919. #line 194 "parse.y"
  920. { prefix = copy_string( nmstr ); ;
  921.     break;}
  922. case 18:
  923. #line 196 "parse.y"
  924. { yyclass = copy_string( nmstr ); ;
  925.     break;}
  926. case 19:
  927. #line 200 "parse.y"
  928. { scon_stk_ptr = yyvsp[-3]; ;
  929.     break;}
  930. case 20:
  931. #line 202 "parse.y"
  932. { scon_stk_ptr = yyvsp[-3]; ;
  933.     break;}
  934. case 22:
  935. #line 207 "parse.y"
  936. {
  937.             /* Initialize for a parse of one rule. */
  938.             trlcontxt = variable_trail_rule = varlength = false;
  939.             trailcnt = headcnt = rulelen = 0;
  940.             current_state_type = STATE_NORMAL;
  941.             previous_continued_action = continued_action;
  942.             in_rule = true;
  943.  
  944.             new_rule();
  945.             ;
  946.     break;}
  947. case 23:
  948. #line 220 "parse.y"
  949. {
  950.             pat = yyvsp[0];
  951.             finish_rule( pat, variable_trail_rule,
  952.                 headcnt, trailcnt );
  953.  
  954.             if ( scon_stk_ptr > 0 )
  955.                 {
  956.                 for ( i = 1; i <= scon_stk_ptr; ++i )
  957.                     scbol[scon_stk[i]] =
  958.                         mkbranch( scbol[scon_stk[i]],
  959.                                 pat );
  960.                 }
  961.  
  962.             else
  963.                 {
  964.                 /* Add to all non-exclusive start conditions,
  965.                  * including the default (0) start condition.
  966.                  */
  967.  
  968.                 for ( i = 1; i <= lastsc; ++i )
  969.                     if ( ! scxclu[i] )
  970.                         scbol[i] = mkbranch( scbol[i],
  971.                                     pat );
  972.                 }
  973.  
  974.             if ( ! bol_needed )
  975.                 {
  976.                 bol_needed = true;
  977.  
  978.                 if ( performance_report > 1 )
  979.                     pinpoint_message(
  980.             "'^' operator results in sub-optimal performance" );
  981.                 }
  982.             ;
  983.     break;}
  984. case 24:
  985. #line 256 "parse.y"
  986. {
  987.             pat = yyvsp[0];
  988.             finish_rule( pat, variable_trail_rule,
  989.                 headcnt, trailcnt );
  990.  
  991.             if ( scon_stk_ptr > 0 )
  992.                 {
  993.                 for ( i = 1; i <= scon_stk_ptr; ++i )
  994.                     scset[scon_stk[i]] =
  995.                         mkbranch( scset[scon_stk[i]],
  996.                                 pat );
  997.                 }
  998.  
  999.             else
  1000.                 {
  1001.                 for ( i = 1; i <= lastsc; ++i )
  1002.                     if ( ! scxclu[i] )
  1003.                         scset[i] =
  1004.                             mkbranch( scset[i],
  1005.                                 pat );
  1006.                 }
  1007.             ;
  1008.     break;}
  1009. case 25:
  1010. #line 280 "parse.y"
  1011. {
  1012.             if ( scon_stk_ptr > 0 )
  1013.                 build_eof_action();
  1014.     
  1015.             else
  1016.                 {
  1017.                 /* This EOF applies to all start conditions
  1018.                  * which don't already have EOF actions.
  1019.                  */
  1020.                 for ( i = 1; i <= lastsc; ++i )
  1021.                     if ( ! sceof[i] )
  1022.                         scon_stk[++scon_stk_ptr] = i;
  1023.  
  1024.                 if ( scon_stk_ptr == 0 )
  1025.                     warn(
  1026.             "all start conditions already have <<EOF>> rules" );
  1027.  
  1028.                 else
  1029.                     build_eof_action();
  1030.                 }
  1031.             ;
  1032.     break;}
  1033. case 26:
  1034. #line 303 "parse.y"
  1035. { synerr( "unrecognized rule" ); ;
  1036.     break;}
  1037. case 27:
  1038. #line 307 "parse.y"
  1039. { yyval = scon_stk_ptr; ;
  1040.     break;}
  1041. case 28:
  1042. #line 311 "parse.y"
  1043. { yyval = yyvsp[-2]; ;
  1044.     break;}
  1045. case 29:
  1046. #line 314 "parse.y"
  1047. {
  1048.             yyval = scon_stk_ptr;
  1049.  
  1050.             for ( i = 1; i <= lastsc; ++i )
  1051.                 {
  1052.                 int j;
  1053.  
  1054.                 for ( j = 1; j <= scon_stk_ptr; ++j )
  1055.                     if ( scon_stk[j] == i )
  1056.                         break;
  1057.  
  1058.                 if ( j > scon_stk_ptr )
  1059.                     scon_stk[++scon_stk_ptr] = i;
  1060.                 }
  1061.             ;
  1062.     break;}
  1063. case 30:
  1064. #line 331 "parse.y"
  1065. { yyval = scon_stk_ptr; ;
  1066.     break;}
  1067. case 33:
  1068. #line 339 "parse.y"
  1069. { synerr( "bad start condition list" ); ;
  1070.     break;}
  1071. case 34:
  1072. #line 343 "parse.y"
  1073. {
  1074.             if ( (scnum = sclookup( nmstr )) == 0 )
  1075.                 format_pinpoint_message(
  1076.                     "undeclared start condition %s",
  1077.                     nmstr );
  1078.             else
  1079.                 {
  1080.                 for ( i = 1; i <= scon_stk_ptr; ++i )
  1081.                     if ( scon_stk[i] == scnum )
  1082.                         {
  1083.                         format_warn(
  1084.                             "<%s> specified twice",
  1085.                             scname[scnum] );
  1086.                         break;
  1087.                         }
  1088.  
  1089.                 if ( i > scon_stk_ptr )
  1090.                     scon_stk[++scon_stk_ptr] = scnum;
  1091.                 }
  1092.             ;
  1093.     break;}
  1094. case 35:
  1095. #line 366 "parse.y"
  1096. {
  1097.             if ( transchar[lastst[yyvsp[0]]] != SYM_EPSILON )
  1098.                 /* Provide final transition \now/ so it
  1099.                  * will be marked as a trailing context
  1100.                  * state.
  1101.                  */
  1102.                 yyvsp[0] = link_machines( yyvsp[0],
  1103.                         mkstate( SYM_EPSILON ) );
  1104.  
  1105.             mark_beginning_as_normal( yyvsp[0] );
  1106.             current_state_type = STATE_NORMAL;
  1107.  
  1108.             if ( previous_continued_action )
  1109.                 {
  1110.                 /* We need to treat this as variable trailing
  1111.                  * context so that the backup does not happen
  1112.                  * in the action but before the action switch
  1113.                  * statement.  If the backup happens in the
  1114.                  * action, then the rules "falling into" this
  1115.                  * one's action will *also* do the backup,
  1116.                  * erroneously.
  1117.                  */
  1118.                 if ( ! varlength || headcnt != 0 )
  1119.                     warn(
  1120.         "trailing context made variable due to preceding '|' action" );
  1121.  
  1122.                 /* Mark as variable. */
  1123.                 varlength = true;
  1124.                 headcnt = 0;
  1125.                 }
  1126.  
  1127.             if ( lex_compat || (varlength && headcnt == 0) )
  1128.                 { /* variable trailing context rule */
  1129.                 /* Mark the first part of the rule as the
  1130.                  * accepting "head" part of a trailing
  1131.                  * context rule.
  1132.                  *
  1133.                  * By the way, we didn't do this at the
  1134.                  * beginning of this production because back
  1135.                  * then current_state_type was set up for a
  1136.                  * trail rule, and add_accept() can create
  1137.                  * a new state ...
  1138.                  */
  1139.                 add_accept( yyvsp[-1],
  1140.                     num_rules | YY_TRAILING_HEAD_MASK );
  1141.                 variable_trail_rule = true;
  1142.                 }
  1143.             
  1144.             else
  1145.                 trailcnt = rulelen;
  1146.  
  1147.             yyval = link_machines( yyvsp[-1], yyvsp[0] );
  1148.             ;
  1149.     break;}
  1150. case 36:
  1151. #line 421 "parse.y"
  1152. { synerr( "trailing context used twice" ); ;
  1153.     break;}
  1154. case 37:
  1155. #line 424 "parse.y"
  1156. {
  1157.             headcnt = 0;
  1158.             trailcnt = 1;
  1159.             rulelen = 1;
  1160.             varlength = false;
  1161.  
  1162.             current_state_type = STATE_TRAILING_CONTEXT;
  1163.  
  1164.             if ( trlcontxt )
  1165.                 {
  1166.                 synerr( "trailing context used twice" );
  1167.                 yyval = mkstate( SYM_EPSILON );
  1168.                 }
  1169.  
  1170.             else if ( previous_continued_action )
  1171.                 {
  1172.                 /* See the comment in the rule for "re2 re"
  1173.                  * above.
  1174.                  */
  1175.                 warn(
  1176.         "trailing context made variable due to preceding '|' action" );
  1177.  
  1178.                 varlength = true;
  1179.                 }
  1180.  
  1181.             if ( lex_compat || varlength )
  1182.                 {
  1183.                 /* Again, see the comment in the rule for
  1184.                  * "re2 re" above.
  1185.                  */
  1186.                 add_accept( yyvsp[-1],
  1187.                     num_rules | YY_TRAILING_HEAD_MASK );
  1188.                 variable_trail_rule = true;
  1189.                 }
  1190.  
  1191.             trlcontxt = true;
  1192.  
  1193.             eps = mkstate( SYM_EPSILON );
  1194.             yyval = link_machines( yyvsp[-1],
  1195.                 link_machines( eps, mkstate( '\n' ) ) );
  1196.             ;
  1197.     break;}
  1198. case 38:
  1199. #line 467 "parse.y"
  1200. {
  1201.             yyval = yyvsp[0];
  1202.  
  1203.             if ( trlcontxt )
  1204.                 {
  1205.                 if ( lex_compat || (varlength && headcnt == 0) )
  1206.                     /* Both head and trail are
  1207.                      * variable-length.
  1208.                      */
  1209.                     variable_trail_rule = true;
  1210.                 else
  1211.                     trailcnt = rulelen;
  1212.                 }
  1213.             ;
  1214.     break;}
  1215. case 39:
  1216. #line 485 "parse.y"
  1217. {
  1218.             varlength = true;
  1219.             yyval = mkor( yyvsp[-2], yyvsp[0] );
  1220.             ;
  1221.     break;}
  1222. case 40:
  1223. #line 491 "parse.y"
  1224. { yyval = yyvsp[0]; ;
  1225.     break;}
  1226. case 41:
  1227. #line 496 "parse.y"
  1228. {
  1229.             /* This rule is written separately so the
  1230.              * reduction will occur before the trailing
  1231.              * series is parsed.
  1232.              */
  1233.  
  1234.             if ( trlcontxt )
  1235.                 synerr( "trailing context used twice" );
  1236.             else
  1237.                 trlcontxt = true;
  1238.  
  1239.             if ( varlength )
  1240.                 /* We hope the trailing context is
  1241.                  * fixed-length.
  1242.                  */
  1243.                 varlength = false;
  1244.             else
  1245.                 headcnt = rulelen;
  1246.  
  1247.             rulelen = 0;
  1248.  
  1249.             current_state_type = STATE_TRAILING_CONTEXT;
  1250.             yyval = yyvsp[-1];
  1251.             ;
  1252.     break;}
  1253. case 42:
  1254. #line 523 "parse.y"
  1255. {
  1256.             /* This is where concatenation of adjacent patterns
  1257.              * gets done.
  1258.              */
  1259.             yyval = link_machines( yyvsp[-1], yyvsp[0] );
  1260.             ;
  1261.     break;}
  1262. case 43:
  1263. #line 531 "parse.y"
  1264. { yyval = yyvsp[0]; ;
  1265.     break;}
  1266. case 44:
  1267. #line 535 "parse.y"
  1268. {
  1269.             varlength = true;
  1270.  
  1271.             yyval = mkclos( yyvsp[-1] );
  1272.             ;
  1273.     break;}
  1274. case 45:
  1275. #line 542 "parse.y"
  1276. {
  1277.             varlength = true;
  1278.             yyval = mkposcl( yyvsp[-1] );
  1279.             ;
  1280.     break;}
  1281. case 46:
  1282. #line 548 "parse.y"
  1283. {
  1284.             varlength = true;
  1285.             yyval = mkopt( yyvsp[-1] );
  1286.             ;
  1287.     break;}
  1288. case 47:
  1289. #line 554 "parse.y"
  1290. {
  1291.             varlength = true;
  1292.  
  1293.             if ( yyvsp[-3] > yyvsp[-1] || yyvsp[-3] < 0 )
  1294.                 {
  1295.                 synerr( "bad iteration values" );
  1296.                 yyval = yyvsp[-5];
  1297.                 }
  1298.             else
  1299.                 {
  1300.                 if ( yyvsp[-3] == 0 )
  1301.                     {
  1302.                     if ( yyvsp[-1] <= 0 )
  1303.                         {
  1304.                         synerr(
  1305.                         "bad iteration values" );
  1306.                         yyval = yyvsp[-5];
  1307.                         }
  1308.                     else
  1309.                         yyval = mkopt(
  1310.                             mkrep( yyvsp[-5], 1, yyvsp[-1] ) );
  1311.                     }
  1312.                 else
  1313.                     yyval = mkrep( yyvsp[-5], yyvsp[-3], yyvsp[-1] );
  1314.                 }
  1315.             ;
  1316.     break;}
  1317. case 48:
  1318. #line 582 "parse.y"
  1319. {
  1320.             varlength = true;
  1321.  
  1322.             if ( yyvsp[-2] <= 0 )
  1323.                 {
  1324.                 synerr( "iteration value must be positive" );
  1325.                 yyval = yyvsp[-4];
  1326.                 }
  1327.  
  1328.             else
  1329.                 yyval = mkrep( yyvsp[-4], yyvsp[-2], INFINITY );
  1330.             ;
  1331.     break;}
  1332. case 49:
  1333. #line 596 "parse.y"
  1334. {
  1335.             /* The singleton could be something like "(foo)",
  1336.              * in which case we have no idea what its length
  1337.              * is, so we punt here.
  1338.              */
  1339.             varlength = true;
  1340.  
  1341.             if ( yyvsp[-1] <= 0 )
  1342.                 {
  1343.                 synerr( "iteration value must be positive" );
  1344.                 yyval = yyvsp[-3];
  1345.                 }
  1346.  
  1347.             else
  1348.                 yyval = link_machines( yyvsp[-3],
  1349.                         copysingl( yyvsp[-3], yyvsp[-1] - 1 ) );
  1350.             ;
  1351.     break;}
  1352. case 50:
  1353. #line 615 "parse.y"
  1354. {
  1355.             if ( ! madeany )
  1356.                 {
  1357.                 /* Create the '.' character class. */
  1358.                 anyccl = cclinit();
  1359.                 ccladd( anyccl, '\n' );
  1360.                 cclnegate( anyccl );
  1361.  
  1362.                 if ( useecs )
  1363.                     mkeccl( ccltbl + cclmap[anyccl],
  1364.                         ccllen[anyccl], nextecm,
  1365.                         ecgroup, csize, csize );
  1366.  
  1367.                 madeany = true;
  1368.                 }
  1369.  
  1370.             ++rulelen;
  1371.  
  1372.             yyval = mkstate( -anyccl );
  1373.             ;
  1374.     break;}
  1375. case 51:
  1376. #line 637 "parse.y"
  1377. {
  1378.             if ( ! cclsorted )
  1379.                 /* Sort characters for fast searching.  We
  1380.                  * use a shell sort since this list could
  1381.                  * be large.
  1382.                  */
  1383.                 cshell( ccltbl + cclmap[yyvsp[0]], ccllen[yyvsp[0]], true );
  1384.  
  1385.             if ( useecs )
  1386.                 mkeccl( ccltbl + cclmap[yyvsp[0]], ccllen[yyvsp[0]],
  1387.                     nextecm, ecgroup, csize, csize );
  1388.  
  1389.             ++rulelen;
  1390.  
  1391.             yyval = mkstate( -yyvsp[0] );
  1392.             ;
  1393.     break;}
  1394. case 52:
  1395. #line 655 "parse.y"
  1396. {
  1397.             ++rulelen;
  1398.  
  1399.             yyval = mkstate( -yyvsp[0] );
  1400.             ;
  1401.     break;}
  1402. case 53:
  1403. #line 662 "parse.y"
  1404. { yyval = yyvsp[-1]; ;
  1405.     break;}
  1406. case 54:
  1407. #line 665 "parse.y"
  1408. { yyval = yyvsp[-1]; ;
  1409.     break;}
  1410. case 55:
  1411. #line 668 "parse.y"
  1412. {
  1413.             ++rulelen;
  1414.  
  1415.             if ( caseins && yyvsp[0] >= 'A' && yyvsp[0] <= 'Z' )
  1416.                 yyvsp[0] = clower( yyvsp[0] );
  1417.  
  1418.             yyval = mkstate( yyvsp[0] );
  1419.             ;
  1420.     break;}
  1421. case 56:
  1422. #line 679 "parse.y"
  1423. { yyval = yyvsp[-1]; ;
  1424.     break;}
  1425. case 57:
  1426. #line 682 "parse.y"
  1427. {
  1428.             cclnegate( yyvsp[-1] );
  1429.             yyval = yyvsp[-1];
  1430.             ;
  1431.     break;}
  1432. case 58:
  1433. #line 689 "parse.y"
  1434. {
  1435.             if ( caseins )
  1436.                 {
  1437.                 if ( yyvsp[-2] >= 'A' && yyvsp[-2] <= 'Z' )
  1438.                     yyvsp[-2] = clower( yyvsp[-2] );
  1439.                 if ( yyvsp[0] >= 'A' && yyvsp[0] <= 'Z' )
  1440.                     yyvsp[0] = clower( yyvsp[0] );
  1441.                 }
  1442.  
  1443.             if ( yyvsp[-2] > yyvsp[0] )
  1444.                 synerr( "negative range in character class" );
  1445.  
  1446.             else
  1447.                 {
  1448.                 for ( i = yyvsp[-2]; i <= yyvsp[0]; ++i )
  1449.                     ccladd( yyvsp[-3], i );
  1450.  
  1451.                 /* Keep track if this ccl is staying in
  1452.                  * alphabetical order.
  1453.                  */
  1454.                 cclsorted = cclsorted && (yyvsp[-2] > lastchar);
  1455.                 lastchar = yyvsp[0];
  1456.                 }
  1457.  
  1458.             yyval = yyvsp[-3];
  1459.             ;
  1460.     break;}
  1461. case 59:
  1462. #line 717 "parse.y"
  1463. {
  1464.             if ( caseins && yyvsp[0] >= 'A' && yyvsp[0] <= 'Z' )
  1465.                 yyvsp[0] = clower( yyvsp[0] );
  1466.  
  1467.             ccladd( yyvsp[-1], yyvsp[0] );
  1468.             cclsorted = cclsorted && (yyvsp[0] > lastchar);
  1469.             lastchar = yyvsp[0];
  1470.             yyval = yyvsp[-1];
  1471.             ;
  1472.     break;}
  1473. case 60:
  1474. #line 728 "parse.y"
  1475. {
  1476.             /* Too hard to properly maintain cclsorted. */
  1477.             cclsorted = false;
  1478.             yyval = yyvsp[-1];
  1479.             ;
  1480.     break;}
  1481. case 61:
  1482. #line 735 "parse.y"
  1483. {
  1484.             cclsorted = true;
  1485.             lastchar = 0;
  1486.             currccl = yyval = cclinit();
  1487.             ;
  1488.     break;}
  1489. case 62:
  1490. #line 742 "parse.y"
  1491. { CCL_EXPR(isalnum) ;
  1492.     break;}
  1493. case 63:
  1494. #line 743 "parse.y"
  1495. { CCL_EXPR(isalpha) ;
  1496.     break;}
  1497. case 64:
  1498. #line 744 "parse.y"
  1499. { CCL_EXPR(IS_BLANK) ;
  1500.     break;}
  1501. case 65:
  1502. #line 745 "parse.y"
  1503. { CCL_EXPR(iscntrl) ;
  1504.     break;}
  1505. case 66:
  1506. #line 746 "parse.y"
  1507. { CCL_EXPR(isdigit) ;
  1508.     break;}
  1509. case 67:
  1510. #line 747 "parse.y"
  1511. { CCL_EXPR(isgraph) ;
  1512.     break;}
  1513. case 68:
  1514. #line 748 "parse.y"
  1515. { CCL_EXPR(islower) ;
  1516.     break;}
  1517. case 69:
  1518. #line 749 "parse.y"
  1519. { CCL_EXPR(isprint) ;
  1520.     break;}
  1521. case 70:
  1522. #line 750 "parse.y"
  1523. { CCL_EXPR(ispunct) ;
  1524.     break;}
  1525. case 71:
  1526. #line 751 "parse.y"
  1527. { CCL_EXPR(isspace) ;
  1528.     break;}
  1529. case 72:
  1530. #line 752 "parse.y"
  1531. {
  1532.                 if ( caseins )
  1533.                     CCL_EXPR(islower)
  1534.                 else
  1535.                     CCL_EXPR(isupper)
  1536.                 ;
  1537.     break;}
  1538. case 73:
  1539. #line 758 "parse.y"
  1540. { CCL_EXPR(isxdigit) ;
  1541.     break;}
  1542. case 74:
  1543. #line 762 "parse.y"
  1544. {
  1545.             if ( caseins && yyvsp[0] >= 'A' && yyvsp[0] <= 'Z' )
  1546.                 yyvsp[0] = clower( yyvsp[0] );
  1547.  
  1548.             ++rulelen;
  1549.  
  1550.             yyval = link_machines( yyvsp[-1], mkstate( yyvsp[0] ) );
  1551.             ;
  1552.     break;}
  1553. case 75:
  1554. #line 772 "parse.y"
  1555. { yyval = mkstate( SYM_EPSILON ); ;
  1556.     break;}
  1557. }
  1558.    /* the action file gets copied in in place of this dollarsign */
  1559. #line 498 "bison.simple"
  1560.  
  1561.   yyvsp -= yylen;
  1562.   yyssp -= yylen;
  1563. #ifdef YYLSP_NEEDED
  1564.   yylsp -= yylen;
  1565. #endif
  1566.  
  1567. #if YYDEBUG != 0
  1568.   if (yydebug)
  1569.     {
  1570.       short *ssp1 = yyss - 1;
  1571.       fprintf (stderr, "state stack now");
  1572.       while (ssp1 != yyssp)
  1573.     fprintf (stderr, " %d", *++ssp1);
  1574.       fprintf (stderr, "\n");
  1575.     }
  1576. #endif
  1577.  
  1578.   *++yyvsp = yyval;
  1579.  
  1580. #ifdef YYLSP_NEEDED
  1581.   yylsp++;
  1582.   if (yylen == 0)
  1583.     {
  1584.       yylsp->first_line = yylloc.first_line;
  1585.       yylsp->first_column = yylloc.first_column;
  1586.       yylsp->last_line = (yylsp-1)->last_line;
  1587.       yylsp->last_column = (yylsp-1)->last_column;
  1588.       yylsp->text = 0;
  1589.     }
  1590.   else
  1591.     {
  1592.       yylsp->last_line = (yylsp+yylen-1)->last_line;
  1593.       yylsp->last_column = (yylsp+yylen-1)->last_column;
  1594.     }
  1595. #endif
  1596.  
  1597.   /* Now "shift" the result of the reduction.
  1598.      Determine what state that goes to,
  1599.      based on the state we popped back to
  1600.      and the rule number reduced by.  */
  1601.  
  1602.   yyn = yyr1[yyn];
  1603.  
  1604.   yystate = yypgoto[yyn - YYNTBASE] + *yyssp;
  1605.   if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp)
  1606.     yystate = yytable[yystate];
  1607.   else
  1608.     yystate = yydefgoto[yyn - YYNTBASE];
  1609.  
  1610.   goto yynewstate;
  1611.  
  1612. yyerrlab:   /* here on detecting error */
  1613.  
  1614.   if (! yyerrstatus)
  1615.     /* If not already recovering from an error, report this error.  */
  1616.     {
  1617.       ++yynerrs;
  1618.  
  1619. #ifdef YYERROR_VERBOSE
  1620.       yyn = yypact[yystate];
  1621.  
  1622.       if (yyn > YYFLAG && yyn < YYLAST)
  1623.     {
  1624.       int size = 0;
  1625.       char *msg;
  1626.       int x, count;
  1627.  
  1628.       count = 0;
  1629.       /* Start X at -yyn if nec to avoid negative indexes in yycheck.  */
  1630.       for (x = (yyn < 0 ? -yyn : 0);
  1631.            x < (sizeof(yytname) / sizeof(char *)); x++)
  1632.         if (yycheck[x + yyn] == x)
  1633.           size += strlen(yytname[x]) + 15, count++;
  1634.       msg = (char *) malloc(size + 15);
  1635.       if (msg != 0)
  1636.         {
  1637.           strcpy(msg, "parse error");
  1638.  
  1639.           if (count < 5)
  1640.         {
  1641.           count = 0;
  1642.           for (x = (yyn < 0 ? -yyn : 0);
  1643.                x < (sizeof(yytname) / sizeof(char *)); x++)
  1644.             if (yycheck[x + yyn] == x)
  1645.               {
  1646.             strcat(msg, count == 0 ? ", expecting `" : " or `");
  1647.             strcat(msg, yytname[x]);
  1648.             strcat(msg, "'");
  1649.             count++;
  1650.               }
  1651.         }
  1652.           yyerror(msg);
  1653.           free(msg);
  1654.         }
  1655.       else
  1656.         yyerror ("parse error; also virtual memory exceeded");
  1657.     }
  1658.       else
  1659. #endif /* YYERROR_VERBOSE */
  1660.     yyerror("parse error");
  1661.     }
  1662.  
  1663.   goto yyerrlab1;
  1664. yyerrlab1:   /* here on error raised explicitly by an action */
  1665.  
  1666.   if (yyerrstatus == 3)
  1667.     {
  1668.       /* if just tried and failed to reuse lookahead token after an error, discard it.  */
  1669.  
  1670.       /* return failure if at end of input */
  1671.       if (yychar == YYEOF)
  1672.     YYABORT;
  1673.  
  1674. #if YYDEBUG != 0
  1675.       if (yydebug)
  1676.     fprintf(stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1]);
  1677. #endif
  1678.  
  1679.       yychar = YYEMPTY;
  1680.     }
  1681.  
  1682.   /* Else will try to reuse lookahead token
  1683.      after shifting the error token.  */
  1684.  
  1685.   yyerrstatus = 3;        /* Each real token shifted decrements this */
  1686.  
  1687.   goto yyerrhandle;
  1688.  
  1689. yyerrdefault:  /* current state does not do anything special for the error token. */
  1690.  
  1691. #if 0
  1692.   /* This is wrong; only states that explicitly want error tokens
  1693.      should shift them.  */
  1694.   yyn = yydefact[yystate];  /* If its default is to accept any token, ok.  Otherwise pop it.*/
  1695.   if (yyn) goto yydefault;
  1696. #endif
  1697.  
  1698. yyerrpop:   /* pop the current state because it cannot handle the error token */
  1699.  
  1700.   if (yyssp == yyss) YYABORT;
  1701.   yyvsp--;
  1702.   yystate = *--yyssp;
  1703. #ifdef YYLSP_NEEDED
  1704.   yylsp--;
  1705. #endif
  1706.  
  1707. #if YYDEBUG != 0
  1708.   if (yydebug)
  1709.     {
  1710.       short *ssp1 = yyss - 1;
  1711.       fprintf (stderr, "Error: state stack now");
  1712.       while (ssp1 != yyssp)
  1713.     fprintf (stderr, " %d", *++ssp1);
  1714.       fprintf (stderr, "\n");
  1715.     }
  1716. #endif
  1717.  
  1718. yyerrhandle:
  1719.  
  1720.   yyn = yypact[yystate];
  1721.   if (yyn == YYFLAG)
  1722.     goto yyerrdefault;
  1723.  
  1724.   yyn += YYTERROR;
  1725.   if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR)
  1726.     goto yyerrdefault;
  1727.  
  1728.   yyn = yytable[yyn];
  1729.   if (yyn < 0)
  1730.     {
  1731.       if (yyn == YYFLAG)
  1732.     goto yyerrpop;
  1733.       yyn = -yyn;
  1734.       goto yyreduce;
  1735.     }
  1736.   else if (yyn == 0)
  1737.     goto yyerrpop;
  1738.  
  1739.   if (yyn == YYFINAL)
  1740.     YYACCEPT;
  1741.  
  1742. #if YYDEBUG != 0
  1743.   if (yydebug)
  1744.     fprintf(stderr, "Shifting error token, ");
  1745. #endif
  1746.  
  1747.   *++yyvsp = yylval;
  1748. #ifdef YYLSP_NEEDED
  1749.   *++yylsp = yylloc;
  1750. #endif
  1751.  
  1752.   yystate = yyn;
  1753.   goto yynewstate;
  1754. }
  1755. #line 775 "parse.y"
  1756.  
  1757.  
  1758.  
  1759. /* build_eof_action - build the "<<EOF>>" action for the active start
  1760.  *                    conditions
  1761.  */
  1762.  
  1763. void build_eof_action()
  1764.     {
  1765.     register int i;
  1766.     char action_text[MAXLINE];
  1767.  
  1768.     for ( i = 1; i <= scon_stk_ptr; ++i )
  1769.         {
  1770.         if ( sceof[scon_stk[i]] )
  1771.             format_pinpoint_message(
  1772.                 "multiple <<EOF>> rules for start condition %s",
  1773.                 scname[scon_stk[i]] );
  1774.  
  1775.         else
  1776.             {
  1777.             sceof[scon_stk[i]] = true;
  1778.             sprintf( action_text, "case YY_STATE_EOF(%s):\n",
  1779.                 scname[scon_stk[i]] );
  1780.             add_action( action_text );
  1781.             }
  1782.         }
  1783.  
  1784.     line_directive_out( (FILE *) 0, 1 );
  1785.  
  1786.     /* This isn't a normal rule after all - don't count it as
  1787.      * such, so we don't have any holes in the rule numbering
  1788.      * (which make generating "rule can never match" warnings
  1789.      * more difficult.
  1790.      */
  1791.     --num_rules;
  1792.     ++num_eof_rules;
  1793.     }
  1794.  
  1795.  
  1796. /* format_synerr - write out formatted syntax error */
  1797.  
  1798. void format_synerr( msg, arg )
  1799. char msg[], arg[];
  1800.     {
  1801.     char errmsg[MAXLINE];
  1802.  
  1803.     (void) sprintf( errmsg, msg, arg );
  1804.     synerr( errmsg );
  1805.     }
  1806.  
  1807.  
  1808. /* synerr - report a syntax error */
  1809.  
  1810. void synerr( str )
  1811. char str[];
  1812.     {
  1813.     syntaxerror = true;
  1814.     pinpoint_message( str );
  1815.     }
  1816.  
  1817.  
  1818. /* format_warn - write out formatted warning */
  1819.  
  1820. void format_warn( msg, arg )
  1821. char msg[], arg[];
  1822.     {
  1823.     char warn_msg[MAXLINE];
  1824.  
  1825.     (void) sprintf( warn_msg, msg, arg );
  1826.     warn( warn_msg );
  1827.     }
  1828.  
  1829.  
  1830. /* warn - report a warning, unless -w was given */
  1831.  
  1832. void warn( str )
  1833. char str[];
  1834.     {
  1835.     line_warning( str, linenum );
  1836.     }
  1837.  
  1838. /* format_pinpoint_message - write out a message formatted with one string,
  1839.  *                 pinpointing its location
  1840.  */
  1841.  
  1842. void format_pinpoint_message( msg, arg )
  1843. char msg[], arg[];
  1844.     {
  1845.     char errmsg[MAXLINE];
  1846.  
  1847.     (void) sprintf( errmsg, msg, arg );
  1848.     pinpoint_message( errmsg );
  1849.     }
  1850.  
  1851.  
  1852. /* pinpoint_message - write out a message, pinpointing its location */
  1853.  
  1854. void pinpoint_message( str )
  1855. char str[];
  1856.     {
  1857.     line_pinpoint( str, linenum );
  1858.     }
  1859.  
  1860.  
  1861. /* line_warning - report a warning at a given line, unless -w was given */
  1862.  
  1863. void line_warning( str, line )
  1864. char str[];
  1865. int line;
  1866.     {
  1867.     char warning[MAXLINE];
  1868.  
  1869.     if ( ! nowarn )
  1870.         {
  1871.         sprintf( warning, "warning, %s", str );
  1872.         line_pinpoint( warning, line );
  1873.         }
  1874.     }
  1875.  
  1876.  
  1877. /* line_pinpoint - write out a message, pinpointing it at the given line */
  1878.  
  1879. void line_pinpoint( str, line )
  1880. char str[];
  1881. int line;
  1882.     {
  1883.     fprintf( stderr, "\"%s\", line %d: %s\n", infilename, line, str );
  1884.     }
  1885.  
  1886.  
  1887. /* yyerror - eat up an error message from the parser;
  1888.  *         currently, messages are ignore
  1889.  */
  1890.  
  1891. void yyerror( msg )
  1892. char msg[];
  1893.     {
  1894.     }
  1895.