summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2013-07-29 20:22:22 +0200
committerJose <jose@zeroc.com>2013-07-29 20:22:22 +0200
commit2edd4e7b1bbbc0c14e25dfef3958a1442fba5878 (patch)
treed253a1b455ddaed5a09d93dc95cf6cf9d4cb2687
parentFixed ICE-5393 - Java / C# load properties doesn't correctly parse Ice.Config... (diff)
downloadice-2edd4e7b1bbbc0c14e25dfef3958a1442fba5878.tar.bz2
ice-2edd4e7b1bbbc0c14e25dfef3958a1442fba5878.tar.xz
ice-2edd4e7b1bbbc0c14e25dfef3958a1442fba5878.zip
Regenerate bison & flex files with rhel6
-rw-r--r--cpp/demo/Freeze/library/Scanner.cpp4
-rw-r--r--cpp/demo/Freeze/phonebook/Grammar.cpp74
-rw-r--r--cpp/demo/Freeze/phonebook/Grammar.h7
-rw-r--r--cpp/demo/Freeze/phonebook/Scanner.cpp4
-rw-r--r--cpp/demo/book/evictor_filesystem/Grammar.cpp74
-rw-r--r--cpp/demo/book/evictor_filesystem/Grammar.h7
-rw-r--r--cpp/demo/book/evictor_filesystem/Scanner.cpp4
-rw-r--r--cpp/demo/book/lifecycle/Scanner.cpp4
-rw-r--r--cpp/demo/book/map_filesystem/Grammar.cpp74
-rw-r--r--cpp/demo/book/map_filesystem/Grammar.h7
-rw-r--r--cpp/demo/book/map_filesystem/Scanner.cpp4
-rw-r--r--cpp/src/FreezeScript/Grammar.cpp414
-rw-r--r--cpp/src/FreezeScript/Grammar.h58
-rw-r--r--cpp/src/Slice/Grammar.cpp801
-rw-r--r--cpp/src/Slice/Grammar.h73
15 files changed, 958 insertions, 651 deletions
diff --git a/cpp/demo/Freeze/library/Scanner.cpp b/cpp/demo/Freeze/library/Scanner.cpp
index 261539c9a5f..a91471f5ac7 100644
--- a/cpp/demo/Freeze/library/Scanner.cpp
+++ b/cpp/demo/Freeze/library/Scanner.cpp
@@ -636,7 +636,7 @@ static int input (void );
/* This used to be an fputs(), but since the string might contain NUL's,
* we now use fwrite().
*/
-#define ECHO fwrite( yytext, yyleng, 1, yyout )
+#define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
#endif
/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
@@ -647,7 +647,7 @@ static int input (void );
if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
{ \
int c = '*'; \
- int n; \
+ unsigned n; \
for ( n = 0; n < max_size && \
(c = getc( yyin )) != EOF && c != '\n'; ++n ) \
buf[n] = (char) c; \
diff --git a/cpp/demo/Freeze/phonebook/Grammar.cpp b/cpp/demo/Freeze/phonebook/Grammar.cpp
index 5e73ad8b44b..ef2c1855ca9 100644
--- a/cpp/demo/Freeze/phonebook/Grammar.cpp
+++ b/cpp/demo/Freeze/phonebook/Grammar.cpp
@@ -1,9 +1,10 @@
-/* A Bison parser, made by GNU Bison 2.4.3. */
+
+/* A Bison parser, made by GNU Bison 2.4.1. */
/* Skeleton implementation for Bison's Yacc-like parsers in C
- Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
- 2009, 2010 Free Software Foundation, Inc.
+ Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
+ Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -45,7 +46,7 @@
#define YYBISON 1
/* Bison version. */
-#define YYBISON_VERSION "2.4.3"
+#define YYBISON_VERSION "2.4.1"
/* Skeleton name. */
#define YYSKELETON_NAME "yacc.c"
@@ -101,7 +102,7 @@ yyerror(const char* s)
/* Line 189 of yacc.c */
-#line 105 "Grammar.tab.c"
+#line 106 "Grammar.tab.c"
/* Enabling traces. */
#ifndef YYDEBUG
@@ -158,7 +159,7 @@ typedef int YYSTYPE;
/* Line 264 of yacc.c */
-#line 162 "Grammar.tab.c"
+#line 163 "Grammar.tab.c"
#ifdef short
# undef short
@@ -208,7 +209,7 @@ typedef short int yytype_int16;
#define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
#ifndef YY_
-# if defined YYENABLE_NLS && YYENABLE_NLS
+# if YYENABLE_NLS
# if ENABLE_NLS
# include <libintl.h> /* INFRINGES ON USER NAME SPACE */
# define YY_(msgid) dgettext ("bison-runtime", msgid)
@@ -579,18 +580,9 @@ static const yytype_uint8 yystos[] =
/* Like YYERROR except do call yyerror. This remains here temporarily
to ease the transition to the new meaning of YYERROR, for GCC.
- Once GCC version 2 has supplanted version 1, this can go. However,
- YYFAIL appears to be in use. Nevertheless, it is formally deprecated
- in Bison 2.4.2's NEWS entry, where a plan to phase it out is
- discussed. */
+ Once GCC version 2 has supplanted version 1, this can go. */
#define YYFAIL goto yyerrlab
-#if defined YYFAIL
- /* This is here to suppress warnings from the GCC cpp's
- -Wunused-macros. Normally we don't worry about that warning, but
- some users do, and we want to make it easy for users to remove
- YYFAIL uses, which will produce warnings from Bison 2.5. */
-#endif
#define YYRECOVERING() (!!yyerrstatus)
@@ -647,7 +639,7 @@ while (YYID (0))
we won't break user code: when these are the locations we know. */
#ifndef YY_LOCATION_PRINT
-# if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL
+# if YYLTYPE_IS_TRIVIAL
# define YY_LOCATION_PRINT(File, Loc) \
fprintf (File, "%d.%d-%d.%d", \
(Loc).first_line, (Loc).first_column, \
@@ -1385,7 +1377,7 @@ yyreduce:
{
case 2:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 55 "Grammar.y"
{
;}
@@ -1393,7 +1385,7 @@ yyreduce:
case 3:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 58 "Grammar.y"
{
;}
@@ -1401,7 +1393,7 @@ yyreduce:
case 4:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 66 "Grammar.y"
{
;}
@@ -1409,7 +1401,7 @@ yyreduce:
case 5:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 69 "Grammar.y"
{
;}
@@ -1417,7 +1409,7 @@ yyreduce:
case 6:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 77 "Grammar.y"
{
parser->usage();
@@ -1426,7 +1418,7 @@ yyreduce:
case 7:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 81 "Grammar.y"
{
return 0;
@@ -1435,7 +1427,7 @@ yyreduce:
case 8:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 85 "Grammar.y"
{
parser->addContacts((yyvsp[(2) - (3)]));
@@ -1444,7 +1436,7 @@ yyreduce:
case 9:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 89 "Grammar.y"
{
parser->findContacts((yyvsp[(2) - (3)]));
@@ -1453,7 +1445,7 @@ yyreduce:
case 10:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 93 "Grammar.y"
{
parser->nextFoundContact();
@@ -1462,7 +1454,7 @@ yyreduce:
case 11:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 97 "Grammar.y"
{
parser->printCurrent();
@@ -1471,7 +1463,7 @@ yyreduce:
case 12:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 101 "Grammar.y"
{
parser->setCurrentName((yyvsp[(2) - (3)]));
@@ -1480,7 +1472,7 @@ yyreduce:
case 13:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 105 "Grammar.y"
{
parser->setCurrentAddress((yyvsp[(2) - (3)]));
@@ -1489,7 +1481,7 @@ yyreduce:
case 14:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 109 "Grammar.y"
{
parser->setCurrentPhone((yyvsp[(2) - (3)]));
@@ -1498,7 +1490,7 @@ yyreduce:
case 15:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 113 "Grammar.y"
{
parser->removeCurrent();
@@ -1507,7 +1499,7 @@ yyreduce:
case 16:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 117 "Grammar.y"
{
parser->setEvictorSize((yyvsp[(2) - (3)]));
@@ -1516,7 +1508,7 @@ yyreduce:
case 17:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 121 "Grammar.y"
{
parser->shutdown();
@@ -1525,7 +1517,7 @@ yyreduce:
case 18:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 125 "Grammar.y"
{
yyerrok;
@@ -1534,7 +1526,7 @@ yyreduce:
case 19:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 129 "Grammar.y"
{
;}
@@ -1542,7 +1534,7 @@ yyreduce:
case 20:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 137 "Grammar.y"
{
(yyval) = (yyvsp[(2) - (2)]);
@@ -1552,7 +1544,7 @@ yyreduce:
case 21:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 142 "Grammar.y"
{
(yyval) = (yyvsp[(1) - (1)]);
@@ -1561,8 +1553,8 @@ yyreduce:
-/* Line 1464 of yacc.c */
-#line 1566 "Grammar.tab.c"
+/* Line 1455 of yacc.c */
+#line 1558 "Grammar.tab.c"
default: break;
}
YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
@@ -1773,7 +1765,7 @@ yyreturn:
-/* Line 1684 of yacc.c */
+/* Line 1675 of yacc.c */
#line 147 "Grammar.y"
diff --git a/cpp/demo/Freeze/phonebook/Grammar.h b/cpp/demo/Freeze/phonebook/Grammar.h
index 96e79b09faa..fb5de6918c2 100644
--- a/cpp/demo/Freeze/phonebook/Grammar.h
+++ b/cpp/demo/Freeze/phonebook/Grammar.h
@@ -1,9 +1,10 @@
-/* A Bison parser, made by GNU Bison 2.4.3. */
+
+/* A Bison parser, made by GNU Bison 2.4.1. */
/* Skeleton interface for Bison's Yacc-like parsers in C
- Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
- 2009, 2010 Free Software Foundation, Inc.
+ Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
+ Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/cpp/demo/Freeze/phonebook/Scanner.cpp b/cpp/demo/Freeze/phonebook/Scanner.cpp
index ebf9879df49..fd49dc560a0 100644
--- a/cpp/demo/Freeze/phonebook/Scanner.cpp
+++ b/cpp/demo/Freeze/phonebook/Scanner.cpp
@@ -636,7 +636,7 @@ static int input (void );
/* This used to be an fputs(), but since the string might contain NUL's,
* we now use fwrite().
*/
-#define ECHO fwrite( yytext, yyleng, 1, yyout )
+#define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
#endif
/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
@@ -647,7 +647,7 @@ static int input (void );
if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
{ \
int c = '*'; \
- int n; \
+ unsigned n; \
for ( n = 0; n < max_size && \
(c = getc( yyin )) != EOF && c != '\n'; ++n ) \
buf[n] = (char) c; \
diff --git a/cpp/demo/book/evictor_filesystem/Grammar.cpp b/cpp/demo/book/evictor_filesystem/Grammar.cpp
index 3694f0de424..c72207dc75a 100644
--- a/cpp/demo/book/evictor_filesystem/Grammar.cpp
+++ b/cpp/demo/book/evictor_filesystem/Grammar.cpp
@@ -1,9 +1,10 @@
-/* A Bison parser, made by GNU Bison 2.4.3. */
+
+/* A Bison parser, made by GNU Bison 2.4.1. */
/* Skeleton implementation for Bison's Yacc-like parsers in C
- Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
- 2009, 2010 Free Software Foundation, Inc.
+ Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
+ Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -45,7 +46,7 @@
#define YYBISON 1
/* Bison version. */
-#define YYBISON_VERSION "2.4.3"
+#define YYBISON_VERSION "2.4.1"
/* Skeleton name. */
#define YYSKELETON_NAME "yacc.c"
@@ -100,7 +101,7 @@ yyerror(const char* s)
/* Line 189 of yacc.c */
-#line 104 "Grammar.tab.c"
+#line 105 "Grammar.tab.c"
/* Enabling traces. */
#ifndef YYDEBUG
@@ -156,7 +157,7 @@ typedef int YYSTYPE;
/* Line 264 of yacc.c */
-#line 160 "Grammar.tab.c"
+#line 161 "Grammar.tab.c"
#ifdef short
# undef short
@@ -206,7 +207,7 @@ typedef short int yytype_int16;
#define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
#ifndef YY_
-# if defined YYENABLE_NLS && YYENABLE_NLS
+# if YYENABLE_NLS
# if ENABLE_NLS
# include <libintl.h> /* INFRINGES ON USER NAME SPACE */
# define YY_(msgid) dgettext ("bison-runtime", msgid)
@@ -565,18 +566,9 @@ static const yytype_uint8 yystos[] =
/* Like YYERROR except do call yyerror. This remains here temporarily
to ease the transition to the new meaning of YYERROR, for GCC.
- Once GCC version 2 has supplanted version 1, this can go. However,
- YYFAIL appears to be in use. Nevertheless, it is formally deprecated
- in Bison 2.4.2's NEWS entry, where a plan to phase it out is
- discussed. */
+ Once GCC version 2 has supplanted version 1, this can go. */
#define YYFAIL goto yyerrlab
-#if defined YYFAIL
- /* This is here to suppress warnings from the GCC cpp's
- -Wunused-macros. Normally we don't worry about that warning, but
- some users do, and we want to make it easy for users to remove
- YYFAIL uses, which will produce warnings from Bison 2.5. */
-#endif
#define YYRECOVERING() (!!yyerrstatus)
@@ -633,7 +625,7 @@ while (YYID (0))
we won't break user code: when these are the locations we know. */
#ifndef YY_LOCATION_PRINT
-# if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL
+# if YYLTYPE_IS_TRIVIAL
# define YY_LOCATION_PRINT(File, Loc) \
fprintf (File, "%d.%d-%d.%d", \
(Loc).first_line, (Loc).first_column, \
@@ -1371,7 +1363,7 @@ yyreduce:
{
case 2:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 53 "Grammar.y"
{
;}
@@ -1379,7 +1371,7 @@ yyreduce:
case 3:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 56 "Grammar.y"
{
;}
@@ -1387,7 +1379,7 @@ yyreduce:
case 4:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 64 "Grammar.y"
{
;}
@@ -1395,7 +1387,7 @@ yyreduce:
case 5:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 67 "Grammar.y"
{
;}
@@ -1403,7 +1395,7 @@ yyreduce:
case 6:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 75 "Grammar.y"
{
parser->usage();
@@ -1412,7 +1404,7 @@ yyreduce:
case 7:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 79 "Grammar.y"
{
return 0;
@@ -1421,7 +1413,7 @@ yyreduce:
case 8:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 83 "Grammar.y"
{
parser->list(false);
@@ -1430,7 +1422,7 @@ yyreduce:
case 9:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 87 "Grammar.y"
{
parser->list(true);
@@ -1439,7 +1431,7 @@ yyreduce:
case 10:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 91 "Grammar.y"
{
parser->createFile((yyvsp[(2) - (2)]));
@@ -1448,7 +1440,7 @@ yyreduce:
case 11:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 95 "Grammar.y"
{
parser->createDir((yyvsp[(2) - (2)]));
@@ -1457,7 +1449,7 @@ yyreduce:
case 12:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 99 "Grammar.y"
{
parser->pwd();
@@ -1466,7 +1458,7 @@ yyreduce:
case 13:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 103 "Grammar.y"
{
parser->cd("/");
@@ -1475,7 +1467,7 @@ yyreduce:
case 14:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 107 "Grammar.y"
{
parser->cd((yyvsp[(2) - (2)]).front());
@@ -1484,7 +1476,7 @@ yyreduce:
case 15:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 111 "Grammar.y"
{
parser->cat((yyvsp[(2) - (2)]).front());
@@ -1493,7 +1485,7 @@ yyreduce:
case 16:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 115 "Grammar.y"
{
parser->write((yyvsp[(2) - (2)]));
@@ -1502,7 +1494,7 @@ yyreduce:
case 17:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 119 "Grammar.y"
{
parser->destroy((yyvsp[(2) - (2)]));
@@ -1511,7 +1503,7 @@ yyreduce:
case 18:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 123 "Grammar.y"
{
parser->usage();
@@ -1521,7 +1513,7 @@ yyreduce:
case 19:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 128 "Grammar.y"
{
;}
@@ -1529,7 +1521,7 @@ yyreduce:
case 20:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 136 "Grammar.y"
{
(yyval) = (yyvsp[(2) - (2)]);
@@ -1539,7 +1531,7 @@ yyreduce:
case 21:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 141 "Grammar.y"
{
(yyval) = (yyvsp[(1) - (1)]);
@@ -1548,8 +1540,8 @@ yyreduce:
-/* Line 1464 of yacc.c */
-#line 1553 "Grammar.tab.c"
+/* Line 1455 of yacc.c */
+#line 1545 "Grammar.tab.c"
default: break;
}
YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
@@ -1760,7 +1752,7 @@ yyreturn:
-/* Line 1684 of yacc.c */
+/* Line 1675 of yacc.c */
#line 146 "Grammar.y"
diff --git a/cpp/demo/book/evictor_filesystem/Grammar.h b/cpp/demo/book/evictor_filesystem/Grammar.h
index 69f4fec2594..ca5a99150f6 100644
--- a/cpp/demo/book/evictor_filesystem/Grammar.h
+++ b/cpp/demo/book/evictor_filesystem/Grammar.h
@@ -1,9 +1,10 @@
-/* A Bison parser, made by GNU Bison 2.4.3. */
+
+/* A Bison parser, made by GNU Bison 2.4.1. */
/* Skeleton interface for Bison's Yacc-like parsers in C
- Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
- 2009, 2010 Free Software Foundation, Inc.
+ Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
+ Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/cpp/demo/book/evictor_filesystem/Scanner.cpp b/cpp/demo/book/evictor_filesystem/Scanner.cpp
index bd8b4dbb917..3e5e0e41358 100644
--- a/cpp/demo/book/evictor_filesystem/Scanner.cpp
+++ b/cpp/demo/book/evictor_filesystem/Scanner.cpp
@@ -624,7 +624,7 @@ static int input (void );
/* This used to be an fputs(), but since the string might contain NUL's,
* we now use fwrite().
*/
-#define ECHO fwrite( yytext, yyleng, 1, yyout )
+#define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
#endif
/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
@@ -635,7 +635,7 @@ static int input (void );
if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
{ \
int c = '*'; \
- int n; \
+ unsigned n; \
for ( n = 0; n < max_size && \
(c = getc( yyin )) != EOF && c != '\n'; ++n ) \
buf[n] = (char) c; \
diff --git a/cpp/demo/book/lifecycle/Scanner.cpp b/cpp/demo/book/lifecycle/Scanner.cpp
index bd8b4dbb917..3e5e0e41358 100644
--- a/cpp/demo/book/lifecycle/Scanner.cpp
+++ b/cpp/demo/book/lifecycle/Scanner.cpp
@@ -624,7 +624,7 @@ static int input (void );
/* This used to be an fputs(), but since the string might contain NUL's,
* we now use fwrite().
*/
-#define ECHO fwrite( yytext, yyleng, 1, yyout )
+#define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
#endif
/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
@@ -635,7 +635,7 @@ static int input (void );
if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
{ \
int c = '*'; \
- int n; \
+ unsigned n; \
for ( n = 0; n < max_size && \
(c = getc( yyin )) != EOF && c != '\n'; ++n ) \
buf[n] = (char) c; \
diff --git a/cpp/demo/book/map_filesystem/Grammar.cpp b/cpp/demo/book/map_filesystem/Grammar.cpp
index 3694f0de424..c72207dc75a 100644
--- a/cpp/demo/book/map_filesystem/Grammar.cpp
+++ b/cpp/demo/book/map_filesystem/Grammar.cpp
@@ -1,9 +1,10 @@
-/* A Bison parser, made by GNU Bison 2.4.3. */
+
+/* A Bison parser, made by GNU Bison 2.4.1. */
/* Skeleton implementation for Bison's Yacc-like parsers in C
- Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
- 2009, 2010 Free Software Foundation, Inc.
+ Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
+ Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -45,7 +46,7 @@
#define YYBISON 1
/* Bison version. */
-#define YYBISON_VERSION "2.4.3"
+#define YYBISON_VERSION "2.4.1"
/* Skeleton name. */
#define YYSKELETON_NAME "yacc.c"
@@ -100,7 +101,7 @@ yyerror(const char* s)
/* Line 189 of yacc.c */
-#line 104 "Grammar.tab.c"
+#line 105 "Grammar.tab.c"
/* Enabling traces. */
#ifndef YYDEBUG
@@ -156,7 +157,7 @@ typedef int YYSTYPE;
/* Line 264 of yacc.c */
-#line 160 "Grammar.tab.c"
+#line 161 "Grammar.tab.c"
#ifdef short
# undef short
@@ -206,7 +207,7 @@ typedef short int yytype_int16;
#define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
#ifndef YY_
-# if defined YYENABLE_NLS && YYENABLE_NLS
+# if YYENABLE_NLS
# if ENABLE_NLS
# include <libintl.h> /* INFRINGES ON USER NAME SPACE */
# define YY_(msgid) dgettext ("bison-runtime", msgid)
@@ -565,18 +566,9 @@ static const yytype_uint8 yystos[] =
/* Like YYERROR except do call yyerror. This remains here temporarily
to ease the transition to the new meaning of YYERROR, for GCC.
- Once GCC version 2 has supplanted version 1, this can go. However,
- YYFAIL appears to be in use. Nevertheless, it is formally deprecated
- in Bison 2.4.2's NEWS entry, where a plan to phase it out is
- discussed. */
+ Once GCC version 2 has supplanted version 1, this can go. */
#define YYFAIL goto yyerrlab
-#if defined YYFAIL
- /* This is here to suppress warnings from the GCC cpp's
- -Wunused-macros. Normally we don't worry about that warning, but
- some users do, and we want to make it easy for users to remove
- YYFAIL uses, which will produce warnings from Bison 2.5. */
-#endif
#define YYRECOVERING() (!!yyerrstatus)
@@ -633,7 +625,7 @@ while (YYID (0))
we won't break user code: when these are the locations we know. */
#ifndef YY_LOCATION_PRINT
-# if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL
+# if YYLTYPE_IS_TRIVIAL
# define YY_LOCATION_PRINT(File, Loc) \
fprintf (File, "%d.%d-%d.%d", \
(Loc).first_line, (Loc).first_column, \
@@ -1371,7 +1363,7 @@ yyreduce:
{
case 2:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 53 "Grammar.y"
{
;}
@@ -1379,7 +1371,7 @@ yyreduce:
case 3:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 56 "Grammar.y"
{
;}
@@ -1387,7 +1379,7 @@ yyreduce:
case 4:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 64 "Grammar.y"
{
;}
@@ -1395,7 +1387,7 @@ yyreduce:
case 5:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 67 "Grammar.y"
{
;}
@@ -1403,7 +1395,7 @@ yyreduce:
case 6:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 75 "Grammar.y"
{
parser->usage();
@@ -1412,7 +1404,7 @@ yyreduce:
case 7:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 79 "Grammar.y"
{
return 0;
@@ -1421,7 +1413,7 @@ yyreduce:
case 8:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 83 "Grammar.y"
{
parser->list(false);
@@ -1430,7 +1422,7 @@ yyreduce:
case 9:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 87 "Grammar.y"
{
parser->list(true);
@@ -1439,7 +1431,7 @@ yyreduce:
case 10:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 91 "Grammar.y"
{
parser->createFile((yyvsp[(2) - (2)]));
@@ -1448,7 +1440,7 @@ yyreduce:
case 11:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 95 "Grammar.y"
{
parser->createDir((yyvsp[(2) - (2)]));
@@ -1457,7 +1449,7 @@ yyreduce:
case 12:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 99 "Grammar.y"
{
parser->pwd();
@@ -1466,7 +1458,7 @@ yyreduce:
case 13:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 103 "Grammar.y"
{
parser->cd("/");
@@ -1475,7 +1467,7 @@ yyreduce:
case 14:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 107 "Grammar.y"
{
parser->cd((yyvsp[(2) - (2)]).front());
@@ -1484,7 +1476,7 @@ yyreduce:
case 15:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 111 "Grammar.y"
{
parser->cat((yyvsp[(2) - (2)]).front());
@@ -1493,7 +1485,7 @@ yyreduce:
case 16:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 115 "Grammar.y"
{
parser->write((yyvsp[(2) - (2)]));
@@ -1502,7 +1494,7 @@ yyreduce:
case 17:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 119 "Grammar.y"
{
parser->destroy((yyvsp[(2) - (2)]));
@@ -1511,7 +1503,7 @@ yyreduce:
case 18:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 123 "Grammar.y"
{
parser->usage();
@@ -1521,7 +1513,7 @@ yyreduce:
case 19:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 128 "Grammar.y"
{
;}
@@ -1529,7 +1521,7 @@ yyreduce:
case 20:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 136 "Grammar.y"
{
(yyval) = (yyvsp[(2) - (2)]);
@@ -1539,7 +1531,7 @@ yyreduce:
case 21:
-/* Line 1464 of yacc.c */
+/* Line 1455 of yacc.c */
#line 141 "Grammar.y"
{
(yyval) = (yyvsp[(1) - (1)]);
@@ -1548,8 +1540,8 @@ yyreduce:
-/* Line 1464 of yacc.c */
-#line 1553 "Grammar.tab.c"
+/* Line 1455 of yacc.c */
+#line 1545 "Grammar.tab.c"
default: break;
}
YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
@@ -1760,7 +1752,7 @@ yyreturn:
-/* Line 1684 of yacc.c */
+/* Line 1675 of yacc.c */
#line 146 "Grammar.y"
diff --git a/cpp/demo/book/map_filesystem/Grammar.h b/cpp/demo/book/map_filesystem/Grammar.h
index 69f4fec2594..ca5a99150f6 100644
--- a/cpp/demo/book/map_filesystem/Grammar.h
+++ b/cpp/demo/book/map_filesystem/Grammar.h
@@ -1,9 +1,10 @@
-/* A Bison parser, made by GNU Bison 2.4.3. */
+
+/* A Bison parser, made by GNU Bison 2.4.1. */
/* Skeleton interface for Bison's Yacc-like parsers in C
- Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
- 2009, 2010 Free Software Foundation, Inc.
+ Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
+ Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/cpp/demo/book/map_filesystem/Scanner.cpp b/cpp/demo/book/map_filesystem/Scanner.cpp
index bd8b4dbb917..3e5e0e41358 100644
--- a/cpp/demo/book/map_filesystem/Scanner.cpp
+++ b/cpp/demo/book/map_filesystem/Scanner.cpp
@@ -624,7 +624,7 @@ static int input (void );
/* This used to be an fputs(), but since the string might contain NUL's,
* we now use fwrite().
*/
-#define ECHO fwrite( yytext, yyleng, 1, yyout )
+#define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
#endif
/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
@@ -635,7 +635,7 @@ static int input (void );
if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
{ \
int c = '*'; \
- int n; \
+ unsigned n; \
for ( n = 0; n < max_size && \
(c = getc( yyin )) != EOF && c != '\n'; ++n ) \
buf[n] = (char) c; \
diff --git a/cpp/src/FreezeScript/Grammar.cpp b/cpp/src/FreezeScript/Grammar.cpp
index 42fe90aaaf7..d02c33a32f5 100644
--- a/cpp/src/FreezeScript/Grammar.cpp
+++ b/cpp/src/FreezeScript/Grammar.cpp
@@ -1,24 +1,23 @@
-/* A Bison parser, made by GNU Bison 2.3. */
-/* Skeleton implementation for Bison's Yacc-like parsers in C
+/* A Bison parser, made by GNU Bison 2.4.1. */
- Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
+/* Skeleton implementation for Bison's Yacc-like parsers in C
+
+ Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
Free Software Foundation, Inc.
-
- This program is free software; you can redistribute it and/or modify
+
+ This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2, or (at your option)
- any later version.
-
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
+
You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA. */
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
@@ -29,7 +28,7 @@
special exception, which will cause the skeleton and the resulting
Bison output files to be licensed under the GNU General Public
License without this special exception.
-
+
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
@@ -47,7 +46,7 @@
#define YYBISON 1
/* Bison version. */
-#define YYBISON_VERSION "2.3"
+#define YYBISON_VERSION "2.4.1"
/* Skeleton name. */
#define YYSKELETON_NAME "yacc.c"
@@ -55,87 +54,28 @@
/* Pure parsers. */
#define YYPURE 1
+/* Push parsers. */
+#define YYPUSH 0
+
+/* Pull parsers. */
+#define YYPULL 1
+
/* Using locations. */
#define YYLSP_NEEDED 0
/* Substitute the variable and function names. */
-#define yyparse freeze_script_parse
-#define yylex freeze_script_lex
-#define yyerror freeze_script_error
-#define yylval freeze_script_lval
-#define yychar freeze_script_char
-#define yydebug freeze_script_debug
-#define yynerrs freeze_script_nerrs
-
-
-/* Tokens. */
-#ifndef YYTOKENTYPE
-# define YYTOKENTYPE
- /* Put the tokens into the symbol table, so that GDB and other debuggers
- know about them. */
- enum yytokentype {
- TOK_AND = 258,
- TOK_OR = 259,
- TOK_NOT = 260,
- TOK_ADD = 261,
- TOK_SUB = 262,
- TOK_MUL = 263,
- TOK_DIV = 264,
- TOK_MOD = 265,
- TOK_LPAREN = 266,
- TOK_RPAREN = 267,
- TOK_LBRACKET = 268,
- TOK_RBRACKET = 269,
- TOK_LESS_THAN = 270,
- TOK_GREATER_THAN = 271,
- TOK_LESS_EQUAL = 272,
- TOK_GREATER_EQUAL = 273,
- TOK_EQUAL = 274,
- TOK_NEQ = 275,
- TOK_TRUE = 276,
- TOK_FALSE = 277,
- TOK_NIL = 278,
- TOK_SCOPE_DELIMITER = 279,
- TOK_IDENTIFIER = 280,
- TOK_STRING_LITERAL = 281,
- TOK_INTEGER_LITERAL = 282,
- TOK_FLOATING_POINT_LITERAL = 283,
- UNARY_OP = 284
- };
-#endif
-/* Tokens. */
-#define TOK_AND 258
-#define TOK_OR 259
-#define TOK_NOT 260
-#define TOK_ADD 261
-#define TOK_SUB 262
-#define TOK_MUL 263
-#define TOK_DIV 264
-#define TOK_MOD 265
-#define TOK_LPAREN 266
-#define TOK_RPAREN 267
-#define TOK_LBRACKET 268
-#define TOK_RBRACKET 269
-#define TOK_LESS_THAN 270
-#define TOK_GREATER_THAN 271
-#define TOK_LESS_EQUAL 272
-#define TOK_GREATER_EQUAL 273
-#define TOK_EQUAL 274
-#define TOK_NEQ 275
-#define TOK_TRUE 276
-#define TOK_FALSE 277
-#define TOK_NIL 278
-#define TOK_SCOPE_DELIMITER 279
-#define TOK_IDENTIFIER 280
-#define TOK_STRING_LITERAL 281
-#define TOK_INTEGER_LITERAL 282
-#define TOK_FLOATING_POINT_LITERAL 283
-#define UNARY_OP 284
-
-
+#define yyparse freeze_script_parse
+#define yylex freeze_script_lex
+#define yyerror freeze_script_error
+#define yylval freeze_script_lval
+#define yychar freeze_script_char
+#define yydebug freeze_script_debug
+#define yynerrs freeze_script_nerrs
/* Copy the first part of user declarations. */
+
+/* Line 189 of yacc.c */
#line 1 "../FreezeScript/Grammar.y"
@@ -179,6 +119,9 @@ freeze_script_error(const char* s)
+/* Line 189 of yacc.c */
+#line 124 "Grammar.tab.c"
+
/* Enabling traces. */
#ifndef YYDEBUG
# define YYDEBUG 1
@@ -197,20 +140,58 @@ freeze_script_error(const char* s)
# define YYTOKEN_TABLE 0
#endif
+
+/* Tokens. */
+#ifndef YYTOKENTYPE
+# define YYTOKENTYPE
+ /* Put the tokens into the symbol table, so that GDB and other debuggers
+ know about them. */
+ enum yytokentype {
+ TOK_AND = 258,
+ TOK_OR = 259,
+ TOK_NOT = 260,
+ TOK_ADD = 261,
+ TOK_SUB = 262,
+ TOK_MUL = 263,
+ TOK_DIV = 264,
+ TOK_MOD = 265,
+ TOK_LPAREN = 266,
+ TOK_RPAREN = 267,
+ TOK_LBRACKET = 268,
+ TOK_RBRACKET = 269,
+ TOK_LESS_THAN = 270,
+ TOK_GREATER_THAN = 271,
+ TOK_LESS_EQUAL = 272,
+ TOK_GREATER_EQUAL = 273,
+ TOK_EQUAL = 274,
+ TOK_NEQ = 275,
+ TOK_TRUE = 276,
+ TOK_FALSE = 277,
+ TOK_NIL = 278,
+ TOK_SCOPE_DELIMITER = 279,
+ TOK_IDENTIFIER = 280,
+ TOK_STRING_LITERAL = 281,
+ TOK_INTEGER_LITERAL = 282,
+ TOK_FLOATING_POINT_LITERAL = 283,
+ UNARY_OP = 284
+ };
+#endif
+
+
+
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef int YYSTYPE;
+# define YYSTYPE_IS_TRIVIAL 1
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
-# define YYSTYPE_IS_TRIVIAL 1
#endif
-
/* Copy the second part of user declarations. */
-/* Line 216 of yacc.c. */
-#line 214 "Grammar.tab.c"
+/* Line 264 of yacc.c */
+#line 195 "Grammar.tab.c"
#ifdef short
# undef short
@@ -285,14 +266,14 @@ typedef short int yytype_int16;
#if (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
static int
-YYID (int i)
+YYID (int yyi)
#else
static int
-YYID (i)
- int i;
+YYID (yyi)
+ int yyi;
#endif
{
- return i;
+ return yyi;
}
#endif
@@ -373,9 +354,9 @@ void free (void *); /* INFRINGES ON USER NAME SPACE */
/* A type that is properly aligned for any stack member. */
union yyalloc
{
- yytype_int16 yyss;
- YYSTYPE yyvs;
- };
+ yytype_int16 yyss_alloc;
+ YYSTYPE yyvs_alloc;
+};
/* The size of the maximum gap between one aligned stack and the next. */
# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
@@ -409,12 +390,12 @@ union yyalloc
elements in the stack, and YYPTR gives the new location of the
stack. Advance YYPTR to a properly aligned location for the next
stack. */
-# define YYSTACK_RELOCATE(Stack) \
+# define YYSTACK_RELOCATE(Stack_alloc, Stack) \
do \
{ \
YYSIZE_T yynewbytes; \
- YYCOPY (&yyptr->Stack, Stack, yysize); \
- Stack = &yyptr->Stack; \
+ YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
+ Stack = &yyptr->Stack_alloc; \
yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
yyptr += yynewbytes / sizeof (*yyptr); \
} \
@@ -835,17 +816,20 @@ yy_symbol_print (yyoutput, yytype, yyvaluep)
#if (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
static void
-yy_stack_print (yytype_int16 *bottom, yytype_int16 *top)
+yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop)
#else
static void
-yy_stack_print (bottom, top)
- yytype_int16 *bottom;
- yytype_int16 *top;
+yy_stack_print (yybottom, yytop)
+ yytype_int16 *yybottom;
+ yytype_int16 *yytop;
#endif
{
YYFPRINTF (stderr, "Stack now");
- for (; bottom <= top; ++bottom)
- YYFPRINTF (stderr, " %d", *bottom);
+ for (; yybottom <= yytop; yybottom++)
+ {
+ int yybot = *yybottom;
+ YYFPRINTF (stderr, " %d", yybot);
+ }
YYFPRINTF (stderr, "\n");
}
@@ -879,11 +863,11 @@ yy_reduce_print (yyvsp, yyrule)
/* The symbols being reduced. */
for (yyi = 0; yyi < yynrhs; yyi++)
{
- fprintf (stderr, " $%d = ", yyi + 1);
+ YYFPRINTF (stderr, " $%d = ", yyi + 1);
yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
&(yyvsp[(yyi + 1) - (yynrhs)])
);
- fprintf (stderr, "\n");
+ YYFPRINTF (stderr, "\n");
}
}
@@ -1163,10 +1147,8 @@ yydestruct (yymsg, yytype, yyvaluep)
break;
}
}
-
/* Prevent warnings from -Wmissing-prototypes. */
-
#ifdef YYPARSE_PARAM
#if defined __STDC__ || defined __cplusplus
int yyparse (void *YYPARSE_PARAM);
@@ -1185,10 +1167,9 @@ int yyparse ();
-
-/*----------.
-| yyparse. |
-`----------*/
+/*-------------------------.
+| yyparse or yypush_parse. |
+`-------------------------*/
#ifdef YYPARSE_PARAM
#if (defined __STDC__ || defined __C99__FUNC__ \
@@ -1212,74 +1193,75 @@ yyparse ()
#endif
#endif
{
- /* The look-ahead symbol. */
+/* The lookahead symbol. */
int yychar;
-/* The semantic value of the look-ahead symbol. */
+/* The semantic value of the lookahead symbol. */
YYSTYPE yylval;
-/* Number of syntax errors so far. */
-int yynerrs;
-
- int yystate;
- int yyn;
- int yyresult;
- /* Number of tokens to shift before error messages enabled. */
- int yyerrstatus;
- /* Look-ahead token as an internal (translated) token number. */
- int yytoken = 0;
-#if YYERROR_VERBOSE
- /* Buffer for error messages, and its allocated size. */
- char yymsgbuf[128];
- char *yymsg = yymsgbuf;
- YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
-#endif
-
- /* Three stacks and their tools:
- `yyss': related to states,
- `yyvs': related to semantic values,
- `yyls': related to locations.
+ /* Number of syntax errors so far. */
+ int yynerrs;
- Refer to the stacks thru separate pointers, to allow yyoverflow
- to reallocate them elsewhere. */
+ int yystate;
+ /* Number of tokens to shift before error messages enabled. */
+ int yyerrstatus;
- /* The state stack. */
- yytype_int16 yyssa[YYINITDEPTH];
- yytype_int16 *yyss = yyssa;
- yytype_int16 *yyssp;
+ /* The stacks and their tools:
+ `yyss': related to states.
+ `yyvs': related to semantic values.
- /* The semantic value stack. */
- YYSTYPE yyvsa[YYINITDEPTH];
- YYSTYPE *yyvs = yyvsa;
- YYSTYPE *yyvsp;
+ Refer to the stacks thru separate pointers, to allow yyoverflow
+ to reallocate them elsewhere. */
+ /* The state stack. */
+ yytype_int16 yyssa[YYINITDEPTH];
+ yytype_int16 *yyss;
+ yytype_int16 *yyssp;
+ /* The semantic value stack. */
+ YYSTYPE yyvsa[YYINITDEPTH];
+ YYSTYPE *yyvs;
+ YYSTYPE *yyvsp;
-#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
-
- YYSIZE_T yystacksize = YYINITDEPTH;
+ YYSIZE_T yystacksize;
+ int yyn;
+ int yyresult;
+ /* Lookahead token as an internal (translated) token number. */
+ int yytoken;
/* The variables used to return semantic value and location from the
action routines. */
YYSTYPE yyval;
+#if YYERROR_VERBOSE
+ /* Buffer for error messages, and its allocated size. */
+ char yymsgbuf[128];
+ char *yymsg = yymsgbuf;
+ YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
+#endif
+
+#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
/* The number of symbols on the RHS of the reduced rule.
Keep to zero when no symbol should be popped. */
int yylen = 0;
+ yytoken = 0;
+ yyss = yyssa;
+ yyvs = yyvsa;
+ yystacksize = YYINITDEPTH;
+
YYDPRINTF ((stderr, "Starting parse\n"));
yystate = 0;
yyerrstatus = 0;
yynerrs = 0;
- yychar = YYEMPTY; /* Cause a token to be read. */
+ yychar = YYEMPTY; /* Cause a token to be read. */
/* Initialize stack pointers.
Waste one element of value and location stack
so that they stay on the same level as the state stack.
The wasted elements are never initialized. */
-
yyssp = yyss;
yyvsp = yyvs;
@@ -1309,7 +1291,6 @@ int yynerrs;
YYSTYPE *yyvs1 = yyvs;
yytype_int16 *yyss1 = yyss;
-
/* Each stack pointer address is followed by the size of the
data in use in that stack, in bytes. This used to be a
conditional around just the two extra args, but that might
@@ -1317,7 +1298,6 @@ int yynerrs;
yyoverflow (YY_("memory exhausted"),
&yyss1, yysize * sizeof (*yyssp),
&yyvs1, yysize * sizeof (*yyvsp),
-
&yystacksize);
yyss = yyss1;
@@ -1340,9 +1320,8 @@ int yynerrs;
(union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
if (! yyptr)
goto yyexhaustedlab;
- YYSTACK_RELOCATE (yyss);
- YYSTACK_RELOCATE (yyvs);
-
+ YYSTACK_RELOCATE (yyss_alloc, yyss);
+ YYSTACK_RELOCATE (yyvs_alloc, yyvs);
# undef YYSTACK_RELOCATE
if (yyss1 != yyssa)
YYSTACK_FREE (yyss1);
@@ -1353,7 +1332,6 @@ int yynerrs;
yyssp = yyss + yysize - 1;
yyvsp = yyvs + yysize - 1;
-
YYDPRINTF ((stderr, "Stack size increased to %lu\n",
(unsigned long int) yystacksize));
@@ -1363,6 +1341,9 @@ int yynerrs;
YYDPRINTF ((stderr, "Entering state %d\n", yystate));
+ if (yystate == YYFINAL)
+ YYACCEPT;
+
goto yybackup;
/*-----------.
@@ -1371,16 +1352,16 @@ int yynerrs;
yybackup:
/* Do appropriate processing given the current state. Read a
- look-ahead token if we need one and don't already have one. */
+ lookahead token if we need one and don't already have one. */
- /* First try to decide what to do without reference to look-ahead token. */
+ /* First try to decide what to do without reference to lookahead token. */
yyn = yypact[yystate];
if (yyn == YYPACT_NINF)
goto yydefault;
- /* Not known => get a look-ahead token if don't already have one. */
+ /* Not known => get a lookahead token if don't already have one. */
- /* YYCHAR is either YYEMPTY or YYEOF or a valid look-ahead symbol. */
+ /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */
if (yychar == YYEMPTY)
{
YYDPRINTF ((stderr, "Reading a token: "));
@@ -1412,20 +1393,16 @@ yybackup:
goto yyreduce;
}
- if (yyn == YYFINAL)
- YYACCEPT;
-
/* Count tokens shifted since error; after three, turn off error
status. */
if (yyerrstatus)
yyerrstatus--;
- /* Shift the look-ahead token. */
+ /* Shift the lookahead token. */
YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
- /* Discard the shifted token unless it is eof. */
- if (yychar != YYEOF)
- yychar = YYEMPTY;
+ /* Discard the shifted token. */
+ yychar = YYEMPTY;
yystate = yyn;
*++yyvsp = yylval;
@@ -1465,6 +1442,8 @@ yyreduce:
switch (yyn)
{
case 2:
+
+/* Line 1455 of yacc.c */
#line 85 "../FreezeScript/Grammar.y"
{
parseResult = (yyvsp[(1) - (1)]);
@@ -1472,6 +1451,8 @@ yyreduce:
break;
case 3:
+
+/* Line 1455 of yacc.c */
#line 94 "../FreezeScript/Grammar.y"
{
(yyval) = (yyvsp[(1) - (1)]);
@@ -1479,6 +1460,8 @@ yyreduce:
break;
case 4:
+
+/* Line 1455 of yacc.c */
#line 103 "../FreezeScript/Grammar.y"
{
(yyval) = new BinaryNode(BinOpLess, parseDataFactory, (yyvsp[(1) - (3)]), (yyvsp[(3) - (3)]));
@@ -1486,6 +1469,8 @@ yyreduce:
break;
case 5:
+
+/* Line 1455 of yacc.c */
#line 107 "../FreezeScript/Grammar.y"
{
(yyval) = new BinaryNode(BinOpGreater, parseDataFactory, (yyvsp[(1) - (3)]), (yyvsp[(3) - (3)]));
@@ -1493,6 +1478,8 @@ yyreduce:
break;
case 6:
+
+/* Line 1455 of yacc.c */
#line 111 "../FreezeScript/Grammar.y"
{
(yyval) = new BinaryNode(BinOpLessEq, parseDataFactory, (yyvsp[(1) - (3)]), (yyvsp[(3) - (3)]));
@@ -1500,6 +1487,8 @@ yyreduce:
break;
case 7:
+
+/* Line 1455 of yacc.c */
#line 115 "../FreezeScript/Grammar.y"
{
(yyval) = new BinaryNode(BinOpGrEq, parseDataFactory, (yyvsp[(1) - (3)]), (yyvsp[(3) - (3)]));
@@ -1507,6 +1496,8 @@ yyreduce:
break;
case 8:
+
+/* Line 1455 of yacc.c */
#line 119 "../FreezeScript/Grammar.y"
{
(yyval) = new BinaryNode(BinOpEq, parseDataFactory, (yyvsp[(1) - (3)]), (yyvsp[(3) - (3)]));
@@ -1514,6 +1505,8 @@ yyreduce:
break;
case 9:
+
+/* Line 1455 of yacc.c */
#line 123 "../FreezeScript/Grammar.y"
{
(yyval) = new BinaryNode(BinOpNotEq, parseDataFactory, (yyvsp[(1) - (3)]), (yyvsp[(3) - (3)]));
@@ -1521,6 +1514,8 @@ yyreduce:
break;
case 10:
+
+/* Line 1455 of yacc.c */
#line 127 "../FreezeScript/Grammar.y"
{
(yyval) = new BinaryNode(BinOpOr, parseDataFactory, (yyvsp[(1) - (3)]), (yyvsp[(3) - (3)]));
@@ -1528,6 +1523,8 @@ yyreduce:
break;
case 11:
+
+/* Line 1455 of yacc.c */
#line 131 "../FreezeScript/Grammar.y"
{
(yyval) = new BinaryNode(BinOpAnd, parseDataFactory, (yyvsp[(1) - (3)]), (yyvsp[(3) - (3)]));
@@ -1535,6 +1532,8 @@ yyreduce:
break;
case 12:
+
+/* Line 1455 of yacc.c */
#line 135 "../FreezeScript/Grammar.y"
{
(yyval) = new BinaryNode(BinOpMul, parseDataFactory, (yyvsp[(1) - (3)]), (yyvsp[(3) - (3)]));
@@ -1542,6 +1541,8 @@ yyreduce:
break;
case 13:
+
+/* Line 1455 of yacc.c */
#line 139 "../FreezeScript/Grammar.y"
{
(yyval) = new BinaryNode(BinOpDiv, parseDataFactory, (yyvsp[(1) - (3)]), (yyvsp[(3) - (3)]));
@@ -1549,6 +1550,8 @@ yyreduce:
break;
case 14:
+
+/* Line 1455 of yacc.c */
#line 143 "../FreezeScript/Grammar.y"
{
(yyval) = new BinaryNode(BinOpMod, parseDataFactory, (yyvsp[(1) - (3)]), (yyvsp[(3) - (3)]));
@@ -1556,6 +1559,8 @@ yyreduce:
break;
case 15:
+
+/* Line 1455 of yacc.c */
#line 147 "../FreezeScript/Grammar.y"
{
(yyval) = new BinaryNode(BinOpAdd, parseDataFactory, (yyvsp[(1) - (3)]), (yyvsp[(3) - (3)]));
@@ -1563,6 +1568,8 @@ yyreduce:
break;
case 16:
+
+/* Line 1455 of yacc.c */
#line 151 "../FreezeScript/Grammar.y"
{
(yyval) = new BinaryNode(BinOpSub, parseDataFactory, (yyvsp[(1) - (3)]), (yyvsp[(3) - (3)]));
@@ -1570,6 +1577,8 @@ yyreduce:
break;
case 17:
+
+/* Line 1455 of yacc.c */
#line 155 "../FreezeScript/Grammar.y"
{
(yyval) = (yyvsp[(1) - (1)]);
@@ -1577,6 +1586,8 @@ yyreduce:
break;
case 18:
+
+/* Line 1455 of yacc.c */
#line 164 "../FreezeScript/Grammar.y"
{
(yyval) = (yyvsp[(2) - (3)]);
@@ -1584,6 +1595,8 @@ yyreduce:
break;
case 19:
+
+/* Line 1455 of yacc.c */
#line 168 "../FreezeScript/Grammar.y"
{
(yyval) = new UnaryNode(UnaryOpNeg, parseDataFactory, (yyvsp[(2) - (2)]));
@@ -1591,6 +1604,8 @@ yyreduce:
break;
case 20:
+
+/* Line 1455 of yacc.c */
#line 172 "../FreezeScript/Grammar.y"
{
(yyval) = new UnaryNode(UnaryOpNot, parseDataFactory, (yyvsp[(2) - (2)]));
@@ -1598,6 +1613,8 @@ yyreduce:
break;
case 21:
+
+/* Line 1455 of yacc.c */
#line 176 "../FreezeScript/Grammar.y"
{
IntegerTokPtr intVal = IntegerTokPtr::dynamicCast((yyvsp[(1) - (1)]));
@@ -1607,6 +1624,8 @@ yyreduce:
break;
case 22:
+
+/* Line 1455 of yacc.c */
#line 182 "../FreezeScript/Grammar.y"
{
FloatingTokPtr floatVal = FloatingTokPtr::dynamicCast((yyvsp[(1) - (1)]));
@@ -1616,6 +1635,8 @@ yyreduce:
break;
case 23:
+
+/* Line 1455 of yacc.c */
#line 188 "../FreezeScript/Grammar.y"
{
StringTokPtr stringVal = StringTokPtr::dynamicCast((yyvsp[(1) - (1)]));
@@ -1625,6 +1646,8 @@ yyreduce:
break;
case 24:
+
+/* Line 1455 of yacc.c */
#line 194 "../FreezeScript/Grammar.y"
{
(yyval) = new DataNode(parseDataFactory->createBoolean(true, true));
@@ -1632,6 +1655,8 @@ yyreduce:
break;
case 25:
+
+/* Line 1455 of yacc.c */
#line 198 "../FreezeScript/Grammar.y"
{
(yyval) = new DataNode(parseDataFactory->createBoolean(false, true));
@@ -1639,6 +1664,8 @@ yyreduce:
break;
case 26:
+
+/* Line 1455 of yacc.c */
#line 202 "../FreezeScript/Grammar.y"
{
(yyval) = new DataNode(parseDataFactory->createNil(true));
@@ -1646,6 +1673,8 @@ yyreduce:
break;
case 27:
+
+/* Line 1455 of yacc.c */
#line 206 "../FreezeScript/Grammar.y"
{
(yyval) = (yyvsp[(1) - (1)]);
@@ -1653,6 +1682,8 @@ yyreduce:
break;
case 28:
+
+/* Line 1455 of yacc.c */
#line 210 "../FreezeScript/Grammar.y"
{
EntityNodePtr entity = EntityNodePtr::dynamicCast((yyvsp[(1) - (3)]));
@@ -1665,6 +1696,8 @@ yyreduce:
break;
case 29:
+
+/* Line 1455 of yacc.c */
#line 219 "../FreezeScript/Grammar.y"
{
(yyval) = (yyvsp[(1) - (1)]);
@@ -1672,6 +1705,8 @@ yyreduce:
break;
case 30:
+
+/* Line 1455 of yacc.c */
#line 223 "../FreezeScript/Grammar.y"
{
StringTokPtr stringVal = StringTokPtr::dynamicCast((yyvsp[(1) - (1)]));
@@ -1681,6 +1716,8 @@ yyreduce:
break;
case 31:
+
+/* Line 1455 of yacc.c */
#line 234 "../FreezeScript/Grammar.y"
{
EntityNodePtr entity = EntityNodePtr::dynamicCast((yyvsp[(1) - (4)]));
@@ -1691,6 +1728,8 @@ yyreduce:
break;
case 32:
+
+/* Line 1455 of yacc.c */
#line 241 "../FreezeScript/Grammar.y"
{
StringTokPtr stringVal = StringTokPtr::dynamicCast((yyvsp[(3) - (3)]));
@@ -1703,6 +1742,8 @@ yyreduce:
break;
case 33:
+
+/* Line 1455 of yacc.c */
#line 250 "../FreezeScript/Grammar.y"
{
StringTokPtr stringVal = StringTokPtr::dynamicCast((yyvsp[(1) - (1)]));
@@ -1712,6 +1753,8 @@ yyreduce:
break;
case 34:
+
+/* Line 1455 of yacc.c */
#line 261 "../FreezeScript/Grammar.y"
{
StringTokPtr func = StringTokPtr::dynamicCast((yyvsp[(1) - (4)]));
@@ -1723,6 +1766,8 @@ yyreduce:
break;
case 35:
+
+/* Line 1455 of yacc.c */
#line 274 "../FreezeScript/Grammar.y"
{
NodeListTokPtr l = NodeListTokPtr::dynamicCast((yyvsp[(1) - (3)]));
@@ -1733,6 +1778,8 @@ yyreduce:
break;
case 36:
+
+/* Line 1455 of yacc.c */
#line 281 "../FreezeScript/Grammar.y"
{
NodeListTokPtr result = new NodeListTok;
@@ -1742,6 +1789,8 @@ yyreduce:
break;
case 37:
+
+/* Line 1455 of yacc.c */
#line 287 "../FreezeScript/Grammar.y"
{
(yyval) = new NodeListTok;
@@ -1749,6 +1798,8 @@ yyreduce:
break;
case 38:
+
+/* Line 1455 of yacc.c */
#line 296 "../FreezeScript/Grammar.y"
{
StringTokPtr stringVal = StringTokPtr::dynamicCast((yyvsp[(1) - (3)]));
@@ -1761,6 +1812,8 @@ yyreduce:
break;
case 39:
+
+/* Line 1455 of yacc.c */
#line 305 "../FreezeScript/Grammar.y"
{
StringTokPtr idVal = StringTokPtr::dynamicCast((yyvsp[(2) - (2)]));
@@ -1772,8 +1825,9 @@ yyreduce:
break;
-/* Line 1267 of yacc.c. */
-#line 1777 "Grammar.tab.c"
+
+/* Line 1455 of yacc.c */
+#line 1831 "Grammar.tab.c"
default: break;
}
YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
@@ -1784,7 +1838,6 @@ yyreduce:
*++yyvsp = yyval;
-
/* Now `shift' the result of the reduction. Determine what state
that goes to, based on the state we popped back to and the rule
number reduced by. */
@@ -1849,7 +1902,7 @@ yyerrlab:
if (yyerrstatus == 3)
{
- /* If just tried and failed to reuse look-ahead token after an
+ /* If just tried and failed to reuse lookahead token after an
error, discard it. */
if (yychar <= YYEOF)
@@ -1866,7 +1919,7 @@ yyerrlab:
}
}
- /* Else will try to reuse look-ahead token after shifting the error
+ /* Else will try to reuse lookahead token after shifting the error
token. */
goto yyerrlab1;
@@ -1923,9 +1976,6 @@ yyerrlab1:
YY_STACK_PRINT (yyss, yyssp);
}
- if (yyn == YYFINAL)
- YYACCEPT;
-
*++yyvsp = yylval;
@@ -1950,7 +2000,7 @@ yyabortlab:
yyresult = 1;
goto yyreturn;
-#ifndef yyoverflow
+#if !defined(yyoverflow) || YYERROR_VERBOSE
/*-------------------------------------------------.
| yyexhaustedlab -- memory exhaustion comes here. |
`-------------------------------------------------*/
@@ -1961,7 +2011,7 @@ yyexhaustedlab:
#endif
yyreturn:
- if (yychar != YYEOF && yychar != YYEMPTY)
+ if (yychar != YYEMPTY)
yydestruct ("Cleanup: discarding lookahead",
yytoken, &yylval);
/* Do not reclaim the symbols of the rule which action triggered
@@ -1987,6 +2037,8 @@ yyreturn:
}
+
+/* Line 1675 of yacc.c */
#line 314 "../FreezeScript/Grammar.y"
diff --git a/cpp/src/FreezeScript/Grammar.h b/cpp/src/FreezeScript/Grammar.h
index 4d123f32944..ae561a72f12 100644
--- a/cpp/src/FreezeScript/Grammar.h
+++ b/cpp/src/FreezeScript/Grammar.h
@@ -1,24 +1,23 @@
-/* A Bison parser, made by GNU Bison 2.3. */
-/* Skeleton interface for Bison's Yacc-like parsers in C
+/* A Bison parser, made by GNU Bison 2.4.1. */
- Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
+/* Skeleton interface for Bison's Yacc-like parsers in C
+
+ Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
Free Software Foundation, Inc.
-
- This program is free software; you can redistribute it and/or modify
+
+ This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2, or (at your option)
- any later version.
-
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
+
You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA. */
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
@@ -29,10 +28,11 @@
special exception, which will cause the skeleton and the resulting
Bison output files to be licensed under the GNU General Public
License without this special exception.
-
+
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
+
/* Tokens. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
@@ -68,44 +68,16 @@
UNARY_OP = 284
};
#endif
-/* Tokens. */
-#define TOK_AND 258
-#define TOK_OR 259
-#define TOK_NOT 260
-#define TOK_ADD 261
-#define TOK_SUB 262
-#define TOK_MUL 263
-#define TOK_DIV 264
-#define TOK_MOD 265
-#define TOK_LPAREN 266
-#define TOK_RPAREN 267
-#define TOK_LBRACKET 268
-#define TOK_RBRACKET 269
-#define TOK_LESS_THAN 270
-#define TOK_GREATER_THAN 271
-#define TOK_LESS_EQUAL 272
-#define TOK_GREATER_EQUAL 273
-#define TOK_EQUAL 274
-#define TOK_NEQ 275
-#define TOK_TRUE 276
-#define TOK_FALSE 277
-#define TOK_NIL 278
-#define TOK_SCOPE_DELIMITER 279
-#define TOK_IDENTIFIER 280
-#define TOK_STRING_LITERAL 281
-#define TOK_INTEGER_LITERAL 282
-#define TOK_FLOATING_POINT_LITERAL 283
-#define UNARY_OP 284
-
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef int YYSTYPE;
+# define YYSTYPE_IS_TRIVIAL 1
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
-# define YYSTYPE_IS_TRIVIAL 1
#endif
+
diff --git a/cpp/src/Slice/Grammar.cpp b/cpp/src/Slice/Grammar.cpp
index d796698043e..ddb2f591629 100644
--- a/cpp/src/Slice/Grammar.cpp
+++ b/cpp/src/Slice/Grammar.cpp
@@ -1,24 +1,23 @@
-/* A Bison parser, made by GNU Bison 2.3. */
-/* Skeleton implementation for Bison's Yacc-like parsers in C
+/* A Bison parser, made by GNU Bison 2.4.1. */
- Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
+/* Skeleton implementation for Bison's Yacc-like parsers in C
+
+ Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
Free Software Foundation, Inc.
-
- This program is free software; you can redistribute it and/or modify
+
+ This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2, or (at your option)
- any later version.
-
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
+
You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA. */
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
@@ -29,7 +28,7 @@
special exception, which will cause the skeleton and the resulting
Bison output files to be licensed under the GNU General Public
License without this special exception.
-
+
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
@@ -47,7 +46,7 @@
#define YYBISON 1
/* Bison version. */
-#define YYBISON_VERSION "2.3"
+#define YYBISON_VERSION "2.4.1"
/* Skeleton name. */
#define YYSKELETON_NAME "yacc.c"
@@ -55,117 +54,28 @@
/* Pure parsers. */
#define YYPURE 1
+/* Push parsers. */
+#define YYPUSH 0
+
+/* Pull parsers. */
+#define YYPULL 1
+
/* Using locations. */
#define YYLSP_NEEDED 0
/* Substitute the variable and function names. */
-#define yyparse slice_parse
-#define yylex slice_lex
-#define yyerror slice_error
-#define yylval slice_lval
-#define yychar slice_char
-#define yydebug slice_debug
-#define yynerrs slice_nerrs
-
-
-/* Tokens. */
-#ifndef YYTOKENTYPE
-# define YYTOKENTYPE
- /* Put the tokens into the symbol table, so that GDB and other debuggers
- know about them. */
- enum yytokentype {
- ICE_MODULE = 258,
- ICE_CLASS = 259,
- ICE_INTERFACE = 260,
- ICE_EXCEPTION = 261,
- ICE_STRUCT = 262,
- ICE_SEQUENCE = 263,
- ICE_DICTIONARY = 264,
- ICE_ENUM = 265,
- ICE_OUT = 266,
- ICE_EXTENDS = 267,
- ICE_IMPLEMENTS = 268,
- ICE_THROWS = 269,
- ICE_VOID = 270,
- ICE_BYTE = 271,
- ICE_BOOL = 272,
- ICE_SHORT = 273,
- ICE_INT = 274,
- ICE_LONG = 275,
- ICE_FLOAT = 276,
- ICE_DOUBLE = 277,
- ICE_STRING = 278,
- ICE_OBJECT = 279,
- ICE_LOCAL_OBJECT = 280,
- ICE_LOCAL = 281,
- ICE_CONST = 282,
- ICE_FALSE = 283,
- ICE_TRUE = 284,
- ICE_IDEMPOTENT = 285,
- ICE_OPTIONAL = 286,
- ICE_SCOPE_DELIMITER = 287,
- ICE_IDENTIFIER = 288,
- ICE_STRING_LITERAL = 289,
- ICE_INTEGER_LITERAL = 290,
- ICE_FLOATING_POINT_LITERAL = 291,
- ICE_IDENT_OP = 292,
- ICE_KEYWORD_OP = 293,
- ICE_OPTIONAL_OP = 294,
- ICE_METADATA_OPEN = 295,
- ICE_METADATA_CLOSE = 296,
- ICE_GLOBAL_METADATA_OPEN = 297,
- ICE_GLOBAL_METADATA_CLOSE = 298,
- BAD_CHAR = 299
- };
-#endif
-/* Tokens. */
-#define ICE_MODULE 258
-#define ICE_CLASS 259
-#define ICE_INTERFACE 260
-#define ICE_EXCEPTION 261
-#define ICE_STRUCT 262
-#define ICE_SEQUENCE 263
-#define ICE_DICTIONARY 264
-#define ICE_ENUM 265
-#define ICE_OUT 266
-#define ICE_EXTENDS 267
-#define ICE_IMPLEMENTS 268
-#define ICE_THROWS 269
-#define ICE_VOID 270
-#define ICE_BYTE 271
-#define ICE_BOOL 272
-#define ICE_SHORT 273
-#define ICE_INT 274
-#define ICE_LONG 275
-#define ICE_FLOAT 276
-#define ICE_DOUBLE 277
-#define ICE_STRING 278
-#define ICE_OBJECT 279
-#define ICE_LOCAL_OBJECT 280
-#define ICE_LOCAL 281
-#define ICE_CONST 282
-#define ICE_FALSE 283
-#define ICE_TRUE 284
-#define ICE_IDEMPOTENT 285
-#define ICE_OPTIONAL 286
-#define ICE_SCOPE_DELIMITER 287
-#define ICE_IDENTIFIER 288
-#define ICE_STRING_LITERAL 289
-#define ICE_INTEGER_LITERAL 290
-#define ICE_FLOATING_POINT_LITERAL 291
-#define ICE_IDENT_OP 292
-#define ICE_KEYWORD_OP 293
-#define ICE_OPTIONAL_OP 294
-#define ICE_METADATA_OPEN 295
-#define ICE_METADATA_CLOSE 296
-#define ICE_GLOBAL_METADATA_OPEN 297
-#define ICE_GLOBAL_METADATA_CLOSE 298
-#define BAD_CHAR 299
-
-
+#define yyparse slice_parse
+#define yylex slice_lex
+#define yyerror slice_error
+#define yylval slice_lval
+#define yychar slice_char
+#define yydebug slice_debug
+#define yynerrs slice_nerrs
/* Copy the first part of user declarations. */
+
+/* Line 189 of yacc.c */
#line 1 "../Slice/Grammar.y"
@@ -212,6 +122,9 @@ slice_error(const char* s)
+/* Line 189 of yacc.c */
+#line 127 "Grammar.tab.c"
+
/* Enabling traces. */
#ifndef YYDEBUG
# define YYDEBUG 1
@@ -230,20 +143,73 @@ slice_error(const char* s)
# define YYTOKEN_TABLE 0
#endif
+
+/* Tokens. */
+#ifndef YYTOKENTYPE
+# define YYTOKENTYPE
+ /* Put the tokens into the symbol table, so that GDB and other debuggers
+ know about them. */
+ enum yytokentype {
+ ICE_MODULE = 258,
+ ICE_CLASS = 259,
+ ICE_INTERFACE = 260,
+ ICE_EXCEPTION = 261,
+ ICE_STRUCT = 262,
+ ICE_SEQUENCE = 263,
+ ICE_DICTIONARY = 264,
+ ICE_ENUM = 265,
+ ICE_OUT = 266,
+ ICE_EXTENDS = 267,
+ ICE_IMPLEMENTS = 268,
+ ICE_THROWS = 269,
+ ICE_VOID = 270,
+ ICE_BYTE = 271,
+ ICE_BOOL = 272,
+ ICE_SHORT = 273,
+ ICE_INT = 274,
+ ICE_LONG = 275,
+ ICE_FLOAT = 276,
+ ICE_DOUBLE = 277,
+ ICE_STRING = 278,
+ ICE_OBJECT = 279,
+ ICE_LOCAL_OBJECT = 280,
+ ICE_LOCAL = 281,
+ ICE_CONST = 282,
+ ICE_FALSE = 283,
+ ICE_TRUE = 284,
+ ICE_IDEMPOTENT = 285,
+ ICE_OPTIONAL = 286,
+ ICE_SCOPE_DELIMITER = 287,
+ ICE_IDENTIFIER = 288,
+ ICE_STRING_LITERAL = 289,
+ ICE_INTEGER_LITERAL = 290,
+ ICE_FLOATING_POINT_LITERAL = 291,
+ ICE_IDENT_OP = 292,
+ ICE_KEYWORD_OP = 293,
+ ICE_OPTIONAL_OP = 294,
+ ICE_METADATA_OPEN = 295,
+ ICE_METADATA_CLOSE = 296,
+ ICE_GLOBAL_METADATA_OPEN = 297,
+ ICE_GLOBAL_METADATA_CLOSE = 298,
+ BAD_CHAR = 299
+ };
+#endif
+
+
+
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef int YYSTYPE;
+# define YYSTYPE_IS_TRIVIAL 1
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
-# define YYSTYPE_IS_TRIVIAL 1
#endif
-
/* Copy the second part of user declarations. */
-/* Line 216 of yacc.c. */
-#line 247 "Grammar.tab.c"
+/* Line 264 of yacc.c */
+#line 213 "Grammar.tab.c"
#ifdef short
# undef short
@@ -318,14 +284,14 @@ typedef short int yytype_int16;
#if (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
static int
-YYID (int i)
+YYID (int yyi)
#else
static int
-YYID (i)
- int i;
+YYID (yyi)
+ int yyi;
#endif
{
- return i;
+ return yyi;
}
#endif
@@ -406,9 +372,9 @@ void free (void *); /* INFRINGES ON USER NAME SPACE */
/* A type that is properly aligned for any stack member. */
union yyalloc
{
- yytype_int16 yyss;
- YYSTYPE yyvs;
- };
+ yytype_int16 yyss_alloc;
+ YYSTYPE yyvs_alloc;
+};
/* The size of the maximum gap between one aligned stack and the next. */
# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
@@ -442,12 +408,12 @@ union yyalloc
elements in the stack, and YYPTR gives the new location of the
stack. Advance YYPTR to a properly aligned location for the next
stack. */
-# define YYSTACK_RELOCATE(Stack) \
+# define YYSTACK_RELOCATE(Stack_alloc, Stack) \
do \
{ \
YYSIZE_T yynewbytes; \
- YYCOPY (&yyptr->Stack, Stack, yysize); \
- Stack = &yyptr->Stack; \
+ YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
+ Stack = &yyptr->Stack_alloc; \
yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
yyptr += yynewbytes / sizeof (*yyptr); \
} \
@@ -647,22 +613,22 @@ static const char *const yytname[] =
"ICE_OPTIONAL_OP", "ICE_METADATA_OPEN", "ICE_METADATA_CLOSE",
"ICE_GLOBAL_METADATA_OPEN", "ICE_GLOBAL_METADATA_CLOSE", "BAD_CHAR",
"';'", "'{'", "'}'", "')'", "'='", "','", "'<'", "'>'", "'*'", "$accept",
- "start", "global_meta_data", "meta_data", "definitions", "@1", "@2",
- "@3", "definition", "module_def", "@4", "exception_id", "exception_decl",
- "exception_def", "@5", "exception_extends", "exception_exports",
- "type_id", "optional", "optional_type_id", "exception_export",
- "struct_id", "struct_decl", "struct_def", "@6", "struct_exports",
- "struct_export", "class_name", "class_id", "class_decl", "class_def",
- "@7", "class_extends", "implements", "class_exports", "data_member",
- "struct_data_member", "return_type", "operation_preamble", "operation",
- "@8", "@9", "class_export", "interface_id", "interface_decl",
- "interface_def", "@10", "interface_list", "interface_extends",
- "interface_exports", "interface_export", "exception_list", "exception",
- "sequence_def", "dictionary_def", "enum_id", "enum_def", "@11",
- "enumerator_list", "enumerator", "enumerator_initializer",
- "out_qualifier", "parameters", "throws", "scoped_name", "type",
- "string_literal", "string_list", "local_qualifier", "const_initializer",
- "const_def", "keyword", 0
+ "start", "global_meta_data", "meta_data", "definitions", "$@1", "$@2",
+ "$@3", "definition", "module_def", "@4", "exception_id",
+ "exception_decl", "exception_def", "@5", "exception_extends",
+ "exception_exports", "type_id", "optional", "optional_type_id",
+ "exception_export", "struct_id", "struct_decl", "struct_def", "@6",
+ "struct_exports", "struct_export", "class_name", "class_id",
+ "class_decl", "class_def", "@7", "class_extends", "implements",
+ "class_exports", "data_member", "struct_data_member", "return_type",
+ "operation_preamble", "operation", "@8", "@9", "class_export",
+ "interface_id", "interface_decl", "interface_def", "@10",
+ "interface_list", "interface_extends", "interface_exports",
+ "interface_export", "exception_list", "exception", "sequence_def",
+ "dictionary_def", "enum_id", "enum_def", "@11", "enumerator_list",
+ "enumerator", "enumerator_initializer", "out_qualifier", "parameters",
+ "throws", "scoped_name", "type", "string_literal", "string_list",
+ "local_qualifier", "const_initializer", "const_def", "keyword", 0
};
#endif
@@ -1244,17 +1210,20 @@ yy_symbol_print (yyoutput, yytype, yyvaluep)
#if (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
static void
-yy_stack_print (yytype_int16 *bottom, yytype_int16 *top)
+yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop)
#else
static void
-yy_stack_print (bottom, top)
- yytype_int16 *bottom;
- yytype_int16 *top;
+yy_stack_print (yybottom, yytop)
+ yytype_int16 *yybottom;
+ yytype_int16 *yytop;
#endif
{
YYFPRINTF (stderr, "Stack now");
- for (; bottom <= top; ++bottom)
- YYFPRINTF (stderr, " %d", *bottom);
+ for (; yybottom <= yytop; yybottom++)
+ {
+ int yybot = *yybottom;
+ YYFPRINTF (stderr, " %d", yybot);
+ }
YYFPRINTF (stderr, "\n");
}
@@ -1288,11 +1257,11 @@ yy_reduce_print (yyvsp, yyrule)
/* The symbols being reduced. */
for (yyi = 0; yyi < yynrhs; yyi++)
{
- fprintf (stderr, " $%d = ", yyi + 1);
+ YYFPRINTF (stderr, " $%d = ", yyi + 1);
yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
&(yyvsp[(yyi + 1) - (yynrhs)])
);
- fprintf (stderr, "\n");
+ YYFPRINTF (stderr, "\n");
}
}
@@ -1572,10 +1541,8 @@ yydestruct (yymsg, yytype, yyvaluep)
break;
}
}
-
/* Prevent warnings from -Wmissing-prototypes. */
-
#ifdef YYPARSE_PARAM
#if defined __STDC__ || defined __cplusplus
int yyparse (void *YYPARSE_PARAM);
@@ -1594,10 +1561,9 @@ int yyparse ();
-
-/*----------.
-| yyparse. |
-`----------*/
+/*-------------------------.
+| yyparse or yypush_parse. |
+`-------------------------*/
#ifdef YYPARSE_PARAM
#if (defined __STDC__ || defined __C99__FUNC__ \
@@ -1621,74 +1587,75 @@ yyparse ()
#endif
#endif
{
- /* The look-ahead symbol. */
+/* The lookahead symbol. */
int yychar;
-/* The semantic value of the look-ahead symbol. */
+/* The semantic value of the lookahead symbol. */
YYSTYPE yylval;
-/* Number of syntax errors so far. */
-int yynerrs;
-
- int yystate;
- int yyn;
- int yyresult;
- /* Number of tokens to shift before error messages enabled. */
- int yyerrstatus;
- /* Look-ahead token as an internal (translated) token number. */
- int yytoken = 0;
-#if YYERROR_VERBOSE
- /* Buffer for error messages, and its allocated size. */
- char yymsgbuf[128];
- char *yymsg = yymsgbuf;
- YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
-#endif
-
- /* Three stacks and their tools:
- `yyss': related to states,
- `yyvs': related to semantic values,
- `yyls': related to locations.
+ /* Number of syntax errors so far. */
+ int yynerrs;
- Refer to the stacks thru separate pointers, to allow yyoverflow
- to reallocate them elsewhere. */
+ int yystate;
+ /* Number of tokens to shift before error messages enabled. */
+ int yyerrstatus;
- /* The state stack. */
- yytype_int16 yyssa[YYINITDEPTH];
- yytype_int16 *yyss = yyssa;
- yytype_int16 *yyssp;
+ /* The stacks and their tools:
+ `yyss': related to states.
+ `yyvs': related to semantic values.
- /* The semantic value stack. */
- YYSTYPE yyvsa[YYINITDEPTH];
- YYSTYPE *yyvs = yyvsa;
- YYSTYPE *yyvsp;
+ Refer to the stacks thru separate pointers, to allow yyoverflow
+ to reallocate them elsewhere. */
+ /* The state stack. */
+ yytype_int16 yyssa[YYINITDEPTH];
+ yytype_int16 *yyss;
+ yytype_int16 *yyssp;
+ /* The semantic value stack. */
+ YYSTYPE yyvsa[YYINITDEPTH];
+ YYSTYPE *yyvs;
+ YYSTYPE *yyvsp;
-#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
-
- YYSIZE_T yystacksize = YYINITDEPTH;
+ YYSIZE_T yystacksize;
+ int yyn;
+ int yyresult;
+ /* Lookahead token as an internal (translated) token number. */
+ int yytoken;
/* The variables used to return semantic value and location from the
action routines. */
YYSTYPE yyval;
+#if YYERROR_VERBOSE
+ /* Buffer for error messages, and its allocated size. */
+ char yymsgbuf[128];
+ char *yymsg = yymsgbuf;
+ YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
+#endif
+
+#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
/* The number of symbols on the RHS of the reduced rule.
Keep to zero when no symbol should be popped. */
int yylen = 0;
+ yytoken = 0;
+ yyss = yyssa;
+ yyvs = yyvsa;
+ yystacksize = YYINITDEPTH;
+
YYDPRINTF ((stderr, "Starting parse\n"));
yystate = 0;
yyerrstatus = 0;
yynerrs = 0;
- yychar = YYEMPTY; /* Cause a token to be read. */
+ yychar = YYEMPTY; /* Cause a token to be read. */
/* Initialize stack pointers.
Waste one element of value and location stack
so that they stay on the same level as the state stack.
The wasted elements are never initialized. */
-
yyssp = yyss;
yyvsp = yyvs;
@@ -1718,7 +1685,6 @@ int yynerrs;
YYSTYPE *yyvs1 = yyvs;
yytype_int16 *yyss1 = yyss;
-
/* Each stack pointer address is followed by the size of the
data in use in that stack, in bytes. This used to be a
conditional around just the two extra args, but that might
@@ -1726,7 +1692,6 @@ int yynerrs;
yyoverflow (YY_("memory exhausted"),
&yyss1, yysize * sizeof (*yyssp),
&yyvs1, yysize * sizeof (*yyvsp),
-
&yystacksize);
yyss = yyss1;
@@ -1749,9 +1714,8 @@ int yynerrs;
(union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
if (! yyptr)
goto yyexhaustedlab;
- YYSTACK_RELOCATE (yyss);
- YYSTACK_RELOCATE (yyvs);
-
+ YYSTACK_RELOCATE (yyss_alloc, yyss);
+ YYSTACK_RELOCATE (yyvs_alloc, yyvs);
# undef YYSTACK_RELOCATE
if (yyss1 != yyssa)
YYSTACK_FREE (yyss1);
@@ -1762,7 +1726,6 @@ int yynerrs;
yyssp = yyss + yysize - 1;
yyvsp = yyvs + yysize - 1;
-
YYDPRINTF ((stderr, "Stack size increased to %lu\n",
(unsigned long int) yystacksize));
@@ -1772,6 +1735,9 @@ int yynerrs;
YYDPRINTF ((stderr, "Entering state %d\n", yystate));
+ if (yystate == YYFINAL)
+ YYACCEPT;
+
goto yybackup;
/*-----------.
@@ -1780,16 +1746,16 @@ int yynerrs;
yybackup:
/* Do appropriate processing given the current state. Read a
- look-ahead token if we need one and don't already have one. */
+ lookahead token if we need one and don't already have one. */
- /* First try to decide what to do without reference to look-ahead token. */
+ /* First try to decide what to do without reference to lookahead token. */
yyn = yypact[yystate];
if (yyn == YYPACT_NINF)
goto yydefault;
- /* Not known => get a look-ahead token if don't already have one. */
+ /* Not known => get a lookahead token if don't already have one. */
- /* YYCHAR is either YYEMPTY or YYEOF or a valid look-ahead symbol. */
+ /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */
if (yychar == YYEMPTY)
{
YYDPRINTF ((stderr, "Reading a token: "));
@@ -1821,20 +1787,16 @@ yybackup:
goto yyreduce;
}
- if (yyn == YYFINAL)
- YYACCEPT;
-
/* Count tokens shifted since error; after three, turn off error
status. */
if (yyerrstatus)
yyerrstatus--;
- /* Shift the look-ahead token. */
+ /* Shift the lookahead token. */
YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
- /* Discard the shifted token unless it is eof. */
- if (yychar != YYEOF)
- yychar = YYEMPTY;
+ /* Discard the shifted token. */
+ yychar = YYEMPTY;
yystate = yyn;
*++yyvsp = yylval;
@@ -1874,12 +1836,16 @@ yyreduce:
switch (yyn)
{
case 2:
+
+/* Line 1455 of yacc.c */
#line 108 "../Slice/Grammar.y"
{
;}
break;
case 3:
+
+/* Line 1455 of yacc.c */
#line 116 "../Slice/Grammar.y"
{
(yyval) = (yyvsp[(2) - (3)]);
@@ -1887,6 +1853,8 @@ yyreduce:
break;
case 4:
+
+/* Line 1455 of yacc.c */
#line 125 "../Slice/Grammar.y"
{
(yyval) = (yyvsp[(2) - (3)]);
@@ -1894,6 +1862,8 @@ yyreduce:
break;
case 5:
+
+/* Line 1455 of yacc.c */
#line 129 "../Slice/Grammar.y"
{
(yyval) = new StringListTok;
@@ -1901,6 +1871,8 @@ yyreduce:
break;
case 6:
+
+/* Line 1455 of yacc.c */
#line 138 "../Slice/Grammar.y"
{
StringListTokPtr metaData = StringListTokPtr::dynamicCast((yyvsp[(1) - (1)]));
@@ -1912,6 +1884,8 @@ yyreduce:
break;
case 8:
+
+/* Line 1455 of yacc.c */
#line 147 "../Slice/Grammar.y"
{
StringListTokPtr metaData = StringListTokPtr::dynamicCast((yyvsp[(1) - (2)]));
@@ -1924,6 +1898,8 @@ yyreduce:
break;
case 10:
+
+/* Line 1455 of yacc.c */
#line 157 "../Slice/Grammar.y"
{
yyerrok;
@@ -1931,6 +1907,8 @@ yyreduce:
break;
case 12:
+
+/* Line 1455 of yacc.c */
#line 162 "../Slice/Grammar.y"
{
unit->error("`;' missing after definition");
@@ -1938,12 +1916,16 @@ yyreduce:
break;
case 13:
+
+/* Line 1455 of yacc.c */
#line 166 "../Slice/Grammar.y"
{
;}
break;
case 14:
+
+/* Line 1455 of yacc.c */
#line 174 "../Slice/Grammar.y"
{
assert((yyvsp[(1) - (1)]) == 0 || ModulePtr::dynamicCast((yyvsp[(1) - (1)])));
@@ -1951,6 +1933,8 @@ yyreduce:
break;
case 15:
+
+/* Line 1455 of yacc.c */
#line 178 "../Slice/Grammar.y"
{
assert((yyvsp[(1) - (1)]) == 0 || ClassDeclPtr::dynamicCast((yyvsp[(1) - (1)])));
@@ -1958,6 +1942,8 @@ yyreduce:
break;
case 16:
+
+/* Line 1455 of yacc.c */
#line 182 "../Slice/Grammar.y"
{
assert((yyvsp[(1) - (1)]) == 0 || ClassDefPtr::dynamicCast((yyvsp[(1) - (1)])));
@@ -1965,6 +1951,8 @@ yyreduce:
break;
case 17:
+
+/* Line 1455 of yacc.c */
#line 186 "../Slice/Grammar.y"
{
assert((yyvsp[(1) - (1)]) == 0 || ClassDeclPtr::dynamicCast((yyvsp[(1) - (1)])));
@@ -1972,6 +1960,8 @@ yyreduce:
break;
case 18:
+
+/* Line 1455 of yacc.c */
#line 190 "../Slice/Grammar.y"
{
assert((yyvsp[(1) - (1)]) == 0 || ClassDefPtr::dynamicCast((yyvsp[(1) - (1)])));
@@ -1979,6 +1969,8 @@ yyreduce:
break;
case 19:
+
+/* Line 1455 of yacc.c */
#line 194 "../Slice/Grammar.y"
{
assert((yyvsp[(1) - (1)]) == 0);
@@ -1986,6 +1978,8 @@ yyreduce:
break;
case 20:
+
+/* Line 1455 of yacc.c */
#line 198 "../Slice/Grammar.y"
{
assert((yyvsp[(1) - (1)]) == 0 || ExceptionPtr::dynamicCast((yyvsp[(1) - (1)])));
@@ -1993,6 +1987,8 @@ yyreduce:
break;
case 21:
+
+/* Line 1455 of yacc.c */
#line 202 "../Slice/Grammar.y"
{
assert((yyvsp[(1) - (1)]) == 0);
@@ -2000,6 +1996,8 @@ yyreduce:
break;
case 22:
+
+/* Line 1455 of yacc.c */
#line 206 "../Slice/Grammar.y"
{
assert((yyvsp[(1) - (1)]) == 0 || StructPtr::dynamicCast((yyvsp[(1) - (1)])));
@@ -2007,6 +2005,8 @@ yyreduce:
break;
case 23:
+
+/* Line 1455 of yacc.c */
#line 210 "../Slice/Grammar.y"
{
assert((yyvsp[(1) - (1)]) == 0 || SequencePtr::dynamicCast((yyvsp[(1) - (1)])));
@@ -2014,6 +2014,8 @@ yyreduce:
break;
case 24:
+
+/* Line 1455 of yacc.c */
#line 214 "../Slice/Grammar.y"
{
assert((yyvsp[(1) - (1)]) == 0 || DictionaryPtr::dynamicCast((yyvsp[(1) - (1)])));
@@ -2021,6 +2023,8 @@ yyreduce:
break;
case 25:
+
+/* Line 1455 of yacc.c */
#line 218 "../Slice/Grammar.y"
{
assert((yyvsp[(1) - (1)]) == 0 || EnumPtr::dynamicCast((yyvsp[(1) - (1)])));
@@ -2028,6 +2032,8 @@ yyreduce:
break;
case 26:
+
+/* Line 1455 of yacc.c */
#line 222 "../Slice/Grammar.y"
{
assert((yyvsp[(1) - (1)]) == 0 || ConstPtr::dynamicCast((yyvsp[(1) - (1)])));
@@ -2035,6 +2041,8 @@ yyreduce:
break;
case 27:
+
+/* Line 1455 of yacc.c */
#line 231 "../Slice/Grammar.y"
{
unit->setSeenDefinition();
@@ -2055,6 +2063,8 @@ yyreduce:
break;
case 28:
+
+/* Line 1455 of yacc.c */
#line 248 "../Slice/Grammar.y"
{
if((yyvsp[(3) - (6)]))
@@ -2070,6 +2080,8 @@ yyreduce:
break;
case 29:
+
+/* Line 1455 of yacc.c */
#line 265 "../Slice/Grammar.y"
{
(yyval) = (yyvsp[(2) - (2)]);
@@ -2077,6 +2089,8 @@ yyreduce:
break;
case 30:
+
+/* Line 1455 of yacc.c */
#line 269 "../Slice/Grammar.y"
{
StringTokPtr ident = StringTokPtr::dynamicCast((yyvsp[(2) - (2)]));
@@ -2086,6 +2100,8 @@ yyreduce:
break;
case 31:
+
+/* Line 1455 of yacc.c */
#line 280 "../Slice/Grammar.y"
{
unit->error("exceptions cannot be forward declared");
@@ -2094,6 +2110,8 @@ yyreduce:
break;
case 32:
+
+/* Line 1455 of yacc.c */
#line 290 "../Slice/Grammar.y"
{
BoolTokPtr local = BoolTokPtr::dynamicCast((yyvsp[(1) - (3)]));
@@ -2111,6 +2129,8 @@ yyreduce:
break;
case 33:
+
+/* Line 1455 of yacc.c */
#line 304 "../Slice/Grammar.y"
{
if((yyvsp[(4) - (7)]))
@@ -2122,6 +2142,8 @@ yyreduce:
break;
case 34:
+
+/* Line 1455 of yacc.c */
#line 317 "../Slice/Grammar.y"
{
StringTokPtr scoped = StringTokPtr::dynamicCast((yyvsp[(2) - (2)]));
@@ -2133,6 +2155,8 @@ yyreduce:
break;
case 35:
+
+/* Line 1455 of yacc.c */
#line 325 "../Slice/Grammar.y"
{
(yyval) = 0;
@@ -2140,6 +2164,8 @@ yyreduce:
break;
case 36:
+
+/* Line 1455 of yacc.c */
#line 334 "../Slice/Grammar.y"
{
StringListTokPtr metaData = StringListTokPtr::dynamicCast((yyvsp[(1) - (4)]));
@@ -2152,12 +2178,16 @@ yyreduce:
break;
case 37:
+
+/* Line 1455 of yacc.c */
#line 343 "../Slice/Grammar.y"
{
;}
break;
case 38:
+
+/* Line 1455 of yacc.c */
#line 346 "../Slice/Grammar.y"
{
unit->error("`;' missing after definition");
@@ -2165,12 +2195,16 @@ yyreduce:
break;
case 39:
+
+/* Line 1455 of yacc.c */
#line 350 "../Slice/Grammar.y"
{
;}
break;
case 40:
+
+/* Line 1455 of yacc.c */
#line 358 "../Slice/Grammar.y"
{
TypePtr type = TypePtr::dynamicCast((yyvsp[(1) - (2)]));
@@ -2182,6 +2216,8 @@ yyreduce:
break;
case 41:
+
+/* Line 1455 of yacc.c */
#line 371 "../Slice/Grammar.y"
{
IntegerTokPtr i = IntegerTokPtr::dynamicCast((yyvsp[(2) - (3)]));
@@ -2205,6 +2241,8 @@ yyreduce:
break;
case 42:
+
+/* Line 1455 of yacc.c */
#line 391 "../Slice/Grammar.y"
{
StringTokPtr scoped = StringTokPtr::dynamicCast((yyvsp[(2) - (3)]));
@@ -2264,6 +2302,8 @@ yyreduce:
break;
case 43:
+
+/* Line 1455 of yacc.c */
#line 447 "../Slice/Grammar.y"
{
unit->error("missing tag for optional");
@@ -2275,6 +2315,8 @@ yyreduce:
break;
case 44:
+
+/* Line 1455 of yacc.c */
#line 455 "../Slice/Grammar.y"
{
unit->error("missing tag for optional");
@@ -2286,6 +2328,8 @@ yyreduce:
break;
case 45:
+
+/* Line 1455 of yacc.c */
#line 468 "../Slice/Grammar.y"
{
OptionalDefTokPtr m = OptionalDefTokPtr::dynamicCast((yyvsp[(1) - (2)]));
@@ -2297,6 +2341,8 @@ yyreduce:
break;
case 46:
+
+/* Line 1455 of yacc.c */
#line 476 "../Slice/Grammar.y"
{
TypeStringTokPtr ts = TypeStringTokPtr::dynamicCast((yyvsp[(1) - (1)]));
@@ -2310,6 +2356,8 @@ yyreduce:
break;
case 48:
+
+/* Line 1455 of yacc.c */
#line 497 "../Slice/Grammar.y"
{
(yyval) = (yyvsp[(2) - (2)]);
@@ -2317,6 +2365,8 @@ yyreduce:
break;
case 49:
+
+/* Line 1455 of yacc.c */
#line 501 "../Slice/Grammar.y"
{
StringTokPtr ident = StringTokPtr::dynamicCast((yyvsp[(2) - (2)]));
@@ -2326,6 +2376,8 @@ yyreduce:
break;
case 50:
+
+/* Line 1455 of yacc.c */
#line 512 "../Slice/Grammar.y"
{
unit->error("structs cannot be forward declared");
@@ -2334,6 +2386,8 @@ yyreduce:
break;
case 51:
+
+/* Line 1455 of yacc.c */
#line 522 "../Slice/Grammar.y"
{
BoolTokPtr local = BoolTokPtr::dynamicCast((yyvsp[(1) - (2)]));
@@ -2356,6 +2410,8 @@ yyreduce:
break;
case 52:
+
+/* Line 1455 of yacc.c */
#line 541 "../Slice/Grammar.y"
{
if((yyvsp[(3) - (6)]))
@@ -2377,6 +2433,8 @@ yyreduce:
break;
case 53:
+
+/* Line 1455 of yacc.c */
#line 564 "../Slice/Grammar.y"
{
StringListTokPtr metaData = StringListTokPtr::dynamicCast((yyvsp[(1) - (4)]));
@@ -2389,12 +2447,16 @@ yyreduce:
break;
case 54:
+
+/* Line 1455 of yacc.c */
#line 573 "../Slice/Grammar.y"
{
;}
break;
case 55:
+
+/* Line 1455 of yacc.c */
#line 576 "../Slice/Grammar.y"
{
unit->error("`;' missing after definition");
@@ -2402,12 +2464,16 @@ yyreduce:
break;
case 56:
+
+/* Line 1455 of yacc.c */
#line 580 "../Slice/Grammar.y"
{
;}
break;
case 58:
+
+/* Line 1455 of yacc.c */
#line 594 "../Slice/Grammar.y"
{
(yyval) = (yyvsp[(2) - (2)]);
@@ -2415,6 +2481,8 @@ yyreduce:
break;
case 59:
+
+/* Line 1455 of yacc.c */
#line 598 "../Slice/Grammar.y"
{
StringTokPtr ident = StringTokPtr::dynamicCast((yyvsp[(2) - (2)]));
@@ -2424,6 +2492,8 @@ yyreduce:
break;
case 60:
+
+/* Line 1455 of yacc.c */
#line 609 "../Slice/Grammar.y"
{
IceUtil::Int64 id = IntegerTokPtr::dynamicCast((yyvsp[(3) - (4)]))->v;
@@ -2452,6 +2522,8 @@ yyreduce:
break;
case 61:
+
+/* Line 1455 of yacc.c */
#line 634 "../Slice/Grammar.y"
{
StringTokPtr scoped = StringTokPtr::dynamicCast((yyvsp[(3) - (4)]));
@@ -2520,6 +2592,8 @@ yyreduce:
break;
case 62:
+
+/* Line 1455 of yacc.c */
#line 699 "../Slice/Grammar.y"
{
ClassIdTokPtr classId = new ClassIdTok();
@@ -2530,6 +2604,8 @@ yyreduce:
break;
case 63:
+
+/* Line 1455 of yacc.c */
#line 711 "../Slice/Grammar.y"
{
BoolTokPtr local = BoolTokPtr::dynamicCast((yyvsp[(1) - (2)]));
@@ -2541,6 +2617,8 @@ yyreduce:
break;
case 64:
+
+/* Line 1455 of yacc.c */
#line 724 "../Slice/Grammar.y"
{
BoolTokPtr local = BoolTokPtr::dynamicCast((yyvsp[(1) - (4)]));
@@ -2567,6 +2645,8 @@ yyreduce:
break;
case 65:
+
+/* Line 1455 of yacc.c */
#line 747 "../Slice/Grammar.y"
{
if((yyvsp[(5) - (8)]))
@@ -2582,6 +2662,8 @@ yyreduce:
break;
case 66:
+
+/* Line 1455 of yacc.c */
#line 764 "../Slice/Grammar.y"
{
StringTokPtr scoped = StringTokPtr::dynamicCast((yyvsp[(2) - (2)]));
@@ -2619,6 +2701,8 @@ yyreduce:
break;
case 67:
+
+/* Line 1455 of yacc.c */
#line 798 "../Slice/Grammar.y"
{
(yyval) = 0;
@@ -2626,6 +2710,8 @@ yyreduce:
break;
case 68:
+
+/* Line 1455 of yacc.c */
#line 807 "../Slice/Grammar.y"
{
(yyval) = (yyvsp[(2) - (2)]);
@@ -2633,6 +2719,8 @@ yyreduce:
break;
case 69:
+
+/* Line 1455 of yacc.c */
#line 811 "../Slice/Grammar.y"
{
(yyval) = new ClassListTok;
@@ -2640,6 +2728,8 @@ yyreduce:
break;
case 70:
+
+/* Line 1455 of yacc.c */
#line 820 "../Slice/Grammar.y"
{
StringListTokPtr metaData = StringListTokPtr::dynamicCast((yyvsp[(1) - (4)]));
@@ -2652,12 +2742,16 @@ yyreduce:
break;
case 71:
+
+/* Line 1455 of yacc.c */
#line 829 "../Slice/Grammar.y"
{
;}
break;
case 72:
+
+/* Line 1455 of yacc.c */
#line 832 "../Slice/Grammar.y"
{
unit->error("`;' missing after definition");
@@ -2665,12 +2759,16 @@ yyreduce:
break;
case 73:
+
+/* Line 1455 of yacc.c */
#line 836 "../Slice/Grammar.y"
{
;}
break;
case 74:
+
+/* Line 1455 of yacc.c */
#line 844 "../Slice/Grammar.y"
{
OptionalDefTokPtr def = OptionalDefTokPtr::dynamicCast((yyvsp[(1) - (1)]));
@@ -2696,6 +2794,8 @@ yyreduce:
break;
case 75:
+
+/* Line 1455 of yacc.c */
#line 866 "../Slice/Grammar.y"
{
OptionalDefTokPtr def = OptionalDefTokPtr::dynamicCast((yyvsp[(1) - (3)]));
@@ -2726,6 +2826,8 @@ yyreduce:
break;
case 76:
+
+/* Line 1455 of yacc.c */
#line 893 "../Slice/Grammar.y"
{
TypePtr type = TypePtr::dynamicCast((yyvsp[(1) - (2)]));
@@ -2751,6 +2853,8 @@ yyreduce:
break;
case 77:
+
+/* Line 1455 of yacc.c */
#line 915 "../Slice/Grammar.y"
{
TypePtr type = TypePtr::dynamicCast((yyvsp[(1) - (1)]));
@@ -2775,6 +2879,8 @@ yyreduce:
break;
case 78:
+
+/* Line 1455 of yacc.c */
#line 941 "../Slice/Grammar.y"
{
TypeStringTokPtr ts = TypeStringTokPtr::dynamicCast((yyvsp[(1) - (1)]));
@@ -2787,6 +2893,8 @@ yyreduce:
break;
case 79:
+
+/* Line 1455 of yacc.c */
#line 950 "../Slice/Grammar.y"
{
TypeStringTokPtr ts = TypeStringTokPtr::dynamicCast((yyvsp[(1) - (3)]));
@@ -2801,6 +2909,8 @@ yyreduce:
break;
case 80:
+
+/* Line 1455 of yacc.c */
#line 961 "../Slice/Grammar.y"
{
TypeStringTokPtr ts = TypeStringTokPtr::dynamicCast((yyvsp[(2) - (2)]));
@@ -2813,6 +2923,8 @@ yyreduce:
break;
case 81:
+
+/* Line 1455 of yacc.c */
#line 970 "../Slice/Grammar.y"
{
TypeStringTokPtr ts = TypeStringTokPtr::dynamicCast((yyvsp[(2) - (4)]));
@@ -2825,6 +2937,8 @@ yyreduce:
break;
case 82:
+
+/* Line 1455 of yacc.c */
#line 979 "../Slice/Grammar.y"
{
TypePtr type = TypePtr::dynamicCast((yyvsp[(1) - (2)]));
@@ -2838,6 +2952,8 @@ yyreduce:
break;
case 83:
+
+/* Line 1455 of yacc.c */
#line 989 "../Slice/Grammar.y"
{
TypePtr type = TypePtr::dynamicCast((yyvsp[(1) - (1)]));
@@ -2850,6 +2966,8 @@ yyreduce:
break;
case 84:
+
+/* Line 1455 of yacc.c */
#line 1003 "../Slice/Grammar.y"
{
OptionalDefTokPtr m = OptionalDefTokPtr::dynamicCast((yyvsp[(1) - (2)]));
@@ -2859,6 +2977,8 @@ yyreduce:
break;
case 85:
+
+/* Line 1455 of yacc.c */
#line 1009 "../Slice/Grammar.y"
{
OptionalDefTokPtr m = new OptionalDefTok();
@@ -2870,6 +2990,8 @@ yyreduce:
break;
case 86:
+
+/* Line 1455 of yacc.c */
#line 1017 "../Slice/Grammar.y"
{
OptionalDefTokPtr m = new OptionalDefTok;
@@ -2880,6 +3002,8 @@ yyreduce:
break;
case 87:
+
+/* Line 1455 of yacc.c */
#line 1029 "../Slice/Grammar.y"
{
OptionalDefTokPtr returnType = OptionalDefTokPtr::dynamicCast((yyvsp[(1) - (2)]));
@@ -2907,6 +3031,8 @@ yyreduce:
break;
case 88:
+
+/* Line 1455 of yacc.c */
#line 1053 "../Slice/Grammar.y"
{
OptionalDefTokPtr returnType = OptionalDefTokPtr::dynamicCast((yyvsp[(2) - (3)]));
@@ -2935,6 +3061,8 @@ yyreduce:
break;
case 89:
+
+/* Line 1455 of yacc.c */
#line 1078 "../Slice/Grammar.y"
{
OptionalDefTokPtr returnType = OptionalDefTokPtr::dynamicCast((yyvsp[(1) - (2)]));
@@ -2962,6 +3090,8 @@ yyreduce:
break;
case 90:
+
+/* Line 1455 of yacc.c */
#line 1102 "../Slice/Grammar.y"
{
OptionalDefTokPtr returnType = OptionalDefTokPtr::dynamicCast((yyvsp[(2) - (3)]));
@@ -2990,6 +3120,8 @@ yyreduce:
break;
case 91:
+
+/* Line 1455 of yacc.c */
#line 1132 "../Slice/Grammar.y"
{
if((yyvsp[(1) - (3)]))
@@ -3005,6 +3137,8 @@ yyreduce:
break;
case 92:
+
+/* Line 1455 of yacc.c */
#line 1144 "../Slice/Grammar.y"
{
OperationPtr op = OperationPtr::dynamicCast((yyvsp[(4) - (5)]));
@@ -3018,6 +3152,8 @@ yyreduce:
break;
case 93:
+
+/* Line 1455 of yacc.c */
#line 1154 "../Slice/Grammar.y"
{
if((yyvsp[(1) - (3)]))
@@ -3029,6 +3165,8 @@ yyreduce:
break;
case 94:
+
+/* Line 1455 of yacc.c */
#line 1162 "../Slice/Grammar.y"
{
OperationPtr op = OperationPtr::dynamicCast((yyvsp[(4) - (5)]));
@@ -3042,6 +3180,8 @@ yyreduce:
break;
case 97:
+
+/* Line 1455 of yacc.c */
#line 1184 "../Slice/Grammar.y"
{
(yyval) = (yyvsp[(2) - (2)]);
@@ -3049,6 +3189,8 @@ yyreduce:
break;
case 98:
+
+/* Line 1455 of yacc.c */
#line 1188 "../Slice/Grammar.y"
{
StringTokPtr ident = StringTokPtr::dynamicCast((yyvsp[(2) - (2)]));
@@ -3058,6 +3200,8 @@ yyreduce:
break;
case 99:
+
+/* Line 1455 of yacc.c */
#line 1199 "../Slice/Grammar.y"
{
BoolTokPtr local = BoolTokPtr::dynamicCast((yyvsp[(1) - (2)]));
@@ -3070,6 +3214,8 @@ yyreduce:
break;
case 100:
+
+/* Line 1455 of yacc.c */
#line 1213 "../Slice/Grammar.y"
{
BoolTokPtr local = BoolTokPtr::dynamicCast((yyvsp[(1) - (3)]));
@@ -3091,6 +3237,8 @@ yyreduce:
break;
case 101:
+
+/* Line 1455 of yacc.c */
#line 1231 "../Slice/Grammar.y"
{
if((yyvsp[(4) - (7)]))
@@ -3106,6 +3254,8 @@ yyreduce:
break;
case 102:
+
+/* Line 1455 of yacc.c */
#line 1248 "../Slice/Grammar.y"
{
ClassListTokPtr intfs = ClassListTokPtr::dynamicCast((yyvsp[(3) - (3)]));
@@ -3144,6 +3294,8 @@ yyreduce:
break;
case 103:
+
+/* Line 1455 of yacc.c */
#line 1283 "../Slice/Grammar.y"
{
ClassListTokPtr intfs = new ClassListTok;
@@ -3182,6 +3334,8 @@ yyreduce:
break;
case 104:
+
+/* Line 1455 of yacc.c */
#line 1318 "../Slice/Grammar.y"
{
unit->error("illegal inheritance from type Object");
@@ -3190,6 +3344,8 @@ yyreduce:
break;
case 105:
+
+/* Line 1455 of yacc.c */
#line 1328 "../Slice/Grammar.y"
{
(yyval) = (yyvsp[(2) - (2)]);
@@ -3197,6 +3353,8 @@ yyreduce:
break;
case 106:
+
+/* Line 1455 of yacc.c */
#line 1332 "../Slice/Grammar.y"
{
(yyval) = new ClassListTok;
@@ -3204,6 +3362,8 @@ yyreduce:
break;
case 107:
+
+/* Line 1455 of yacc.c */
#line 1341 "../Slice/Grammar.y"
{
StringListTokPtr metaData = StringListTokPtr::dynamicCast((yyvsp[(1) - (4)]));
@@ -3216,12 +3376,16 @@ yyreduce:
break;
case 108:
+
+/* Line 1455 of yacc.c */
#line 1350 "../Slice/Grammar.y"
{
;}
break;
case 109:
+
+/* Line 1455 of yacc.c */
#line 1353 "../Slice/Grammar.y"
{
unit->error("`;' missing after definition");
@@ -3229,12 +3393,16 @@ yyreduce:
break;
case 110:
+
+/* Line 1455 of yacc.c */
#line 1357 "../Slice/Grammar.y"
{
;}
break;
case 112:
+
+/* Line 1455 of yacc.c */
#line 1371 "../Slice/Grammar.y"
{
ExceptionPtr exception = ExceptionPtr::dynamicCast((yyvsp[(1) - (3)]));
@@ -3245,6 +3413,8 @@ yyreduce:
break;
case 113:
+
+/* Line 1455 of yacc.c */
#line 1378 "../Slice/Grammar.y"
{
ExceptionPtr exception = ExceptionPtr::dynamicCast((yyvsp[(1) - (1)]));
@@ -3255,6 +3425,8 @@ yyreduce:
break;
case 114:
+
+/* Line 1455 of yacc.c */
#line 1390 "../Slice/Grammar.y"
{
StringTokPtr scoped = StringTokPtr::dynamicCast((yyvsp[(1) - (1)]));
@@ -3270,6 +3442,8 @@ yyreduce:
break;
case 115:
+
+/* Line 1455 of yacc.c */
#line 1402 "../Slice/Grammar.y"
{
StringTokPtr ident = StringTokPtr::dynamicCast((yyvsp[(1) - (1)]));
@@ -3279,6 +3453,8 @@ yyreduce:
break;
case 116:
+
+/* Line 1455 of yacc.c */
#line 1413 "../Slice/Grammar.y"
{
BoolTokPtr local = BoolTokPtr::dynamicCast((yyvsp[(1) - (7)]));
@@ -3291,6 +3467,8 @@ yyreduce:
break;
case 117:
+
+/* Line 1455 of yacc.c */
#line 1422 "../Slice/Grammar.y"
{
BoolTokPtr local = BoolTokPtr::dynamicCast((yyvsp[(1) - (7)]));
@@ -3304,6 +3482,8 @@ yyreduce:
break;
case 118:
+
+/* Line 1455 of yacc.c */
#line 1437 "../Slice/Grammar.y"
{
BoolTokPtr local = BoolTokPtr::dynamicCast((yyvsp[(1) - (10)]));
@@ -3318,6 +3498,8 @@ yyreduce:
break;
case 119:
+
+/* Line 1455 of yacc.c */
#line 1448 "../Slice/Grammar.y"
{
BoolTokPtr local = BoolTokPtr::dynamicCast((yyvsp[(1) - (10)]));
@@ -3333,6 +3515,8 @@ yyreduce:
break;
case 120:
+
+/* Line 1455 of yacc.c */
#line 1465 "../Slice/Grammar.y"
{
(yyval) = (yyvsp[(2) - (2)]);
@@ -3340,6 +3524,8 @@ yyreduce:
break;
case 121:
+
+/* Line 1455 of yacc.c */
#line 1469 "../Slice/Grammar.y"
{
StringTokPtr ident = StringTokPtr::dynamicCast((yyvsp[(2) - (2)]));
@@ -3349,6 +3535,8 @@ yyreduce:
break;
case 122:
+
+/* Line 1455 of yacc.c */
#line 1480 "../Slice/Grammar.y"
{
BoolTokPtr local = BoolTokPtr::dynamicCast((yyvsp[(1) - (2)]));
@@ -3361,6 +3549,8 @@ yyreduce:
break;
case 123:
+
+/* Line 1455 of yacc.c */
#line 1489 "../Slice/Grammar.y"
{
EnumPtr en = EnumPtr::dynamicCast((yyvsp[(3) - (6)]));
@@ -3378,6 +3568,8 @@ yyreduce:
break;
case 124:
+
+/* Line 1455 of yacc.c */
#line 1504 "../Slice/Grammar.y"
{
unit->error("missing enumeration name");
@@ -3391,6 +3583,8 @@ yyreduce:
break;
case 125:
+
+/* Line 1455 of yacc.c */
#line 1519 "../Slice/Grammar.y"
{
EnumeratorListTokPtr ens = EnumeratorListTokPtr::dynamicCast((yyvsp[(1) - (3)]));
@@ -3400,12 +3594,16 @@ yyreduce:
break;
case 126:
+
+/* Line 1455 of yacc.c */
#line 1525 "../Slice/Grammar.y"
{
;}
break;
case 127:
+
+/* Line 1455 of yacc.c */
#line 1533 "../Slice/Grammar.y"
{
StringTokPtr ident = StringTokPtr::dynamicCast((yyvsp[(1) - (1)]));
@@ -3421,6 +3619,8 @@ yyreduce:
break;
case 128:
+
+/* Line 1455 of yacc.c */
#line 1545 "../Slice/Grammar.y"
{
StringTokPtr ident = StringTokPtr::dynamicCast((yyvsp[(1) - (3)]));
@@ -3447,6 +3647,8 @@ yyreduce:
break;
case 129:
+
+/* Line 1455 of yacc.c */
#line 1568 "../Slice/Grammar.y"
{
StringTokPtr ident = StringTokPtr::dynamicCast((yyvsp[(1) - (1)]));
@@ -3457,6 +3659,8 @@ yyreduce:
break;
case 130:
+
+/* Line 1455 of yacc.c */
#line 1575 "../Slice/Grammar.y"
{
EnumeratorListTokPtr ens = new EnumeratorListTok;
@@ -3465,6 +3669,8 @@ yyreduce:
break;
case 131:
+
+/* Line 1455 of yacc.c */
#line 1585 "../Slice/Grammar.y"
{
(yyval) = (yyvsp[(1) - (1)]);
@@ -3472,6 +3678,8 @@ yyreduce:
break;
case 132:
+
+/* Line 1455 of yacc.c */
#line 1589 "../Slice/Grammar.y"
{
StringTokPtr scoped = StringTokPtr::dynamicCast((yyvsp[(1) - (1)]));
@@ -3509,6 +3717,8 @@ yyreduce:
break;
case 133:
+
+/* Line 1455 of yacc.c */
#line 1628 "../Slice/Grammar.y"
{
BoolTokPtr out = new BoolTok;
@@ -3518,6 +3728,8 @@ yyreduce:
break;
case 134:
+
+/* Line 1455 of yacc.c */
#line 1634 "../Slice/Grammar.y"
{
BoolTokPtr out = new BoolTok;
@@ -3527,12 +3739,16 @@ yyreduce:
break;
case 135:
+
+/* Line 1455 of yacc.c */
#line 1645 "../Slice/Grammar.y"
{
;}
break;
case 136:
+
+/* Line 1455 of yacc.c */
#line 1648 "../Slice/Grammar.y"
{
BoolTokPtr isOutParam = BoolTokPtr::dynamicCast((yyvsp[(1) - (3)]));
@@ -3552,6 +3768,8 @@ yyreduce:
break;
case 137:
+
+/* Line 1455 of yacc.c */
#line 1664 "../Slice/Grammar.y"
{
BoolTokPtr isOutParam = BoolTokPtr::dynamicCast((yyvsp[(3) - (5)]));
@@ -3571,6 +3789,8 @@ yyreduce:
break;
case 138:
+
+/* Line 1455 of yacc.c */
#line 1680 "../Slice/Grammar.y"
{
BoolTokPtr isOutParam = BoolTokPtr::dynamicCast((yyvsp[(1) - (4)]));
@@ -3586,6 +3806,8 @@ yyreduce:
break;
case 139:
+
+/* Line 1455 of yacc.c */
#line 1692 "../Slice/Grammar.y"
{
BoolTokPtr isOutParam = BoolTokPtr::dynamicCast((yyvsp[(3) - (6)]));
@@ -3601,6 +3823,8 @@ yyreduce:
break;
case 140:
+
+/* Line 1455 of yacc.c */
#line 1704 "../Slice/Grammar.y"
{
BoolTokPtr isOutParam = BoolTokPtr::dynamicCast((yyvsp[(1) - (3)]));
@@ -3615,6 +3839,8 @@ yyreduce:
break;
case 141:
+
+/* Line 1455 of yacc.c */
#line 1715 "../Slice/Grammar.y"
{
BoolTokPtr isOutParam = BoolTokPtr::dynamicCast((yyvsp[(3) - (5)]));
@@ -3629,6 +3855,8 @@ yyreduce:
break;
case 142:
+
+/* Line 1455 of yacc.c */
#line 1731 "../Slice/Grammar.y"
{
(yyval) = (yyvsp[(2) - (2)]);
@@ -3636,6 +3864,8 @@ yyreduce:
break;
case 143:
+
+/* Line 1455 of yacc.c */
#line 1735 "../Slice/Grammar.y"
{
(yyval) = new ExceptionListTok;
@@ -3643,12 +3873,16 @@ yyreduce:
break;
case 144:
+
+/* Line 1455 of yacc.c */
#line 1744 "../Slice/Grammar.y"
{
;}
break;
case 145:
+
+/* Line 1455 of yacc.c */
#line 1747 "../Slice/Grammar.y"
{
StringTokPtr ident = StringTokPtr::dynamicCast((yyvsp[(2) - (2)]));
@@ -3658,6 +3892,8 @@ yyreduce:
break;
case 146:
+
+/* Line 1455 of yacc.c */
#line 1753 "../Slice/Grammar.y"
{
StringTokPtr scoped = StringTokPtr::dynamicCast((yyvsp[(1) - (3)]));
@@ -3669,6 +3905,8 @@ yyreduce:
break;
case 147:
+
+/* Line 1455 of yacc.c */
#line 1766 "../Slice/Grammar.y"
{
(yyval) = unit->builtin(Builtin::KindByte);
@@ -3676,6 +3914,8 @@ yyreduce:
break;
case 148:
+
+/* Line 1455 of yacc.c */
#line 1770 "../Slice/Grammar.y"
{
(yyval) = unit->builtin(Builtin::KindBool);
@@ -3683,6 +3923,8 @@ yyreduce:
break;
case 149:
+
+/* Line 1455 of yacc.c */
#line 1774 "../Slice/Grammar.y"
{
(yyval) = unit->builtin(Builtin::KindShort);
@@ -3690,6 +3932,8 @@ yyreduce:
break;
case 150:
+
+/* Line 1455 of yacc.c */
#line 1778 "../Slice/Grammar.y"
{
(yyval) = unit->builtin(Builtin::KindInt);
@@ -3697,6 +3941,8 @@ yyreduce:
break;
case 151:
+
+/* Line 1455 of yacc.c */
#line 1782 "../Slice/Grammar.y"
{
(yyval) = unit->builtin(Builtin::KindLong);
@@ -3704,6 +3950,8 @@ yyreduce:
break;
case 152:
+
+/* Line 1455 of yacc.c */
#line 1786 "../Slice/Grammar.y"
{
(yyval) = unit->builtin(Builtin::KindFloat);
@@ -3711,6 +3959,8 @@ yyreduce:
break;
case 153:
+
+/* Line 1455 of yacc.c */
#line 1790 "../Slice/Grammar.y"
{
(yyval) = unit->builtin(Builtin::KindDouble);
@@ -3718,6 +3968,8 @@ yyreduce:
break;
case 154:
+
+/* Line 1455 of yacc.c */
#line 1794 "../Slice/Grammar.y"
{
(yyval) = unit->builtin(Builtin::KindString);
@@ -3725,6 +3977,8 @@ yyreduce:
break;
case 155:
+
+/* Line 1455 of yacc.c */
#line 1798 "../Slice/Grammar.y"
{
(yyval) = unit->builtin(Builtin::KindObject);
@@ -3732,6 +3986,8 @@ yyreduce:
break;
case 156:
+
+/* Line 1455 of yacc.c */
#line 1802 "../Slice/Grammar.y"
{
(yyval) = unit->builtin(Builtin::KindObjectProxy);
@@ -3739,6 +3995,8 @@ yyreduce:
break;
case 157:
+
+/* Line 1455 of yacc.c */
#line 1806 "../Slice/Grammar.y"
{
(yyval) = unit->builtin(Builtin::KindLocalObject);
@@ -3746,6 +4004,8 @@ yyreduce:
break;
case 158:
+
+/* Line 1455 of yacc.c */
#line 1810 "../Slice/Grammar.y"
{
StringTokPtr scoped = StringTokPtr::dynamicCast((yyvsp[(1) - (1)]));
@@ -3768,6 +4028,8 @@ yyreduce:
break;
case 159:
+
+/* Line 1455 of yacc.c */
#line 1829 "../Slice/Grammar.y"
{
StringTokPtr scoped = StringTokPtr::dynamicCast((yyvsp[(1) - (2)]));
@@ -3807,6 +4069,8 @@ yyreduce:
break;
case 160:
+
+/* Line 1455 of yacc.c */
#line 1870 "../Slice/Grammar.y"
{
StringTokPtr str1 = StringTokPtr::dynamicCast((yyvsp[(1) - (2)]));
@@ -3816,12 +4080,16 @@ yyreduce:
break;
case 161:
+
+/* Line 1455 of yacc.c */
#line 1876 "../Slice/Grammar.y"
{
;}
break;
case 162:
+
+/* Line 1455 of yacc.c */
#line 1884 "../Slice/Grammar.y"
{
StringTokPtr str = StringTokPtr::dynamicCast((yyvsp[(3) - (3)]));
@@ -3832,6 +4100,8 @@ yyreduce:
break;
case 163:
+
+/* Line 1455 of yacc.c */
#line 1891 "../Slice/Grammar.y"
{
StringTokPtr str = StringTokPtr::dynamicCast((yyvsp[(1) - (1)]));
@@ -3842,6 +4112,8 @@ yyreduce:
break;
case 164:
+
+/* Line 1455 of yacc.c */
#line 1903 "../Slice/Grammar.y"
{
BoolTokPtr local = new BoolTok;
@@ -3851,6 +4123,8 @@ yyreduce:
break;
case 165:
+
+/* Line 1455 of yacc.c */
#line 1909 "../Slice/Grammar.y"
{
BoolTokPtr local = new BoolTok;
@@ -3860,6 +4134,8 @@ yyreduce:
break;
case 166:
+
+/* Line 1455 of yacc.c */
#line 1920 "../Slice/Grammar.y"
{
BuiltinPtr type = unit->builtin(Builtin::KindLong);
@@ -3876,6 +4152,8 @@ yyreduce:
break;
case 167:
+
+/* Line 1455 of yacc.c */
#line 1933 "../Slice/Grammar.y"
{
BuiltinPtr type = unit->builtin(Builtin::KindDouble);
@@ -3892,6 +4170,8 @@ yyreduce:
break;
case 168:
+
+/* Line 1455 of yacc.c */
#line 1946 "../Slice/Grammar.y"
{
StringTokPtr scoped = StringTokPtr::dynamicCast((yyvsp[(1) - (1)]));
@@ -3941,6 +4221,8 @@ yyreduce:
break;
case 169:
+
+/* Line 1455 of yacc.c */
#line 1992 "../Slice/Grammar.y"
{
BuiltinPtr type = unit->builtin(Builtin::KindString);
@@ -3955,6 +4237,8 @@ yyreduce:
break;
case 170:
+
+/* Line 1455 of yacc.c */
#line 2003 "../Slice/Grammar.y"
{
BuiltinPtr type = unit->builtin(Builtin::KindBool);
@@ -3969,6 +4253,8 @@ yyreduce:
break;
case 171:
+
+/* Line 1455 of yacc.c */
#line 2014 "../Slice/Grammar.y"
{
BuiltinPtr type = unit->builtin(Builtin::KindBool);
@@ -3983,6 +4269,8 @@ yyreduce:
break;
case 172:
+
+/* Line 1455 of yacc.c */
#line 2030 "../Slice/Grammar.y"
{
StringListTokPtr metaData = StringListTokPtr::dynamicCast((yyvsp[(2) - (6)]));
@@ -3995,6 +4283,8 @@ yyreduce:
break;
case 173:
+
+/* Line 1455 of yacc.c */
#line 2039 "../Slice/Grammar.y"
{
StringListTokPtr metaData = StringListTokPtr::dynamicCast((yyvsp[(2) - (5)]));
@@ -4007,182 +4297,241 @@ yyreduce:
break;
case 174:
+
+/* Line 1455 of yacc.c */
#line 2053 "../Slice/Grammar.y"
{
;}
break;
case 175:
+
+/* Line 1455 of yacc.c */
#line 2056 "../Slice/Grammar.y"
{
;}
break;
case 176:
+
+/* Line 1455 of yacc.c */
#line 2059 "../Slice/Grammar.y"
{
;}
break;
case 177:
+
+/* Line 1455 of yacc.c */
#line 2062 "../Slice/Grammar.y"
{
;}
break;
case 178:
+
+/* Line 1455 of yacc.c */
#line 2065 "../Slice/Grammar.y"
{
;}
break;
case 179:
+
+/* Line 1455 of yacc.c */
#line 2068 "../Slice/Grammar.y"
{
;}
break;
case 180:
+
+/* Line 1455 of yacc.c */
#line 2071 "../Slice/Grammar.y"
{
;}
break;
case 181:
+
+/* Line 1455 of yacc.c */
#line 2074 "../Slice/Grammar.y"
{
;}
break;
case 182:
+
+/* Line 1455 of yacc.c */
#line 2077 "../Slice/Grammar.y"
{
;}
break;
case 183:
+
+/* Line 1455 of yacc.c */
#line 2080 "../Slice/Grammar.y"
{
;}
break;
case 184:
+
+/* Line 1455 of yacc.c */
#line 2083 "../Slice/Grammar.y"
{
;}
break;
case 185:
+
+/* Line 1455 of yacc.c */
#line 2086 "../Slice/Grammar.y"
{
;}
break;
case 186:
+
+/* Line 1455 of yacc.c */
#line 2089 "../Slice/Grammar.y"
{
;}
break;
case 187:
+
+/* Line 1455 of yacc.c */
#line 2092 "../Slice/Grammar.y"
{
;}
break;
case 188:
+
+/* Line 1455 of yacc.c */
#line 2095 "../Slice/Grammar.y"
{
;}
break;
case 189:
+
+/* Line 1455 of yacc.c */
#line 2098 "../Slice/Grammar.y"
{
;}
break;
case 190:
+
+/* Line 1455 of yacc.c */
#line 2101 "../Slice/Grammar.y"
{
;}
break;
case 191:
+
+/* Line 1455 of yacc.c */
#line 2104 "../Slice/Grammar.y"
{
;}
break;
case 192:
+
+/* Line 1455 of yacc.c */
#line 2107 "../Slice/Grammar.y"
{
;}
break;
case 193:
+
+/* Line 1455 of yacc.c */
#line 2110 "../Slice/Grammar.y"
{
;}
break;
case 194:
+
+/* Line 1455 of yacc.c */
#line 2113 "../Slice/Grammar.y"
{
;}
break;
case 195:
+
+/* Line 1455 of yacc.c */
#line 2116 "../Slice/Grammar.y"
{
;}
break;
case 196:
+
+/* Line 1455 of yacc.c */
#line 2119 "../Slice/Grammar.y"
{
;}
break;
case 197:
+
+/* Line 1455 of yacc.c */
#line 2122 "../Slice/Grammar.y"
{
;}
break;
case 198:
+
+/* Line 1455 of yacc.c */
#line 2125 "../Slice/Grammar.y"
{
;}
break;
case 199:
+
+/* Line 1455 of yacc.c */
#line 2128 "../Slice/Grammar.y"
{
;}
break;
case 200:
+
+/* Line 1455 of yacc.c */
#line 2131 "../Slice/Grammar.y"
{
;}
break;
case 201:
+
+/* Line 1455 of yacc.c */
#line 2134 "../Slice/Grammar.y"
{
;}
break;
case 202:
+
+/* Line 1455 of yacc.c */
#line 2137 "../Slice/Grammar.y"
{
;}
break;
-/* Line 1267 of yacc.c. */
-#line 4186 "Grammar.tab.c"
+
+/* Line 1455 of yacc.c */
+#line 4535 "Grammar.tab.c"
default: break;
}
YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
@@ -4193,7 +4542,6 @@ yyreduce:
*++yyvsp = yyval;
-
/* Now `shift' the result of the reduction. Determine what state
that goes to, based on the state we popped back to and the rule
number reduced by. */
@@ -4258,7 +4606,7 @@ yyerrlab:
if (yyerrstatus == 3)
{
- /* If just tried and failed to reuse look-ahead token after an
+ /* If just tried and failed to reuse lookahead token after an
error, discard it. */
if (yychar <= YYEOF)
@@ -4275,7 +4623,7 @@ yyerrlab:
}
}
- /* Else will try to reuse look-ahead token after shifting the error
+ /* Else will try to reuse lookahead token after shifting the error
token. */
goto yyerrlab1;
@@ -4332,9 +4680,6 @@ yyerrlab1:
YY_STACK_PRINT (yyss, yyssp);
}
- if (yyn == YYFINAL)
- YYACCEPT;
-
*++yyvsp = yylval;
@@ -4359,7 +4704,7 @@ yyabortlab:
yyresult = 1;
goto yyreturn;
-#ifndef yyoverflow
+#if !defined(yyoverflow) || YYERROR_VERBOSE
/*-------------------------------------------------.
| yyexhaustedlab -- memory exhaustion comes here. |
`-------------------------------------------------*/
@@ -4370,7 +4715,7 @@ yyexhaustedlab:
#endif
yyreturn:
- if (yychar != YYEOF && yychar != YYEMPTY)
+ if (yychar != YYEMPTY)
yydestruct ("Cleanup: discarding lookahead",
yytoken, &yylval);
/* Do not reclaim the symbols of the rule which action triggered
@@ -4396,6 +4741,8 @@ yyreturn:
}
+
+/* Line 1675 of yacc.c */
#line 2141 "../Slice/Grammar.y"
diff --git a/cpp/src/Slice/Grammar.h b/cpp/src/Slice/Grammar.h
index 8b0f1aff09f..0ee3d141315 100644
--- a/cpp/src/Slice/Grammar.h
+++ b/cpp/src/Slice/Grammar.h
@@ -1,24 +1,23 @@
-/* A Bison parser, made by GNU Bison 2.3. */
-/* Skeleton interface for Bison's Yacc-like parsers in C
+/* A Bison parser, made by GNU Bison 2.4.1. */
- Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
+/* Skeleton interface for Bison's Yacc-like parsers in C
+
+ Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
Free Software Foundation, Inc.
-
- This program is free software; you can redistribute it and/or modify
+
+ This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2, or (at your option)
- any later version.
-
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
+
You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA. */
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
@@ -29,10 +28,11 @@
special exception, which will cause the skeleton and the resulting
Bison output files to be licensed under the GNU General Public
License without this special exception.
-
+
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
+
/* Tokens. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
@@ -83,59 +83,16 @@
BAD_CHAR = 299
};
#endif
-/* Tokens. */
-#define ICE_MODULE 258
-#define ICE_CLASS 259
-#define ICE_INTERFACE 260
-#define ICE_EXCEPTION 261
-#define ICE_STRUCT 262
-#define ICE_SEQUENCE 263
-#define ICE_DICTIONARY 264
-#define ICE_ENUM 265
-#define ICE_OUT 266
-#define ICE_EXTENDS 267
-#define ICE_IMPLEMENTS 268
-#define ICE_THROWS 269
-#define ICE_VOID 270
-#define ICE_BYTE 271
-#define ICE_BOOL 272
-#define ICE_SHORT 273
-#define ICE_INT 274
-#define ICE_LONG 275
-#define ICE_FLOAT 276
-#define ICE_DOUBLE 277
-#define ICE_STRING 278
-#define ICE_OBJECT 279
-#define ICE_LOCAL_OBJECT 280
-#define ICE_LOCAL 281
-#define ICE_CONST 282
-#define ICE_FALSE 283
-#define ICE_TRUE 284
-#define ICE_IDEMPOTENT 285
-#define ICE_OPTIONAL 286
-#define ICE_SCOPE_DELIMITER 287
-#define ICE_IDENTIFIER 288
-#define ICE_STRING_LITERAL 289
-#define ICE_INTEGER_LITERAL 290
-#define ICE_FLOATING_POINT_LITERAL 291
-#define ICE_IDENT_OP 292
-#define ICE_KEYWORD_OP 293
-#define ICE_OPTIONAL_OP 294
-#define ICE_METADATA_OPEN 295
-#define ICE_METADATA_CLOSE 296
-#define ICE_GLOBAL_METADATA_OPEN 297
-#define ICE_GLOBAL_METADATA_CLOSE 298
-#define BAD_CHAR 299
-
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef int YYSTYPE;
+# define YYSTYPE_IS_TRIVIAL 1
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
-# define YYSTYPE_IS_TRIVIAL 1
#endif
+