New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 10725 for vendors/AGRIF/CMEMS_2020/LIB/main.c – NEMO

Ignore:
Timestamp:
2019-02-27T14:55:54+01:00 (5 years ago)
Author:
rblod
Message:

Update agrif library and conv see ticket #2129

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendors/AGRIF/CMEMS_2020/LIB/main.c

    r10088 r10725  
    1 /* A Bison parser, made by GNU Bison 2.7.  */ 
    2  
    3 /* Bison implementation for Yacc-like parsers in C 
    4     
    5       Copyright (C) 1984, 1989-1990, 2000-2012 Free Software Foundation, Inc. 
    6     
    7    This program is free software: you can redistribute it and/or modify 
     1/* A Bison parser, made by GNU Bison 2.3.  */ 
     2 
     3/* Skeleton implementation for Bison's Yacc-like parsers in C 
     4 
     5   Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 
     6   Free Software Foundation, Inc. 
     7 
     8   This program is free software; you can redistribute it and/or modify 
    89   it under the terms of the GNU General Public License as published by 
    9    the Free Software Foundation, either version 3 of the License, or 
    10    (at your option) any later version. 
    11     
     10   the Free Software Foundation; either version 2, or (at your option) 
     11   any later version. 
     12 
    1213   This program is distributed in the hope that it will be useful, 
    1314   but WITHOUT ANY WARRANTY; without even the implied warranty of 
    1415   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    1516   GNU General Public License for more details. 
    16     
     17 
    1718   You should have received a copy of the GNU General Public License 
    18    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */ 
     19   along with this program; if not, write to the Free Software 
     20   Foundation, Inc., 51 Franklin Street, Fifth Floor, 
     21   Boston, MA 02110-1301, USA.  */ 
    1922 
    2023/* As a special exception, you may create a larger work that contains 
     
    2730   Bison output files to be licensed under the GNU General Public 
    2831   License without this special exception. 
    29     
     32 
    3033   This special exception was added by the Free Software Foundation in 
    3134   version 2.2 of Bison.  */ 
     
    4548 
    4649/* Bison version.  */ 
    47 #define YYBISON_VERSION "2.7" 
     50#define YYBISON_VERSION "2.3" 
    4851 
    4952/* Skeleton name.  */ 
     
    5356#define YYPURE 0 
    5457 
    55 /* Push parsers.  */ 
    56 #define YYPUSH 0 
    57  
    58 /* Pull parsers.  */ 
    59 #define YYPULL 1 
    60  
     58/* Using locations.  */ 
     59#define YYLSP_NEEDED 0 
    6160 
    6261/* Substitute the variable and function names.  */ 
    63 #define yyparse         convert_parse 
    64 #define yylex           convert_lex 
    65 #define yyerror         convert_error 
    66 #define yylval          convert_lval 
    67 #define yychar          convert_char 
    68 #define yydebug         convert_debug 
    69 #define yynerrs         convert_nerrs 
    70  
    71 /* Copy the first part of user declarations.  */ 
    72 /* Line 371 of yacc.c  */ 
    73 #line 35 "convert.y" 
    74  
    75 #include <stdlib.h> 
    76 #include <stdio.h> 
    77 #include <string.h> 
    78 #include "decl.h" 
    79  
    80 int line_num=1; 
    81 extern FILE * convert_in; 
    82  
    83 int convert_error(const char *s) 
    84 { 
    85     printf("##\n## ERROR in conv: '%s' (line %d, file: %s)\n##\n", s, line_num, config_file); 
    86     exit(0); 
    87 } 
    88  
    89  
    90 /* Line 371 of yacc.c  */ 
    91 #line 92 "convert.tab.c" 
    92  
    93 # ifndef YY_NULL 
    94 #  if defined __cplusplus && 201103L <= __cplusplus 
    95 #   define YY_NULL nullptr 
    96 #  else 
    97 #   define YY_NULL 0 
    98 #  endif 
    99 # endif 
    100  
    101 /* Enabling verbose error messages.  */ 
    102 #ifdef YYERROR_VERBOSE 
    103 # undef YYERROR_VERBOSE 
    104 # define YYERROR_VERBOSE 1 
    105 #else 
    106 # define YYERROR_VERBOSE 0 
    107 #endif 
    108  
    109  
    110 /* Enabling traces.  */ 
    111 #ifndef YYDEBUG 
    112 # define YYDEBUG 1 
    113 #endif 
    114 #if YYDEBUG 
    115 extern int convert_debug; 
    116 #endif 
     62#define yyparse convert_parse 
     63#define yylex   convert_lex 
     64#define yyerror convert_error 
     65#define yylval  convert_lval 
     66#define yychar  convert_char 
     67#define yydebug convert_debug 
     68#define yynerrs convert_nerrs 
     69 
    11770 
    11871/* Tokens.  */ 
     
    13487   }; 
    13588#endif 
    136  
     89/* Tokens.  */ 
     90#define TOK_SEP 258 
     91#define TOK_KIND 259 
     92#define TOK_EQUAL 260 
     93#define TOK_USE 261 
     94#define TOK_MODULEMAIN 262 
     95#define TOK_NOTGRIDDEP 263 
     96#define TOK_USEITEM 264 
     97#define TOK_NAME 265 
     98#define TOK_CSTINT 266 
     99#define TOK_PROBTYPE 267 
     100 
     101 
     102 
     103 
     104/* Copy the first part of user declarations.  */ 
     105#line 35 "convert.y" 
     106 
     107#include <stdlib.h> 
     108#include <stdio.h> 
     109#include <string.h> 
     110#include "decl.h" 
     111 
     112int line_num=1; 
     113extern FILE * convert_in; 
     114 
     115int convert_error(const char *s) 
     116{ 
     117    printf("##\n## ERROR in conv: '%s' (line %d, file: %s)\n##\n", s, line_num, config_file); 
     118    exit(0); 
     119} 
     120 
     121 
     122 
     123/* Enabling traces.  */ 
     124#ifndef YYDEBUG 
     125# define YYDEBUG 1 
     126#endif 
     127 
     128/* Enabling verbose error messages.  */ 
     129#ifdef YYERROR_VERBOSE 
     130# undef YYERROR_VERBOSE 
     131# define YYERROR_VERBOSE 1 
     132#else 
     133# define YYERROR_VERBOSE 0 
     134#endif 
     135 
     136/* Enabling the token table.  */ 
     137#ifndef YYTOKEN_TABLE 
     138# define YYTOKEN_TABLE 0 
     139#endif 
    137140 
    138141#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED 
    139142typedef union YYSTYPE 
    140 { 
    141 /* Line 387 of yacc.c  */ 
    142143#line 52 "convert.y" 
    143  
     144{ 
    144145    char na[LONG_M]; 
    145  
    146  
    147 /* Line 387 of yacc.c  */ 
     146} 
     147/* Line 193 of yacc.c.  */ 
    148148#line 149 "convert.tab.c" 
    149 } YYSTYPE; 
    150 # define YYSTYPE_IS_TRIVIAL 1 
     149   YYSTYPE; 
    151150# define yystype YYSTYPE /* obsolescent; will be withdrawn */ 
    152151# define YYSTYPE_IS_DECLARED 1 
    153 #endif 
    154  
    155 extern YYSTYPE convert_lval; 
    156  
    157 #ifdef YYPARSE_PARAM 
    158 #if defined __STDC__ || defined __cplusplus 
    159 int convert_parse (void *YYPARSE_PARAM); 
    160 #else 
    161 int convert_parse (); 
    162 #endif 
    163 #else /* ! YYPARSE_PARAM */ 
    164 #if defined __STDC__ || defined __cplusplus 
    165 int convert_parse (void); 
    166 #else 
    167 int convert_parse (); 
    168 #endif 
    169 #endif /* ! YYPARSE_PARAM */ 
     152# define YYSTYPE_IS_TRIVIAL 1 
     153#endif 
    170154 
    171155 
     
    173157/* Copy the second part of user declarations.  */ 
    174158 
    175 /* Line 390 of yacc.c  */ 
    176 #line 177 "convert.tab.c" 
     159 
     160/* Line 216 of yacc.c.  */ 
     161#line 162 "convert.tab.c" 
    177162 
    178163#ifdef short 
     
    227212#  if ENABLE_NLS 
    228213#   include <libintl.h> /* INFRINGES ON USER NAME SPACE */ 
    229 #   define YY_(Msgid) dgettext ("bison-runtime", Msgid) 
     214#   define YY_(msgid) dgettext ("bison-runtime", msgid) 
    230215#  endif 
    231216# endif 
    232217# ifndef YY_ 
    233 #  define YY_(Msgid) Msgid 
     218#  define YY_(msgid) msgid 
    234219# endif 
    235220#endif 
     
    237222/* Suppress unused-variable warnings by "using" E.  */ 
    238223#if ! defined lint || defined __GNUC__ 
    239 # define YYUSE(E) ((void) (E)) 
     224# define YYUSE(e) ((void) (e)) 
    240225#else 
    241 # define YYUSE(E) /* empty */ 
     226# define YYUSE(e) /* empty */ 
    242227#endif 
    243228 
    244229/* Identity function, used to suppress warnings about constant conditions.  */ 
    245230#ifndef lint 
    246 # define YYID(N) (N) 
     231# define YYID(n) (n) 
    247232#else 
    248233#if (defined __STDC__ || defined __C99__FUNC__ \ 
    249234     || defined __cplusplus || defined _MSC_VER) 
    250235static int 
    251 YYID (int yyi) 
     236YYID (int i) 
    252237#else 
    253238static int 
    254 YYID (yyi) 
    255     int yyi; 
    256 #endif 
    257 { 
    258   return yyi; 
     239YYID (i) 
     240    int i; 
     241#endif 
     242{ 
     243  return i; 
    259244} 
    260245#endif 
     
    277262#   else 
    278263#    define YYSTACK_ALLOC alloca 
    279 #    if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \ 
     264#    if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ 
    280265     || defined __cplusplus || defined _MSC_VER) 
    281266#     include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ 
    282       /* Use EXIT_SUCCESS as a witness for stdlib.h.  */ 
    283 #     ifndef EXIT_SUCCESS 
    284 #      define EXIT_SUCCESS 0 
     267#     ifndef _STDLIB_H 
     268#      define _STDLIB_H 1 
    285269#     endif 
    286270#    endif 
     
    305289#   define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM 
    306290#  endif 
    307 #  if (defined __cplusplus && ! defined EXIT_SUCCESS \ 
     291#  if (defined __cplusplus && ! defined _STDLIB_H \ 
    308292       && ! ((defined YYMALLOC || defined malloc) \ 
    309293        && (defined YYFREE || defined free))) 
    310294#   include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ 
    311 #   ifndef EXIT_SUCCESS 
    312 #    define EXIT_SUCCESS 0 
     295#   ifndef _STDLIB_H 
     296#    define _STDLIB_H 1 
    313297#   endif 
    314298#  endif 
    315299#  ifndef YYMALLOC 
    316300#   define YYMALLOC malloc 
    317 #   if ! defined malloc && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \ 
     301#   if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ 
    318302     || defined __cplusplus || defined _MSC_VER) 
    319303void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ 
     
    322306#  ifndef YYFREE 
    323307#   define YYFREE free 
    324 #   if ! defined free && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \ 
     308#   if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ 
    325309     || defined __cplusplus || defined _MSC_VER) 
    326310void free (void *); /* INFRINGES ON USER NAME SPACE */ 
     
    338322union yyalloc 
    339323{ 
    340   yytype_int16 yyss_alloc; 
    341   YYSTYPE yyvs_alloc; 
    342 }; 
     324  yytype_int16 yyss; 
     325  YYSTYPE yyvs; 
     326  }; 
    343327 
    344328/* The size of the maximum gap between one aligned stack and the next.  */ 
     
    351335      + YYSTACK_GAP_MAXIMUM) 
    352336 
    353 # define YYCOPY_NEEDED 1 
     337/* Copy COUNT objects from FROM to TO.  The source and destination do 
     338   not overlap.  */ 
     339# ifndef YYCOPY 
     340#  if defined __GNUC__ && 1 < __GNUC__ 
     341#   define YYCOPY(To, From, Count) \ 
     342      __builtin_memcpy (To, From, (Count) * sizeof (*(From))) 
     343#  else 
     344#   define YYCOPY(To, From, Count)     \ 
     345      do             \ 
     346   {              \ 
     347     YYSIZE_T yyi;            \ 
     348     for (yyi = 0; yyi < (Count); yyi++)  \ 
     349       (To)[yyi] = (From)[yyi];     \ 
     350   }              \ 
     351      while (YYID (0)) 
     352#  endif 
     353# endif 
    354354 
    355355/* Relocate STACK from its old location to the new one.  The 
     
    358358   stack.  Advance YYPTR to a properly aligned location for the next 
    359359   stack.  */ 
    360 # define YYSTACK_RELOCATE(Stack_alloc, Stack)            \ 
     360# define YYSTACK_RELOCATE(Stack)             \ 
    361361    do                           \ 
    362362      {                          \ 
    363363   YYSIZE_T yynewbytes;                \ 
    364    YYCOPY (&yyptr->Stack_alloc, Stack, yysize);       \ 
    365    Stack = &yyptr->Stack_alloc;              \ 
     364   YYCOPY (&yyptr->Stack, Stack, yysize);          \ 
     365   Stack = &yyptr->Stack               \ 
    366366   yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ 
    367367   yyptr += yynewbytes / sizeof (*yyptr);          \ 
     
    370370 
    371371#endif 
    372  
    373 #if defined YYCOPY_NEEDED && YYCOPY_NEEDED 
    374 /* Copy COUNT objects from SRC to DST.  The source and destination do 
    375    not overlap.  */ 
    376 # ifndef YYCOPY 
    377 #  if defined __GNUC__ && 1 < __GNUC__ 
    378 #   define YYCOPY(Dst, Src, Count) \ 
    379       __builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src))) 
    380 #  else 
    381 #   define YYCOPY(Dst, Src, Count)              \ 
    382       do                                        \ 
    383         {                                       \ 
    384           YYSIZE_T yyi;                         \ 
    385           for (yyi = 0; yyi < (Count); yyi++)   \ 
    386             (Dst)[yyi] = (Src)[yyi];            \ 
    387         }                                       \ 
    388       while (YYID (0)) 
    389 #  endif 
    390 # endif 
    391 #endif /* !YYCOPY_NEEDED */ 
    392372 
    393373/* YYFINAL -- State number of the termination state.  */ 
     
    471451#endif 
    472452 
    473 #if YYDEBUG || YYERROR_VERBOSE || 0 
     453#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE 
    474454/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. 
    475455   First, the terminals, then, starting at YYNTOKENS, nonterminals.  */ 
     
    479459  "TOK_USE", "TOK_MODULEMAIN", "TOK_NOTGRIDDEP", "TOK_USEITEM", "TOK_NAME", 
    480460  "TOK_CSTINT", "TOK_PROBTYPE", "','", "';'", "'\\n'", "$accept", "input", 
    481   "line", YY_NULL 
     461  "line", 0 
    482462}; 
    483463#endif 
     
    507487}; 
    508488 
    509 /* YYDEFACT[STATE-NAME] -- Default reduction number in state STATE-NUM. 
    510    Performed when YYTABLE doesn't specify something else to do.  Zero 
     489/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state 
     490   STATE-NUM when YYTABLE doesn't specify something else to do.  Zero 
    511491   means the default is an error.  */ 
    512492static const yytype_uint8 yydefact[] = 
     
    541521/* YYTABLE[YYPACT[STATE-NUM]].  What to do in state STATE-NUM.  If 
    542522   positive, shift that token.  If negative, reduce the rule which 
    543    number is the opposite.  If YYTABLE_NINF, syntax error.  */ 
     523   number is the opposite.  If zero, do what YYDEFACT says. 
     524   If YYTABLE_NINF, syntax error.  */ 
    544525#define YYTABLE_NINF -1 
    545526static const yytype_uint8 yytable[] = 
     
    550531}; 
    551532 
    552 #define yypact_value_is_default(Yystate) \ 
    553   (!!((Yystate) == (-13))) 
    554  
    555 #define yytable_value_is_error(Yytable_value) \ 
    556   YYID (0) 
    557  
    558533static const yytype_int8 yycheck[] = 
    559534{ 
     
    584559/* Like YYERROR except do call yyerror.  This remains here temporarily 
    585560   to ease the transition to the new meaning of YYERROR, for GCC. 
    586    Once GCC version 2 has supplanted version 1, this can go.  However, 
    587    YYFAIL appears to be in use.  Nevertheless, it is formally deprecated 
    588    in Bison 2.4.2's NEWS entry, where a plan to phase it out is 
    589    discussed.  */ 
     561   Once GCC version 2 has supplanted version 1, this can go.  */ 
    590562 
    591563#define YYFAIL    goto yyerrlab 
    592 #if defined YYFAIL 
    593   /* This is here to suppress warnings from the GCC cpp's 
    594      -Wunused-macros.  Normally we don't worry about that warning, but 
    595      some users do, and we want to make it easy for users to remove 
    596      YYFAIL uses, which will produce warnings from Bison 2.5.  */ 
    597 #endif 
    598564 
    599565#define YYRECOVERING()  (!!yyerrstatus) 
    600566 
    601 #define YYBACKUP(Token, Value)                                  \ 
    602 do                                                              \ 
    603   if (yychar == YYEMPTY)                                        \ 
    604     {                                                           \ 
    605       yychar = (Token);                                         \ 
    606       yylval = (Value);                                         \ 
    607       YYPOPSTACK (yylen);                                       \ 
    608       yystate = *yyssp;                                         \ 
    609       goto yybackup;                                            \ 
    610     }                                                           \ 
    611   else                                                          \ 
    612     {                                                           \ 
     567#define YYBACKUP(Token, Value)               \ 
     568do                      \ 
     569  if (yychar == YYEMPTY && yylen == 1)          \ 
     570    {                      \ 
     571      yychar = (Token);                \ 
     572      yylval = (Value);                \ 
     573      yytoken = YYTRANSLATE (yychar);           \ 
     574      YYPOPSTACK (1);                  \ 
     575      goto yybackup;                \ 
     576    }                      \ 
     577  else                        \ 
     578    {                      \ 
    613579      yyerror (YY_("syntax error: cannot back up")); \ 
    614580      YYERROR;                   \ 
     
    616582while (YYID (0)) 
    617583 
    618 /* Error token number */ 
     584 
    619585#define YYTERROR  1 
    620586#define YYERRCODE 256 
    621587 
    622588 
    623 /* This macro is provided for backward compatibility. */ 
     589/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N]. 
     590   If N is 0, then set CURRENT to the empty location which ends 
     591   the previous symbol: RHS[0] (always defined).  */ 
     592 
     593#define YYRHSLOC(Rhs, K) ((Rhs)[K]) 
     594#ifndef YYLLOC_DEFAULT 
     595# define YYLLOC_DEFAULT(Current, Rhs, N)           \ 
     596    do                           \ 
     597      if (YYID (N))                                                    \ 
     598   {                       \ 
     599     (Current).first_line   = YYRHSLOC (Rhs, 1).first_line; \ 
     600     (Current).first_column = YYRHSLOC (Rhs, 1).first_column;  \ 
     601     (Current).last_line    = YYRHSLOC (Rhs, N).last_line;     \ 
     602     (Current).last_column  = YYRHSLOC (Rhs, N).last_column;   \ 
     603   }                       \ 
     604      else                       \ 
     605   {                       \ 
     606     (Current).first_line   = (Current).last_line   =    \ 
     607       YYRHSLOC (Rhs, 0).last_line;          \ 
     608     (Current).first_column = (Current).last_column =    \ 
     609       YYRHSLOC (Rhs, 0).last_column;           \ 
     610   }                       \ 
     611    while (YYID (0)) 
     612#endif 
     613 
     614 
     615/* YY_LOCATION_PRINT -- Print the location on the stream. 
     616   This macro was not mandated originally: define only if we know 
     617   we won't break user code: when these are the locations we know.  */ 
     618 
    624619#ifndef YY_LOCATION_PRINT 
    625 # define YY_LOCATION_PRINT(File, Loc) ((void) 0) 
     620# if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL 
     621#  define YY_LOCATION_PRINT(File, Loc)       \ 
     622     fprintf (File, "%d.%d-%d.%d",        \ 
     623         (Loc).first_line, (Loc).first_column,  \ 
     624         (Loc).last_line,  (Loc).last_column) 
     625# else 
     626#  define YY_LOCATION_PRINT(File, Loc) ((void) 0) 
     627# endif 
    626628#endif 
    627629 
    628630 
    629631/* YYLEX -- calling `yylex' with the right arguments.  */ 
     632 
    630633#ifdef YYLEX_PARAM 
    631634# define YYLEX yylex (YYLEX_PARAM) 
     
    677680#endif 
    678681{ 
    679   FILE *yyo = yyoutput; 
    680   YYUSE (yyo); 
    681682  if (!yyvaluep) 
    682683    return; 
     
    690691    { 
    691692      default: 
    692         break; 
     693   break; 
    693694    } 
    694695} 
     
    728729     || defined __cplusplus || defined _MSC_VER) 
    729730static void 
    730 yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop) 
     731yy_stack_print (yytype_int16 *bottom, yytype_int16 *top) 
    731732#else 
    732733static void 
    733 yy_stack_print (yybottom, yytop) 
    734     yytype_int16 *yybottom; 
    735     yytype_int16 *yytop; 
     734yy_stack_print (bottom, top) 
     735    yytype_int16 *bottom; 
     736    yytype_int16 *top; 
    736737#endif 
    737738{ 
    738739  YYFPRINTF (stderr, "Stack now"); 
    739   for (; yybottom <= yytop; yybottom++) 
    740     { 
    741       int yybot = *yybottom; 
    742       YYFPRINTF (stderr, " %d", yybot); 
    743     } 
     740  for (; bottom <= top; ++bottom) 
     741    YYFPRINTF (stderr, " %d", *bottom); 
    744742  YYFPRINTF (stderr, "\n"); 
    745743} 
     
    775773  for (yyi = 0; yyi < yynrhs; yyi++) 
    776774    { 
    777       YYFPRINTF (stderr, "   $%d = ", yyi + 1); 
     775      fprintf (stderr, "   $%d = ", yyi + 1); 
    778776      yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi], 
    779777             &(yyvsp[(yyi + 1) - (yynrhs)]) 
    780778                         ); 
    781       YYFPRINTF (stderr, "\n"); 
     779      fprintf (stderr, "\n"); 
    782780    } 
    783781} 
     
    815813# define YYMAXDEPTH 10000 
    816814#endif 
     815 
     816 
    817817 
    818818 
     
    918918# endif 
    919919 
    920 /* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message 
    921    about the unexpected token YYTOKEN for the state stack whose top is 
    922    YYSSP. 
    923  
    924    Return 0 if *YYMSG was successfully written.  Return 1 if *YYMSG is 
    925    not large enough to hold the message.  In that case, also set 
    926    *YYMSG_ALLOC to the required number of bytes.  Return 2 if the 
    927    required number of bytes is too large to store.  */ 
    928 static int 
    929 yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, 
    930                 yytype_int16 *yyssp, int yytoken) 
    931 { 
    932   YYSIZE_T yysize0 = yytnamerr (YY_NULL, yytname[yytoken]); 
    933   YYSIZE_T yysize = yysize0; 
    934   enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; 
    935   /* Internationalized format string. */ 
    936   const char *yyformat = YY_NULL; 
    937   /* Arguments of yyformat. */ 
    938   char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; 
    939   /* Number of reported tokens (one for the "unexpected", one per 
    940      "expected"). */ 
    941   int yycount = 0; 
    942  
    943   /* There are many possibilities here to consider: 
    944      - Assume YYFAIL is not used.  It's too flawed to consider.  See 
    945        <http://lists.gnu.org/archive/html/bison-patches/2009-12/msg00024.html> 
    946        for details.  YYERROR is fine as it does not invoke this 
    947        function. 
    948      - If this state is a consistent state with a default action, then 
    949        the only way this function was invoked is if the default action 
    950        is an error action.  In that case, don't check for expected 
    951        tokens because there are none. 
    952      - The only way there can be no lookahead present (in yychar) is if 
    953        this state is a consistent state with a default action.  Thus, 
    954        detecting the absence of a lookahead is sufficient to determine 
    955        that there is no unexpected or expected token to report.  In that 
    956        case, just report a simple "syntax error". 
    957      - Don't assume there isn't a lookahead just because this state is a 
    958        consistent state with a default action.  There might have been a 
    959        previous inconsistent state, consistent state with a non-default 
    960        action, or user semantic action that manipulated yychar. 
    961      - Of course, the expected token list depends on states to have 
    962        correct lookahead information, and it depends on the parser not 
    963        to perform extra reductions after fetching a lookahead from the 
    964        scanner and before detecting a syntax error.  Thus, state merging 
    965        (from LALR or IELR) and default reductions corrupt the expected 
    966        token list.  However, the list is correct for canonical LR with 
    967        one exception: it will still contain any token that will not be 
    968        accepted due to an error action in a later state. 
    969   */ 
    970   if (yytoken != YYEMPTY) 
     920/* Copy into YYRESULT an error message about the unexpected token 
     921   YYCHAR while in state YYSTATE.  Return the number of bytes copied, 
     922   including the terminating null byte.  If YYRESULT is null, do not 
     923   copy anything; just return the number of bytes that would be 
     924   copied.  As a special case, return 0 if an ordinary "syntax error" 
     925   message will do.  Return YYSIZE_MAXIMUM if overflow occurs during 
     926   size calculation.  */ 
     927static YYSIZE_T 
     928yysyntax_error (char *yyresult, int yystate, int yychar) 
     929{ 
     930  int yyn = yypact[yystate]; 
     931 
     932  if (! (YYPACT_NINF < yyn && yyn <= YYLAST)) 
     933    return 0; 
     934  else 
    971935    { 
    972       int yyn = yypact[*yyssp]; 
    973       yyarg[yycount++] = yytname[yytoken]; 
    974       if (!yypact_value_is_default (yyn)) 
    975         { 
    976           /* Start YYX at -YYN if negative to avoid negative indexes in 
    977              YYCHECK.  In other words, skip the first -YYN actions for 
    978              this state because they are default actions.  */ 
    979           int yyxbegin = yyn < 0 ? -yyn : 0; 
    980           /* Stay within bounds of both yycheck and yytname.  */ 
    981           int yychecklim = YYLAST - yyn + 1; 
    982           int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; 
    983           int yyx; 
    984  
    985           for (yyx = yyxbegin; yyx < yyxend; ++yyx) 
    986             if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR 
    987                 && !yytable_value_is_error (yytable[yyx + yyn])) 
    988               { 
    989                 if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) 
    990                   { 
    991                     yycount = 1; 
    992                     yysize = yysize0; 
    993                     break; 
    994                   } 
    995                 yyarg[yycount++] = yytname[yyx]; 
    996                 { 
    997                   YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULL, yytname[yyx]); 
    998                   if (! (yysize <= yysize1 
    999                          && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) 
    1000                     return 2; 
    1001                   yysize = yysize1; 
    1002                 } 
    1003               } 
    1004         } 
     936      int yytype = YYTRANSLATE (yychar); 
     937      YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]); 
     938      YYSIZE_T yysize = yysize0; 
     939      YYSIZE_T yysize1; 
     940      int yysize_overflow = 0; 
     941      enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; 
     942      char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; 
     943      int yyx; 
     944 
     945# if 0 
     946      /* This is so xgettext sees the translatable formats that are 
     947    constructed on the fly.  */ 
     948      YY_("syntax error, unexpected %s"); 
     949      YY_("syntax error, unexpected %s, expecting %s"); 
     950      YY_("syntax error, unexpected %s, expecting %s or %s"); 
     951      YY_("syntax error, unexpected %s, expecting %s or %s or %s"); 
     952      YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"); 
     953# endif 
     954      char *yyfmt; 
     955      char const *yyf; 
     956      static char const yyunexpected[] = "syntax error, unexpected %s"; 
     957      static char const yyexpecting[] = ", expecting %s"; 
     958      static char const yyor[] = " or %s"; 
     959      char yyformat[sizeof yyunexpected 
     960          + sizeof yyexpecting - 1 
     961          + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2) 
     962             * (sizeof yyor - 1))]; 
     963      char const *yyprefix = yyexpecting; 
     964 
     965      /* Start YYX at -YYN if negative to avoid negative indexes in 
     966    YYCHECK.  */ 
     967      int yyxbegin = yyn < 0 ? -yyn : 0; 
     968 
     969      /* Stay within bounds of both yycheck and yytname.  */ 
     970      int yychecklim = YYLAST - yyn + 1; 
     971      int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; 
     972      int yycount = 1; 
     973 
     974      yyarg[0] = yytname[yytype]; 
     975      yyfmt = yystpcpy (yyformat, yyunexpected); 
     976 
     977      for (yyx = yyxbegin; yyx < yyxend; ++yyx) 
     978   if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR) 
     979     { 
     980       if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) 
     981         { 
     982      yycount = 1; 
     983      yysize = yysize0; 
     984      yyformat[sizeof yyunexpected - 1] = '\0'; 
     985      break; 
     986         } 
     987       yyarg[yycount++] = yytname[yyx]; 
     988       yysize1 = yysize + yytnamerr (0, yytname[yyx]); 
     989       yysize_overflow |= (yysize1 < yysize); 
     990       yysize = yysize1; 
     991       yyfmt = yystpcpy (yyfmt, yyprefix); 
     992       yyprefix = yyor; 
     993     } 
     994 
     995      yyf = YY_(yyformat); 
     996      yysize1 = yysize + yystrlen (yyf); 
     997      yysize_overflow |= (yysize1 < yysize); 
     998      yysize = yysize1; 
     999 
     1000      if (yysize_overflow) 
     1001   return YYSIZE_MAXIMUM; 
     1002 
     1003      if (yyresult) 
     1004   { 
     1005     /* Avoid sprintf, as that infringes on the user's name space. 
     1006        Don't have undefined behavior even if the translation 
     1007        produced a string with the wrong number of "%s"s.  */ 
     1008     char *yyp = yyresult; 
     1009     int yyi = 0; 
     1010     while ((*yyp = *yyf) != '\0') 
     1011       { 
     1012         if (*yyp == '%' && yyf[1] == 's' && yyi < yycount) 
     1013      { 
     1014        yyp += yytnamerr (yyp, yyarg[yyi++]); 
     1015        yyf += 2; 
     1016      } 
     1017         else 
     1018      { 
     1019        yyp++; 
     1020        yyf++; 
     1021      } 
     1022       } 
     1023   } 
     1024      return yysize; 
    10051025    } 
    1006  
    1007   switch (yycount) 
    1008     { 
    1009 # define YYCASE_(N, S)                      \ 
    1010       case N:                               \ 
    1011         yyformat = S;                       \ 
    1012       break 
    1013       YYCASE_(0, YY_("syntax error")); 
    1014       YYCASE_(1, YY_("syntax error, unexpected %s")); 
    1015       YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s")); 
    1016       YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s")); 
    1017       YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s")); 
    1018       YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s")); 
    1019 # undef YYCASE_ 
    1020     } 
    1021  
    1022   { 
    1023     YYSIZE_T yysize1 = yysize + yystrlen (yyformat); 
    1024     if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) 
    1025       return 2; 
    1026     yysize = yysize1; 
    1027   } 
    1028  
    1029   if (*yymsg_alloc < yysize) 
    1030     { 
    1031       *yymsg_alloc = 2 * yysize; 
    1032       if (! (yysize <= *yymsg_alloc 
    1033              && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM)) 
    1034         *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM; 
    1035       return 1; 
    1036     } 
    1037  
    1038   /* Avoid sprintf, as that infringes on the user's name space. 
    1039      Don't have undefined behavior even if the translation 
    1040      produced a string with the wrong number of "%s"s.  */ 
    1041   { 
    1042     char *yyp = *yymsg; 
    1043     int yyi = 0; 
    1044     while ((*yyp = *yyformat) != '\0') 
    1045       if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount) 
    1046         { 
    1047           yyp += yytnamerr (yyp, yyarg[yyi++]); 
    1048           yyformat += 2; 
    1049         } 
    1050       else 
    1051         { 
    1052           yyp++; 
    1053           yyformat++; 
    1054         } 
    1055   } 
    1056   return 0; 
    10571026} 
    10581027#endif /* YYERROR_VERBOSE */ 
     1028 
     1029 
    10591030 
    10601031/*-----------------------------------------------. 
     
    10851056 
    10861057      default: 
    1087         break; 
     1058   break; 
    10881059    } 
    10891060} 
     
    10911062 
    10921063 
    1093  
    1094 /* The lookahead symbol.  */ 
     1064/* Prevent warnings from -Wmissing-prototypes.  */ 
     1065 
     1066#ifdef YYPARSE_PARAM 
     1067#if defined __STDC__ || defined __cplusplus 
     1068int yyparse (void *YYPARSE_PARAM); 
     1069#else 
     1070int yyparse (); 
     1071#endif 
     1072#else /* ! YYPARSE_PARAM */ 
     1073#if defined __STDC__ || defined __cplusplus 
     1074int yyparse (void); 
     1075#else 
     1076int yyparse (); 
     1077#endif 
     1078#endif /* ! YYPARSE_PARAM */ 
     1079 
     1080 
     1081 
     1082/* The look-ahead symbol.  */ 
    10951083int yychar; 
    10961084 
    1097  
    1098 #ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN 
    1099 # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN 
    1100 # define YY_IGNORE_MAYBE_UNINITIALIZED_END 
    1101 #endif 
    1102 #ifndef YY_INITIAL_VALUE 
    1103 # define YY_INITIAL_VALUE(Value) /* Nothing. */ 
    1104 #endif 
    1105  
    1106 /* The semantic value of the lookahead symbol.  */ 
    1107 YYSTYPE yylval YY_INITIAL_VALUE(yyval_default); 
     1085/* The semantic value of the look-ahead symbol.  */ 
     1086YYSTYPE yylval; 
    11081087 
    11091088/* Number of syntax errors so far.  */ 
    11101089int yynerrs; 
     1090 
    11111091 
    11121092 
     
    11371117#endif 
    11381118{ 
    1139     int yystate; 
    1140     /* Number of tokens to shift before error messages enabled.  */ 
    1141     int yyerrstatus; 
    1142  
    1143     /* The stacks and their tools: 
    1144        `yyss': related to states. 
    1145        `yyvs': related to semantic values. 
    1146  
    1147        Refer to the stacks through separate pointers, to allow yyoverflow 
    1148        to reallocate them elsewhere.  */ 
    1149  
    1150     /* The state stack.  */ 
    1151     yytype_int16 yyssa[YYINITDEPTH]; 
    1152     yytype_int16 *yyss; 
    1153     yytype_int16 *yyssp; 
    1154  
    1155     /* The semantic value stack.  */ 
    1156     YYSTYPE yyvsa[YYINITDEPTH]; 
    1157     YYSTYPE *yyvs; 
    1158     YYSTYPE *yyvsp; 
    1159  
    1160     YYSIZE_T yystacksize; 
    1161  
     1119   
     1120  int yystate; 
    11621121  int yyn; 
    11631122  int yyresult; 
    1164   /* Lookahead token as an internal (translated) token number.  */ 
     1123  /* Number of tokens to shift before error messages enabled.  */ 
     1124  int yyerrstatus; 
     1125  /* Look-ahead token as an internal (translated) token number.  */ 
    11651126  int yytoken = 0; 
    1166   /* The variables used to return semantic value and location from the 
    1167      action routines.  */ 
    1168   YYSTYPE yyval; 
    1169  
    11701127#if YYERROR_VERBOSE 
    11711128  /* Buffer for error messages, and its allocated size.  */ 
     
    11751132#endif 
    11761133 
     1134  /* Three stacks and their tools: 
     1135     `yyss': related to states, 
     1136     `yyvs': related to semantic values, 
     1137     `yyls': related to locations. 
     1138 
     1139     Refer to the stacks thru separate pointers, to allow yyoverflow 
     1140     to reallocate them elsewhere.  */ 
     1141 
     1142  /* The state stack.  */ 
     1143  yytype_int16 yyssa[YYINITDEPTH]; 
     1144  yytype_int16 *yyss = yyssa; 
     1145  yytype_int16 *yyssp; 
     1146 
     1147  /* The semantic value stack.  */ 
     1148  YYSTYPE yyvsa[YYINITDEPTH]; 
     1149  YYSTYPE *yyvs = yyvsa; 
     1150  YYSTYPE *yyvsp; 
     1151 
     1152 
     1153 
    11771154#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N)) 
     1155 
     1156  YYSIZE_T yystacksize = YYINITDEPTH; 
     1157 
     1158  /* The variables used to return semantic value and location from the 
     1159     action routines.  */ 
     1160  YYSTYPE yyval; 
     1161 
    11781162 
    11791163  /* The number of symbols on the RHS of the reduced rule. 
     
    11811165  int yylen = 0; 
    11821166 
    1183   yyssp = yyss = yyssa; 
    1184   yyvsp = yyvs = yyvsa; 
    1185   yystacksize = YYINITDEPTH; 
    1186  
    11871167  YYDPRINTF ((stderr, "Starting parse\n")); 
    11881168 
     
    11901170  yyerrstatus = 0; 
    11911171  yynerrs = 0; 
    1192   yychar = YYEMPTY; /* Cause a token to be read.  */ 
     1172  yychar = YYEMPTY;     /* Cause a token to be read.  */ 
     1173 
     1174  /* Initialize stack pointers. 
     1175     Waste one element of value and location stack 
     1176     so that they stay on the same level as the state stack. 
     1177     The wasted elements are never initialized.  */ 
     1178 
     1179  yyssp = yyss; 
     1180  yyvsp = yyvs; 
     1181 
    11931182  goto yysetstate; 
    11941183 
     
    12171206   yytype_int16 *yyss1 = yyss; 
    12181207 
     1208 
    12191209   /* Each stack pointer address is followed by the size of the 
    12201210      data in use in that stack, in bytes.  This used to be a 
     
    12241214          &yyss1, yysize * sizeof (*yyssp), 
    12251215          &yyvs1, yysize * sizeof (*yyvsp), 
     1216 
    12261217          &yystacksize); 
    12271218 
     
    12461237   if (! yyptr) 
    12471238     goto yyexhaustedlab; 
    1248    YYSTACK_RELOCATE (yyss_alloc, yyss); 
    1249    YYSTACK_RELOCATE (yyvs_alloc, yyvs); 
     1239   YYSTACK_RELOCATE (yyss); 
     1240   YYSTACK_RELOCATE (yyvs); 
     1241 
    12501242#  undef YYSTACK_RELOCATE 
    12511243   if (yyss1 != yyssa) 
     
    12581250      yyvsp = yyvs + yysize - 1; 
    12591251 
     1252 
    12601253      YYDPRINTF ((stderr, "Stack size increased to %lu\n", 
    12611254        (unsigned long int) yystacksize)); 
     
    12661259 
    12671260  YYDPRINTF ((stderr, "Entering state %d\n", yystate)); 
    1268  
    1269   if (yystate == YYFINAL) 
    1270     YYACCEPT; 
    12711261 
    12721262  goto yybackup; 
     
    12781268 
    12791269  /* Do appropriate processing given the current state.  Read a 
    1280      lookahead token if we need one and don't already have one.  */ 
    1281  
    1282   /* First try to decide what to do without reference to lookahead token.  */ 
     1270     look-ahead token if we need one and don't already have one.  */ 
     1271 
     1272  /* First try to decide what to do without reference to look-ahead token.  */ 
    12831273  yyn = yypact[yystate]; 
    1284   if (yypact_value_is_default (yyn)) 
     1274  if (yyn == YYPACT_NINF) 
    12851275    goto yydefault; 
    12861276 
    1287   /* Not known => get a lookahead token if don't already have one.  */ 
    1288  
    1289   /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol.  */ 
     1277  /* Not known => get a look-ahead token if don't already have one.  */ 
     1278 
     1279  /* YYCHAR is either YYEMPTY or YYEOF or a valid look-ahead symbol.  */ 
    12901280  if (yychar == YYEMPTY) 
    12911281    { 
     
    13131303  if (yyn <= 0) 
    13141304    { 
    1315       if (yytable_value_is_error (yyn)) 
    1316         goto yyerrlab; 
     1305      if (yyn == 0 || yyn == YYTABLE_NINF) 
     1306   goto yyerrlab; 
    13171307      yyn = -yyn; 
    13181308      goto yyreduce; 
    13191309    } 
     1310 
     1311  if (yyn == YYFINAL) 
     1312    YYACCEPT; 
    13201313 
    13211314  /* Count tokens shifted since error; after three, turn off error 
     
    13241317    yyerrstatus--; 
    13251318 
    1326   /* Shift the lookahead token.  */ 
     1319  /* Shift the look-ahead token.  */ 
    13271320  YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); 
    13281321 
    1329   /* Discard the shifted token.  */ 
    1330   yychar = YYEMPTY; 
     1322  /* Discard the shifted token unless it is eof.  */ 
     1323  if (yychar != YYEOF) 
     1324    yychar = YYEMPTY; 
    13311325 
    13321326  yystate = yyn; 
    1333   YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN 
    13341327  *++yyvsp = yylval; 
    1335   YY_IGNORE_MAYBE_UNINITIALIZED_END 
    13361328 
    13371329  goto yynewstate; 
     
    13701362    { 
    13711363        case 5: 
    1372 /* Line 1807 of yacc.c  */ 
    13731364#line 76 "convert.y" 
    1374     { initdimprob(1,(yyvsp[(2) - (3)].na),"0","0"); } 
     1365    { initdimprob(1,(yyvsp[(2) - (3)].na),"0","0"); ;} 
    13751366    break; 
    13761367 
    13771368  case 6: 
    1378 /* Line 1807 of yacc.c  */ 
    13791369#line 77 "convert.y" 
    1380     { initdimprob(2,(yyvsp[(2) - (5)].na), (yyvsp[(4) - (5)].na),"0"); } 
     1370    { initdimprob(2,(yyvsp[(2) - (5)].na), (yyvsp[(4) - (5)].na),"0"); ;} 
    13811371    break; 
    13821372 
    13831373  case 7: 
    1384 /* Line 1807 of yacc.c  */ 
    13851374#line 78 "convert.y" 
    1386     { initdimprob(3,(yyvsp[(2) - (7)].na), (yyvsp[(4) - (7)].na), (yyvsp[(6) - (7)].na)); } 
     1375    { initdimprob(3,(yyvsp[(2) - (7)].na), (yyvsp[(4) - (7)].na), (yyvsp[(6) - (7)].na)); ;} 
    13871376    break; 
    13881377 
    13891378  case 8: 
    1390 /* Line 1807 of yacc.c  */ 
    13911379#line 80 "convert.y" 
    13921380    { 
    13931381            listofmodules = Addtolistnom((yyvsp[(2) - (3)].na),listofmodules,0); 
    13941382            Addmoduletothelist((yyvsp[(2) - (3)].na)); 
    1395         } 
     1383        ;} 
    13961384    break; 
    13971385 
    13981386  case 9: 
    1399 /* Line 1807 of yacc.c  */ 
    14001387#line 85 "convert.y" 
    14011388    { 
     
    14131400                exit(0); 
    14141401            } 
    1415         } 
     1402        ;} 
    14161403    break; 
    14171404 
    14181405  case 10: 
    1419 /* Line 1807 of yacc.c  */ 
    14201406#line 101 "convert.y" 
    14211407    { 
    14221408            Add_NotGridDepend_Var_1((yyvsp[(3) - (4)].na)); 
    1423         } 
     1409        ;} 
    14241410    break; 
    14251411 
    14261412  case 11: 
    1427 /* Line 1807 of yacc.c  */ 
    14281413#line 105 "convert.y" 
    14291414    { 
    14301415            if (!strcasecmp((yyvsp[(2) - (3)].na),"FIXED_GRIDS"))      fixedgrids = 1; 
    14311416            if (!strcasecmp((yyvsp[(2) - (3)].na),"ONLY_FIXED_GRIDS")) onlyfixedgrids = 1; 
    1432         } 
     1417        ;} 
    14331418    break; 
    14341419 
    14351420 
    1436 /* Line 1807 of yacc.c  */ 
    1437 #line 1438 "convert.tab.c" 
     1421/* Line 1267 of yacc.c.  */ 
     1422#line 1420 "convert.tab.c" 
    14381423      default: break; 
    14391424    } 
    1440   /* User semantic actions sometimes alter yychar, and that requires 
    1441      that yytoken be updated with the new translation.  We take the 
    1442      approach of translating immediately before every use of yytoken. 
    1443      One alternative is translating here after every semantic action, 
    1444      but that translation would be missed if the semantic action invokes 
    1445      YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or 
    1446      if it invokes YYBACKUP.  In the case of YYABORT or YYACCEPT, an 
    1447      incorrect destructor might then be invoked immediately.  In the 
    1448      case of YYERROR or YYBACKUP, subsequent parser actions might lead 
    1449      to an incorrect destructor call or verbose syntax error message 
    1450      before the lookahead is translated.  */ 
    14511425  YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); 
    14521426 
     
    14561430 
    14571431  *++yyvsp = yyval; 
     1432 
    14581433 
    14591434  /* Now `shift' the result of the reduction.  Determine what state 
     
    14761451`------------------------------------*/ 
    14771452yyerrlab: 
    1478   /* Make sure we have latest lookahead translation.  See comments at 
    1479      user semantic actions for why this is necessary.  */ 
    1480   yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar); 
    1481  
    14821453  /* If not already recovering from an error, report this error.  */ 
    14831454  if (!yyerrstatus) 
     
    14871458      yyerror (YY_("syntax error")); 
    14881459#else 
    1489 # define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \ 
    1490                                         yyssp, yytoken) 
    14911460      { 
    1492         char const *yymsgp = YY_("syntax error"); 
    1493         int yysyntax_error_status; 
    1494         yysyntax_error_status = YYSYNTAX_ERROR; 
    1495         if (yysyntax_error_status == 0) 
    1496           yymsgp = yymsg; 
    1497         else if (yysyntax_error_status == 1) 
    1498           { 
    1499             if (yymsg != yymsgbuf) 
    1500               YYSTACK_FREE (yymsg); 
    1501             yymsg = (char *) YYSTACK_ALLOC (yymsg_alloc); 
    1502             if (!yymsg) 
    1503               { 
    1504                 yymsg = yymsgbuf; 
    1505                 yymsg_alloc = sizeof yymsgbuf; 
    1506                 yysyntax_error_status = 2; 
    1507               } 
    1508             else 
    1509               { 
    1510                 yysyntax_error_status = YYSYNTAX_ERROR; 
    1511                 yymsgp = yymsg; 
    1512               } 
    1513           } 
    1514         yyerror (yymsgp); 
    1515         if (yysyntax_error_status == 2) 
    1516           goto yyexhaustedlab; 
     1461   YYSIZE_T yysize = yysyntax_error (0, yystate, yychar); 
     1462   if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM) 
     1463     { 
     1464       YYSIZE_T yyalloc = 2 * yysize; 
     1465       if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM)) 
     1466         yyalloc = YYSTACK_ALLOC_MAXIMUM; 
     1467       if (yymsg != yymsgbuf) 
     1468         YYSTACK_FREE (yymsg); 
     1469       yymsg = (char *) YYSTACK_ALLOC (yyalloc); 
     1470       if (yymsg) 
     1471         yymsg_alloc = yyalloc; 
     1472       else 
     1473         { 
     1474      yymsg = yymsgbuf; 
     1475      yymsg_alloc = sizeof yymsgbuf; 
     1476         } 
     1477     } 
     1478 
     1479   if (0 < yysize && yysize <= yymsg_alloc) 
     1480     { 
     1481       (void) yysyntax_error (yymsg, yystate, yychar); 
     1482       yyerror (yymsg); 
     1483     } 
     1484   else 
     1485     { 
     1486       yyerror (YY_("syntax error")); 
     1487       if (yysize != 0) 
     1488         goto yyexhaustedlab; 
     1489     } 
    15171490      } 
    1518 # undef YYSYNTAX_ERROR 
    15191491#endif 
    15201492    } 
     
    15241496  if (yyerrstatus == 3) 
    15251497    { 
    1526       /* If just tried and failed to reuse lookahead token after an 
     1498      /* If just tried and failed to reuse look-ahead token after an 
    15271499    error, discard it.  */ 
    15281500 
     
    15411513    } 
    15421514 
    1543   /* Else will try to reuse lookahead token after shifting the error 
     1515  /* Else will try to reuse look-ahead token after shifting the error 
    15441516     token.  */ 
    15451517  goto yyerrlab1; 
     
    15751547    { 
    15761548      yyn = yypact[yystate]; 
    1577       if (!yypact_value_is_default (yyn)) 
     1549      if (yyn != YYPACT_NINF) 
    15781550   { 
    15791551     yyn += YYTERROR; 
     
    15981570    } 
    15991571 
    1600   YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN 
     1572  if (yyn == YYFINAL) 
     1573    YYACCEPT; 
     1574 
    16011575  *++yyvsp = yylval; 
    1602   YY_IGNORE_MAYBE_UNINITIALIZED_END 
    16031576 
    16041577 
     
    16241597  goto yyreturn; 
    16251598 
    1626 #if !defined yyoverflow || YYERROR_VERBOSE 
     1599#ifndef yyoverflow 
    16271600/*-------------------------------------------------. 
    16281601| yyexhaustedlab -- memory exhaustion comes here.  | 
     
    16351608 
    16361609yyreturn: 
    1637   if (yychar != YYEMPTY) 
    1638     { 
    1639       /* Make sure we have latest lookahead translation.  See comments at 
    1640          user semantic actions for why this is necessary.  */ 
    1641       yytoken = YYTRANSLATE (yychar); 
    1642       yydestruct ("Cleanup: discarding lookahead", 
    1643                   yytoken, &yylval); 
    1644     } 
     1610  if (yychar != YYEOF && yychar != YYEMPTY) 
     1611     yydestruct ("Cleanup: discarding lookahead", 
     1612       yytoken, &yylval); 
    16451613  /* Do not reclaim the symbols of the rule which action triggered 
    16461614     this YYABORT or YYACCEPT.  */ 
     
    16661634 
    16671635 
    1668 /* Line 2055 of yacc.c  */ 
    16691636#line 110 "convert.y" 
    16701637 
     
    20191986    return 0; 
    20201987} 
     1988 
    20211989#line 2 "convert.yy.c" 
    20221990 
     
    26072575 
    26082576#line 40 "convert.lex" 
     2577#include <math.h> 
    26092578#include <stdlib.h> 
    26102579#include <string.h> 
Note: See TracChangeset for help on using the changeset viewer.