From a50bd9f4ea510fc623b01ef0bbcfa1ea53c619f8 Mon Sep 17 00:00:00 2001 From: Bernard Normier Date: Thu, 17 Oct 2024 17:17:57 -0400 Subject: [PATCH] Rename ICE_GRID/ICE_STORM => ICEGRID/ICESTORM --- cpp/include/IceGrid/Config.h | 6 +- cpp/include/IceStorm/Config.h | 10 +- cpp/src/IceGrid/Activator.h | 4 +- cpp/src/IceGrid/AdapterCache.h | 4 +- cpp/src/IceGrid/AdminCallbackRouter.h | 4 +- cpp/src/IceGrid/AdminI.h | 4 +- cpp/src/IceGrid/AdminRouter.h | 4 +- cpp/src/IceGrid/Allocatable.h | 4 +- cpp/src/IceGrid/AllocatableObjectCache.h | 4 +- cpp/src/IceGrid/Cache.h | 4 +- cpp/src/IceGrid/Database.h | 4 +- cpp/src/IceGrid/DescriptorBuilder.h | 4 +- cpp/src/IceGrid/DescriptorHelper.h | 4 +- cpp/src/IceGrid/FileCache.h | 4 +- cpp/src/IceGrid/FileParserI.h | 4 +- cpp/src/IceGrid/FileUserAccountMapperI.h | 4 +- cpp/src/IceGrid/Grammar.cpp | 4756 +++++++++++---------- cpp/src/IceGrid/Grammar.h | 116 +- cpp/src/IceGrid/Grammar.y | 390 +- cpp/src/IceGrid/InternalRegistryI.h | 4 +- cpp/src/IceGrid/LocatorI.h | 4 +- cpp/src/IceGrid/LocatorRegistryI.h | 4 +- cpp/src/IceGrid/NodeAdminRouter.h | 4 +- cpp/src/IceGrid/NodeCache.h | 4 +- cpp/src/IceGrid/NodeI.h | 4 +- cpp/src/IceGrid/NodeSessionManager.h | 4 +- cpp/src/IceGrid/ObjectCache.h | 4 +- cpp/src/IceGrid/Parser.h | 4 +- cpp/src/IceGrid/PlatformInfo.h | 4 +- cpp/src/IceGrid/QueryI.h | 4 +- cpp/src/IceGrid/RegistryAdminRouter.h | 4 +- cpp/src/IceGrid/RegistryI.h | 4 +- cpp/src/IceGrid/ReplicaCache.h | 4 +- cpp/src/IceGrid/ReplicaSessionManager.h | 4 +- cpp/src/IceGrid/Scanner.cpp | 2432 +++++------ cpp/src/IceGrid/Scanner.l | 86 +- cpp/src/IceGrid/ServerAdapterI.h | 4 +- cpp/src/IceGrid/ServerCache.h | 4 +- cpp/src/IceGrid/ServerI.h | 4 +- cpp/src/IceGrid/SessionManager.h | 4 +- cpp/src/IceGrid/SessionServantManager.h | 4 +- cpp/src/IceGrid/TraceLevels.h | 4 +- cpp/src/IceGrid/Util.h | 4 +- cpp/src/IceGrid/WellKnownObjectsManager.h | 4 +- cpp/src/IceStorm/Grammar.cpp | 1805 ++++---- cpp/src/IceStorm/Grammar.h | 62 +- cpp/src/IceStorm/Grammar.y | 68 +- cpp/src/IceStorm/Scanner.cpp | 2414 ++++++----- cpp/src/IceStorm/Scanner.l | 30 +- cpp/src/IceStorm/Service.h | 6 +- cpp/src/Slice/Grammar.cpp | 618 +-- 51 files changed, 6836 insertions(+), 6111 deletions(-) diff --git a/cpp/include/IceGrid/Config.h b/cpp/include/IceGrid/Config.h index 55a34fd3a50..a1c243cde50 100644 --- a/cpp/include/IceGrid/Config.h +++ b/cpp/include/IceGrid/Config.h @@ -15,11 +15,11 @@ # endif #endif -#if !defined(ICE_BUILDING_ICE_GRID) && defined(ICEGRID_API_EXPORTS) -# define ICE_BUILDING_ICE_GRID +#if !defined(ICE_BUILDING_ICEGRID) && defined(ICEGRID_API_EXPORTS) +# define ICE_BUILDING_ICEGRID #endif -#if defined(_MSC_VER) && !defined(ICE_BUILDING_ICE_GRID) +#if defined(_MSC_VER) && !defined(ICE_BUILDING_ICEGRID) # pragma comment(lib, ICE_LIBNAME("IceGrid")) // Automatically link with IceGrid[D].lib #endif diff --git a/cpp/include/IceStorm/Config.h b/cpp/include/IceStorm/Config.h index 11bfa29e3c6..0a000999923 100644 --- a/cpp/include/IceStorm/Config.h +++ b/cpp/include/IceStorm/Config.h @@ -2,8 +2,8 @@ // Copyright (c) ZeroC, Inc. All rights reserved. // -#ifndef ICE_STORM_CONFIG_H -#define ICE_STORM_CONFIG_H +#ifndef ICESTORM_CONFIG_H +#define ICESTORM_CONFIG_H #include "Ice/Config.h" @@ -11,11 +11,11 @@ // Automatically link with IceStorm[D].lib // -#if !defined(ICE_BUILDING_ICE_STORM_LIB) && defined(ICESTORM_API_EXPORTS) -# define ICE_BUILDING_ICE_STORM_LIB +#if !defined(ICE_BUILDING_ICESTORM_LIB) && defined(ICESTORM_API_EXPORTS) +# define ICE_BUILDING_ICESTORM_LIB #endif -#if defined(_MSC_VER) && !defined(ICE_BUILDING_ICE_STORM_LIB) +#if defined(_MSC_VER) && !defined(ICE_BUILDING_ICESTORM_LIB) # pragma comment(lib, ICE_LIBNAME("IceStorm")) #endif diff --git a/cpp/src/IceGrid/Activator.h b/cpp/src/IceGrid/Activator.h index 4f554f60e65..48254c8623d 100644 --- a/cpp/src/IceGrid/Activator.h +++ b/cpp/src/IceGrid/Activator.h @@ -2,8 +2,8 @@ // Copyright (c) ZeroC, Inc. All rights reserved. // -#ifndef ICE_GRID_ACTIVATOR_H -#define ICE_GRID_ACTIVATOR_H +#ifndef ICEGRID_ACTIVATOR_H +#define ICEGRID_ACTIVATOR_H #include "Internal.h" diff --git a/cpp/src/IceGrid/AdapterCache.h b/cpp/src/IceGrid/AdapterCache.h index 4a0c55cac85..55d5597f9a2 100644 --- a/cpp/src/IceGrid/AdapterCache.h +++ b/cpp/src/IceGrid/AdapterCache.h @@ -2,8 +2,8 @@ // Copyright (c) ZeroC, Inc. All rights reserved. // -#ifndef ICE_GRID_ADAPTERCACHE_H -#define ICE_GRID_ADAPTERCACHE_H +#ifndef ICEGRID_ADAPTERCACHE_H +#define ICEGRID_ADAPTERCACHE_H #include "Cache.h" #include "IceGrid/Registry.h" diff --git a/cpp/src/IceGrid/AdminCallbackRouter.h b/cpp/src/IceGrid/AdminCallbackRouter.h index e693984e7a1..e857404cfff 100644 --- a/cpp/src/IceGrid/AdminCallbackRouter.h +++ b/cpp/src/IceGrid/AdminCallbackRouter.h @@ -2,8 +2,8 @@ // Copyright (c) ZeroC, Inc. All rights reserved. // -#ifndef ICE_GRID_ADMIN_CALLBACK_ROUTER_H -#define ICE_GRID_ADMIN_CALLBACK_ROUTER_H +#ifndef ICEGRID_ADMIN_CALLBACK_ROUTER_H +#define ICEGRID_ADMIN_CALLBACK_ROUTER_H #include "Ice/Ice.h" #include diff --git a/cpp/src/IceGrid/AdminI.h b/cpp/src/IceGrid/AdminI.h index 295c0366878..f2a848853fa 100644 --- a/cpp/src/IceGrid/AdminI.h +++ b/cpp/src/IceGrid/AdminI.h @@ -2,8 +2,8 @@ // Copyright (c) ZeroC, Inc. All rights reserved. // -#ifndef ICE_GRID_ADMIN_I_H -#define ICE_GRID_ADMIN_I_H +#ifndef ICEGRID_ADMIN_I_H +#define ICEGRID_ADMIN_I_H #include "IceGrid/Admin.h" diff --git a/cpp/src/IceGrid/AdminRouter.h b/cpp/src/IceGrid/AdminRouter.h index 318d3c931da..c9eb0f082e2 100644 --- a/cpp/src/IceGrid/AdminRouter.h +++ b/cpp/src/IceGrid/AdminRouter.h @@ -2,8 +2,8 @@ // Copyright (c) ZeroC, Inc. All rights reserved. // -#ifndef ICE_GRID_ADMIN_ROUTER_H -#define ICE_GRID_ADMIN_ROUTER_H +#ifndef ICEGRID_ADMIN_ROUTER_H +#define ICEGRID_ADMIN_ROUTER_H #include "Ice/Ice.h" #include "TraceLevels.h" diff --git a/cpp/src/IceGrid/Allocatable.h b/cpp/src/IceGrid/Allocatable.h index d698d1a70c0..db0a17f45e3 100644 --- a/cpp/src/IceGrid/Allocatable.h +++ b/cpp/src/IceGrid/Allocatable.h @@ -2,8 +2,8 @@ // Copyright (c) ZeroC, Inc. All rights reserved. // -#ifndef ICE_GRID_ALLOCATABLE_H -#define ICE_GRID_ALLOCATABLE_H +#ifndef ICEGRID_ALLOCATABLE_H +#define ICEGRID_ALLOCATABLE_H #include "Ice/Timer.h" diff --git a/cpp/src/IceGrid/AllocatableObjectCache.h b/cpp/src/IceGrid/AllocatableObjectCache.h index 4409ba8e662..fa73cc89a10 100644 --- a/cpp/src/IceGrid/AllocatableObjectCache.h +++ b/cpp/src/IceGrid/AllocatableObjectCache.h @@ -2,8 +2,8 @@ // Copyright (c) ZeroC, Inc. All rights reserved. // -#ifndef ICE_GRID_ALLOCATABLEOBJECTCACHE_H -#define ICE_GRID_ALLOCATABLEOBJECTCACHE_H +#ifndef ICEGRID_ALLOCATABLEOBJECTCACHE_H +#define ICEGRID_ALLOCATABLEOBJECTCACHE_H #include "Allocatable.h" #include "Cache.h" diff --git a/cpp/src/IceGrid/Cache.h b/cpp/src/IceGrid/Cache.h index 38c1c9daf2e..7bc9a4befc7 100644 --- a/cpp/src/IceGrid/Cache.h +++ b/cpp/src/IceGrid/Cache.h @@ -2,8 +2,8 @@ // Copyright (c) ZeroC, Inc. All rights reserved. // -#ifndef ICE_GRID_CACHE_H -#define ICE_GRID_CACHE_H +#ifndef ICEGRID_CACHE_H +#define ICEGRID_CACHE_H #include "TraceLevels.h" #include "Util.h" diff --git a/cpp/src/IceGrid/Database.h b/cpp/src/IceGrid/Database.h index b32b8851ec6..6333431db67 100644 --- a/cpp/src/IceGrid/Database.h +++ b/cpp/src/IceGrid/Database.h @@ -2,8 +2,8 @@ // Copyright (c) ZeroC, Inc. All rights reserved. // -#ifndef ICE_GRID_DATABASE_H -#define ICE_GRID_DATABASE_H +#ifndef ICEGRID_DATABASE_H +#define ICEGRID_DATABASE_H #include "../Ice/FileUtil.h" #include "AdapterCache.h" diff --git a/cpp/src/IceGrid/DescriptorBuilder.h b/cpp/src/IceGrid/DescriptorBuilder.h index 4a885563ed5..9cb0bdd0e78 100644 --- a/cpp/src/IceGrid/DescriptorBuilder.h +++ b/cpp/src/IceGrid/DescriptorBuilder.h @@ -2,8 +2,8 @@ // Copyright (c) ZeroC, Inc. All rights reserved. // -#ifndef ICE_GRID_DESCRIPTOR_BUILDER_H -#define ICE_GRID_DESCRIPTOR_BUILDER_H +#ifndef ICEGRID_DESCRIPTOR_BUILDER_H +#define ICEGRID_DESCRIPTOR_BUILDER_H #include "../IceXML/Parser.h" #include "Ice/Logger.h" diff --git a/cpp/src/IceGrid/DescriptorHelper.h b/cpp/src/IceGrid/DescriptorHelper.h index 882f22ce519..737aaa9b029 100644 --- a/cpp/src/IceGrid/DescriptorHelper.h +++ b/cpp/src/IceGrid/DescriptorHelper.h @@ -2,8 +2,8 @@ // Copyright (c) ZeroC, Inc. All rights reserved. // -#ifndef ICE_GRID_DESCRIPTOR_HELPER_H -#define ICE_GRID_DESCRIPTOR_HELPER_H +#ifndef ICEGRID_DESCRIPTOR_HELPER_H +#define ICEGRID_DESCRIPTOR_HELPER_H #include "../Ice/OutputUtil.h" #include "../IceXML/Parser.h" diff --git a/cpp/src/IceGrid/FileCache.h b/cpp/src/IceGrid/FileCache.h index 0d258ee7cc7..22e8f7c97bb 100644 --- a/cpp/src/IceGrid/FileCache.h +++ b/cpp/src/IceGrid/FileCache.h @@ -2,8 +2,8 @@ // Copyright (c) ZeroC, Inc. All rights reserved. // -#ifndef ICE_GRID_FILE_CACHE_H -#define ICE_GRID_FILE_CACHE_H +#ifndef ICEGRID_FILE_CACHE_H +#define ICEGRID_FILE_CACHE_H #include "Ice/BuiltinSequences.h" #include "Ice/CommunicatorF.h" diff --git a/cpp/src/IceGrid/FileParserI.h b/cpp/src/IceGrid/FileParserI.h index 631b66c38af..1b6afea716a 100644 --- a/cpp/src/IceGrid/FileParserI.h +++ b/cpp/src/IceGrid/FileParserI.h @@ -2,8 +2,8 @@ // Copyright (c) ZeroC, Inc. All rights reserved. // -#ifndef ICE_GRID_FILE_PARSERI_H -#define ICE_GRID_FILE_PARSERI_H +#ifndef ICEGRID_FILE_PARSERI_H +#define ICEGRID_FILE_PARSERI_H #include "IceGrid/FileParser.h" diff --git a/cpp/src/IceGrid/FileUserAccountMapperI.h b/cpp/src/IceGrid/FileUserAccountMapperI.h index 45b3ed40088..c38d4a92cf8 100644 --- a/cpp/src/IceGrid/FileUserAccountMapperI.h +++ b/cpp/src/IceGrid/FileUserAccountMapperI.h @@ -2,8 +2,8 @@ // Copyright (c) ZeroC, Inc. All rights reserved. // -#ifndef ICE_GRID_FILEUSERACCOUNTMAPPERI_H -#define ICE_GRID_FILEUSERACCOUNTMAPPERI_H +#ifndef ICEGRID_FILEUSERACCOUNTMAPPERI_H +#define ICEGRID_FILEUSERACCOUNTMAPPERI_H #include "IceGrid/UserAccountMapper.h" diff --git a/cpp/src/IceGrid/Grammar.cpp b/cpp/src/IceGrid/Grammar.cpp index 15e51b559fb..a535bc60e02 100644 --- a/cpp/src/IceGrid/Grammar.cpp +++ b/cpp/src/IceGrid/Grammar.cpp @@ -66,25 +66,30 @@ /* "%code top" blocks. */ #line 1 "src/IceGrid/Grammar.y" + // // Copyright (c) ZeroC, Inc. All rights reserved. // + #line 76 "src/IceGrid/Grammar.cpp" + + /* First part of user prologue. */ -#line 34 "src/IceGrid/Grammar.y" +#line 35 "src/IceGrid/Grammar.y" + #include "Ice/Ice.h" #include "Parser.h" #ifdef _MSC_VER // warning C4127: conditional expression is constant -# pragma warning(disable : 4127) +# pragma warning(disable:4127) // warning C4102: 'yyexhausted': unreferenced label -# pragma warning(disable : 4102) +# pragma warning(disable:4102) // warning C4702: unreachable code -# pragma warning(disable : 4702) +# pragma warning(disable:4702) #endif // Avoid old style cast warnings in generated grammar @@ -113,98 +118,103 @@ yyerror(const char* s) parser->invalidCommand(s); } + #line 123 "src/IceGrid/Grammar.cpp" -#ifndef YY_CAST -# ifdef __cplusplus -# define YY_CAST(Type, Val) static_cast(Val) -# define YY_REINTERPRET_CAST(Type, Val) reinterpret_cast(Val) -# else -# define YY_CAST(Type, Val) ((Type)(Val)) -# define YY_REINTERPRET_CAST(Type, Val) ((Type)(Val)) -# endif -#endif -#ifndef YY_NULLPTR -# if defined __cplusplus -# if 201103L <= __cplusplus -# define YY_NULLPTR nullptr -# else -# define YY_NULLPTR 0 -# endif -# else -# define YY_NULLPTR ((void*)0) -# endif -#endif +# ifndef YY_CAST +# ifdef __cplusplus +# define YY_CAST(Type, Val) static_cast (Val) +# define YY_REINTERPRET_CAST(Type, Val) reinterpret_cast (Val) +# else +# define YY_CAST(Type, Val) ((Type) (Val)) +# define YY_REINTERPRET_CAST(Type, Val) ((Type) (Val)) +# endif +# endif +# ifndef YY_NULLPTR +# if defined __cplusplus +# if 201103L <= __cplusplus +# define YY_NULLPTR nullptr +# else +# define YY_NULLPTR 0 +# endif +# else +# define YY_NULLPTR ((void*)0) +# endif +# endif #include "Grammar.h" /* Symbol kind. */ enum yysymbol_kind_t { - YYSYMBOL_YYEMPTY = -2, - YYSYMBOL_YYEOF = 0, /* "end of file" */ - YYSYMBOL_YYerror = 1, /* error */ - YYSYMBOL_YYUNDEF = 2, /* "invalid token" */ - YYSYMBOL_ICE_GRID_HELP = 3, /* ICE_GRID_HELP */ - YYSYMBOL_ICE_GRID_EXIT = 4, /* ICE_GRID_EXIT */ - YYSYMBOL_ICE_GRID_APPLICATION = 5, /* ICE_GRID_APPLICATION */ - YYSYMBOL_ICE_GRID_NODE = 6, /* ICE_GRID_NODE */ - YYSYMBOL_ICE_GRID_REGISTRY = 7, /* ICE_GRID_REGISTRY */ - YYSYMBOL_ICE_GRID_SERVER = 8, /* ICE_GRID_SERVER */ - YYSYMBOL_ICE_GRID_ADAPTER = 9, /* ICE_GRID_ADAPTER */ - YYSYMBOL_ICE_GRID_PING = 10, /* ICE_GRID_PING */ - YYSYMBOL_ICE_GRID_LOAD = 11, /* ICE_GRID_LOAD */ - YYSYMBOL_ICE_GRID_SOCKETS = 12, /* ICE_GRID_SOCKETS */ - YYSYMBOL_ICE_GRID_ADD = 13, /* ICE_GRID_ADD */ - YYSYMBOL_ICE_GRID_REMOVE = 14, /* ICE_GRID_REMOVE */ - YYSYMBOL_ICE_GRID_LIST = 15, /* ICE_GRID_LIST */ - YYSYMBOL_ICE_GRID_SHUTDOWN = 16, /* ICE_GRID_SHUTDOWN */ - YYSYMBOL_ICE_GRID_STRING = 17, /* ICE_GRID_STRING */ - YYSYMBOL_ICE_GRID_START = 18, /* ICE_GRID_START */ - YYSYMBOL_ICE_GRID_STOP = 19, /* ICE_GRID_STOP */ - YYSYMBOL_ICE_GRID_SIGNAL = 20, /* ICE_GRID_SIGNAL */ - YYSYMBOL_ICE_GRID_STDOUT = 21, /* ICE_GRID_STDOUT */ - YYSYMBOL_ICE_GRID_STDERR = 22, /* ICE_GRID_STDERR */ - YYSYMBOL_ICE_GRID_DESCRIBE = 23, /* ICE_GRID_DESCRIBE */ - YYSYMBOL_ICE_GRID_PROPERTIES = 24, /* ICE_GRID_PROPERTIES */ - YYSYMBOL_ICE_GRID_PROPERTY = 25, /* ICE_GRID_PROPERTY */ - YYSYMBOL_ICE_GRID_STATE = 26, /* ICE_GRID_STATE */ - YYSYMBOL_ICE_GRID_PID = 27, /* ICE_GRID_PID */ - YYSYMBOL_ICE_GRID_ENDPOINTS = 28, /* ICE_GRID_ENDPOINTS */ - YYSYMBOL_ICE_GRID_ACTIVATION = 29, /* ICE_GRID_ACTIVATION */ - YYSYMBOL_ICE_GRID_OBJECT = 30, /* ICE_GRID_OBJECT */ - YYSYMBOL_ICE_GRID_FIND = 31, /* ICE_GRID_FIND */ - YYSYMBOL_ICE_GRID_SHOW = 32, /* ICE_GRID_SHOW */ - YYSYMBOL_ICE_GRID_COPYING = 33, /* ICE_GRID_COPYING */ - YYSYMBOL_ICE_GRID_WARRANTY = 34, /* ICE_GRID_WARRANTY */ - YYSYMBOL_ICE_GRID_DIFF = 35, /* ICE_GRID_DIFF */ - YYSYMBOL_ICE_GRID_UPDATE = 36, /* ICE_GRID_UPDATE */ - YYSYMBOL_ICE_GRID_INSTANTIATE = 37, /* ICE_GRID_INSTANTIATE */ - YYSYMBOL_ICE_GRID_TEMPLATE = 38, /* ICE_GRID_TEMPLATE */ - YYSYMBOL_ICE_GRID_SERVICE = 39, /* ICE_GRID_SERVICE */ - YYSYMBOL_ICE_GRID_ENABLE = 40, /* ICE_GRID_ENABLE */ - YYSYMBOL_ICE_GRID_DISABLE = 41, /* ICE_GRID_DISABLE */ - YYSYMBOL_42_ = 42, /* ';' */ - YYSYMBOL_YYACCEPT = 43, /* $accept */ - YYSYMBOL_start = 44, /* start */ - YYSYMBOL_commands = 45, /* commands */ - YYSYMBOL_checkInterrupted = 46, /* checkInterrupted */ - YYSYMBOL_command = 47, /* command */ - YYSYMBOL_strings = 48, /* strings */ - YYSYMBOL_keyword = 49 /* keyword */ + YYSYMBOL_YYEMPTY = -2, + YYSYMBOL_YYEOF = 0, /* "end of file" */ + YYSYMBOL_YYerror = 1, /* error */ + YYSYMBOL_YYUNDEF = 2, /* "invalid token" */ + YYSYMBOL_ICEGRID_HELP = 3, /* ICEGRID_HELP */ + YYSYMBOL_ICEGRID_EXIT = 4, /* ICEGRID_EXIT */ + YYSYMBOL_ICEGRID_APPLICATION = 5, /* ICEGRID_APPLICATION */ + YYSYMBOL_ICEGRID_NODE = 6, /* ICEGRID_NODE */ + YYSYMBOL_ICEGRID_REGISTRY = 7, /* ICEGRID_REGISTRY */ + YYSYMBOL_ICEGRID_SERVER = 8, /* ICEGRID_SERVER */ + YYSYMBOL_ICEGRID_ADAPTER = 9, /* ICEGRID_ADAPTER */ + YYSYMBOL_ICEGRID_PING = 10, /* ICEGRID_PING */ + YYSYMBOL_ICEGRID_LOAD = 11, /* ICEGRID_LOAD */ + YYSYMBOL_ICEGRID_SOCKETS = 12, /* ICEGRID_SOCKETS */ + YYSYMBOL_ICEGRID_ADD = 13, /* ICEGRID_ADD */ + YYSYMBOL_ICEGRID_REMOVE = 14, /* ICEGRID_REMOVE */ + YYSYMBOL_ICEGRID_LIST = 15, /* ICEGRID_LIST */ + YYSYMBOL_ICEGRID_SHUTDOWN = 16, /* ICEGRID_SHUTDOWN */ + YYSYMBOL_ICEGRID_STRING = 17, /* ICEGRID_STRING */ + YYSYMBOL_ICEGRID_START = 18, /* ICEGRID_START */ + YYSYMBOL_ICEGRID_STOP = 19, /* ICEGRID_STOP */ + YYSYMBOL_ICEGRID_SIGNAL = 20, /* ICEGRID_SIGNAL */ + YYSYMBOL_ICEGRID_STDOUT = 21, /* ICEGRID_STDOUT */ + YYSYMBOL_ICEGRID_STDERR = 22, /* ICEGRID_STDERR */ + YYSYMBOL_ICEGRID_DESCRIBE = 23, /* ICEGRID_DESCRIBE */ + YYSYMBOL_ICEGRID_PROPERTIES = 24, /* ICEGRID_PROPERTIES */ + YYSYMBOL_ICEGRID_PROPERTY = 25, /* ICEGRID_PROPERTY */ + YYSYMBOL_ICEGRID_STATE = 26, /* ICEGRID_STATE */ + YYSYMBOL_ICEGRID_PID = 27, /* ICEGRID_PID */ + YYSYMBOL_ICEGRID_ENDPOINTS = 28, /* ICEGRID_ENDPOINTS */ + YYSYMBOL_ICEGRID_ACTIVATION = 29, /* ICEGRID_ACTIVATION */ + YYSYMBOL_ICEGRID_OBJECT = 30, /* ICEGRID_OBJECT */ + YYSYMBOL_ICEGRID_FIND = 31, /* ICEGRID_FIND */ + YYSYMBOL_ICEGRID_SHOW = 32, /* ICEGRID_SHOW */ + YYSYMBOL_ICEGRID_COPYING = 33, /* ICEGRID_COPYING */ + YYSYMBOL_ICEGRID_WARRANTY = 34, /* ICEGRID_WARRANTY */ + YYSYMBOL_ICEGRID_DIFF = 35, /* ICEGRID_DIFF */ + YYSYMBOL_ICEGRID_UPDATE = 36, /* ICEGRID_UPDATE */ + YYSYMBOL_ICEGRID_INSTANTIATE = 37, /* ICEGRID_INSTANTIATE */ + YYSYMBOL_ICEGRID_TEMPLATE = 38, /* ICEGRID_TEMPLATE */ + YYSYMBOL_ICEGRID_SERVICE = 39, /* ICEGRID_SERVICE */ + YYSYMBOL_ICEGRID_ENABLE = 40, /* ICEGRID_ENABLE */ + YYSYMBOL_ICEGRID_DISABLE = 41, /* ICEGRID_DISABLE */ + YYSYMBOL_42_ = 42, /* ';' */ + YYSYMBOL_YYACCEPT = 43, /* $accept */ + YYSYMBOL_start = 44, /* start */ + YYSYMBOL_commands = 45, /* commands */ + YYSYMBOL_checkInterrupted = 46, /* checkInterrupted */ + YYSYMBOL_command = 47, /* command */ + YYSYMBOL_strings = 48, /* strings */ + YYSYMBOL_keyword = 49 /* keyword */ }; typedef enum yysymbol_kind_t yysymbol_kind_t; + + /* Unqualified %code blocks. */ -#line 26 "src/IceGrid/Grammar.y" +#line 27 "src/IceGrid/Grammar.y" + // Forward declaration of the lexing function generated by flex, so bison knows about it. // This must match the definition of 'yylex' in the generated scanner. int yylex(YYSTYPE* yylvalp); + #line 215 "src/IceGrid/Grammar.cpp" #ifdef short -# undef short +# undef short #endif /* On compilers that do not define __PTRDIFF_MAX__ etc., make sure @@ -212,11 +222,11 @@ int yylex(YYSTYPE* yylvalp); so that the code can choose integer types of a good width. */ #ifndef __PTRDIFF_MAX__ -# include /* INFRINGES ON USER NAME SPACE */ -# if defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__ -# include /* INFRINGES ON USER NAME SPACE */ -# define YY_STDINT_H -# endif +# include /* INFRINGES ON USER NAME SPACE */ +# if defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__ +# include /* INFRINGES ON USER NAME SPACE */ +# define YY_STDINT_H +# endif #endif /* Narrow types that promote to a signed type and that can represent a @@ -246,15 +256,16 @@ typedef short yytype_int16; (aka HP-UX 11i v2) only through the end of 2022; see Table 2 of . */ #ifdef __hpux -# undef UINT_LEAST8_MAX -# undef UINT_LEAST16_MAX -# define UINT_LEAST8_MAX 255 -# define UINT_LEAST16_MAX 65535 +# undef UINT_LEAST8_MAX +# undef UINT_LEAST16_MAX +# define UINT_LEAST8_MAX 255 +# define UINT_LEAST16_MAX 65535 #endif #if defined __UINT_LEAST8_MAX__ && __UINT_LEAST8_MAX__ <= __INT_MAX__ typedef __UINT_LEAST8_TYPE__ yytype_uint8; -#elif (!defined __UINT_LEAST8_MAX__ && defined YY_STDINT_H && UINT_LEAST8_MAX <= INT_MAX) +#elif (!defined __UINT_LEAST8_MAX__ && defined YY_STDINT_H \ + && UINT_LEAST8_MAX <= INT_MAX) typedef uint_least8_t yytype_uint8; #elif !defined __UINT_LEAST8_MAX__ && UCHAR_MAX <= INT_MAX typedef unsigned char yytype_uint8; @@ -264,7 +275,8 @@ typedef short yytype_uint8; #if defined __UINT_LEAST16_MAX__ && __UINT_LEAST16_MAX__ <= __INT_MAX__ typedef __UINT_LEAST16_TYPE__ yytype_uint16; -#elif (!defined __UINT_LEAST16_MAX__ && defined YY_STDINT_H && UINT_LEAST16_MAX <= INT_MAX) +#elif (!defined __UINT_LEAST16_MAX__ && defined YY_STDINT_H \ + && UINT_LEAST16_MAX <= INT_MAX) typedef uint_least16_t yytype_uint16; #elif !defined __UINT_LEAST16_MAX__ && USHRT_MAX <= INT_MAX typedef unsigned short yytype_uint16; @@ -273,38 +285,42 @@ typedef int yytype_uint16; #endif #ifndef YYPTRDIFF_T -# if defined __PTRDIFF_TYPE__ && defined __PTRDIFF_MAX__ -# define YYPTRDIFF_T __PTRDIFF_TYPE__ -# define YYPTRDIFF_MAXIMUM __PTRDIFF_MAX__ -# elif defined PTRDIFF_MAX -# ifndef ptrdiff_t -# include /* INFRINGES ON USER NAME SPACE */ -# endif -# define YYPTRDIFF_T ptrdiff_t -# define YYPTRDIFF_MAXIMUM PTRDIFF_MAX -# else -# define YYPTRDIFF_T long -# define YYPTRDIFF_MAXIMUM LONG_MAX -# endif +# if defined __PTRDIFF_TYPE__ && defined __PTRDIFF_MAX__ +# define YYPTRDIFF_T __PTRDIFF_TYPE__ +# define YYPTRDIFF_MAXIMUM __PTRDIFF_MAX__ +# elif defined PTRDIFF_MAX +# ifndef ptrdiff_t +# include /* INFRINGES ON USER NAME SPACE */ +# endif +# define YYPTRDIFF_T ptrdiff_t +# define YYPTRDIFF_MAXIMUM PTRDIFF_MAX +# else +# define YYPTRDIFF_T long +# define YYPTRDIFF_MAXIMUM LONG_MAX +# endif #endif #ifndef YYSIZE_T -# ifdef __SIZE_TYPE__ -# define YYSIZE_T __SIZE_TYPE__ -# elif defined size_t -# define YYSIZE_T size_t -# elif defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__ -# include /* INFRINGES ON USER NAME SPACE */ -# define YYSIZE_T size_t -# else -# define YYSIZE_T unsigned -# endif +# ifdef __SIZE_TYPE__ +# define YYSIZE_T __SIZE_TYPE__ +# elif defined size_t +# define YYSIZE_T size_t +# elif defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__ +# include /* INFRINGES ON USER NAME SPACE */ +# define YYSIZE_T size_t +# else +# define YYSIZE_T unsigned +# endif #endif -#define YYSIZE_MAXIMUM \ - YY_CAST(YYPTRDIFF_T, (YYPTRDIFF_MAXIMUM < YY_CAST(YYSIZE_T, -1) ? YYPTRDIFF_MAXIMUM : YY_CAST(YYSIZE_T, -1))) +#define YYSIZE_MAXIMUM \ + YY_CAST (YYPTRDIFF_T, \ + (YYPTRDIFF_MAXIMUM < YY_CAST (YYSIZE_T, -1) \ + ? YYPTRDIFF_MAXIMUM \ + : YY_CAST (YYSIZE_T, -1))) + +#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X)) -#define YYSIZEOF(X) YY_CAST(YYPTRDIFF_T, sizeof(X)) /* Stored state numbers (used for stacks). */ typedef yytype_int16 yy_state_t; @@ -313,713 +329,1121 @@ typedef yytype_int16 yy_state_t; typedef int yy_state_fast_t; #ifndef YY_ -# if defined YYENABLE_NLS && YYENABLE_NLS -# if ENABLE_NLS -# include /* INFRINGES ON USER NAME SPACE */ -# define YY_(Msgid) dgettext("bison-runtime", Msgid) -# endif -# endif -# ifndef YY_ -# define YY_(Msgid) Msgid -# endif +# if defined YYENABLE_NLS && YYENABLE_NLS +# if ENABLE_NLS +# include /* INFRINGES ON USER NAME SPACE */ +# define YY_(Msgid) dgettext ("bison-runtime", Msgid) +# endif +# endif +# ifndef YY_ +# define YY_(Msgid) Msgid +# endif #endif + #ifndef YY_ATTRIBUTE_PURE -# if defined __GNUC__ && 2 < __GNUC__ + (96 <= __GNUC_MINOR__) -# define YY_ATTRIBUTE_PURE __attribute__((__pure__)) -# else -# define YY_ATTRIBUTE_PURE -# endif +# if defined __GNUC__ && 2 < __GNUC__ + (96 <= __GNUC_MINOR__) +# define YY_ATTRIBUTE_PURE __attribute__ ((__pure__)) +# else +# define YY_ATTRIBUTE_PURE +# endif #endif #ifndef YY_ATTRIBUTE_UNUSED -# if defined __GNUC__ && 2 < __GNUC__ + (7 <= __GNUC_MINOR__) -# define YY_ATTRIBUTE_UNUSED __attribute__((__unused__)) -# else -# define YY_ATTRIBUTE_UNUSED -# endif +# if defined __GNUC__ && 2 < __GNUC__ + (7 <= __GNUC_MINOR__) +# define YY_ATTRIBUTE_UNUSED __attribute__ ((__unused__)) +# else +# define YY_ATTRIBUTE_UNUSED +# endif #endif /* Suppress unused-variable warnings by "using" E. */ -#if !defined lint || defined __GNUC__ -# define YY_USE(E) ((void)(E)) +#if ! defined lint || defined __GNUC__ +# define YY_USE(E) ((void) (E)) #else -# define YY_USE(E) /* empty */ +# define YY_USE(E) /* empty */ #endif /* Suppress an incorrect diagnostic about yylval being uninitialized. */ -#if defined __GNUC__ && !defined __ICC && 406 <= __GNUC__ * 100 + __GNUC_MINOR__ -# if __GNUC__ * 100 + __GNUC_MINOR__ < 407 -# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ - _Pragma("GCC diagnostic push") _Pragma("GCC diagnostic ignored \"-Wuninitialized\"") -# else -# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ - _Pragma("GCC diagnostic push") _Pragma("GCC diagnostic ignored \"-Wuninitialized\"") \ - _Pragma("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") -# endif -# define YY_IGNORE_MAYBE_UNINITIALIZED_END _Pragma("GCC diagnostic pop") +#if defined __GNUC__ && ! defined __ICC && 406 <= __GNUC__ * 100 + __GNUC_MINOR__ +# if __GNUC__ * 100 + __GNUC_MINOR__ < 407 +# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ + _Pragma ("GCC diagnostic push") \ + _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"") +# else +# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ + _Pragma ("GCC diagnostic push") \ + _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"") \ + _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") +# endif +# define YY_IGNORE_MAYBE_UNINITIALIZED_END \ + _Pragma ("GCC diagnostic pop") #else -# define YY_INITIAL_VALUE(Value) Value +# define YY_INITIAL_VALUE(Value) Value #endif #ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN -# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN -# define YY_IGNORE_MAYBE_UNINITIALIZED_END +# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN +# define YY_IGNORE_MAYBE_UNINITIALIZED_END #endif #ifndef YY_INITIAL_VALUE -# define YY_INITIAL_VALUE(Value) /* Nothing. */ +# define YY_INITIAL_VALUE(Value) /* Nothing. */ #endif -#if defined __cplusplus && defined __GNUC__ && !defined __ICC && 6 <= __GNUC__ -# define YY_IGNORE_USELESS_CAST_BEGIN \ - _Pragma("GCC diagnostic push") _Pragma("GCC diagnostic ignored \"-Wuseless-cast\"") -# define YY_IGNORE_USELESS_CAST_END _Pragma("GCC diagnostic pop") +#if defined __cplusplus && defined __GNUC__ && ! defined __ICC && 6 <= __GNUC__ +# define YY_IGNORE_USELESS_CAST_BEGIN \ + _Pragma ("GCC diagnostic push") \ + _Pragma ("GCC diagnostic ignored \"-Wuseless-cast\"") +# define YY_IGNORE_USELESS_CAST_END \ + _Pragma ("GCC diagnostic pop") #endif #ifndef YY_IGNORE_USELESS_CAST_BEGIN -# define YY_IGNORE_USELESS_CAST_BEGIN -# define YY_IGNORE_USELESS_CAST_END +# define YY_IGNORE_USELESS_CAST_BEGIN +# define YY_IGNORE_USELESS_CAST_END #endif -#define YY_ASSERT(E) ((void)(0 && (E))) + +#define YY_ASSERT(E) ((void) (0 && (E))) #if !defined yyoverflow /* The parser invokes alloca or malloc; define the necessary symbols. */ -# ifdef YYSTACK_USE_ALLOCA -# if YYSTACK_USE_ALLOCA -# ifdef __GNUC__ -# define YYSTACK_ALLOC __builtin_alloca -# elif defined __BUILTIN_VA_ARG_INCR -# include /* INFRINGES ON USER NAME SPACE */ -# elif defined _AIX -# define YYSTACK_ALLOC __alloca -# elif defined _MSC_VER -# include /* INFRINGES ON USER NAME SPACE */ -# define alloca _alloca -# else -# define YYSTACK_ALLOC alloca -# if !defined _ALLOCA_H && !defined EXIT_SUCCESS -# include /* INFRINGES ON USER NAME SPACE */ -/* Use EXIT_SUCCESS as a witness for stdlib.h. */ -# ifndef EXIT_SUCCESS -# define EXIT_SUCCESS 0 -# endif -# endif -# endif -# endif -# endif - -# ifdef YYSTACK_ALLOC -/* Pacify GCC's 'empty if-body' warning. */ -# define YYSTACK_FREE(Ptr) \ - do \ - { /* empty */ \ - ; \ - } while (0) -# ifndef YYSTACK_ALLOC_MAXIMUM -/* The OS might guarantee only one guard page at the bottom of the stack, - and a page size can be as small as 4096 bytes. So we cannot safely - invoke alloca (N) if N exceeds 4096. Use a slightly smaller number - to allow for a few compiler-allocated temporary stack slots. */ -# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */ -# endif -# else -# define YYSTACK_ALLOC YYMALLOC -# define YYSTACK_FREE YYFREE -# ifndef YYSTACK_ALLOC_MAXIMUM -# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM -# endif -# if ( \ - defined __cplusplus && !defined EXIT_SUCCESS && \ - !((defined YYMALLOC || defined malloc) && (defined YYFREE || defined free))) -# include /* INFRINGES ON USER NAME SPACE */ -# ifndef EXIT_SUCCESS -# define EXIT_SUCCESS 0 -# endif -# endif -# ifndef YYMALLOC -# define YYMALLOC malloc -# if !defined malloc && !defined EXIT_SUCCESS -void* malloc(YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ -# endif -# endif -# ifndef YYFREE -# define YYFREE free -# if !defined free && !defined EXIT_SUCCESS -void free(void*); /* INFRINGES ON USER NAME SPACE */ -# endif -# endif +# ifdef YYSTACK_USE_ALLOCA +# if YYSTACK_USE_ALLOCA +# ifdef __GNUC__ +# define YYSTACK_ALLOC __builtin_alloca +# elif defined __BUILTIN_VA_ARG_INCR +# include /* INFRINGES ON USER NAME SPACE */ +# elif defined _AIX +# define YYSTACK_ALLOC __alloca +# elif defined _MSC_VER +# include /* INFRINGES ON USER NAME SPACE */ +# define alloca _alloca +# else +# define YYSTACK_ALLOC alloca +# if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS +# include /* INFRINGES ON USER NAME SPACE */ + /* Use EXIT_SUCCESS as a witness for stdlib.h. */ +# ifndef EXIT_SUCCESS +# define EXIT_SUCCESS 0 +# endif # endif +# endif +# endif +# endif + +# ifdef YYSTACK_ALLOC + /* Pacify GCC's 'empty if-body' warning. */ +# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0) +# ifndef YYSTACK_ALLOC_MAXIMUM + /* The OS might guarantee only one guard page at the bottom of the stack, + and a page size can be as small as 4096 bytes. So we cannot safely + invoke alloca (N) if N exceeds 4096. Use a slightly smaller number + to allow for a few compiler-allocated temporary stack slots. */ +# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */ +# endif +# else +# define YYSTACK_ALLOC YYMALLOC +# define YYSTACK_FREE YYFREE +# ifndef YYSTACK_ALLOC_MAXIMUM +# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM +# endif +# if (defined __cplusplus && ! defined EXIT_SUCCESS \ + && ! ((defined YYMALLOC || defined malloc) \ + && (defined YYFREE || defined free))) +# include /* INFRINGES ON USER NAME SPACE */ +# ifndef EXIT_SUCCESS +# define EXIT_SUCCESS 0 +# endif +# endif +# ifndef YYMALLOC +# define YYMALLOC malloc +# if ! defined malloc && ! defined EXIT_SUCCESS +void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ +# endif +# endif +# ifndef YYFREE +# define YYFREE free +# if ! defined free && ! defined EXIT_SUCCESS +void free (void *); /* INFRINGES ON USER NAME SPACE */ +# endif +# endif +# endif #endif /* !defined yyoverflow */ -#if (!defined yyoverflow && (!defined __cplusplus || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) +#if (! defined yyoverflow \ + && (! defined __cplusplus \ + || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) /* A type that is properly aligned for any stack member. */ union yyalloc { - yy_state_t yyss_alloc; - YYSTYPE yyvs_alloc; + yy_state_t yyss_alloc; + YYSTYPE yyvs_alloc; }; /* The size of the maximum gap between one aligned stack and the next. */ -# define YYSTACK_GAP_MAXIMUM (YYSIZEOF(union yyalloc) - 1) +# define YYSTACK_GAP_MAXIMUM (YYSIZEOF (union yyalloc) - 1) /* The size of an array large to enough to hold all stacks, each with N elements. */ -# define YYSTACK_BYTES(N) ((N) * (YYSIZEOF(yy_state_t) + YYSIZEOF(YYSTYPE)) + YYSTACK_GAP_MAXIMUM) +# define YYSTACK_BYTES(N) \ + ((N) * (YYSIZEOF (yy_state_t) + YYSIZEOF (YYSTYPE)) \ + + YYSTACK_GAP_MAXIMUM) -# define YYCOPY_NEEDED 1 +# define YYCOPY_NEEDED 1 /* Relocate STACK from its old location to the new one. The local variables YYSIZE and YYSTACKSIZE give the old and new number of 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_alloc, Stack) \ - do \ - { \ - YYPTRDIFF_T yynewbytes; \ - YYCOPY(&yyptr->Stack_alloc, Stack, yysize); \ - Stack = &yyptr->Stack_alloc; \ - yynewbytes = yystacksize * YYSIZEOF(*Stack) + YYSTACK_GAP_MAXIMUM; \ - yyptr += yynewbytes / YYSIZEOF(*yyptr); \ - } while (0) +# define YYSTACK_RELOCATE(Stack_alloc, Stack) \ + do \ + { \ + YYPTRDIFF_T yynewbytes; \ + YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ + Stack = &yyptr->Stack_alloc; \ + yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \ + yyptr += yynewbytes / YYSIZEOF (*yyptr); \ + } \ + while (0) #endif #if defined YYCOPY_NEEDED && YYCOPY_NEEDED /* Copy COUNT objects from SRC to DST. The source and destination do not overlap. */ -# ifndef YYCOPY -# if defined __GNUC__ && 1 < __GNUC__ -# define YYCOPY(Dst, Src, Count) __builtin_memcpy(Dst, Src, YY_CAST(YYSIZE_T, (Count)) * sizeof(*(Src))) -# else -# define YYCOPY(Dst, Src, Count) \ - do \ - { \ - YYPTRDIFF_T yyi; \ - for (yyi = 0; yyi < (Count); yyi++) \ - (Dst)[yyi] = (Src)[yyi]; \ - } while (0) -# endif -# endif +# ifndef YYCOPY +# if defined __GNUC__ && 1 < __GNUC__ +# define YYCOPY(Dst, Src, Count) \ + __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src))) +# else +# define YYCOPY(Dst, Src, Count) \ + do \ + { \ + YYPTRDIFF_T yyi; \ + for (yyi = 0; yyi < (Count); yyi++) \ + (Dst)[yyi] = (Src)[yyi]; \ + } \ + while (0) +# endif +# endif #endif /* !YYCOPY_NEEDED */ /* YYFINAL -- State number of the termination state. */ -#define YYFINAL 4 +#define YYFINAL 4 /* YYLAST -- Last index in YYTABLE. */ -#define YYLAST 2468 +#define YYLAST 2468 /* YYNTOKENS -- Number of terminals. */ -#define YYNTOKENS 43 +#define YYNTOKENS 43 /* YYNNTS -- Number of nonterminals. */ -#define YYNNTS 7 +#define YYNNTS 7 /* YYNRULES -- Number of rules. */ -#define YYNRULES 167 +#define YYNRULES 167 /* YYNSTATES -- Number of states. */ -#define YYNSTATES 356 +#define YYNSTATES 356 /* YYMAXUTOK -- Last valid token kind. */ -#define YYMAXUTOK 296 +#define YYMAXUTOK 296 + /* YYTRANSLATE(TOKEN-NUM) -- Symbol number corresponding to TOKEN-NUM as returned by yylex, with out-of-bounds checking. */ -#define YYTRANSLATE(YYX) \ - (0 <= (YYX) && (YYX) <= YYMAXUTOK ? YY_CAST(yysymbol_kind_t, yytranslate[YYX]) : YYSYMBOL_YYUNDEF) +#define YYTRANSLATE(YYX) \ + (0 <= (YYX) && (YYX) <= YYMAXUTOK \ + ? YY_CAST (yysymbol_kind_t, yytranslate[YYX]) \ + : YYSYMBOL_YYUNDEF) /* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM as returned by yylex. */ -static const yytype_int8 yytranslate[] = { - 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 42, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, - 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41}; +static const yytype_int8 yytranslate[] = +{ + 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 42, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 1, 2, 3, 4, + 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, + 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, + 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, + 35, 36, 37, 38, 39, 40, 41 +}; #if YYDEBUG /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */ -static const yytype_int16 yyrline[] = { - 0, 129, 129, 132, 140, 143, 151, 160, 164, 168, 172, 176, 180, 184, 188, 192, 196, 200, 204, 208, 212, - 216, 220, 224, 228, 232, 236, 240, 244, 248, 252, 256, 260, 264, 268, 272, 276, 280, 284, 288, 292, 296, - 300, 304, 308, 312, 316, 320, 324, 328, 332, 336, 340, 344, 348, 352, 356, 360, 364, 368, 372, 376, 380, - 384, 388, 392, 396, 400, 404, 408, 412, 416, 420, 424, 428, 432, 436, 440, 444, 448, 452, 456, 460, 464, - 468, 472, 476, 480, 484, 488, 492, 496, 500, 504, 508, 512, 516, 520, 524, 528, 532, 536, 540, 544, 548, - 552, 556, 560, 564, 568, 572, 576, 580, 584, 588, 599, 603, 614, 625, 629, 633, 637, 643, 648, 653, 657, - 665, 670, 675, 681, 687, 696, 699, 702, 705, 708, 711, 714, 717, 720, 723, 726, 729, 732, 735, 738, 741, - 744, 747, 750, 753, 756, 759, 762, 765, 768, 771, 774, 777, 780, 783, 786, 789, 792, 795, 798, 801, 804}; +static const yytype_int16 yyrline[] = +{ + 0, 130, 130, 133, 141, 144, 152, 161, 165, 169, + 173, 177, 181, 185, 189, 193, 197, 201, 205, 209, + 213, 217, 221, 225, 229, 233, 237, 241, 245, 249, + 253, 257, 261, 265, 269, 273, 277, 281, 285, 289, + 293, 297, 301, 305, 309, 313, 317, 321, 325, 329, + 333, 337, 341, 345, 349, 353, 357, 361, 365, 369, + 373, 377, 381, 385, 389, 393, 397, 401, 405, 409, + 413, 417, 421, 425, 429, 433, 437, 441, 445, 449, + 453, 457, 461, 465, 469, 473, 477, 481, 485, 489, + 493, 497, 501, 505, 509, 513, 517, 521, 525, 529, + 533, 537, 541, 545, 549, 553, 557, 561, 565, 569, + 573, 577, 581, 585, 589, 600, 604, 615, 626, 630, + 634, 638, 644, 649, 654, 658, 666, 671, 676, 682, + 688, 697, 700, 703, 706, 709, 712, 715, 718, 721, + 724, 727, 730, 733, 736, 739, 742, 745, 748, 751, + 754, 757, 760, 763, 766, 769, 772, 775, 778, 781, + 784, 787, 790, 793, 796, 799, 802, 805 +}; #endif /** Accessing symbol of state STATE. */ -#define YY_ACCESSING_SYMBOL(State) YY_CAST(yysymbol_kind_t, yystos[State]) +#define YY_ACCESSING_SYMBOL(State) YY_CAST (yysymbol_kind_t, yystos[State]) #if YYDEBUG || 0 /* The user-facing name of the symbol whose (internal) number is YYSYMBOL. No bounds checking. */ -static const char* yysymbol_name(yysymbol_kind_t yysymbol) YY_ATTRIBUTE_UNUSED; +static const char *yysymbol_name (yysymbol_kind_t yysymbol) YY_ATTRIBUTE_UNUSED; /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. First, the terminals, then, starting at YYNTOKENS, nonterminals. */ -static const char* const yytname[] = { - "\"end of file\"", - "error", - "\"invalid token\"", - "ICE_GRID_HELP", - "ICE_GRID_EXIT", - "ICE_GRID_APPLICATION", - "ICE_GRID_NODE", - "ICE_GRID_REGISTRY", - "ICE_GRID_SERVER", - "ICE_GRID_ADAPTER", - "ICE_GRID_PING", - "ICE_GRID_LOAD", - "ICE_GRID_SOCKETS", - "ICE_GRID_ADD", - "ICE_GRID_REMOVE", - "ICE_GRID_LIST", - "ICE_GRID_SHUTDOWN", - "ICE_GRID_STRING", - "ICE_GRID_START", - "ICE_GRID_STOP", - "ICE_GRID_SIGNAL", - "ICE_GRID_STDOUT", - "ICE_GRID_STDERR", - "ICE_GRID_DESCRIBE", - "ICE_GRID_PROPERTIES", - "ICE_GRID_PROPERTY", - "ICE_GRID_STATE", - "ICE_GRID_PID", - "ICE_GRID_ENDPOINTS", - "ICE_GRID_ACTIVATION", - "ICE_GRID_OBJECT", - "ICE_GRID_FIND", - "ICE_GRID_SHOW", - "ICE_GRID_COPYING", - "ICE_GRID_WARRANTY", - "ICE_GRID_DIFF", - "ICE_GRID_UPDATE", - "ICE_GRID_INSTANTIATE", - "ICE_GRID_TEMPLATE", - "ICE_GRID_SERVICE", - "ICE_GRID_ENABLE", - "ICE_GRID_DISABLE", - "';'", - "$accept", - "start", - "commands", - "checkInterrupted", - "command", - "strings", - "keyword", - YY_NULLPTR}; - -static const char* -yysymbol_name(yysymbol_kind_t yysymbol) -{ - return yytname[yysymbol]; +static const char *const yytname[] = +{ + "\"end of file\"", "error", "\"invalid token\"", "ICEGRID_HELP", + "ICEGRID_EXIT", "ICEGRID_APPLICATION", "ICEGRID_NODE", + "ICEGRID_REGISTRY", "ICEGRID_SERVER", "ICEGRID_ADAPTER", "ICEGRID_PING", + "ICEGRID_LOAD", "ICEGRID_SOCKETS", "ICEGRID_ADD", "ICEGRID_REMOVE", + "ICEGRID_LIST", "ICEGRID_SHUTDOWN", "ICEGRID_STRING", "ICEGRID_START", + "ICEGRID_STOP", "ICEGRID_SIGNAL", "ICEGRID_STDOUT", "ICEGRID_STDERR", + "ICEGRID_DESCRIBE", "ICEGRID_PROPERTIES", "ICEGRID_PROPERTY", + "ICEGRID_STATE", "ICEGRID_PID", "ICEGRID_ENDPOINTS", + "ICEGRID_ACTIVATION", "ICEGRID_OBJECT", "ICEGRID_FIND", "ICEGRID_SHOW", + "ICEGRID_COPYING", "ICEGRID_WARRANTY", "ICEGRID_DIFF", "ICEGRID_UPDATE", + "ICEGRID_INSTANTIATE", "ICEGRID_TEMPLATE", "ICEGRID_SERVICE", + "ICEGRID_ENABLE", "ICEGRID_DISABLE", "';'", "$accept", "start", + "commands", "checkInterrupted", "command", "strings", "keyword", YY_NULLPTR +}; + +static const char * +yysymbol_name (yysymbol_kind_t yysymbol) +{ + return yytname[yysymbol]; } #endif #define YYPACT_NINF (-66) -#define yypact_value_is_default(Yyn) ((Yyn) == YYPACT_NINF) +#define yypact_value_is_default(Yyn) \ + ((Yyn) == YYPACT_NINF) #define YYTABLE_NINF (-4) -#define yytable_value_is_error(Yyn) 0 +#define yytable_value_is_error(Yyn) \ + 0 /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing STATE-NUM. */ -static const yytype_int16 yypact[] = { - 31, 52, 54, 59, -66, 59, 19, 171, 64, 2345, 2351, 100, 119, 103, -66, -66, -66, -66, -66, - -66, -66, 108, -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, 135, -66, 10, -66, - -66, -66, -66, -66, -66, 89, -66, -66, -66, -66, 102, -66, -66, 78, -66, -66, -66, -66, -66, - -66, 2316, -66, -66, -66, -66, 210, -66, 250, 289, 328, 367, 406, 445, 484, 523, 562, 601, 640, - 679, 718, 757, 796, 835, 874, 913, 952, 991, 1030, 1069, 1108, 1147, 1186, 1225, 1264, 1303, 1342, 1381, - 1420, 99, 1459, 1498, 1537, 1576, 1615, 79, 1654, 1693, 1732, 1771, 1810, 82, 86, 1849, 1888, 1927, 1966, - 2005, 2044, 34, 87, 88, 134, -66, 2083, 105, 2122, 2316, -66, 2160, 110, 111, 112, 113, 114, 120, - 122, 123, 126, 127, 129, 2322, 2323, 2327, 2328, 2329, 2330, 2331, 2333, 2334, 2335, 2336, 2337, 2340, 2342, - 2343, 2344, 2346, 2347, 2348, 2349, 2350, 2352, 2353, 2354, 2355, 2356, 2357, 2358, 2359, 2360, 2361, 2362, 2363, - 2364, 2365, 2366, 2367, 2368, 2369, 2370, 2371, 2372, 2373, 2374, 2375, 2376, 2377, 2378, 2379, 2380, 2381, 2382, - 2200, 2239, 2383, 2384, 2385, 2386, 2387, 2388, 2389, 2390, 2391, 2392, -66, 2393, 2394, 2395, 2396, 2397, 2398, - 2399, 2400, 2401, 2402, -66, -66, 2403, 2404, 2405, 2406, 2407, 2408, 2409, 2410, 2411, 2412, 2413, 2414, 2415, - 2278, -66, -66, 2416, 2316, -66, -66, 2316, -66, 2417, 2316, -66, 2418, -66, -66, -66, -66, -66, -66, - -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, - -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, - -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, - 2419, 2420, 2421, 2422, -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, - -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, 2423, - 2424, -66, -66, -66, -66, 2425, -66, -66, -66, -66, -66, -66, -66, -66}; +static const yytype_int16 yypact[] = +{ + 31, 52, 54, 59, -66, 59, 19, 171, 64, 2345, + 2351, 100, 119, 103, -66, -66, -66, -66, -66, -66, + -66, 108, -66, -66, -66, -66, -66, -66, -66, -66, + -66, -66, -66, -66, 135, -66, 10, -66, -66, -66, + -66, -66, -66, 89, -66, -66, -66, -66, 102, -66, + -66, 78, -66, -66, -66, -66, -66, -66, 2316, -66, + -66, -66, -66, 210, -66, 250, 289, 328, 367, 406, + 445, 484, 523, 562, 601, 640, 679, 718, 757, 796, + 835, 874, 913, 952, 991, 1030, 1069, 1108, 1147, 1186, + 1225, 1264, 1303, 1342, 1381, 1420, 99, 1459, 1498, 1537, + 1576, 1615, 79, 1654, 1693, 1732, 1771, 1810, 82, 86, + 1849, 1888, 1927, 1966, 2005, 2044, 34, 87, 88, 134, + -66, 2083, 105, 2122, 2316, -66, 2160, 110, 111, 112, + 113, 114, 120, 122, 123, 126, 127, 129, 2322, 2323, + 2327, 2328, 2329, 2330, 2331, 2333, 2334, 2335, 2336, 2337, + 2340, 2342, 2343, 2344, 2346, 2347, 2348, 2349, 2350, 2352, + 2353, 2354, 2355, 2356, 2357, 2358, 2359, 2360, 2361, 2362, + 2363, 2364, 2365, 2366, 2367, 2368, 2369, 2370, 2371, 2372, + 2373, 2374, 2375, 2376, 2377, 2378, 2379, 2380, 2381, 2382, + 2200, 2239, 2383, 2384, 2385, 2386, 2387, 2388, 2389, 2390, + 2391, 2392, -66, 2393, 2394, 2395, 2396, 2397, 2398, 2399, + 2400, 2401, 2402, -66, -66, 2403, 2404, 2405, 2406, 2407, + 2408, 2409, 2410, 2411, 2412, 2413, 2414, 2415, 2278, -66, + -66, 2416, 2316, -66, -66, 2316, -66, 2417, 2316, -66, + 2418, -66, -66, -66, -66, -66, -66, -66, -66, -66, + -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, + -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, + -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, + -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, + -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, + -66, -66, -66, -66, 2419, 2420, 2421, 2422, -66, -66, + -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, + -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, + -66, -66, -66, -66, -66, -66, -66, -66, -66, -66, + -66, 2423, 2424, -66, -66, -66, -66, 2425, -66, -66, + -66, -66, -66, -66, -66, -66 +}; /* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM. Performed when YYTABLE does not specify something else to do. Zero means the default is an error. */ -static const yytype_uint8 yydefact[] = { - 6, 0, 6, 0, 1, 0, 0, 0, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 0, 144, - 145, 146, 167, 166, 147, 150, 151, 148, 149, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, - 125, 5, 0, 4, 124, 0, 131, 132, 133, 134, 135, 136, 130, 154, 156, 163, 7, 0, 8, 130, 130, 130, 130, - 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, - 130, 130, 130, 130, 0, 130, 130, 130, 130, 130, 0, 130, 130, 130, 130, 130, 0, 0, 130, 130, 130, 130, 130, - 130, 0, 0, 0, 0, 119, 130, 0, 130, 130, 113, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 130, 130, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 123, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 111, 112, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 130, 122, - 120, 0, 130, 126, 118, 130, 127, 0, 130, 114, 0, 10, 9, 12, 11, 20, 19, 18, 17, 14, 13, 16, 15, - 32, 31, 34, 33, 36, 35, 40, 39, 38, 37, 30, 29, 42, 41, 46, 45, 50, 49, 48, 47, 44, 43, 52, - 51, 54, 53, 80, 79, 58, 57, 60, 59, 62, 61, 64, 63, 66, 65, 56, 55, 72, 71, 74, 73, 68, 67, - 70, 69, 82, 81, 25, 0, 0, 0, 0, 76, 75, 78, 77, 98, 97, 100, 99, 96, 95, 102, 101, 104, 103, - 108, 107, 110, 109, 106, 105, 94, 93, 84, 83, 86, 85, 88, 87, 90, 89, 92, 91, 28, 0, 0, 121, 128, - 129, 115, 0, 116, 22, 21, 24, 23, 27, 26, 117}; +static const yytype_uint8 yydefact[] = +{ + 6, 0, 6, 0, 1, 0, 0, 0, 131, 132, + 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, + 143, 0, 144, 145, 146, 167, 166, 147, 150, 151, + 148, 149, 152, 153, 154, 155, 156, 157, 158, 159, + 160, 161, 162, 163, 164, 165, 125, 5, 0, 4, + 124, 0, 131, 132, 133, 134, 135, 136, 130, 154, + 156, 163, 7, 0, 8, 130, 130, 130, 130, 130, + 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, + 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, + 130, 130, 130, 130, 130, 130, 0, 130, 130, 130, + 130, 130, 0, 130, 130, 130, 130, 130, 0, 0, + 130, 130, 130, 130, 130, 130, 0, 0, 0, 0, + 119, 130, 0, 130, 130, 113, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 130, 130, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 123, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 111, 112, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 130, 122, + 120, 0, 130, 126, 118, 130, 127, 0, 130, 114, + 0, 10, 9, 12, 11, 20, 19, 18, 17, 14, + 13, 16, 15, 32, 31, 34, 33, 36, 35, 40, + 39, 38, 37, 30, 29, 42, 41, 46, 45, 50, + 49, 48, 47, 44, 43, 52, 51, 54, 53, 80, + 79, 58, 57, 60, 59, 62, 61, 64, 63, 66, + 65, 56, 55, 72, 71, 74, 73, 68, 67, 70, + 69, 82, 81, 25, 0, 0, 0, 0, 76, 75, + 78, 77, 98, 97, 100, 99, 96, 95, 102, 101, + 104, 103, 108, 107, 110, 109, 106, 105, 94, 93, + 84, 83, 86, 85, 88, 87, 90, 89, 92, 91, + 28, 0, 0, 121, 128, 129, 115, 0, 116, 22, + 21, 24, 23, 27, 26, 117 +}; /* YYPGOTO[NTERM-NUM]. */ -static const yytype_int16 yypgoto[] = {-66, -66, -66, 159, 2463, -65, 48}; +static const yytype_int16 yypgoto[] = +{ + -66, -66, -66, 159, 2463, -65, 48 +}; /* YYDEFGOTO[NTERM-NUM]. */ -static const yytype_int8 yydefgoto[] = {0, 1, 2, 3, 47, 122, 123}; +static const yytype_int8 yydefgoto[] = +{ + 0, 1, 2, 3, 47, 122, 123 +}; /* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If positive, shift that token. If negative, reduce the rule whose number is the opposite. If YYTABLE_NINF, syntax error. */ -static const yytype_int16 yytable[] = { - 128, 130, 132, 134, 136, 138, 140, 142, 144, 146, 148, 150, 152, 154, 156, 158, 160, 162, 164, 166, 168, 170, 172, - 174, 176, 178, 180, 182, 184, 186, 188, -3, 193, 195, 197, 199, 201, 227, 204, 206, 208, 210, 212, 108, 109, 216, - 218, 220, 222, 224, 226, 48, 4, 48, -2, 63, 233, 228, 236, 237, 6, 50, 7, 8, 9, 10, 11, 12, 13, - 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, - 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 189, 117, 110, 118, 64, 111, 112, 102, 78, 126, 113, 114, 115, - 79, 80, 99, 100, 119, 120, 202, 190, 81, 213, 305, 307, 116, 214, 229, 230, 101, 82, 83, 84, 231, 191, 85, - 86, 87, 88, 89, 90, 91, 92, 93, 94, 234, 103, 104, 105, 95, 241, 242, 243, 244, 245, 96, 106, 97, 98, - 5, 246, 342, 247, 248, 107, 344, 249, 250, 345, 251, 51, 347, 240, 52, 53, 54, 55, 56, 57, 14, 15, 16, - 17, 18, 19, 20, 58, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, - 40, 41, 42, 61, 44, 45, 62, 52, 53, 54, 55, 56, 57, 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, - 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, 44, 45, 125, - 127, 52, 53, 54, 55, 56, 57, 14, 15, 16, 17, 18, 19, 20, 121, 22, 23, 24, 25, 26, 27, 28, 29, - 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, 44, 45, 129, 52, 53, 54, 55, 56, 57, - 14, 15, 16, 17, 18, 19, 20, 121, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 59, 35, 60, - 37, 38, 39, 40, 41, 42, 61, 44, 45, 131, 52, 53, 54, 55, 56, 57, 14, 15, 16, 17, 18, 19, 20, - 121, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, - 44, 45, 133, 52, 53, 54, 55, 56, 57, 14, 15, 16, 17, 18, 19, 20, 121, 22, 23, 24, 25, 26, 27, - 28, 29, 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, 44, 45, 135, 52, 53, 54, 55, - 56, 57, 14, 15, 16, 17, 18, 19, 20, 121, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 59, - 35, 60, 37, 38, 39, 40, 41, 42, 61, 44, 45, 137, 52, 53, 54, 55, 56, 57, 14, 15, 16, 17, 18, - 19, 20, 121, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, 40, 41, - 42, 61, 44, 45, 139, 52, 53, 54, 55, 56, 57, 14, 15, 16, 17, 18, 19, 20, 121, 22, 23, 24, 25, - 26, 27, 28, 29, 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, 44, 45, 141, 52, 53, - 54, 55, 56, 57, 14, 15, 16, 17, 18, 19, 20, 121, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, - 33, 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, 44, 45, 143, 52, 53, 54, 55, 56, 57, 14, 15, 16, - 17, 18, 19, 20, 121, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, - 40, 41, 42, 61, 44, 45, 145, 52, 53, 54, 55, 56, 57, 14, 15, 16, 17, 18, 19, 20, 121, 22, 23, - 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, 44, 45, 147, - 52, 53, 54, 55, 56, 57, 14, 15, 16, 17, 18, 19, 20, 121, 22, 23, 24, 25, 26, 27, 28, 29, 30, - 31, 32, 33, 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, 44, 45, 149, 52, 53, 54, 55, 56, 57, 14, - 15, 16, 17, 18, 19, 20, 121, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 59, 35, 60, 37, - 38, 39, 40, 41, 42, 61, 44, 45, 151, 52, 53, 54, 55, 56, 57, 14, 15, 16, 17, 18, 19, 20, 121, - 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, 44, - 45, 153, 52, 53, 54, 55, 56, 57, 14, 15, 16, 17, 18, 19, 20, 121, 22, 23, 24, 25, 26, 27, 28, - 29, 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, 44, 45, 155, 52, 53, 54, 55, 56, - 57, 14, 15, 16, 17, 18, 19, 20, 121, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 59, 35, - 60, 37, 38, 39, 40, 41, 42, 61, 44, 45, 157, 52, 53, 54, 55, 56, 57, 14, 15, 16, 17, 18, 19, - 20, 121, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, 40, 41, 42, - 61, 44, 45, 159, 52, 53, 54, 55, 56, 57, 14, 15, 16, 17, 18, 19, 20, 121, 22, 23, 24, 25, 26, - 27, 28, 29, 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, 44, 45, 161, 52, 53, 54, - 55, 56, 57, 14, 15, 16, 17, 18, 19, 20, 121, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, - 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, 44, 45, 163, 52, 53, 54, 55, 56, 57, 14, 15, 16, 17, - 18, 19, 20, 121, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, 40, - 41, 42, 61, 44, 45, 165, 52, 53, 54, 55, 56, 57, 14, 15, 16, 17, 18, 19, 20, 121, 22, 23, 24, - 25, 26, 27, 28, 29, 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, 44, 45, 167, 52, - 53, 54, 55, 56, 57, 14, 15, 16, 17, 18, 19, 20, 121, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, - 32, 33, 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, 44, 45, 169, 52, 53, 54, 55, 56, 57, 14, 15, - 16, 17, 18, 19, 20, 121, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 59, 35, 60, 37, 38, - 39, 40, 41, 42, 61, 44, 45, 171, 52, 53, 54, 55, 56, 57, 14, 15, 16, 17, 18, 19, 20, 121, 22, - 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, 44, 45, - 173, 52, 53, 54, 55, 56, 57, 14, 15, 16, 17, 18, 19, 20, 121, 22, 23, 24, 25, 26, 27, 28, 29, - 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, 44, 45, 175, 52, 53, 54, 55, 56, 57, - 14, 15, 16, 17, 18, 19, 20, 121, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 59, 35, 60, - 37, 38, 39, 40, 41, 42, 61, 44, 45, 177, 52, 53, 54, 55, 56, 57, 14, 15, 16, 17, 18, 19, 20, - 121, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, - 44, 45, 179, 52, 53, 54, 55, 56, 57, 14, 15, 16, 17, 18, 19, 20, 121, 22, 23, 24, 25, 26, 27, - 28, 29, 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, 44, 45, 181, 52, 53, 54, 55, - 56, 57, 14, 15, 16, 17, 18, 19, 20, 121, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 59, - 35, 60, 37, 38, 39, 40, 41, 42, 61, 44, 45, 183, 52, 53, 54, 55, 56, 57, 14, 15, 16, 17, 18, - 19, 20, 121, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, 40, 41, - 42, 61, 44, 45, 185, 52, 53, 54, 55, 56, 57, 14, 15, 16, 17, 18, 19, 20, 121, 22, 23, 24, 25, - 26, 27, 28, 29, 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, 44, 45, 187, 52, 53, - 54, 55, 56, 57, 14, 15, 16, 17, 18, 19, 20, 121, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, - 33, 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, 44, 45, 192, 52, 53, 54, 55, 56, 57, 14, 15, 16, - 17, 18, 19, 20, 121, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, - 40, 41, 42, 61, 44, 45, 194, 52, 53, 54, 55, 56, 57, 14, 15, 16, 17, 18, 19, 20, 121, 22, 23, - 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, 44, 45, 196, - 52, 53, 54, 55, 56, 57, 14, 15, 16, 17, 18, 19, 20, 121, 22, 23, 24, 25, 26, 27, 28, 29, 30, - 31, 32, 33, 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, 44, 45, 198, 52, 53, 54, 55, 56, 57, 14, - 15, 16, 17, 18, 19, 20, 121, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 59, 35, 60, 37, - 38, 39, 40, 41, 42, 61, 44, 45, 200, 52, 53, 54, 55, 56, 57, 14, 15, 16, 17, 18, 19, 20, 121, - 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, 44, - 45, 203, 52, 53, 54, 55, 56, 57, 14, 15, 16, 17, 18, 19, 20, 121, 22, 23, 24, 25, 26, 27, 28, - 29, 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, 44, 45, 205, 52, 53, 54, 55, 56, - 57, 14, 15, 16, 17, 18, 19, 20, 121, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 59, 35, - 60, 37, 38, 39, 40, 41, 42, 61, 44, 45, 207, 52, 53, 54, 55, 56, 57, 14, 15, 16, 17, 18, 19, - 20, 121, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, 40, 41, 42, - 61, 44, 45, 209, 52, 53, 54, 55, 56, 57, 14, 15, 16, 17, 18, 19, 20, 121, 22, 23, 24, 25, 26, - 27, 28, 29, 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, 44, 45, 211, 52, 53, 54, - 55, 56, 57, 14, 15, 16, 17, 18, 19, 20, 121, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, - 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, 44, 45, 215, 52, 53, 54, 55, 56, 57, 14, 15, 16, 17, - 18, 19, 20, 121, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, 40, - 41, 42, 61, 44, 45, 217, 52, 53, 54, 55, 56, 57, 14, 15, 16, 17, 18, 19, 20, 121, 22, 23, 24, - 25, 26, 27, 28, 29, 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, 44, 45, 219, 52, - 53, 54, 55, 56, 57, 14, 15, 16, 17, 18, 19, 20, 121, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, - 32, 33, 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, 44, 45, 221, 52, 53, 54, 55, 56, 57, 14, 15, - 16, 17, 18, 19, 20, 121, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 59, 35, 60, 37, 38, - 39, 40, 41, 42, 61, 44, 45, 223, 52, 53, 54, 55, 56, 57, 14, 15, 16, 17, 18, 19, 20, 121, 22, - 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, 44, 45, - 225, 52, 53, 54, 55, 56, 57, 14, 15, 16, 17, 18, 19, 20, 121, 22, 23, 24, 25, 26, 27, 28, 29, - 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, 44, 45, 232, 52, 53, 54, 55, 56, 57, - 14, 15, 16, 17, 18, 19, 20, 121, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 59, 35, 60, - 37, 38, 39, 40, 41, 42, 61, 44, 45, 235, 52, 53, 54, 55, 56, 57, 14, 15, 16, 17, 18, 19, 20, - 121, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, - 44, 45, 52, 53, 54, 55, 56, 57, 14, 15, 16, 17, 18, 19, 20, 238, 22, 23, 24, 25, 26, 27, 28, - 29, 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, 44, 45, 239, 304, 52, 53, 54, 55, - 56, 57, 14, 15, 16, 17, 18, 19, 20, 121, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 59, - 35, 60, 37, 38, 39, 40, 41, 42, 61, 44, 45, 306, 52, 53, 54, 55, 56, 57, 14, 15, 16, 17, 18, - 19, 20, 121, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, 40, 41, - 42, 61, 44, 45, 341, 52, 53, 54, 55, 56, 57, 14, 15, 16, 17, 18, 19, 20, 121, 22, 23, 24, 25, - 26, 27, 28, 29, 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, 44, 45, 52, 53, 54, - 55, 56, 57, 14, 15, 16, 17, 18, 19, 20, 121, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, - 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, 44, 45, 65, 66, 67, 71, 72, 73, 252, 253, 74, 75, 68, - 254, 255, 256, 257, 258, 76, 259, 260, 261, 262, 263, 69, 70, 264, 77, 265, 266, 267, 0, 268, 269, 270, 271, - 272, 0, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, - 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, - 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 343, 346, 348, - 349, 350, 351, 352, 353, 354, 355, 49}; - -static const yytype_int16 yycheck[] = { - 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, - 90, 91, 92, 93, 94, 95, 0, 97, 98, 99, 100, 101, 3, 103, 104, 105, 106, 107, 33, 34, 110, 111, 112, 113, 114, - 115, 3, 0, 5, 0, 7, 121, 23, 123, 124, 1, 42, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, - 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, - 41, 42, 3, 1, 15, 3, 42, 18, 19, 1, 10, 63, 23, 24, 25, 15, 16, 14, 15, 17, 42, 42, 23, 23, 42, - 190, 191, 38, 42, 42, 42, 28, 32, 14, 15, 1, 37, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 42, 13, 14, - 15, 32, 42, 42, 42, 42, 42, 38, 23, 40, 41, 2, 42, 228, 42, 42, 31, 232, 42, 42, 235, 42, 1, 238, 126, - 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, - 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, - 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, - 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, - 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 3, 4, 5, 6, 7, 8, 9, 10, - 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, - 36, 37, 38, 39, 40, 41, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, - 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 3, 4, 5, 6, 7, - 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, - 33, 34, 35, 36, 37, 38, 39, 40, 41, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, - 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 3, 4, - 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, - 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, - 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, - 41, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, - 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, - 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, - 38, 39, 40, 41, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, - 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 3, 4, 5, 6, 7, 8, 9, - 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, - 35, 36, 37, 38, 39, 40, 41, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, - 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 3, 4, 5, 6, - 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, - 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, - 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 3, - 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, - 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, - 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, - 40, 41, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, - 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 3, 4, 5, 6, 7, 8, 9, 10, 11, - 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, - 37, 38, 39, 40, 41, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, - 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 3, 4, 5, 6, 7, 8, - 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, - 34, 35, 36, 37, 38, 39, 40, 41, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, - 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 3, 4, 5, - 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, - 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, - 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, - 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, - 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, - 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, - 39, 40, 41, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, - 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 3, 4, 5, 6, 7, 8, 9, 10, - 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, - 36, 37, 38, 39, 40, 41, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, - 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 3, 4, 5, 6, 7, - 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, - 33, 34, 35, 36, 37, 38, 39, 40, 41, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, - 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 3, 4, - 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, - 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, - 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, - 41, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, - 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, - 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, - 38, 39, 40, 41, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, - 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 3, 4, 5, 6, 7, 8, 9, - 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, - 35, 36, 37, 38, 39, 40, 41, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, - 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 3, 4, 5, 6, - 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, - 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, - 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 3, - 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, - 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, - 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, - 40, 41, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, - 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 3, 4, 5, 6, 7, 8, 9, 10, 11, - 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, - 37, 38, 39, 40, 41, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, - 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 3, 4, 5, 6, 7, 8, - 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, - 34, 35, 36, 37, 38, 39, 40, 41, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, - 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 3, 4, 5, - 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, - 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, - 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, - 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, - 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, - 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, - 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, - 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 3, 4, 5, 6, 7, 8, 9, 10, - 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, - 36, 37, 38, 39, 40, 41, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, - 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 4, 5, 6, 7, 8, - 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, - 34, 35, 36, 37, 38, 39, 40, 41, 13, 14, 15, 10, 11, 12, 42, 42, 15, 16, 23, 42, 42, 42, 42, 42, 23, - 42, 42, 42, 42, 42, 35, 36, 42, 32, 42, 42, 42, -1, 42, 42, 42, 42, 42, -1, 42, 42, 42, 42, 42, 42, - 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, - 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, - 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 5}; +static const yytype_int16 yytable[] = +{ + 128, 130, 132, 134, 136, 138, 140, 142, 144, 146, + 148, 150, 152, 154, 156, 158, 160, 162, 164, 166, + 168, 170, 172, 174, 176, 178, 180, 182, 184, 186, + 188, -3, 193, 195, 197, 199, 201, 227, 204, 206, + 208, 210, 212, 108, 109, 216, 218, 220, 222, 224, + 226, 48, 4, 48, -2, 63, 233, 228, 236, 237, + 6, 50, 7, 8, 9, 10, 11, 12, 13, 14, + 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, + 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, + 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, + 45, 46, 189, 117, 110, 118, 64, 111, 112, 102, + 78, 126, 113, 114, 115, 79, 80, 99, 100, 119, + 120, 202, 190, 81, 213, 305, 307, 116, 214, 229, + 230, 101, 82, 83, 84, 231, 191, 85, 86, 87, + 88, 89, 90, 91, 92, 93, 94, 234, 103, 104, + 105, 95, 241, 242, 243, 244, 245, 96, 106, 97, + 98, 5, 246, 342, 247, 248, 107, 344, 249, 250, + 345, 251, 51, 347, 240, 52, 53, 54, 55, 56, + 57, 14, 15, 16, 17, 18, 19, 20, 58, 22, + 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, + 33, 59, 35, 60, 37, 38, 39, 40, 41, 42, + 61, 44, 45, 62, 52, 53, 54, 55, 56, 57, + 14, 15, 16, 17, 18, 19, 20, 124, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, + 44, 45, 125, 127, 52, 53, 54, 55, 56, 57, + 14, 15, 16, 17, 18, 19, 20, 121, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, + 44, 45, 129, 52, 53, 54, 55, 56, 57, 14, + 15, 16, 17, 18, 19, 20, 121, 22, 23, 24, + 25, 26, 27, 28, 29, 30, 31, 32, 33, 59, + 35, 60, 37, 38, 39, 40, 41, 42, 61, 44, + 45, 131, 52, 53, 54, 55, 56, 57, 14, 15, + 16, 17, 18, 19, 20, 121, 22, 23, 24, 25, + 26, 27, 28, 29, 30, 31, 32, 33, 59, 35, + 60, 37, 38, 39, 40, 41, 42, 61, 44, 45, + 133, 52, 53, 54, 55, 56, 57, 14, 15, 16, + 17, 18, 19, 20, 121, 22, 23, 24, 25, 26, + 27, 28, 29, 30, 31, 32, 33, 59, 35, 60, + 37, 38, 39, 40, 41, 42, 61, 44, 45, 135, + 52, 53, 54, 55, 56, 57, 14, 15, 16, 17, + 18, 19, 20, 121, 22, 23, 24, 25, 26, 27, + 28, 29, 30, 31, 32, 33, 59, 35, 60, 37, + 38, 39, 40, 41, 42, 61, 44, 45, 137, 52, + 53, 54, 55, 56, 57, 14, 15, 16, 17, 18, + 19, 20, 121, 22, 23, 24, 25, 26, 27, 28, + 29, 30, 31, 32, 33, 59, 35, 60, 37, 38, + 39, 40, 41, 42, 61, 44, 45, 139, 52, 53, + 54, 55, 56, 57, 14, 15, 16, 17, 18, 19, + 20, 121, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, + 40, 41, 42, 61, 44, 45, 141, 52, 53, 54, + 55, 56, 57, 14, 15, 16, 17, 18, 19, 20, + 121, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 59, 35, 60, 37, 38, 39, 40, + 41, 42, 61, 44, 45, 143, 52, 53, 54, 55, + 56, 57, 14, 15, 16, 17, 18, 19, 20, 121, + 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, + 32, 33, 59, 35, 60, 37, 38, 39, 40, 41, + 42, 61, 44, 45, 145, 52, 53, 54, 55, 56, + 57, 14, 15, 16, 17, 18, 19, 20, 121, 22, + 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, + 33, 59, 35, 60, 37, 38, 39, 40, 41, 42, + 61, 44, 45, 147, 52, 53, 54, 55, 56, 57, + 14, 15, 16, 17, 18, 19, 20, 121, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, + 44, 45, 149, 52, 53, 54, 55, 56, 57, 14, + 15, 16, 17, 18, 19, 20, 121, 22, 23, 24, + 25, 26, 27, 28, 29, 30, 31, 32, 33, 59, + 35, 60, 37, 38, 39, 40, 41, 42, 61, 44, + 45, 151, 52, 53, 54, 55, 56, 57, 14, 15, + 16, 17, 18, 19, 20, 121, 22, 23, 24, 25, + 26, 27, 28, 29, 30, 31, 32, 33, 59, 35, + 60, 37, 38, 39, 40, 41, 42, 61, 44, 45, + 153, 52, 53, 54, 55, 56, 57, 14, 15, 16, + 17, 18, 19, 20, 121, 22, 23, 24, 25, 26, + 27, 28, 29, 30, 31, 32, 33, 59, 35, 60, + 37, 38, 39, 40, 41, 42, 61, 44, 45, 155, + 52, 53, 54, 55, 56, 57, 14, 15, 16, 17, + 18, 19, 20, 121, 22, 23, 24, 25, 26, 27, + 28, 29, 30, 31, 32, 33, 59, 35, 60, 37, + 38, 39, 40, 41, 42, 61, 44, 45, 157, 52, + 53, 54, 55, 56, 57, 14, 15, 16, 17, 18, + 19, 20, 121, 22, 23, 24, 25, 26, 27, 28, + 29, 30, 31, 32, 33, 59, 35, 60, 37, 38, + 39, 40, 41, 42, 61, 44, 45, 159, 52, 53, + 54, 55, 56, 57, 14, 15, 16, 17, 18, 19, + 20, 121, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, + 40, 41, 42, 61, 44, 45, 161, 52, 53, 54, + 55, 56, 57, 14, 15, 16, 17, 18, 19, 20, + 121, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 59, 35, 60, 37, 38, 39, 40, + 41, 42, 61, 44, 45, 163, 52, 53, 54, 55, + 56, 57, 14, 15, 16, 17, 18, 19, 20, 121, + 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, + 32, 33, 59, 35, 60, 37, 38, 39, 40, 41, + 42, 61, 44, 45, 165, 52, 53, 54, 55, 56, + 57, 14, 15, 16, 17, 18, 19, 20, 121, 22, + 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, + 33, 59, 35, 60, 37, 38, 39, 40, 41, 42, + 61, 44, 45, 167, 52, 53, 54, 55, 56, 57, + 14, 15, 16, 17, 18, 19, 20, 121, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, + 44, 45, 169, 52, 53, 54, 55, 56, 57, 14, + 15, 16, 17, 18, 19, 20, 121, 22, 23, 24, + 25, 26, 27, 28, 29, 30, 31, 32, 33, 59, + 35, 60, 37, 38, 39, 40, 41, 42, 61, 44, + 45, 171, 52, 53, 54, 55, 56, 57, 14, 15, + 16, 17, 18, 19, 20, 121, 22, 23, 24, 25, + 26, 27, 28, 29, 30, 31, 32, 33, 59, 35, + 60, 37, 38, 39, 40, 41, 42, 61, 44, 45, + 173, 52, 53, 54, 55, 56, 57, 14, 15, 16, + 17, 18, 19, 20, 121, 22, 23, 24, 25, 26, + 27, 28, 29, 30, 31, 32, 33, 59, 35, 60, + 37, 38, 39, 40, 41, 42, 61, 44, 45, 175, + 52, 53, 54, 55, 56, 57, 14, 15, 16, 17, + 18, 19, 20, 121, 22, 23, 24, 25, 26, 27, + 28, 29, 30, 31, 32, 33, 59, 35, 60, 37, + 38, 39, 40, 41, 42, 61, 44, 45, 177, 52, + 53, 54, 55, 56, 57, 14, 15, 16, 17, 18, + 19, 20, 121, 22, 23, 24, 25, 26, 27, 28, + 29, 30, 31, 32, 33, 59, 35, 60, 37, 38, + 39, 40, 41, 42, 61, 44, 45, 179, 52, 53, + 54, 55, 56, 57, 14, 15, 16, 17, 18, 19, + 20, 121, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, + 40, 41, 42, 61, 44, 45, 181, 52, 53, 54, + 55, 56, 57, 14, 15, 16, 17, 18, 19, 20, + 121, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 59, 35, 60, 37, 38, 39, 40, + 41, 42, 61, 44, 45, 183, 52, 53, 54, 55, + 56, 57, 14, 15, 16, 17, 18, 19, 20, 121, + 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, + 32, 33, 59, 35, 60, 37, 38, 39, 40, 41, + 42, 61, 44, 45, 185, 52, 53, 54, 55, 56, + 57, 14, 15, 16, 17, 18, 19, 20, 121, 22, + 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, + 33, 59, 35, 60, 37, 38, 39, 40, 41, 42, + 61, 44, 45, 187, 52, 53, 54, 55, 56, 57, + 14, 15, 16, 17, 18, 19, 20, 121, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, + 44, 45, 192, 52, 53, 54, 55, 56, 57, 14, + 15, 16, 17, 18, 19, 20, 121, 22, 23, 24, + 25, 26, 27, 28, 29, 30, 31, 32, 33, 59, + 35, 60, 37, 38, 39, 40, 41, 42, 61, 44, + 45, 194, 52, 53, 54, 55, 56, 57, 14, 15, + 16, 17, 18, 19, 20, 121, 22, 23, 24, 25, + 26, 27, 28, 29, 30, 31, 32, 33, 59, 35, + 60, 37, 38, 39, 40, 41, 42, 61, 44, 45, + 196, 52, 53, 54, 55, 56, 57, 14, 15, 16, + 17, 18, 19, 20, 121, 22, 23, 24, 25, 26, + 27, 28, 29, 30, 31, 32, 33, 59, 35, 60, + 37, 38, 39, 40, 41, 42, 61, 44, 45, 198, + 52, 53, 54, 55, 56, 57, 14, 15, 16, 17, + 18, 19, 20, 121, 22, 23, 24, 25, 26, 27, + 28, 29, 30, 31, 32, 33, 59, 35, 60, 37, + 38, 39, 40, 41, 42, 61, 44, 45, 200, 52, + 53, 54, 55, 56, 57, 14, 15, 16, 17, 18, + 19, 20, 121, 22, 23, 24, 25, 26, 27, 28, + 29, 30, 31, 32, 33, 59, 35, 60, 37, 38, + 39, 40, 41, 42, 61, 44, 45, 203, 52, 53, + 54, 55, 56, 57, 14, 15, 16, 17, 18, 19, + 20, 121, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, + 40, 41, 42, 61, 44, 45, 205, 52, 53, 54, + 55, 56, 57, 14, 15, 16, 17, 18, 19, 20, + 121, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 59, 35, 60, 37, 38, 39, 40, + 41, 42, 61, 44, 45, 207, 52, 53, 54, 55, + 56, 57, 14, 15, 16, 17, 18, 19, 20, 121, + 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, + 32, 33, 59, 35, 60, 37, 38, 39, 40, 41, + 42, 61, 44, 45, 209, 52, 53, 54, 55, 56, + 57, 14, 15, 16, 17, 18, 19, 20, 121, 22, + 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, + 33, 59, 35, 60, 37, 38, 39, 40, 41, 42, + 61, 44, 45, 211, 52, 53, 54, 55, 56, 57, + 14, 15, 16, 17, 18, 19, 20, 121, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, + 44, 45, 215, 52, 53, 54, 55, 56, 57, 14, + 15, 16, 17, 18, 19, 20, 121, 22, 23, 24, + 25, 26, 27, 28, 29, 30, 31, 32, 33, 59, + 35, 60, 37, 38, 39, 40, 41, 42, 61, 44, + 45, 217, 52, 53, 54, 55, 56, 57, 14, 15, + 16, 17, 18, 19, 20, 121, 22, 23, 24, 25, + 26, 27, 28, 29, 30, 31, 32, 33, 59, 35, + 60, 37, 38, 39, 40, 41, 42, 61, 44, 45, + 219, 52, 53, 54, 55, 56, 57, 14, 15, 16, + 17, 18, 19, 20, 121, 22, 23, 24, 25, 26, + 27, 28, 29, 30, 31, 32, 33, 59, 35, 60, + 37, 38, 39, 40, 41, 42, 61, 44, 45, 221, + 52, 53, 54, 55, 56, 57, 14, 15, 16, 17, + 18, 19, 20, 121, 22, 23, 24, 25, 26, 27, + 28, 29, 30, 31, 32, 33, 59, 35, 60, 37, + 38, 39, 40, 41, 42, 61, 44, 45, 223, 52, + 53, 54, 55, 56, 57, 14, 15, 16, 17, 18, + 19, 20, 121, 22, 23, 24, 25, 26, 27, 28, + 29, 30, 31, 32, 33, 59, 35, 60, 37, 38, + 39, 40, 41, 42, 61, 44, 45, 225, 52, 53, + 54, 55, 56, 57, 14, 15, 16, 17, 18, 19, + 20, 121, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 59, 35, 60, 37, 38, 39, + 40, 41, 42, 61, 44, 45, 232, 52, 53, 54, + 55, 56, 57, 14, 15, 16, 17, 18, 19, 20, + 121, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 59, 35, 60, 37, 38, 39, 40, + 41, 42, 61, 44, 45, 235, 52, 53, 54, 55, + 56, 57, 14, 15, 16, 17, 18, 19, 20, 121, + 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, + 32, 33, 59, 35, 60, 37, 38, 39, 40, 41, + 42, 61, 44, 45, 52, 53, 54, 55, 56, 57, + 14, 15, 16, 17, 18, 19, 20, 238, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, + 44, 45, 239, 304, 52, 53, 54, 55, 56, 57, + 14, 15, 16, 17, 18, 19, 20, 121, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 59, 35, 60, 37, 38, 39, 40, 41, 42, 61, + 44, 45, 306, 52, 53, 54, 55, 56, 57, 14, + 15, 16, 17, 18, 19, 20, 121, 22, 23, 24, + 25, 26, 27, 28, 29, 30, 31, 32, 33, 59, + 35, 60, 37, 38, 39, 40, 41, 42, 61, 44, + 45, 341, 52, 53, 54, 55, 56, 57, 14, 15, + 16, 17, 18, 19, 20, 121, 22, 23, 24, 25, + 26, 27, 28, 29, 30, 31, 32, 33, 59, 35, + 60, 37, 38, 39, 40, 41, 42, 61, 44, 45, + 52, 53, 54, 55, 56, 57, 14, 15, 16, 17, + 18, 19, 20, 121, 22, 23, 24, 25, 26, 27, + 28, 29, 30, 31, 32, 33, 59, 35, 60, 37, + 38, 39, 40, 41, 42, 61, 44, 45, 65, 66, + 67, 71, 72, 73, 252, 253, 74, 75, 68, 254, + 255, 256, 257, 258, 76, 259, 260, 261, 262, 263, + 69, 70, 264, 77, 265, 266, 267, 0, 268, 269, + 270, 271, 272, 0, 273, 274, 275, 276, 277, 278, + 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, + 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, + 299, 300, 301, 302, 303, 308, 309, 310, 311, 312, + 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, + 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, + 333, 334, 335, 336, 337, 338, 339, 340, 343, 346, + 348, 349, 350, 351, 352, 353, 354, 355, 49 +}; + +static const yytype_int16 yycheck[] = +{ + 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, + 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, + 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, + 95, 0, 97, 98, 99, 100, 101, 3, 103, 104, + 105, 106, 107, 33, 34, 110, 111, 112, 113, 114, + 115, 3, 0, 5, 0, 7, 121, 23, 123, 124, + 1, 42, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, + 41, 42, 3, 1, 15, 3, 42, 18, 19, 1, + 10, 63, 23, 24, 25, 15, 16, 14, 15, 17, + 42, 42, 23, 23, 42, 190, 191, 38, 42, 42, + 42, 28, 32, 14, 15, 1, 37, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 42, 13, 14, + 15, 32, 42, 42, 42, 42, 42, 38, 23, 40, + 41, 2, 42, 228, 42, 42, 31, 232, 42, 42, + 235, 42, 1, 238, 126, 4, 5, 6, 7, 8, + 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, + 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, + 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, + 39, 40, 41, 42, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, + 41, 3, 4, 5, 6, 7, 8, 9, 10, 11, + 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, + 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, + 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, + 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, + 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, + 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, + 33, 34, 35, 36, 37, 38, 39, 40, 41, 3, + 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, + 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 35, 36, 37, 38, 39, 40, 41, 3, 4, + 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, + 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, + 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, + 35, 36, 37, 38, 39, 40, 41, 3, 4, 5, + 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, + 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, + 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, + 36, 37, 38, 39, 40, 41, 3, 4, 5, 6, + 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, + 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, + 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, + 37, 38, 39, 40, 41, 3, 4, 5, 6, 7, + 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, + 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, + 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, + 38, 39, 40, 41, 3, 4, 5, 6, 7, 8, + 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, + 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, + 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, + 39, 40, 41, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, + 41, 3, 4, 5, 6, 7, 8, 9, 10, 11, + 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, + 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, + 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, + 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, + 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, + 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, + 33, 34, 35, 36, 37, 38, 39, 40, 41, 3, + 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, + 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 35, 36, 37, 38, 39, 40, 41, 3, 4, + 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, + 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, + 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, + 35, 36, 37, 38, 39, 40, 41, 3, 4, 5, + 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, + 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, + 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, + 36, 37, 38, 39, 40, 41, 3, 4, 5, 6, + 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, + 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, + 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, + 37, 38, 39, 40, 41, 3, 4, 5, 6, 7, + 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, + 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, + 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, + 38, 39, 40, 41, 3, 4, 5, 6, 7, 8, + 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, + 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, + 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, + 39, 40, 41, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, + 41, 3, 4, 5, 6, 7, 8, 9, 10, 11, + 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, + 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, + 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, + 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, + 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, + 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, + 33, 34, 35, 36, 37, 38, 39, 40, 41, 3, + 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, + 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 35, 36, 37, 38, 39, 40, 41, 3, 4, + 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, + 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, + 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, + 35, 36, 37, 38, 39, 40, 41, 3, 4, 5, + 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, + 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, + 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, + 36, 37, 38, 39, 40, 41, 3, 4, 5, 6, + 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, + 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, + 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, + 37, 38, 39, 40, 41, 3, 4, 5, 6, 7, + 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, + 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, + 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, + 38, 39, 40, 41, 3, 4, 5, 6, 7, 8, + 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, + 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, + 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, + 39, 40, 41, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, + 41, 3, 4, 5, 6, 7, 8, 9, 10, 11, + 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, + 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, + 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, + 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, + 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, + 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, + 33, 34, 35, 36, 37, 38, 39, 40, 41, 3, + 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, + 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 35, 36, 37, 38, 39, 40, 41, 3, 4, + 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, + 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, + 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, + 35, 36, 37, 38, 39, 40, 41, 3, 4, 5, + 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, + 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, + 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, + 36, 37, 38, 39, 40, 41, 3, 4, 5, 6, + 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, + 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, + 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, + 37, 38, 39, 40, 41, 3, 4, 5, 6, 7, + 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, + 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, + 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, + 38, 39, 40, 41, 3, 4, 5, 6, 7, 8, + 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, + 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, + 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, + 39, 40, 41, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, + 41, 3, 4, 5, 6, 7, 8, 9, 10, 11, + 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, + 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, + 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, + 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, + 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, + 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, + 33, 34, 35, 36, 37, 38, 39, 40, 41, 3, + 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, + 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 35, 36, 37, 38, 39, 40, 41, 3, 4, + 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, + 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, + 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, + 35, 36, 37, 38, 39, 40, 41, 3, 4, 5, + 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, + 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, + 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, + 36, 37, 38, 39, 40, 41, 3, 4, 5, 6, + 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, + 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, + 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, + 37, 38, 39, 40, 41, 3, 4, 5, 6, 7, + 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, + 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, + 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, + 38, 39, 40, 41, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, + 41, 3, 4, 5, 6, 7, 8, 9, 10, 11, + 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, + 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, + 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, + 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, + 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 35, 36, 37, 38, 39, 40, 41, 13, 14, + 15, 10, 11, 12, 42, 42, 15, 16, 23, 42, + 42, 42, 42, 42, 23, 42, 42, 42, 42, 42, + 35, 36, 42, 32, 42, 42, 42, -1, 42, 42, + 42, 42, 42, -1, 42, 42, 42, 42, 42, 42, + 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, + 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, + 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, + 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, + 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, + 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, + 42, 42, 42, 42, 42, 42, 42, 42, 5 +}; /* YYSTOS[STATE-NUM] -- The symbol kind of the accessing symbol of state STATE-NUM. */ -static const yytype_int8 yystos[] = { - 0, 44, 45, 46, 0, 46, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, - 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 47, 49, 47, 42, 1, 4, 5, 6, 7, - 8, 9, 17, 30, 32, 39, 42, 49, 42, 13, 14, 15, 23, 35, 36, 10, 11, 12, 15, 16, 23, 32, 10, 15, 16, 23, 32, 14, - 15, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 32, 38, 40, 41, 14, 15, 28, 1, 13, 14, 15, 23, 31, 33, 34, 15, 18, - 19, 23, 24, 25, 38, 1, 3, 17, 42, 17, 48, 49, 17, 42, 49, 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, 3, - 48, 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, 3, - 48, 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, 3, 23, 37, 3, 48, 3, 48, - 3, 48, 3, 48, 3, 48, 42, 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, 42, 42, 3, 48, 3, 48, 3, 48, 3, 48, 3, - 48, 3, 48, 3, 23, 42, 42, 1, 3, 48, 42, 3, 48, 48, 17, 42, 49, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, - 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, - 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 3, 48, 3, 48, - 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, - 42, 42, 42, 42, 42, 3, 48, 42, 48, 48, 42, 48, 42, 42, 42, 42, 42, 42, 42, 42}; +static const yytype_int8 yystos[] = +{ + 0, 44, 45, 46, 0, 46, 1, 3, 4, 5, + 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, + 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, + 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, + 36, 37, 38, 39, 40, 41, 42, 47, 49, 47, + 42, 1, 4, 5, 6, 7, 8, 9, 17, 30, + 32, 39, 42, 49, 42, 13, 14, 15, 23, 35, + 36, 10, 11, 12, 15, 16, 23, 32, 10, 15, + 16, 23, 32, 14, 15, 18, 19, 20, 21, 22, + 23, 24, 25, 26, 27, 32, 38, 40, 41, 14, + 15, 28, 1, 13, 14, 15, 23, 31, 33, 34, + 15, 18, 19, 23, 24, 25, 38, 1, 3, 17, + 42, 17, 48, 49, 17, 42, 49, 3, 48, 3, + 48, 3, 48, 3, 48, 3, 48, 3, 48, 3, + 48, 3, 48, 3, 48, 3, 48, 3, 48, 3, + 48, 3, 48, 3, 48, 3, 48, 3, 48, 3, + 48, 3, 48, 3, 48, 3, 48, 3, 48, 3, + 48, 3, 48, 3, 48, 3, 48, 3, 48, 3, + 48, 3, 48, 3, 48, 3, 48, 3, 48, 3, + 23, 37, 3, 48, 3, 48, 3, 48, 3, 48, + 3, 48, 42, 3, 48, 3, 48, 3, 48, 3, + 48, 3, 48, 42, 42, 3, 48, 3, 48, 3, + 48, 3, 48, 3, 48, 3, 48, 3, 23, 42, + 42, 1, 3, 48, 42, 3, 48, 48, 17, 42, + 49, 42, 42, 42, 42, 42, 42, 42, 42, 42, + 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, + 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, + 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, + 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, + 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, + 42, 42, 42, 42, 3, 48, 3, 48, 42, 42, + 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, + 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, + 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, + 42, 3, 48, 42, 48, 48, 42, 48, 42, 42, + 42, 42, 42, 42, 42, 42 +}; /* YYR1[RULE-NUM] -- Symbol kind of the left-hand side of rule RULE-NUM. */ -static const yytype_int8 yyr1[] = { - 0, 43, 44, 44, 45, 45, 46, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, - 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, - 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, - 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, - 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 48, 48, 48, 48, 48, 49, 49, 49, 49, 49, 49, 49, 49, 49, - 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49}; +static const yytype_int8 yyr1[] = +{ + 0, 43, 44, 44, 45, 45, 46, 47, 47, 47, + 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, + 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, + 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, + 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, + 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, + 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, + 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, + 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, + 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, + 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, + 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, + 47, 47, 47, 47, 47, 47, 48, 48, 48, 48, + 48, 49, 49, 49, 49, 49, 49, 49, 49, 49, + 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, + 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, + 49, 49, 49, 49, 49, 49, 49, 49 +}; /* YYR2[RULE-NUM] -- Number of symbols on the right-hand side of rule RULE-NUM. */ -static const yytype_int8 yyr2[] = {0, 2, 1, 0, 3, 2, 0, 2, 2, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 4, 5, 5, - 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, - 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, - 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 3, - 3, 3, 4, 5, 5, 6, 4, 3, 3, 4, 3, 3, 2, 1, 2, 2, 3, 3, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}; - -enum +static const yytype_int8 yyr2[] = { - YYENOMEM = -2 + 0, 2, 1, 0, 3, 2, 0, 2, 2, 4, + 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, + 4, 5, 5, 5, 5, 4, 5, 5, 4, 4, + 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, + 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, + 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, + 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, + 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, + 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, + 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, + 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, + 4, 3, 3, 3, 4, 5, 5, 6, 4, 3, + 3, 4, 3, 3, 2, 1, 2, 2, 3, 3, + 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1 }; -#define yyerrok (yyerrstatus = 0) -#define yyclearin (yychar = YYEMPTY) - -#define YYACCEPT goto yyacceptlab -#define YYABORT goto yyabortlab -#define YYERROR goto yyerrorlab -#define YYNOMEM goto yyexhaustedlab - -#define YYRECOVERING() (!!yyerrstatus) - -#define YYBACKUP(Token, Value) \ - do \ - if (yychar == YYEMPTY) \ - { \ - yychar = (Token); \ - yylval = (Value); \ - YYPOPSTACK(yylen); \ - yystate = *yyssp; \ - goto yybackup; \ - } \ - else \ - { \ - yyerror(YY_("syntax error: cannot back up")); \ - YYERROR; \ - } \ - while (0) + +enum { YYENOMEM = -2 }; + +#define yyerrok (yyerrstatus = 0) +#define yyclearin (yychar = YYEMPTY) + +#define YYACCEPT goto yyacceptlab +#define YYABORT goto yyabortlab +#define YYERROR goto yyerrorlab +#define YYNOMEM goto yyexhaustedlab + + +#define YYRECOVERING() (!!yyerrstatus) + +#define YYBACKUP(Token, Value) \ + do \ + if (yychar == YYEMPTY) \ + { \ + yychar = (Token); \ + yylval = (Value); \ + YYPOPSTACK (yylen); \ + yystate = *yyssp; \ + goto yybackup; \ + } \ + else \ + { \ + yyerror (YY_("syntax error: cannot back up")); \ + YYERROR; \ + } \ + while (0) /* Backward compatibility with an undocumented macro. Use YYerror or YYUNDEF. */ #define YYERRCODE YYUNDEF + /* Enable debugging if requested. */ #if YYDEBUG -# ifndef YYFPRINTF -# include /* INFRINGES ON USER NAME SPACE */ -# define YYFPRINTF fprintf -# endif +# ifndef YYFPRINTF +# include /* INFRINGES ON USER NAME SPACE */ +# define YYFPRINTF fprintf +# endif + +# define YYDPRINTF(Args) \ +do { \ + if (yydebug) \ + YYFPRINTF Args; \ +} while (0) + + + + +# define YY_SYMBOL_PRINT(Title, Kind, Value, Location) \ +do { \ + if (yydebug) \ + { \ + YYFPRINTF (stderr, "%s ", Title); \ + yy_symbol_print (stderr, \ + Kind, Value); \ + YYFPRINTF (stderr, "\n"); \ + } \ +} while (0) -# define YYDPRINTF(Args) \ - do \ - { \ - if (yydebug) \ - YYFPRINTF Args; \ - } while (0) - -# define YY_SYMBOL_PRINT(Title, Kind, Value, Location) \ - do \ - { \ - if (yydebug) \ - { \ - YYFPRINTF(stderr, "%s ", Title); \ - yy_symbol_print(stderr, Kind, Value); \ - YYFPRINTF(stderr, "\n"); \ - } \ - } while (0) /*-----------------------------------. | Print this symbol's value on YYO. | `-----------------------------------*/ static void -yy_symbol_value_print(FILE* yyo, yysymbol_kind_t yykind, YYSTYPE const* const yyvaluep) +yy_symbol_value_print (FILE *yyo, + yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep) { - FILE* yyoutput = yyo; - YY_USE(yyoutput); - if (!yyvaluep) - return; - YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN - YY_USE(yykind); - YY_IGNORE_MAYBE_UNINITIALIZED_END + FILE *yyoutput = yyo; + YY_USE (yyoutput); + if (!yyvaluep) + return; + YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN + YY_USE (yykind); + YY_IGNORE_MAYBE_UNINITIALIZED_END } + /*---------------------------. | Print this symbol on YYO. | `---------------------------*/ static void -yy_symbol_print(FILE* yyo, yysymbol_kind_t yykind, YYSTYPE const* const yyvaluep) +yy_symbol_print (FILE *yyo, + yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep) { - YYFPRINTF(yyo, "%s %s (", yykind < YYNTOKENS ? "token" : "nterm", yysymbol_name(yykind)); + YYFPRINTF (yyo, "%s %s (", + yykind < YYNTOKENS ? "token" : "nterm", yysymbol_name (yykind)); - yy_symbol_value_print(yyo, yykind, yyvaluep); - YYFPRINTF(yyo, ")"); + yy_symbol_value_print (yyo, yykind, yyvaluep); + YYFPRINTF (yyo, ")"); } /*------------------------------------------------------------------. @@ -1028,64 +1452,68 @@ yy_symbol_print(FILE* yyo, yysymbol_kind_t yykind, YYSTYPE const* const yyvaluep `------------------------------------------------------------------*/ static void -yy_stack_print(yy_state_t* yybottom, yy_state_t* yytop) +yy_stack_print (yy_state_t *yybottom, yy_state_t *yytop) { - YYFPRINTF(stderr, "Stack now"); - for (; yybottom <= yytop; yybottom++) + YYFPRINTF (stderr, "Stack now"); + for (; yybottom <= yytop; yybottom++) { - int yybot = *yybottom; - YYFPRINTF(stderr, " %d", yybot); + int yybot = *yybottom; + YYFPRINTF (stderr, " %d", yybot); } - YYFPRINTF(stderr, "\n"); + YYFPRINTF (stderr, "\n"); } -# define YY_STACK_PRINT(Bottom, Top) \ - do \ - { \ - if (yydebug) \ - yy_stack_print((Bottom), (Top)); \ - } while (0) +# define YY_STACK_PRINT(Bottom, Top) \ +do { \ + if (yydebug) \ + yy_stack_print ((Bottom), (Top)); \ +} while (0) + /*------------------------------------------------. | Report that the YYRULE is going to be reduced. | `------------------------------------------------*/ static void -yy_reduce_print(yy_state_t* yyssp, YYSTYPE* yyvsp, int yyrule) -{ - int yylno = yyrline[yyrule]; - int yynrhs = yyr2[yyrule]; - int yyi; - YYFPRINTF(stderr, "Reducing stack by rule %d (line %d):\n", yyrule - 1, yylno); - /* The symbols being reduced. */ - for (yyi = 0; yyi < yynrhs; yyi++) +yy_reduce_print (yy_state_t *yyssp, YYSTYPE *yyvsp, + int yyrule) +{ + int yylno = yyrline[yyrule]; + int yynrhs = yyr2[yyrule]; + int yyi; + YYFPRINTF (stderr, "Reducing stack by rule %d (line %d):\n", + yyrule - 1, yylno); + /* The symbols being reduced. */ + for (yyi = 0; yyi < yynrhs; yyi++) { - YYFPRINTF(stderr, " $%d = ", yyi + 1); - yy_symbol_print(stderr, YY_ACCESSING_SYMBOL(+yyssp[yyi + 1 - yynrhs]), &yyvsp[(yyi + 1) - (yynrhs)]); - YYFPRINTF(stderr, "\n"); + YYFPRINTF (stderr, " $%d = ", yyi + 1); + yy_symbol_print (stderr, + YY_ACCESSING_SYMBOL (+yyssp[yyi + 1 - yynrhs]), + &yyvsp[(yyi + 1) - (yynrhs)]); + YYFPRINTF (stderr, "\n"); } } -# define YY_REDUCE_PRINT(Rule) \ - do \ - { \ - if (yydebug) \ - yy_reduce_print(yyssp, yyvsp, Rule); \ - } while (0) +# define YY_REDUCE_PRINT(Rule) \ +do { \ + if (yydebug) \ + yy_reduce_print (yyssp, yyvsp, Rule); \ +} while (0) /* Nonzero means print parse trace. It is left uninitialized so that multiple parsers can coexist. */ int yydebug; #else /* !YYDEBUG */ -# define YYDPRINTF(Args) ((void)0) -# define YY_SYMBOL_PRINT(Title, Kind, Value, Location) -# define YY_STACK_PRINT(Bottom, Top) -# define YY_REDUCE_PRINT(Rule) +# define YYDPRINTF(Args) ((void) 0) +# define YY_SYMBOL_PRINT(Title, Kind, Value, Location) +# define YY_STACK_PRINT(Bottom, Top) +# define YY_REDUCE_PRINT(Rule) #endif /* !YYDEBUG */ + /* YYINITDEPTH -- initial size of the parser's stacks. */ #ifndef YYINITDEPTH -# define YYINITDEPTH 200 +# define YYINITDEPTH 200 #endif /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only @@ -1096,41 +1524,53 @@ int yydebug; evaluated with infinite-precision integer arithmetic. */ #ifndef YYMAXDEPTH -# define YYMAXDEPTH 10000 +# define YYMAXDEPTH 10000 #endif + + + + + /*-----------------------------------------------. | Release the memory associated to this symbol. | `-----------------------------------------------*/ static void -yydestruct(const char* yymsg, yysymbol_kind_t yykind, YYSTYPE* yyvaluep) +yydestruct (const char *yymsg, + yysymbol_kind_t yykind, YYSTYPE *yyvaluep) { - YY_USE(yyvaluep); - if (!yymsg) - yymsg = "Deleting"; - YY_SYMBOL_PRINT(yymsg, yykind, yyvaluep, yylocationp); - - YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN - YY_USE(yykind); - YY_IGNORE_MAYBE_UNINITIALIZED_END + YY_USE (yyvaluep); + if (!yymsg) + yymsg = "Deleting"; + YY_SYMBOL_PRINT (yymsg, yykind, yyvaluep, yylocationp); + + YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN + YY_USE (yykind); + YY_IGNORE_MAYBE_UNINITIALIZED_END } + + + + + /*----------. | yyparse. | `----------*/ int -yyparse(void) +yyparse (void) { - /* Lookahead token kind. */ - int yychar; +/* Lookahead token kind. */ +int yychar; + - /* The semantic value of the lookahead symbol. */ - /* Default value used for initialization, for pacifying older GCCs - or non-GCC compilers. */ - YY_INITIAL_VALUE(static YYSTYPE yyval_default;) - YYSTYPE yylval YY_INITIAL_VALUE(= yyval_default); +/* The semantic value of the lookahead symbol. */ +/* Default value used for initialization, for pacifying older GCCs + or non-GCC compilers. */ +YY_INITIAL_VALUE (static YYSTYPE yyval_default;) +YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default); /* Number of syntax errors so far. */ int yynerrs = 0; @@ -1147,1717 +1587,1741 @@ yyparse(void) /* The state stack: array, bottom, top. */ yy_state_t yyssa[YYINITDEPTH]; - yy_state_t* yyss = yyssa; - yy_state_t* yyssp = yyss; + yy_state_t *yyss = yyssa; + yy_state_t *yyssp = yyss; /* The semantic value stack: array, bottom, top. */ YYSTYPE yyvsa[YYINITDEPTH]; - YYSTYPE* yyvs = yyvsa; - YYSTYPE* yyvsp = yyvs; + YYSTYPE *yyvs = yyvsa; + YYSTYPE *yyvsp = yyvs; + + int yyn; + /* The return value of yyparse. */ + int yyresult; + /* Lookahead symbol kind. */ + yysymbol_kind_t yytoken = YYSYMBOL_YYEMPTY; + /* The variables used to return semantic value and location from the + action routines. */ + YYSTYPE yyval; + - int yyn; - /* The return value of yyparse. */ - int yyresult; - /* Lookahead symbol kind. */ - yysymbol_kind_t yytoken = YYSYMBOL_YYEMPTY; - /* The variables used to return semantic value and location from the - action routines. */ - YYSTYPE yyval; -#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) +#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; + /* The number of symbols on the RHS of the reduced rule. + Keep to zero when no symbol should be popped. */ + int yylen = 0; - YYDPRINTF((stderr, "Starting parse\n")); + YYDPRINTF ((stderr, "Starting parse\n")); - yychar = YYEMPTY; /* Cause a token to be read. */ + yychar = YYEMPTY; /* Cause a token to be read. */ + + goto yysetstate; - goto yysetstate; /*------------------------------------------------------------. | yynewstate -- push a new state, which is found in yystate. | `------------------------------------------------------------*/ yynewstate: - /* In all cases, when you get here, the value and location stacks - have just been pushed. So pushing a state here evens the stacks. */ - yyssp++; + /* In all cases, when you get here, the value and location stacks + have just been pushed. So pushing a state here evens the stacks. */ + yyssp++; + /*--------------------------------------------------------------------. | yysetstate -- set current state (the top of the stack) to yystate. | `--------------------------------------------------------------------*/ yysetstate: - YYDPRINTF((stderr, "Entering state %d\n", yystate)); - YY_ASSERT(0 <= yystate && yystate < YYNSTATES); - YY_IGNORE_USELESS_CAST_BEGIN - *yyssp = YY_CAST(yy_state_t, yystate); - YY_IGNORE_USELESS_CAST_END - YY_STACK_PRINT(yyss, yyssp); - - if (yyss + yystacksize - 1 <= yyssp) + YYDPRINTF ((stderr, "Entering state %d\n", yystate)); + YY_ASSERT (0 <= yystate && yystate < YYNSTATES); + YY_IGNORE_USELESS_CAST_BEGIN + *yyssp = YY_CAST (yy_state_t, yystate); + YY_IGNORE_USELESS_CAST_END + YY_STACK_PRINT (yyss, yyssp); + + if (yyss + yystacksize - 1 <= yyssp) #if !defined yyoverflow && !defined YYSTACK_RELOCATE - YYNOMEM; + YYNOMEM; #else { - /* Get the current used size of the three stacks, in elements. */ - YYPTRDIFF_T yysize = yyssp - yyss + 1; - -# if defined yyoverflow - { - /* Give user a chance to reallocate the stack. Use copies of - these so that the &'s don't force the real ones into - memory. */ - yy_state_t* yyss1 = yyss; - YYSTYPE* yyvs1 = yyvs; - - /* 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 - be undefined if yyoverflow is a macro. */ - yyoverflow( - YY_("memory exhausted"), - &yyss1, - yysize * YYSIZEOF(*yyssp), - &yyvs1, - yysize * YYSIZEOF(*yyvsp), - &yystacksize); - yyss = yyss1; - yyvs = yyvs1; - } -# else /* defined YYSTACK_RELOCATE */ - /* Extend the stack our own way. */ - if (YYMAXDEPTH <= yystacksize) - YYNOMEM; - yystacksize *= 2; - if (YYMAXDEPTH < yystacksize) - yystacksize = YYMAXDEPTH; - - { - yy_state_t* yyss1 = yyss; - union yyalloc* yyptr = - YY_CAST(union yyalloc*, YYSTACK_ALLOC(YY_CAST(YYSIZE_T, YYSTACK_BYTES(yystacksize)))); - if (!yyptr) - YYNOMEM; - YYSTACK_RELOCATE(yyss_alloc, yyss); - YYSTACK_RELOCATE(yyvs_alloc, yyvs); -# undef YYSTACK_RELOCATE - if (yyss1 != yyssa) - YYSTACK_FREE(yyss1); - } -# endif - - yyssp = yyss + yysize - 1; - yyvsp = yyvs + yysize - 1; - - YY_IGNORE_USELESS_CAST_BEGIN - YYDPRINTF((stderr, "Stack size increased to %ld\n", YY_CAST(long, yystacksize))); - YY_IGNORE_USELESS_CAST_END - - if (yyss + yystacksize - 1 <= yyssp) - YYABORT; + /* Get the current used size of the three stacks, in elements. */ + YYPTRDIFF_T yysize = yyssp - yyss + 1; + +# if defined yyoverflow + { + /* Give user a chance to reallocate the stack. Use copies of + these so that the &'s don't force the real ones into + memory. */ + yy_state_t *yyss1 = yyss; + YYSTYPE *yyvs1 = yyvs; + + /* 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 + be undefined if yyoverflow is a macro. */ + yyoverflow (YY_("memory exhausted"), + &yyss1, yysize * YYSIZEOF (*yyssp), + &yyvs1, yysize * YYSIZEOF (*yyvsp), + &yystacksize); + yyss = yyss1; + yyvs = yyvs1; + } +# else /* defined YYSTACK_RELOCATE */ + /* Extend the stack our own way. */ + if (YYMAXDEPTH <= yystacksize) + YYNOMEM; + yystacksize *= 2; + if (YYMAXDEPTH < yystacksize) + yystacksize = YYMAXDEPTH; + + { + yy_state_t *yyss1 = yyss; + union yyalloc *yyptr = + YY_CAST (union yyalloc *, + YYSTACK_ALLOC (YY_CAST (YYSIZE_T, YYSTACK_BYTES (yystacksize)))); + if (! yyptr) + YYNOMEM; + YYSTACK_RELOCATE (yyss_alloc, yyss); + YYSTACK_RELOCATE (yyvs_alloc, yyvs); +# undef YYSTACK_RELOCATE + if (yyss1 != yyssa) + YYSTACK_FREE (yyss1); + } +# endif + + yyssp = yyss + yysize - 1; + yyvsp = yyvs + yysize - 1; + + YY_IGNORE_USELESS_CAST_BEGIN + YYDPRINTF ((stderr, "Stack size increased to %ld\n", + YY_CAST (long, yystacksize))); + YY_IGNORE_USELESS_CAST_END + + if (yyss + yystacksize - 1 <= yyssp) + YYABORT; } #endif /* !defined yyoverflow && !defined YYSTACK_RELOCATE */ - if (yystate == YYFINAL) - YYACCEPT; - goto yybackup; + if (yystate == YYFINAL) + YYACCEPT; + + goto yybackup; + /*-----------. | yybackup. | `-----------*/ yybackup: - /* Do appropriate processing given the current state. Read a - lookahead token if we need one and don't already have one. */ + /* Do appropriate processing given the current state. Read a + lookahead token if we need one and don't already have one. */ - /* First try to decide what to do without reference to lookahead token. */ - yyn = yypact[yystate]; - if (yypact_value_is_default(yyn)) - goto yydefault; + /* First try to decide what to do without reference to lookahead token. */ + yyn = yypact[yystate]; + if (yypact_value_is_default (yyn)) + goto yydefault; - /* Not known => get a lookahead token if don't already have one. */ + /* Not known => get a lookahead token if don't already have one. */ - /* YYCHAR is either empty, or end-of-input, or a valid lookahead. */ - if (yychar == YYEMPTY) + /* YYCHAR is either empty, or end-of-input, or a valid lookahead. */ + if (yychar == YYEMPTY) { - YYDPRINTF((stderr, "Reading a token\n")); - yychar = yylex(&yylval); + YYDPRINTF ((stderr, "Reading a token\n")); + yychar = yylex (&yylval); } - if (yychar <= YYEOF) + if (yychar <= YYEOF) { - yychar = YYEOF; - yytoken = YYSYMBOL_YYEOF; - YYDPRINTF((stderr, "Now at end of input.\n")); + yychar = YYEOF; + yytoken = YYSYMBOL_YYEOF; + YYDPRINTF ((stderr, "Now at end of input.\n")); } - else if (yychar == YYerror) + else if (yychar == YYerror) { - /* The scanner already issued an error message, process directly - to error recovery. But do not keep the error token as - lookahead, it is too special and may lead us to an endless - loop in error recovery. */ - yychar = YYUNDEF; - yytoken = YYSYMBOL_YYerror; - goto yyerrlab1; + /* The scanner already issued an error message, process directly + to error recovery. But do not keep the error token as + lookahead, it is too special and may lead us to an endless + loop in error recovery. */ + yychar = YYUNDEF; + yytoken = YYSYMBOL_YYerror; + goto yyerrlab1; } - else + else { - yytoken = YYTRANSLATE(yychar); - YY_SYMBOL_PRINT("Next token is", yytoken, &yylval, &yylloc); + yytoken = YYTRANSLATE (yychar); + YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc); } - /* If the proper action on seeing token YYTOKEN is to reduce or to - detect an error, take that action. */ - yyn += yytoken; - if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) - goto yydefault; - yyn = yytable[yyn]; - if (yyn <= 0) + /* If the proper action on seeing token YYTOKEN is to reduce or to + detect an error, take that action. */ + yyn += yytoken; + if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) + goto yydefault; + yyn = yytable[yyn]; + if (yyn <= 0) { - if (yytable_value_is_error(yyn)) - goto yyerrlab; - yyn = -yyn; - goto yyreduce; + if (yytable_value_is_error (yyn)) + goto yyerrlab; + yyn = -yyn; + goto yyreduce; } - /* Count tokens shifted since error; after three, turn off error - status. */ - if (yyerrstatus) - yyerrstatus--; + /* Count tokens shifted since error; after three, turn off error + status. */ + if (yyerrstatus) + yyerrstatus--; + + /* Shift the lookahead token. */ + YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); + yystate = yyn; + YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN + *++yyvsp = yylval; + YY_IGNORE_MAYBE_UNINITIALIZED_END - /* Shift the lookahead token. */ - YY_SYMBOL_PRINT("Shifting", yytoken, &yylval, &yylloc); - yystate = yyn; - YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN - *++yyvsp = yylval; - YY_IGNORE_MAYBE_UNINITIALIZED_END + /* Discard the shifted token. */ + yychar = YYEMPTY; + goto yynewstate; - /* Discard the shifted token. */ - yychar = YYEMPTY; - goto yynewstate; /*-----------------------------------------------------------. | yydefault -- do the default action for the current state. | `-----------------------------------------------------------*/ yydefault: - yyn = yydefact[yystate]; - if (yyn == 0) - goto yyerrlab; - goto yyreduce; + yyn = yydefact[yystate]; + if (yyn == 0) + goto yyerrlab; + goto yyreduce; + /*-----------------------------. | yyreduce -- do a reduction. | `-----------------------------*/ yyreduce: - /* yyn is the number of a rule to reduce with. */ - yylen = yyr2[yyn]; + /* yyn is the number of a rule to reduce with. */ + yylen = yyr2[yyn]; - /* If YYLEN is nonzero, implement the default value of the action: - '$$ = $1'. + /* If YYLEN is nonzero, implement the default value of the action: + '$$ = $1'. - Otherwise, the following line sets YYVAL to garbage. - This behavior is undocumented and Bison - users should not rely upon it. Assigning to YYVAL - unconditionally makes the parser a bit smaller, and it avoids a - GCC warning that YYVAL may be used uninitialized. */ - yyval = yyvsp[1 - yylen]; + Otherwise, the following line sets YYVAL to garbage. + This behavior is undocumented and Bison + users should not rely upon it. Assigning to YYVAL + unconditionally makes the parser a bit smaller, and it avoids a + GCC warning that YYVAL may be used uninitialized. */ + yyval = yyvsp[1-yylen]; - YY_REDUCE_PRINT(yyn); - switch (yyn) + + YY_REDUCE_PRINT (yyn); + switch (yyn) { - case 2: /* start: commands */ -#line 130 "src/IceGrid/Grammar.y" - { - } -#line 1823 "src/IceGrid/Grammar.cpp" - break; + case 2: /* start: commands */ +#line 131 "src/IceGrid/Grammar.y" +{ +} +#line 1822 "src/IceGrid/Grammar.cpp" + break; - case 3: /* start: %empty */ -#line 133 "src/IceGrid/Grammar.y" - { - } -#line 1830 "src/IceGrid/Grammar.cpp" - break; + case 3: /* start: %empty */ +#line 134 "src/IceGrid/Grammar.y" +{ +} +#line 1829 "src/IceGrid/Grammar.cpp" + break; - case 4: /* commands: commands checkInterrupted command */ -#line 141 "src/IceGrid/Grammar.y" - { - } -#line 1837 "src/IceGrid/Grammar.cpp" - break; + case 4: /* commands: commands checkInterrupted command */ +#line 142 "src/IceGrid/Grammar.y" +{ +} +#line 1836 "src/IceGrid/Grammar.cpp" + break; - case 5: /* commands: checkInterrupted command */ -#line 144 "src/IceGrid/Grammar.y" - { - } -#line 1844 "src/IceGrid/Grammar.cpp" - break; + case 5: /* commands: checkInterrupted command */ +#line 145 "src/IceGrid/Grammar.y" +{ +} +#line 1843 "src/IceGrid/Grammar.cpp" + break; - case 6: /* checkInterrupted: %empty */ -#line 152 "src/IceGrid/Grammar.y" - { - parser->checkInterrupted(); - } -#line 1852 "src/IceGrid/Grammar.cpp" - break; + case 6: /* checkInterrupted: %empty */ +#line 153 "src/IceGrid/Grammar.y" +{ + parser->checkInterrupted(); +} +#line 1851 "src/IceGrid/Grammar.cpp" + break; - case 7: /* command: ICE_GRID_HELP ';' */ -#line 161 "src/IceGrid/Grammar.y" - { - parser->usage(); - } -#line 1860 "src/IceGrid/Grammar.cpp" - break; + case 7: /* command: ICEGRID_HELP ';' */ +#line 162 "src/IceGrid/Grammar.y" +{ + parser->usage(); +} +#line 1859 "src/IceGrid/Grammar.cpp" + break; - case 8: /* command: ICE_GRID_EXIT ';' */ -#line 165 "src/IceGrid/Grammar.y" - { - return 0; - } -#line 1868 "src/IceGrid/Grammar.cpp" - break; + case 8: /* command: ICEGRID_EXIT ';' */ +#line 166 "src/IceGrid/Grammar.y" +{ + return 0; +} +#line 1867 "src/IceGrid/Grammar.cpp" + break; - case 9: /* command: ICE_GRID_APPLICATION ICE_GRID_ADD strings ';' */ -#line 169 "src/IceGrid/Grammar.y" - { - parser->addApplication(yyvsp[-1]); - } -#line 1876 "src/IceGrid/Grammar.cpp" - break; + case 9: /* command: ICEGRID_APPLICATION ICEGRID_ADD strings ';' */ +#line 170 "src/IceGrid/Grammar.y" +{ + parser->addApplication(yyvsp[-1]); +} +#line 1875 "src/IceGrid/Grammar.cpp" + break; - case 10: /* command: ICE_GRID_APPLICATION ICE_GRID_ADD ICE_GRID_HELP ';' */ -#line 173 "src/IceGrid/Grammar.y" - { - parser->usage("application", "add"); - } -#line 1884 "src/IceGrid/Grammar.cpp" - break; + case 10: /* command: ICEGRID_APPLICATION ICEGRID_ADD ICEGRID_HELP ';' */ +#line 174 "src/IceGrid/Grammar.y" +{ + parser->usage("application", "add"); +} +#line 1883 "src/IceGrid/Grammar.cpp" + break; - case 11: /* command: ICE_GRID_APPLICATION ICE_GRID_REMOVE strings ';' */ -#line 177 "src/IceGrid/Grammar.y" - { - parser->removeApplication(yyvsp[-1]); - } -#line 1892 "src/IceGrid/Grammar.cpp" - break; + case 11: /* command: ICEGRID_APPLICATION ICEGRID_REMOVE strings ';' */ +#line 178 "src/IceGrid/Grammar.y" +{ + parser->removeApplication(yyvsp[-1]); +} +#line 1891 "src/IceGrid/Grammar.cpp" + break; - case 12: /* command: ICE_GRID_APPLICATION ICE_GRID_REMOVE ICE_GRID_HELP ';' */ -#line 181 "src/IceGrid/Grammar.y" - { - parser->usage("application", "remove"); - } -#line 1900 "src/IceGrid/Grammar.cpp" - break; + case 12: /* command: ICEGRID_APPLICATION ICEGRID_REMOVE ICEGRID_HELP ';' */ +#line 182 "src/IceGrid/Grammar.y" +{ + parser->usage("application", "remove"); +} +#line 1899 "src/IceGrid/Grammar.cpp" + break; - case 13: /* command: ICE_GRID_APPLICATION ICE_GRID_DIFF strings ';' */ -#line 185 "src/IceGrid/Grammar.y" - { - parser->diffApplication(yyvsp[-1]); - } -#line 1908 "src/IceGrid/Grammar.cpp" - break; + case 13: /* command: ICEGRID_APPLICATION ICEGRID_DIFF strings ';' */ +#line 186 "src/IceGrid/Grammar.y" +{ + parser->diffApplication(yyvsp[-1]); +} +#line 1907 "src/IceGrid/Grammar.cpp" + break; - case 14: /* command: ICE_GRID_APPLICATION ICE_GRID_DIFF ICE_GRID_HELP ';' */ -#line 189 "src/IceGrid/Grammar.y" - { - parser->usage("application", "diff"); - } -#line 1916 "src/IceGrid/Grammar.cpp" - break; + case 14: /* command: ICEGRID_APPLICATION ICEGRID_DIFF ICEGRID_HELP ';' */ +#line 190 "src/IceGrid/Grammar.y" +{ + parser->usage("application", "diff"); +} +#line 1915 "src/IceGrid/Grammar.cpp" + break; - case 15: /* command: ICE_GRID_APPLICATION ICE_GRID_UPDATE strings ';' */ -#line 193 "src/IceGrid/Grammar.y" - { - parser->updateApplication(yyvsp[-1]); - } -#line 1924 "src/IceGrid/Grammar.cpp" - break; + case 15: /* command: ICEGRID_APPLICATION ICEGRID_UPDATE strings ';' */ +#line 194 "src/IceGrid/Grammar.y" +{ + parser->updateApplication(yyvsp[-1]); +} +#line 1923 "src/IceGrid/Grammar.cpp" + break; - case 16: /* command: ICE_GRID_APPLICATION ICE_GRID_UPDATE ICE_GRID_HELP ';' */ -#line 197 "src/IceGrid/Grammar.y" - { - parser->usage("application", "update"); - } -#line 1932 "src/IceGrid/Grammar.cpp" - break; + case 16: /* command: ICEGRID_APPLICATION ICEGRID_UPDATE ICEGRID_HELP ';' */ +#line 198 "src/IceGrid/Grammar.y" +{ + parser->usage("application", "update"); +} +#line 1931 "src/IceGrid/Grammar.cpp" + break; - case 17: /* command: ICE_GRID_APPLICATION ICE_GRID_DESCRIBE strings ';' */ -#line 201 "src/IceGrid/Grammar.y" - { - parser->describeApplication(yyvsp[-1]); - } -#line 1940 "src/IceGrid/Grammar.cpp" - break; + case 17: /* command: ICEGRID_APPLICATION ICEGRID_DESCRIBE strings ';' */ +#line 202 "src/IceGrid/Grammar.y" +{ + parser->describeApplication(yyvsp[-1]); +} +#line 1939 "src/IceGrid/Grammar.cpp" + break; - case 18: /* command: ICE_GRID_APPLICATION ICE_GRID_DESCRIBE ICE_GRID_HELP ';' */ -#line 205 "src/IceGrid/Grammar.y" - { - parser->usage("application", "describe"); - } -#line 1948 "src/IceGrid/Grammar.cpp" - break; + case 18: /* command: ICEGRID_APPLICATION ICEGRID_DESCRIBE ICEGRID_HELP ';' */ +#line 206 "src/IceGrid/Grammar.y" +{ + parser->usage("application", "describe"); +} +#line 1947 "src/IceGrid/Grammar.cpp" + break; - case 19: /* command: ICE_GRID_APPLICATION ICE_GRID_LIST strings ';' */ -#line 209 "src/IceGrid/Grammar.y" - { - parser->listAllApplications(yyvsp[-1]); - } -#line 1956 "src/IceGrid/Grammar.cpp" - break; + case 19: /* command: ICEGRID_APPLICATION ICEGRID_LIST strings ';' */ +#line 210 "src/IceGrid/Grammar.y" +{ + parser->listAllApplications(yyvsp[-1]); +} +#line 1955 "src/IceGrid/Grammar.cpp" + break; - case 20: /* command: ICE_GRID_APPLICATION ICE_GRID_LIST ICE_GRID_HELP ';' */ -#line 213 "src/IceGrid/Grammar.y" - { - parser->usage("application", "list"); - } -#line 1964 "src/IceGrid/Grammar.cpp" - break; + case 20: /* command: ICEGRID_APPLICATION ICEGRID_LIST ICEGRID_HELP ';' */ +#line 214 "src/IceGrid/Grammar.y" +{ + parser->usage("application", "list"); +} +#line 1963 "src/IceGrid/Grammar.cpp" + break; - case 21: /* command: ICE_GRID_SERVER ICE_GRID_TEMPLATE ICE_GRID_DESCRIBE strings ';' */ -#line 217 "src/IceGrid/Grammar.y" - { - parser->describeServerTemplate(yyvsp[-1]); - } -#line 1972 "src/IceGrid/Grammar.cpp" - break; + case 21: /* command: ICEGRID_SERVER ICEGRID_TEMPLATE ICEGRID_DESCRIBE strings ';' */ +#line 218 "src/IceGrid/Grammar.y" +{ + parser->describeServerTemplate(yyvsp[-1]); +} +#line 1971 "src/IceGrid/Grammar.cpp" + break; - case 22: /* command: ICE_GRID_SERVER ICE_GRID_TEMPLATE ICE_GRID_DESCRIBE ICE_GRID_HELP ';' */ -#line 221 "src/IceGrid/Grammar.y" - { - parser->usage("server template", "describe"); - } -#line 1980 "src/IceGrid/Grammar.cpp" - break; + case 22: /* command: ICEGRID_SERVER ICEGRID_TEMPLATE ICEGRID_DESCRIBE ICEGRID_HELP ';' */ +#line 222 "src/IceGrid/Grammar.y" +{ + parser->usage("server template", "describe"); +} +#line 1979 "src/IceGrid/Grammar.cpp" + break; - case 23: /* command: ICE_GRID_SERVER ICE_GRID_TEMPLATE ICE_GRID_INSTANTIATE strings ';' */ -#line 225 "src/IceGrid/Grammar.y" - { - parser->instantiateServerTemplate(yyvsp[-1]); - } -#line 1988 "src/IceGrid/Grammar.cpp" - break; + case 23: /* command: ICEGRID_SERVER ICEGRID_TEMPLATE ICEGRID_INSTANTIATE strings ';' */ +#line 226 "src/IceGrid/Grammar.y" +{ + parser->instantiateServerTemplate(yyvsp[-1]); +} +#line 1987 "src/IceGrid/Grammar.cpp" + break; - case 24: /* command: ICE_GRID_SERVER ICE_GRID_TEMPLATE ICE_GRID_INSTANTIATE ICE_GRID_HELP ';' */ -#line 229 "src/IceGrid/Grammar.y" - { - parser->usage("server template", "instantiate"); - } -#line 1996 "src/IceGrid/Grammar.cpp" - break; + case 24: /* command: ICEGRID_SERVER ICEGRID_TEMPLATE ICEGRID_INSTANTIATE ICEGRID_HELP ';' */ +#line 230 "src/IceGrid/Grammar.y" +{ + parser->usage("server template", "instantiate"); +} +#line 1995 "src/IceGrid/Grammar.cpp" + break; - case 25: /* command: ICE_GRID_SERVER ICE_GRID_TEMPLATE ICE_GRID_HELP ';' */ -#line 233 "src/IceGrid/Grammar.y" - { - parser->usage("server template"); - } -#line 2004 "src/IceGrid/Grammar.cpp" - break; + case 25: /* command: ICEGRID_SERVER ICEGRID_TEMPLATE ICEGRID_HELP ';' */ +#line 234 "src/IceGrid/Grammar.y" +{ + parser->usage("server template"); +} +#line 2003 "src/IceGrid/Grammar.cpp" + break; - case 26: /* command: ICE_GRID_SERVICE ICE_GRID_TEMPLATE ICE_GRID_DESCRIBE strings ';' */ -#line 237 "src/IceGrid/Grammar.y" - { - parser->describeServiceTemplate(yyvsp[-1]); - } -#line 2012 "src/IceGrid/Grammar.cpp" - break; + case 26: /* command: ICEGRID_SERVICE ICEGRID_TEMPLATE ICEGRID_DESCRIBE strings ';' */ +#line 238 "src/IceGrid/Grammar.y" +{ + parser->describeServiceTemplate(yyvsp[-1]); +} +#line 2011 "src/IceGrid/Grammar.cpp" + break; - case 27: /* command: ICE_GRID_SERVICE ICE_GRID_TEMPLATE ICE_GRID_DESCRIBE ICE_GRID_HELP ';' */ -#line 241 "src/IceGrid/Grammar.y" - { - parser->usage("service template", "describe"); - } -#line 2020 "src/IceGrid/Grammar.cpp" - break; + case 27: /* command: ICEGRID_SERVICE ICEGRID_TEMPLATE ICEGRID_DESCRIBE ICEGRID_HELP ';' */ +#line 242 "src/IceGrid/Grammar.y" +{ + parser->usage("service template", "describe"); +} +#line 2019 "src/IceGrid/Grammar.cpp" + break; - case 28: /* command: ICE_GRID_SERVICE ICE_GRID_TEMPLATE ICE_GRID_HELP ';' */ -#line 245 "src/IceGrid/Grammar.y" - { - parser->usage("service template"); - } -#line 2028 "src/IceGrid/Grammar.cpp" - break; + case 28: /* command: ICEGRID_SERVICE ICEGRID_TEMPLATE ICEGRID_HELP ';' */ +#line 246 "src/IceGrid/Grammar.y" +{ + parser->usage("service template"); +} +#line 2027 "src/IceGrid/Grammar.cpp" + break; - case 29: /* command: ICE_GRID_NODE ICE_GRID_DESCRIBE strings ';' */ -#line 249 "src/IceGrid/Grammar.y" - { - parser->describeNode(yyvsp[-1]); - } -#line 2036 "src/IceGrid/Grammar.cpp" - break; + case 29: /* command: ICEGRID_NODE ICEGRID_DESCRIBE strings ';' */ +#line 250 "src/IceGrid/Grammar.y" +{ + parser->describeNode(yyvsp[-1]); +} +#line 2035 "src/IceGrid/Grammar.cpp" + break; - case 30: /* command: ICE_GRID_NODE ICE_GRID_DESCRIBE ICE_GRID_HELP ';' */ -#line 253 "src/IceGrid/Grammar.y" - { - parser->usage("node", "describe"); - } -#line 2044 "src/IceGrid/Grammar.cpp" - break; + case 30: /* command: ICEGRID_NODE ICEGRID_DESCRIBE ICEGRID_HELP ';' */ +#line 254 "src/IceGrid/Grammar.y" +{ + parser->usage("node", "describe"); +} +#line 2043 "src/IceGrid/Grammar.cpp" + break; - case 31: /* command: ICE_GRID_NODE ICE_GRID_PING strings ';' */ -#line 257 "src/IceGrid/Grammar.y" - { - parser->pingNode(yyvsp[-1]); - } -#line 2052 "src/IceGrid/Grammar.cpp" - break; + case 31: /* command: ICEGRID_NODE ICEGRID_PING strings ';' */ +#line 258 "src/IceGrid/Grammar.y" +{ + parser->pingNode(yyvsp[-1]); +} +#line 2051 "src/IceGrid/Grammar.cpp" + break; - case 32: /* command: ICE_GRID_NODE ICE_GRID_PING ICE_GRID_HELP ';' */ -#line 261 "src/IceGrid/Grammar.y" - { - parser->usage("node", "ping"); - } -#line 2060 "src/IceGrid/Grammar.cpp" - break; + case 32: /* command: ICEGRID_NODE ICEGRID_PING ICEGRID_HELP ';' */ +#line 262 "src/IceGrid/Grammar.y" +{ + parser->usage("node", "ping"); +} +#line 2059 "src/IceGrid/Grammar.cpp" + break; - case 33: /* command: ICE_GRID_NODE ICE_GRID_LOAD strings ';' */ -#line 265 "src/IceGrid/Grammar.y" - { - parser->printLoadNode(yyvsp[-1]); - } -#line 2068 "src/IceGrid/Grammar.cpp" - break; + case 33: /* command: ICEGRID_NODE ICEGRID_LOAD strings ';' */ +#line 266 "src/IceGrid/Grammar.y" +{ + parser->printLoadNode(yyvsp[-1]); +} +#line 2067 "src/IceGrid/Grammar.cpp" + break; - case 34: /* command: ICE_GRID_NODE ICE_GRID_LOAD ICE_GRID_HELP ';' */ -#line 269 "src/IceGrid/Grammar.y" - { - parser->usage("node", "load"); - } -#line 2076 "src/IceGrid/Grammar.cpp" - break; + case 34: /* command: ICEGRID_NODE ICEGRID_LOAD ICEGRID_HELP ';' */ +#line 270 "src/IceGrid/Grammar.y" +{ + parser->usage("node", "load"); +} +#line 2075 "src/IceGrid/Grammar.cpp" + break; - case 35: /* command: ICE_GRID_NODE ICE_GRID_SOCKETS strings ';' */ -#line 273 "src/IceGrid/Grammar.y" - { - parser->printNodeProcessorSockets(yyvsp[-1]); - } -#line 2084 "src/IceGrid/Grammar.cpp" - break; + case 35: /* command: ICEGRID_NODE ICEGRID_SOCKETS strings ';' */ +#line 274 "src/IceGrid/Grammar.y" +{ + parser->printNodeProcessorSockets(yyvsp[-1]); +} +#line 2083 "src/IceGrid/Grammar.cpp" + break; - case 36: /* command: ICE_GRID_NODE ICE_GRID_SOCKETS ICE_GRID_HELP ';' */ -#line 277 "src/IceGrid/Grammar.y" - { - parser->usage("node", "sockets"); - } -#line 2092 "src/IceGrid/Grammar.cpp" - break; + case 36: /* command: ICEGRID_NODE ICEGRID_SOCKETS ICEGRID_HELP ';' */ +#line 278 "src/IceGrid/Grammar.y" +{ + parser->usage("node", "sockets"); +} +#line 2091 "src/IceGrid/Grammar.cpp" + break; - case 37: /* command: ICE_GRID_NODE ICE_GRID_SHUTDOWN strings ';' */ -#line 281 "src/IceGrid/Grammar.y" - { - parser->shutdownNode(yyvsp[-1]); - } -#line 2100 "src/IceGrid/Grammar.cpp" - break; + case 37: /* command: ICEGRID_NODE ICEGRID_SHUTDOWN strings ';' */ +#line 282 "src/IceGrid/Grammar.y" +{ + parser->shutdownNode(yyvsp[-1]); +} +#line 2099 "src/IceGrid/Grammar.cpp" + break; - case 38: /* command: ICE_GRID_NODE ICE_GRID_SHUTDOWN ICE_GRID_HELP ';' */ -#line 285 "src/IceGrid/Grammar.y" - { - parser->usage("node", "shutdown"); - } -#line 2108 "src/IceGrid/Grammar.cpp" - break; + case 38: /* command: ICEGRID_NODE ICEGRID_SHUTDOWN ICEGRID_HELP ';' */ +#line 286 "src/IceGrid/Grammar.y" +{ + parser->usage("node", "shutdown"); +} +#line 2107 "src/IceGrid/Grammar.cpp" + break; - case 39: /* command: ICE_GRID_NODE ICE_GRID_LIST strings ';' */ -#line 289 "src/IceGrid/Grammar.y" - { - parser->listAllNodes(yyvsp[-1]); - } -#line 2116 "src/IceGrid/Grammar.cpp" - break; + case 39: /* command: ICEGRID_NODE ICEGRID_LIST strings ';' */ +#line 290 "src/IceGrid/Grammar.y" +{ + parser->listAllNodes(yyvsp[-1]); +} +#line 2115 "src/IceGrid/Grammar.cpp" + break; - case 40: /* command: ICE_GRID_NODE ICE_GRID_LIST ICE_GRID_HELP ';' */ -#line 293 "src/IceGrid/Grammar.y" - { - parser->usage("node", "list"); - } -#line 2124 "src/IceGrid/Grammar.cpp" - break; + case 40: /* command: ICEGRID_NODE ICEGRID_LIST ICEGRID_HELP ';' */ +#line 294 "src/IceGrid/Grammar.y" +{ + parser->usage("node", "list"); +} +#line 2123 "src/IceGrid/Grammar.cpp" + break; - case 41: /* command: ICE_GRID_NODE ICE_GRID_SHOW strings ';' */ -#line 297 "src/IceGrid/Grammar.y" - { - parser->show("node", yyvsp[-1]); - } -#line 2132 "src/IceGrid/Grammar.cpp" - break; + case 41: /* command: ICEGRID_NODE ICEGRID_SHOW strings ';' */ +#line 298 "src/IceGrid/Grammar.y" +{ + parser->show("node", yyvsp[-1]); +} +#line 2131 "src/IceGrid/Grammar.cpp" + break; - case 42: /* command: ICE_GRID_NODE ICE_GRID_SHOW ICE_GRID_HELP ';' */ -#line 301 "src/IceGrid/Grammar.y" - { - parser->usage("node", "show"); - } -#line 2140 "src/IceGrid/Grammar.cpp" - break; + case 42: /* command: ICEGRID_NODE ICEGRID_SHOW ICEGRID_HELP ';' */ +#line 302 "src/IceGrid/Grammar.y" +{ + parser->usage("node", "show"); +} +#line 2139 "src/IceGrid/Grammar.cpp" + break; - case 43: /* command: ICE_GRID_REGISTRY ICE_GRID_DESCRIBE strings ';' */ -#line 305 "src/IceGrid/Grammar.y" - { - parser->describeRegistry(yyvsp[-1]); - } -#line 2148 "src/IceGrid/Grammar.cpp" - break; + case 43: /* command: ICEGRID_REGISTRY ICEGRID_DESCRIBE strings ';' */ +#line 306 "src/IceGrid/Grammar.y" +{ + parser->describeRegistry(yyvsp[-1]); +} +#line 2147 "src/IceGrid/Grammar.cpp" + break; - case 44: /* command: ICE_GRID_REGISTRY ICE_GRID_DESCRIBE ICE_GRID_HELP ';' */ -#line 309 "src/IceGrid/Grammar.y" - { - parser->usage("registry", "describe"); - } -#line 2156 "src/IceGrid/Grammar.cpp" - break; + case 44: /* command: ICEGRID_REGISTRY ICEGRID_DESCRIBE ICEGRID_HELP ';' */ +#line 310 "src/IceGrid/Grammar.y" +{ + parser->usage("registry", "describe"); +} +#line 2155 "src/IceGrid/Grammar.cpp" + break; - case 45: /* command: ICE_GRID_REGISTRY ICE_GRID_PING strings ';' */ -#line 313 "src/IceGrid/Grammar.y" - { - parser->pingRegistry(yyvsp[-1]); - } -#line 2164 "src/IceGrid/Grammar.cpp" - break; + case 45: /* command: ICEGRID_REGISTRY ICEGRID_PING strings ';' */ +#line 314 "src/IceGrid/Grammar.y" +{ + parser->pingRegistry(yyvsp[-1]); +} +#line 2163 "src/IceGrid/Grammar.cpp" + break; - case 46: /* command: ICE_GRID_REGISTRY ICE_GRID_PING ICE_GRID_HELP ';' */ -#line 317 "src/IceGrid/Grammar.y" - { - parser->usage("registry", "ping"); - } -#line 2172 "src/IceGrid/Grammar.cpp" - break; + case 46: /* command: ICEGRID_REGISTRY ICEGRID_PING ICEGRID_HELP ';' */ +#line 318 "src/IceGrid/Grammar.y" +{ + parser->usage("registry", "ping"); +} +#line 2171 "src/IceGrid/Grammar.cpp" + break; - case 47: /* command: ICE_GRID_REGISTRY ICE_GRID_SHUTDOWN strings ';' */ -#line 321 "src/IceGrid/Grammar.y" - { - parser->shutdownRegistry(yyvsp[-1]); - } -#line 2180 "src/IceGrid/Grammar.cpp" - break; + case 47: /* command: ICEGRID_REGISTRY ICEGRID_SHUTDOWN strings ';' */ +#line 322 "src/IceGrid/Grammar.y" +{ + parser->shutdownRegistry(yyvsp[-1]); +} +#line 2179 "src/IceGrid/Grammar.cpp" + break; - case 48: /* command: ICE_GRID_REGISTRY ICE_GRID_SHUTDOWN ICE_GRID_HELP ';' */ -#line 325 "src/IceGrid/Grammar.y" - { - parser->usage("registry", "shutdown"); - } -#line 2188 "src/IceGrid/Grammar.cpp" - break; + case 48: /* command: ICEGRID_REGISTRY ICEGRID_SHUTDOWN ICEGRID_HELP ';' */ +#line 326 "src/IceGrid/Grammar.y" +{ + parser->usage("registry", "shutdown"); +} +#line 2187 "src/IceGrid/Grammar.cpp" + break; - case 49: /* command: ICE_GRID_REGISTRY ICE_GRID_LIST strings ';' */ -#line 329 "src/IceGrid/Grammar.y" - { - parser->listAllRegistries(yyvsp[-1]); - } -#line 2196 "src/IceGrid/Grammar.cpp" - break; + case 49: /* command: ICEGRID_REGISTRY ICEGRID_LIST strings ';' */ +#line 330 "src/IceGrid/Grammar.y" +{ + parser->listAllRegistries(yyvsp[-1]); +} +#line 2195 "src/IceGrid/Grammar.cpp" + break; - case 50: /* command: ICE_GRID_REGISTRY ICE_GRID_LIST ICE_GRID_HELP ';' */ -#line 333 "src/IceGrid/Grammar.y" - { - parser->usage("registry", "list"); - } -#line 2204 "src/IceGrid/Grammar.cpp" - break; + case 50: /* command: ICEGRID_REGISTRY ICEGRID_LIST ICEGRID_HELP ';' */ +#line 334 "src/IceGrid/Grammar.y" +{ + parser->usage("registry", "list"); +} +#line 2203 "src/IceGrid/Grammar.cpp" + break; - case 51: /* command: ICE_GRID_REGISTRY ICE_GRID_SHOW strings ';' */ -#line 337 "src/IceGrid/Grammar.y" - { - parser->show("registry", yyvsp[-1]); - } -#line 2212 "src/IceGrid/Grammar.cpp" - break; + case 51: /* command: ICEGRID_REGISTRY ICEGRID_SHOW strings ';' */ +#line 338 "src/IceGrid/Grammar.y" +{ + parser->show("registry", yyvsp[-1]); +} +#line 2211 "src/IceGrid/Grammar.cpp" + break; - case 52: /* command: ICE_GRID_REGISTRY ICE_GRID_SHOW ICE_GRID_HELP ';' */ -#line 341 "src/IceGrid/Grammar.y" - { - parser->usage("registry", "show"); - } -#line 2220 "src/IceGrid/Grammar.cpp" - break; + case 52: /* command: ICEGRID_REGISTRY ICEGRID_SHOW ICEGRID_HELP ';' */ +#line 342 "src/IceGrid/Grammar.y" +{ + parser->usage("registry", "show"); +} +#line 2219 "src/IceGrid/Grammar.cpp" + break; - case 53: /* command: ICE_GRID_SERVER ICE_GRID_REMOVE strings ';' */ -#line 345 "src/IceGrid/Grammar.y" - { - parser->removeServer(yyvsp[-1]); - } -#line 2228 "src/IceGrid/Grammar.cpp" - break; + case 53: /* command: ICEGRID_SERVER ICEGRID_REMOVE strings ';' */ +#line 346 "src/IceGrid/Grammar.y" +{ + parser->removeServer(yyvsp[-1]); +} +#line 2227 "src/IceGrid/Grammar.cpp" + break; - case 54: /* command: ICE_GRID_SERVER ICE_GRID_REMOVE ICE_GRID_HELP ';' */ -#line 349 "src/IceGrid/Grammar.y" - { - parser->usage("server", "remove"); - } -#line 2236 "src/IceGrid/Grammar.cpp" - break; + case 54: /* command: ICEGRID_SERVER ICEGRID_REMOVE ICEGRID_HELP ';' */ +#line 350 "src/IceGrid/Grammar.y" +{ + parser->usage("server", "remove"); +} +#line 2235 "src/IceGrid/Grammar.cpp" + break; - case 55: /* command: ICE_GRID_SERVER ICE_GRID_DESCRIBE strings ';' */ -#line 353 "src/IceGrid/Grammar.y" - { - parser->describeServer(yyvsp[-1]); - } -#line 2244 "src/IceGrid/Grammar.cpp" - break; + case 55: /* command: ICEGRID_SERVER ICEGRID_DESCRIBE strings ';' */ +#line 354 "src/IceGrid/Grammar.y" +{ + parser->describeServer(yyvsp[-1]); +} +#line 2243 "src/IceGrid/Grammar.cpp" + break; - case 56: /* command: ICE_GRID_SERVER ICE_GRID_DESCRIBE ICE_GRID_HELP ';' */ -#line 357 "src/IceGrid/Grammar.y" - { - parser->usage("server", "describe"); - } -#line 2252 "src/IceGrid/Grammar.cpp" - break; + case 56: /* command: ICEGRID_SERVER ICEGRID_DESCRIBE ICEGRID_HELP ';' */ +#line 358 "src/IceGrid/Grammar.y" +{ + parser->usage("server", "describe"); +} +#line 2251 "src/IceGrid/Grammar.cpp" + break; - case 57: /* command: ICE_GRID_SERVER ICE_GRID_START strings ';' */ -#line 361 "src/IceGrid/Grammar.y" - { - parser->startServer(yyvsp[-1]); - } -#line 2260 "src/IceGrid/Grammar.cpp" - break; + case 57: /* command: ICEGRID_SERVER ICEGRID_START strings ';' */ +#line 362 "src/IceGrid/Grammar.y" +{ + parser->startServer(yyvsp[-1]); +} +#line 2259 "src/IceGrid/Grammar.cpp" + break; - case 58: /* command: ICE_GRID_SERVER ICE_GRID_START ICE_GRID_HELP ';' */ -#line 365 "src/IceGrid/Grammar.y" - { - parser->usage("server", "start"); - } -#line 2268 "src/IceGrid/Grammar.cpp" - break; + case 58: /* command: ICEGRID_SERVER ICEGRID_START ICEGRID_HELP ';' */ +#line 366 "src/IceGrid/Grammar.y" +{ + parser->usage("server", "start"); +} +#line 2267 "src/IceGrid/Grammar.cpp" + break; - case 59: /* command: ICE_GRID_SERVER ICE_GRID_STOP strings ';' */ -#line 369 "src/IceGrid/Grammar.y" - { - parser->stopServer(yyvsp[-1]); - } -#line 2276 "src/IceGrid/Grammar.cpp" - break; + case 59: /* command: ICEGRID_SERVER ICEGRID_STOP strings ';' */ +#line 370 "src/IceGrid/Grammar.y" +{ + parser->stopServer(yyvsp[-1]); +} +#line 2275 "src/IceGrid/Grammar.cpp" + break; - case 60: /* command: ICE_GRID_SERVER ICE_GRID_STOP ICE_GRID_HELP ';' */ -#line 373 "src/IceGrid/Grammar.y" - { - parser->usage("server", "stop"); - } -#line 2284 "src/IceGrid/Grammar.cpp" - break; + case 60: /* command: ICEGRID_SERVER ICEGRID_STOP ICEGRID_HELP ';' */ +#line 374 "src/IceGrid/Grammar.y" +{ + parser->usage("server", "stop"); +} +#line 2283 "src/IceGrid/Grammar.cpp" + break; - case 61: /* command: ICE_GRID_SERVER ICE_GRID_SIGNAL strings ';' */ -#line 377 "src/IceGrid/Grammar.y" - { - parser->signalServer(yyvsp[-1]); - } -#line 2292 "src/IceGrid/Grammar.cpp" - break; + case 61: /* command: ICEGRID_SERVER ICEGRID_SIGNAL strings ';' */ +#line 378 "src/IceGrid/Grammar.y" +{ + parser->signalServer(yyvsp[-1]); +} +#line 2291 "src/IceGrid/Grammar.cpp" + break; - case 62: /* command: ICE_GRID_SERVER ICE_GRID_SIGNAL ICE_GRID_HELP ';' */ -#line 381 "src/IceGrid/Grammar.y" - { - parser->usage("server", "signal"); - } -#line 2300 "src/IceGrid/Grammar.cpp" - break; + case 62: /* command: ICEGRID_SERVER ICEGRID_SIGNAL ICEGRID_HELP ';' */ +#line 382 "src/IceGrid/Grammar.y" +{ + parser->usage("server", "signal"); +} +#line 2299 "src/IceGrid/Grammar.cpp" + break; - case 63: /* command: ICE_GRID_SERVER ICE_GRID_STDOUT strings ';' */ -#line 385 "src/IceGrid/Grammar.y" - { - parser->writeMessage(yyvsp[-1], 1); - } -#line 2308 "src/IceGrid/Grammar.cpp" - break; + case 63: /* command: ICEGRID_SERVER ICEGRID_STDOUT strings ';' */ +#line 386 "src/IceGrid/Grammar.y" +{ + parser->writeMessage(yyvsp[-1], 1); +} +#line 2307 "src/IceGrid/Grammar.cpp" + break; - case 64: /* command: ICE_GRID_SERVER ICE_GRID_STDOUT ICE_GRID_HELP ';' */ -#line 389 "src/IceGrid/Grammar.y" - { - parser->usage("server", "stdout"); - } -#line 2316 "src/IceGrid/Grammar.cpp" - break; + case 64: /* command: ICEGRID_SERVER ICEGRID_STDOUT ICEGRID_HELP ';' */ +#line 390 "src/IceGrid/Grammar.y" +{ + parser->usage("server", "stdout"); +} +#line 2315 "src/IceGrid/Grammar.cpp" + break; - case 65: /* command: ICE_GRID_SERVER ICE_GRID_STDERR strings ';' */ -#line 393 "src/IceGrid/Grammar.y" - { - parser->writeMessage(yyvsp[-1], 2); - } -#line 2324 "src/IceGrid/Grammar.cpp" - break; + case 65: /* command: ICEGRID_SERVER ICEGRID_STDERR strings ';' */ +#line 394 "src/IceGrid/Grammar.y" +{ + parser->writeMessage(yyvsp[-1], 2); +} +#line 2323 "src/IceGrid/Grammar.cpp" + break; - case 66: /* command: ICE_GRID_SERVER ICE_GRID_STDERR ICE_GRID_HELP ';' */ -#line 397 "src/IceGrid/Grammar.y" - { - parser->usage("server", "stderr"); - } -#line 2332 "src/IceGrid/Grammar.cpp" - break; + case 66: /* command: ICEGRID_SERVER ICEGRID_STDERR ICEGRID_HELP ';' */ +#line 398 "src/IceGrid/Grammar.y" +{ + parser->usage("server", "stderr"); +} +#line 2331 "src/IceGrid/Grammar.cpp" + break; - case 67: /* command: ICE_GRID_SERVER ICE_GRID_STATE strings ';' */ -#line 401 "src/IceGrid/Grammar.y" - { - parser->stateServer(yyvsp[-1]); - } -#line 2340 "src/IceGrid/Grammar.cpp" - break; + case 67: /* command: ICEGRID_SERVER ICEGRID_STATE strings ';' */ +#line 402 "src/IceGrid/Grammar.y" +{ + parser->stateServer(yyvsp[-1]); +} +#line 2339 "src/IceGrid/Grammar.cpp" + break; - case 68: /* command: ICE_GRID_SERVER ICE_GRID_STATE ICE_GRID_HELP ';' */ -#line 405 "src/IceGrid/Grammar.y" - { - parser->usage("server", "start"); - } -#line 2348 "src/IceGrid/Grammar.cpp" - break; + case 68: /* command: ICEGRID_SERVER ICEGRID_STATE ICEGRID_HELP ';' */ +#line 406 "src/IceGrid/Grammar.y" +{ + parser->usage("server", "start"); +} +#line 2347 "src/IceGrid/Grammar.cpp" + break; - case 69: /* command: ICE_GRID_SERVER ICE_GRID_PID strings ';' */ -#line 409 "src/IceGrid/Grammar.y" - { - parser->pidServer(yyvsp[-1]); - } -#line 2356 "src/IceGrid/Grammar.cpp" - break; + case 69: /* command: ICEGRID_SERVER ICEGRID_PID strings ';' */ +#line 410 "src/IceGrid/Grammar.y" +{ + parser->pidServer(yyvsp[-1]); +} +#line 2355 "src/IceGrid/Grammar.cpp" + break; - case 70: /* command: ICE_GRID_SERVER ICE_GRID_PID ICE_GRID_HELP ';' */ -#line 413 "src/IceGrid/Grammar.y" - { - parser->usage("server", "pid"); - } -#line 2364 "src/IceGrid/Grammar.cpp" - break; + case 70: /* command: ICEGRID_SERVER ICEGRID_PID ICEGRID_HELP ';' */ +#line 414 "src/IceGrid/Grammar.y" +{ + parser->usage("server", "pid"); +} +#line 2363 "src/IceGrid/Grammar.cpp" + break; - case 71: /* command: ICE_GRID_SERVER ICE_GRID_PROPERTIES strings ';' */ -#line 417 "src/IceGrid/Grammar.y" - { - parser->propertiesServer(yyvsp[-1], false); - } -#line 2372 "src/IceGrid/Grammar.cpp" - break; + case 71: /* command: ICEGRID_SERVER ICEGRID_PROPERTIES strings ';' */ +#line 418 "src/IceGrid/Grammar.y" +{ + parser->propertiesServer(yyvsp[-1], false); +} +#line 2371 "src/IceGrid/Grammar.cpp" + break; - case 72: /* command: ICE_GRID_SERVER ICE_GRID_PROPERTIES ICE_GRID_HELP ';' */ -#line 421 "src/IceGrid/Grammar.y" - { - parser->usage("server", "properties"); - } -#line 2380 "src/IceGrid/Grammar.cpp" - break; + case 72: /* command: ICEGRID_SERVER ICEGRID_PROPERTIES ICEGRID_HELP ';' */ +#line 422 "src/IceGrid/Grammar.y" +{ + parser->usage("server", "properties"); +} +#line 2379 "src/IceGrid/Grammar.cpp" + break; - case 73: /* command: ICE_GRID_SERVER ICE_GRID_PROPERTY strings ';' */ -#line 425 "src/IceGrid/Grammar.y" - { - parser->propertiesServer(yyvsp[-1], true); - } -#line 2388 "src/IceGrid/Grammar.cpp" - break; + case 73: /* command: ICEGRID_SERVER ICEGRID_PROPERTY strings ';' */ +#line 426 "src/IceGrid/Grammar.y" +{ + parser->propertiesServer(yyvsp[-1], true); +} +#line 2387 "src/IceGrid/Grammar.cpp" + break; - case 74: /* command: ICE_GRID_SERVER ICE_GRID_PROPERTY ICE_GRID_HELP ';' */ -#line 429 "src/IceGrid/Grammar.y" - { - parser->usage("server", "property"); - } -#line 2396 "src/IceGrid/Grammar.cpp" - break; + case 74: /* command: ICEGRID_SERVER ICEGRID_PROPERTY ICEGRID_HELP ';' */ +#line 430 "src/IceGrid/Grammar.y" +{ + parser->usage("server", "property"); +} +#line 2395 "src/IceGrid/Grammar.cpp" + break; - case 75: /* command: ICE_GRID_SERVER ICE_GRID_ENABLE strings ';' */ -#line 433 "src/IceGrid/Grammar.y" - { - parser->enableServer(yyvsp[-1], true); - } -#line 2404 "src/IceGrid/Grammar.cpp" - break; + case 75: /* command: ICEGRID_SERVER ICEGRID_ENABLE strings ';' */ +#line 434 "src/IceGrid/Grammar.y" +{ + parser->enableServer(yyvsp[-1], true); +} +#line 2403 "src/IceGrid/Grammar.cpp" + break; - case 76: /* command: ICE_GRID_SERVER ICE_GRID_ENABLE ICE_GRID_HELP ';' */ -#line 437 "src/IceGrid/Grammar.y" - { - parser->usage("server", "enable"); - } -#line 2412 "src/IceGrid/Grammar.cpp" - break; + case 76: /* command: ICEGRID_SERVER ICEGRID_ENABLE ICEGRID_HELP ';' */ +#line 438 "src/IceGrid/Grammar.y" +{ + parser->usage("server", "enable"); +} +#line 2411 "src/IceGrid/Grammar.cpp" + break; - case 77: /* command: ICE_GRID_SERVER ICE_GRID_DISABLE strings ';' */ -#line 441 "src/IceGrid/Grammar.y" - { - parser->enableServer(yyvsp[-1], false); - } -#line 2420 "src/IceGrid/Grammar.cpp" - break; + case 77: /* command: ICEGRID_SERVER ICEGRID_DISABLE strings ';' */ +#line 442 "src/IceGrid/Grammar.y" +{ + parser->enableServer(yyvsp[-1], false); +} +#line 2419 "src/IceGrid/Grammar.cpp" + break; - case 78: /* command: ICE_GRID_SERVER ICE_GRID_DISABLE ICE_GRID_HELP ';' */ -#line 445 "src/IceGrid/Grammar.y" - { - parser->usage("server", "disable"); - } -#line 2428 "src/IceGrid/Grammar.cpp" - break; + case 78: /* command: ICEGRID_SERVER ICEGRID_DISABLE ICEGRID_HELP ';' */ +#line 446 "src/IceGrid/Grammar.y" +{ + parser->usage("server", "disable"); +} +#line 2427 "src/IceGrid/Grammar.cpp" + break; - case 79: /* command: ICE_GRID_SERVER ICE_GRID_LIST strings ';' */ -#line 449 "src/IceGrid/Grammar.y" - { - parser->listAllServers(yyvsp[-1]); - } -#line 2436 "src/IceGrid/Grammar.cpp" - break; + case 79: /* command: ICEGRID_SERVER ICEGRID_LIST strings ';' */ +#line 450 "src/IceGrid/Grammar.y" +{ + parser->listAllServers(yyvsp[-1]); +} +#line 2435 "src/IceGrid/Grammar.cpp" + break; - case 80: /* command: ICE_GRID_SERVER ICE_GRID_LIST ICE_GRID_HELP ';' */ -#line 453 "src/IceGrid/Grammar.y" - { - parser->usage("server", "list"); - } -#line 2444 "src/IceGrid/Grammar.cpp" - break; + case 80: /* command: ICEGRID_SERVER ICEGRID_LIST ICEGRID_HELP ';' */ +#line 454 "src/IceGrid/Grammar.y" +{ + parser->usage("server", "list"); +} +#line 2443 "src/IceGrid/Grammar.cpp" + break; - case 81: /* command: ICE_GRID_SERVER ICE_GRID_SHOW strings ';' */ -#line 457 "src/IceGrid/Grammar.y" - { - parser->show("server", yyvsp[-1]); - } -#line 2452 "src/IceGrid/Grammar.cpp" - break; + case 81: /* command: ICEGRID_SERVER ICEGRID_SHOW strings ';' */ +#line 458 "src/IceGrid/Grammar.y" +{ + parser->show("server", yyvsp[-1]); +} +#line 2451 "src/IceGrid/Grammar.cpp" + break; - case 82: /* command: ICE_GRID_SERVER ICE_GRID_SHOW ICE_GRID_HELP ';' */ -#line 461 "src/IceGrid/Grammar.y" - { - parser->usage("server", "show"); - } -#line 2460 "src/IceGrid/Grammar.cpp" - break; + case 82: /* command: ICEGRID_SERVER ICEGRID_SHOW ICEGRID_HELP ';' */ +#line 462 "src/IceGrid/Grammar.y" +{ + parser->usage("server", "show"); +} +#line 2459 "src/IceGrid/Grammar.cpp" + break; - case 83: /* command: ICE_GRID_SERVICE ICE_GRID_START strings ';' */ -#line 465 "src/IceGrid/Grammar.y" - { - parser->startService(yyvsp[-1]); - } -#line 2468 "src/IceGrid/Grammar.cpp" - break; + case 83: /* command: ICEGRID_SERVICE ICEGRID_START strings ';' */ +#line 466 "src/IceGrid/Grammar.y" +{ + parser->startService(yyvsp[-1]); +} +#line 2467 "src/IceGrid/Grammar.cpp" + break; - case 84: /* command: ICE_GRID_SERVICE ICE_GRID_START ICE_GRID_HELP ';' */ -#line 469 "src/IceGrid/Grammar.y" - { - parser->usage("service", "start"); - } -#line 2476 "src/IceGrid/Grammar.cpp" - break; + case 84: /* command: ICEGRID_SERVICE ICEGRID_START ICEGRID_HELP ';' */ +#line 470 "src/IceGrid/Grammar.y" +{ + parser->usage("service", "start"); +} +#line 2475 "src/IceGrid/Grammar.cpp" + break; - case 85: /* command: ICE_GRID_SERVICE ICE_GRID_STOP strings ';' */ -#line 473 "src/IceGrid/Grammar.y" - { - parser->stopService(yyvsp[-1]); - } -#line 2484 "src/IceGrid/Grammar.cpp" - break; + case 85: /* command: ICEGRID_SERVICE ICEGRID_STOP strings ';' */ +#line 474 "src/IceGrid/Grammar.y" +{ + parser->stopService(yyvsp[-1]); +} +#line 2483 "src/IceGrid/Grammar.cpp" + break; - case 86: /* command: ICE_GRID_SERVICE ICE_GRID_STOP ICE_GRID_HELP ';' */ -#line 477 "src/IceGrid/Grammar.y" - { - parser->usage("service", "stop"); - } -#line 2492 "src/IceGrid/Grammar.cpp" - break; + case 86: /* command: ICEGRID_SERVICE ICEGRID_STOP ICEGRID_HELP ';' */ +#line 478 "src/IceGrid/Grammar.y" +{ + parser->usage("service", "stop"); +} +#line 2491 "src/IceGrid/Grammar.cpp" + break; - case 87: /* command: ICE_GRID_SERVICE ICE_GRID_DESCRIBE strings ';' */ -#line 481 "src/IceGrid/Grammar.y" - { - parser->describeService(yyvsp[-1]); - } -#line 2500 "src/IceGrid/Grammar.cpp" - break; + case 87: /* command: ICEGRID_SERVICE ICEGRID_DESCRIBE strings ';' */ +#line 482 "src/IceGrid/Grammar.y" +{ + parser->describeService(yyvsp[-1]); +} +#line 2499 "src/IceGrid/Grammar.cpp" + break; - case 88: /* command: ICE_GRID_SERVICE ICE_GRID_DESCRIBE ICE_GRID_HELP ';' */ -#line 485 "src/IceGrid/Grammar.y" - { - parser->usage("service", "describe"); - } -#line 2508 "src/IceGrid/Grammar.cpp" - break; + case 88: /* command: ICEGRID_SERVICE ICEGRID_DESCRIBE ICEGRID_HELP ';' */ +#line 486 "src/IceGrid/Grammar.y" +{ + parser->usage("service", "describe"); +} +#line 2507 "src/IceGrid/Grammar.cpp" + break; - case 89: /* command: ICE_GRID_SERVICE ICE_GRID_PROPERTIES strings ';' */ -#line 489 "src/IceGrid/Grammar.y" - { - parser->propertiesService(yyvsp[-1], false); - } -#line 2516 "src/IceGrid/Grammar.cpp" - break; + case 89: /* command: ICEGRID_SERVICE ICEGRID_PROPERTIES strings ';' */ +#line 490 "src/IceGrid/Grammar.y" +{ + parser->propertiesService(yyvsp[-1], false); +} +#line 2515 "src/IceGrid/Grammar.cpp" + break; - case 90: /* command: ICE_GRID_SERVICE ICE_GRID_PROPERTIES ICE_GRID_HELP ';' */ -#line 493 "src/IceGrid/Grammar.y" - { - parser->usage("service", "properties"); - } -#line 2524 "src/IceGrid/Grammar.cpp" - break; + case 90: /* command: ICEGRID_SERVICE ICEGRID_PROPERTIES ICEGRID_HELP ';' */ +#line 494 "src/IceGrid/Grammar.y" +{ + parser->usage("service", "properties"); +} +#line 2523 "src/IceGrid/Grammar.cpp" + break; - case 91: /* command: ICE_GRID_SERVICE ICE_GRID_PROPERTY strings ';' */ -#line 497 "src/IceGrid/Grammar.y" - { - parser->propertiesService(yyvsp[-1], true); - } -#line 2532 "src/IceGrid/Grammar.cpp" - break; + case 91: /* command: ICEGRID_SERVICE ICEGRID_PROPERTY strings ';' */ +#line 498 "src/IceGrid/Grammar.y" +{ + parser->propertiesService(yyvsp[-1], true); +} +#line 2531 "src/IceGrid/Grammar.cpp" + break; - case 92: /* command: ICE_GRID_SERVICE ICE_GRID_PROPERTY ICE_GRID_HELP ';' */ -#line 501 "src/IceGrid/Grammar.y" - { - parser->usage("service", "property"); - } -#line 2540 "src/IceGrid/Grammar.cpp" - break; + case 92: /* command: ICEGRID_SERVICE ICEGRID_PROPERTY ICEGRID_HELP ';' */ +#line 502 "src/IceGrid/Grammar.y" +{ + parser->usage("service", "property"); +} +#line 2539 "src/IceGrid/Grammar.cpp" + break; - case 93: /* command: ICE_GRID_SERVICE ICE_GRID_LIST strings ';' */ -#line 505 "src/IceGrid/Grammar.y" - { - parser->listServices(yyvsp[-1]); - } -#line 2548 "src/IceGrid/Grammar.cpp" - break; + case 93: /* command: ICEGRID_SERVICE ICEGRID_LIST strings ';' */ +#line 506 "src/IceGrid/Grammar.y" +{ + parser->listServices(yyvsp[-1]); +} +#line 2547 "src/IceGrid/Grammar.cpp" + break; - case 94: /* command: ICE_GRID_SERVICE ICE_GRID_LIST ICE_GRID_HELP ';' */ -#line 509 "src/IceGrid/Grammar.y" - { - parser->usage("service", "list"); - } -#line 2556 "src/IceGrid/Grammar.cpp" - break; + case 94: /* command: ICEGRID_SERVICE ICEGRID_LIST ICEGRID_HELP ';' */ +#line 510 "src/IceGrid/Grammar.y" +{ + parser->usage("service", "list"); +} +#line 2555 "src/IceGrid/Grammar.cpp" + break; - case 95: /* command: ICE_GRID_ADAPTER ICE_GRID_ENDPOINTS strings ';' */ -#line 513 "src/IceGrid/Grammar.y" - { - parser->endpointsAdapter(yyvsp[-1]); - } -#line 2564 "src/IceGrid/Grammar.cpp" - break; + case 95: /* command: ICEGRID_ADAPTER ICEGRID_ENDPOINTS strings ';' */ +#line 514 "src/IceGrid/Grammar.y" +{ + parser->endpointsAdapter(yyvsp[-1]); +} +#line 2563 "src/IceGrid/Grammar.cpp" + break; - case 96: /* command: ICE_GRID_ADAPTER ICE_GRID_ENDPOINTS ICE_GRID_HELP ';' */ -#line 517 "src/IceGrid/Grammar.y" - { - parser->usage("adapter", "endpoints"); - } -#line 2572 "src/IceGrid/Grammar.cpp" - break; + case 96: /* command: ICEGRID_ADAPTER ICEGRID_ENDPOINTS ICEGRID_HELP ';' */ +#line 518 "src/IceGrid/Grammar.y" +{ + parser->usage("adapter", "endpoints"); +} +#line 2571 "src/IceGrid/Grammar.cpp" + break; - case 97: /* command: ICE_GRID_ADAPTER ICE_GRID_REMOVE strings ';' */ -#line 521 "src/IceGrid/Grammar.y" - { - parser->removeAdapter(yyvsp[-1]); - } -#line 2580 "src/IceGrid/Grammar.cpp" - break; + case 97: /* command: ICEGRID_ADAPTER ICEGRID_REMOVE strings ';' */ +#line 522 "src/IceGrid/Grammar.y" +{ + parser->removeAdapter(yyvsp[-1]); +} +#line 2579 "src/IceGrid/Grammar.cpp" + break; - case 98: /* command: ICE_GRID_ADAPTER ICE_GRID_REMOVE ICE_GRID_HELP ';' */ -#line 525 "src/IceGrid/Grammar.y" - { - parser->usage("adapter", "remove"); - } -#line 2588 "src/IceGrid/Grammar.cpp" - break; + case 98: /* command: ICEGRID_ADAPTER ICEGRID_REMOVE ICEGRID_HELP ';' */ +#line 526 "src/IceGrid/Grammar.y" +{ + parser->usage("adapter", "remove"); +} +#line 2587 "src/IceGrid/Grammar.cpp" + break; - case 99: /* command: ICE_GRID_ADAPTER ICE_GRID_LIST strings ';' */ -#line 529 "src/IceGrid/Grammar.y" - { - parser->listAllAdapters(yyvsp[-1]); - } -#line 2596 "src/IceGrid/Grammar.cpp" - break; + case 99: /* command: ICEGRID_ADAPTER ICEGRID_LIST strings ';' */ +#line 530 "src/IceGrid/Grammar.y" +{ + parser->listAllAdapters(yyvsp[-1]); +} +#line 2595 "src/IceGrid/Grammar.cpp" + break; - case 100: /* command: ICE_GRID_ADAPTER ICE_GRID_LIST ICE_GRID_HELP ';' */ -#line 533 "src/IceGrid/Grammar.y" - { - parser->usage("adapter", "list"); - } -#line 2604 "src/IceGrid/Grammar.cpp" - break; + case 100: /* command: ICEGRID_ADAPTER ICEGRID_LIST ICEGRID_HELP ';' */ +#line 534 "src/IceGrid/Grammar.y" +{ + parser->usage("adapter", "list"); +} +#line 2603 "src/IceGrid/Grammar.cpp" + break; - case 101: /* command: ICE_GRID_OBJECT ICE_GRID_ADD strings ';' */ -#line 537 "src/IceGrid/Grammar.y" - { - parser->addObject(yyvsp[-1]); - } -#line 2612 "src/IceGrid/Grammar.cpp" - break; + case 101: /* command: ICEGRID_OBJECT ICEGRID_ADD strings ';' */ +#line 538 "src/IceGrid/Grammar.y" +{ + parser->addObject(yyvsp[-1]); +} +#line 2611 "src/IceGrid/Grammar.cpp" + break; - case 102: /* command: ICE_GRID_OBJECT ICE_GRID_ADD ICE_GRID_HELP ';' */ -#line 541 "src/IceGrid/Grammar.y" - { - parser->usage("object", "add"); - } -#line 2620 "src/IceGrid/Grammar.cpp" - break; + case 102: /* command: ICEGRID_OBJECT ICEGRID_ADD ICEGRID_HELP ';' */ +#line 542 "src/IceGrid/Grammar.y" +{ + parser->usage("object", "add"); +} +#line 2619 "src/IceGrid/Grammar.cpp" + break; - case 103: /* command: ICE_GRID_OBJECT ICE_GRID_REMOVE strings ';' */ -#line 545 "src/IceGrid/Grammar.y" - { - parser->removeObject(yyvsp[-1]); - } -#line 2628 "src/IceGrid/Grammar.cpp" - break; + case 103: /* command: ICEGRID_OBJECT ICEGRID_REMOVE strings ';' */ +#line 546 "src/IceGrid/Grammar.y" +{ + parser->removeObject(yyvsp[-1]); +} +#line 2627 "src/IceGrid/Grammar.cpp" + break; - case 104: /* command: ICE_GRID_OBJECT ICE_GRID_REMOVE ICE_GRID_HELP ';' */ -#line 549 "src/IceGrid/Grammar.y" - { - parser->usage("object", "remove"); - } -#line 2636 "src/IceGrid/Grammar.cpp" - break; + case 104: /* command: ICEGRID_OBJECT ICEGRID_REMOVE ICEGRID_HELP ';' */ +#line 550 "src/IceGrid/Grammar.y" +{ + parser->usage("object", "remove"); +} +#line 2635 "src/IceGrid/Grammar.cpp" + break; - case 105: /* command: ICE_GRID_OBJECT ICE_GRID_FIND strings ';' */ -#line 553 "src/IceGrid/Grammar.y" - { - parser->findObject(yyvsp[-1]); - } -#line 2644 "src/IceGrid/Grammar.cpp" - break; + case 105: /* command: ICEGRID_OBJECT ICEGRID_FIND strings ';' */ +#line 554 "src/IceGrid/Grammar.y" +{ + parser->findObject(yyvsp[-1]); +} +#line 2643 "src/IceGrid/Grammar.cpp" + break; - case 106: /* command: ICE_GRID_OBJECT ICE_GRID_FIND ICE_GRID_HELP ';' */ -#line 557 "src/IceGrid/Grammar.y" - { - parser->usage("object", "find"); - } -#line 2652 "src/IceGrid/Grammar.cpp" - break; + case 106: /* command: ICEGRID_OBJECT ICEGRID_FIND ICEGRID_HELP ';' */ +#line 558 "src/IceGrid/Grammar.y" +{ + parser->usage("object", "find"); +} +#line 2651 "src/IceGrid/Grammar.cpp" + break; - case 107: /* command: ICE_GRID_OBJECT ICE_GRID_LIST strings ';' */ -#line 561 "src/IceGrid/Grammar.y" - { - parser->listObject(yyvsp[-1]); - } -#line 2660 "src/IceGrid/Grammar.cpp" - break; + case 107: /* command: ICEGRID_OBJECT ICEGRID_LIST strings ';' */ +#line 562 "src/IceGrid/Grammar.y" +{ + parser->listObject(yyvsp[-1]); +} +#line 2659 "src/IceGrid/Grammar.cpp" + break; - case 108: /* command: ICE_GRID_OBJECT ICE_GRID_LIST ICE_GRID_HELP ';' */ -#line 565 "src/IceGrid/Grammar.y" - { - parser->usage("object", "list"); - } -#line 2668 "src/IceGrid/Grammar.cpp" - break; + case 108: /* command: ICEGRID_OBJECT ICEGRID_LIST ICEGRID_HELP ';' */ +#line 566 "src/IceGrid/Grammar.y" +{ + parser->usage("object", "list"); +} +#line 2667 "src/IceGrid/Grammar.cpp" + break; - case 109: /* command: ICE_GRID_OBJECT ICE_GRID_DESCRIBE strings ';' */ -#line 569 "src/IceGrid/Grammar.y" - { - parser->describeObject(yyvsp[-1]); - } -#line 2676 "src/IceGrid/Grammar.cpp" - break; + case 109: /* command: ICEGRID_OBJECT ICEGRID_DESCRIBE strings ';' */ +#line 570 "src/IceGrid/Grammar.y" +{ + parser->describeObject(yyvsp[-1]); +} +#line 2675 "src/IceGrid/Grammar.cpp" + break; - case 110: /* command: ICE_GRID_OBJECT ICE_GRID_DESCRIBE ICE_GRID_HELP ';' */ -#line 573 "src/IceGrid/Grammar.y" - { - parser->usage("object", "describe"); - } -#line 2684 "src/IceGrid/Grammar.cpp" - break; + case 110: /* command: ICEGRID_OBJECT ICEGRID_DESCRIBE ICEGRID_HELP ';' */ +#line 574 "src/IceGrid/Grammar.y" +{ + parser->usage("object", "describe"); +} +#line 2683 "src/IceGrid/Grammar.cpp" + break; - case 111: /* command: ICE_GRID_SHOW ICE_GRID_COPYING ';' */ -#line 577 "src/IceGrid/Grammar.y" - { - parser->showCopying(); - } -#line 2692 "src/IceGrid/Grammar.cpp" - break; + case 111: /* command: ICEGRID_SHOW ICEGRID_COPYING ';' */ +#line 578 "src/IceGrid/Grammar.y" +{ + parser->showCopying(); +} +#line 2691 "src/IceGrid/Grammar.cpp" + break; - case 112: /* command: ICE_GRID_SHOW ICE_GRID_WARRANTY ';' */ -#line 581 "src/IceGrid/Grammar.y" - { - parser->showWarranty(); - } -#line 2700 "src/IceGrid/Grammar.cpp" - break; + case 112: /* command: ICEGRID_SHOW ICEGRID_WARRANTY ';' */ +#line 582 "src/IceGrid/Grammar.y" +{ + parser->showWarranty(); +} +#line 2699 "src/IceGrid/Grammar.cpp" + break; - case 113: /* command: ICE_GRID_HELP keyword ';' */ -#line 585 "src/IceGrid/Grammar.y" - { - parser->usage(yyvsp[-1].front()); - } -#line 2708 "src/IceGrid/Grammar.cpp" - break; + case 113: /* command: ICEGRID_HELP keyword ';' */ +#line 586 "src/IceGrid/Grammar.y" +{ + parser->usage(yyvsp[-1].front()); +} +#line 2707 "src/IceGrid/Grammar.cpp" + break; + + case 114: /* command: ICEGRID_HELP keyword keyword ';' */ +#line 590 "src/IceGrid/Grammar.y" +{ + if ((yyvsp[-2].front() == "server" || yyvsp[-2].front() == "service") && yyvsp[-1].front() == "template") + { + parser->usage(yyvsp[-2].front() + " " + yyvsp[-1].front()); + } + else + { + parser->usage(yyvsp[-2].front(), yyvsp[-1].front()); + } +} +#line 2722 "src/IceGrid/Grammar.cpp" + break; - case 114: /* command: ICE_GRID_HELP keyword keyword ';' */ -#line 589 "src/IceGrid/Grammar.y" - { - if ((yyvsp[-2].front() == "server" || yyvsp[-2].front() == "service") && yyvsp[-1].front() == "template") - { - parser->usage(yyvsp[-2].front() + " " + yyvsp[-1].front()); - } - else - { - parser->usage(yyvsp[-2].front(), yyvsp[-1].front()); - } - } -#line 2723 "src/IceGrid/Grammar.cpp" - break; + case 115: /* command: ICEGRID_HELP keyword ICEGRID_STRING strings ';' */ +#line 601 "src/IceGrid/Grammar.y" +{ + parser->usage(yyvsp[-3].front(), yyvsp[-2].front()); +} +#line 2730 "src/IceGrid/Grammar.cpp" + break; - case 115: /* command: ICE_GRID_HELP keyword ICE_GRID_STRING strings ';' */ -#line 600 "src/IceGrid/Grammar.y" - { - parser->usage(yyvsp[-3].front(), yyvsp[-2].front()); - } -#line 2731 "src/IceGrid/Grammar.cpp" - break; + case 116: /* command: ICEGRID_HELP keyword keyword keyword ';' */ +#line 605 "src/IceGrid/Grammar.y" +{ + if ((yyvsp[-3].front() == "server" || yyvsp[-3].front() == "service") && yyvsp[-2].front() == "template") + { + parser->usage(yyvsp[-3].front() + " " + yyvsp[-2].front(), yyvsp[-1].front()); + } + else + { + parser->usage(yyvsp[-3].front(), yyvsp[-2].front()); + } +} +#line 2745 "src/IceGrid/Grammar.cpp" + break; - case 116: /* command: ICE_GRID_HELP keyword keyword keyword ';' */ -#line 604 "src/IceGrid/Grammar.y" - { - if ((yyvsp[-3].front() == "server" || yyvsp[-3].front() == "service") && yyvsp[-2].front() == "template") - { - parser->usage(yyvsp[-3].front() + " " + yyvsp[-2].front(), yyvsp[-1].front()); - } - else - { - parser->usage(yyvsp[-3].front(), yyvsp[-2].front()); - } - } -#line 2746 "src/IceGrid/Grammar.cpp" - break; + case 117: /* command: ICEGRID_HELP keyword keyword ICEGRID_STRING strings ';' */ +#line 616 "src/IceGrid/Grammar.y" +{ + if ((yyvsp[-4].front() == "server" || yyvsp[-4].front() == "service") && yyvsp[-3].front() == "template") + { + parser->usage(yyvsp[-4].front() + " " + yyvsp[-3].front(), yyvsp[-2].front()); + } + else + { + parser->usage(yyvsp[-4].front(), yyvsp[-3].front()); + } +} +#line 2760 "src/IceGrid/Grammar.cpp" + break; - case 117: /* command: ICE_GRID_HELP keyword keyword ICE_GRID_STRING strings ';' */ -#line 615 "src/IceGrid/Grammar.y" - { - if ((yyvsp[-4].front() == "server" || yyvsp[-4].front() == "service") && yyvsp[-3].front() == "template") - { - parser->usage(yyvsp[-4].front() + " " + yyvsp[-3].front(), yyvsp[-2].front()); - } - else - { - parser->usage(yyvsp[-4].front(), yyvsp[-3].front()); - } - } -#line 2761 "src/IceGrid/Grammar.cpp" - break; + case 118: /* command: ICEGRID_HELP ICEGRID_STRING strings ';' */ +#line 627 "src/IceGrid/Grammar.y" +{ + parser->usage(yyvsp[-2].front()); +} +#line 2768 "src/IceGrid/Grammar.cpp" + break; - case 118: /* command: ICE_GRID_HELP ICE_GRID_STRING strings ';' */ -#line 626 "src/IceGrid/Grammar.y" - { - parser->usage(yyvsp[-2].front()); - } -#line 2769 "src/IceGrid/Grammar.cpp" - break; + case 119: /* command: ICEGRID_HELP error ';' */ +#line 631 "src/IceGrid/Grammar.y" +{ + parser->usage(); +} +#line 2776 "src/IceGrid/Grammar.cpp" + break; - case 119: /* command: ICE_GRID_HELP error ';' */ -#line 630 "src/IceGrid/Grammar.y" - { - parser->usage(); - } -#line 2777 "src/IceGrid/Grammar.cpp" - break; + case 120: /* command: keyword ICEGRID_HELP ';' */ +#line 635 "src/IceGrid/Grammar.y" +{ + parser->usage(yyvsp[-2].front()); +} +#line 2784 "src/IceGrid/Grammar.cpp" + break; - case 120: /* command: keyword ICE_GRID_HELP ';' */ -#line 634 "src/IceGrid/Grammar.y" - { - parser->usage(yyvsp[-2].front()); - } -#line 2785 "src/IceGrid/Grammar.cpp" - break; + case 121: /* command: keyword ICEGRID_STRING error ';' */ +#line 639 "src/IceGrid/Grammar.y" +{ + yyvsp[-3].push_back(yyvsp[-2].front()); + parser->invalidCommand(yyvsp[-3]); + yyerrok; +} +#line 2794 "src/IceGrid/Grammar.cpp" + break; - case 121: /* command: keyword ICE_GRID_STRING error ';' */ -#line 638 "src/IceGrid/Grammar.y" - { - yyvsp[-3].push_back(yyvsp[-2].front()); - parser->invalidCommand(yyvsp[-3]); - yyerrok; - } -#line 2795 "src/IceGrid/Grammar.cpp" - break; + case 122: /* command: keyword error ';' */ +#line 645 "src/IceGrid/Grammar.y" +{ + parser->invalidCommand(yyvsp[-2]); + yyerrok; +} +#line 2803 "src/IceGrid/Grammar.cpp" + break; - case 122: /* command: keyword error ';' */ -#line 644 "src/IceGrid/Grammar.y" - { - parser->invalidCommand(yyvsp[-2]); - yyerrok; - } -#line 2804 "src/IceGrid/Grammar.cpp" - break; + case 123: /* command: ICEGRID_STRING error ';' */ +#line 650 "src/IceGrid/Grammar.y" +{ + parser->invalidCommand(yyvsp[-2]); + yyerrok; +} +#line 2812 "src/IceGrid/Grammar.cpp" + break; - case 123: /* command: ICE_GRID_STRING error ';' */ -#line 649 "src/IceGrid/Grammar.y" - { - parser->invalidCommand(yyvsp[-2]); - yyerrok; - } -#line 2813 "src/IceGrid/Grammar.cpp" - break; + case 124: /* command: error ';' */ +#line 655 "src/IceGrid/Grammar.y" +{ + yyerrok; +} +#line 2820 "src/IceGrid/Grammar.cpp" + break; - case 124: /* command: error ';' */ -#line 654 "src/IceGrid/Grammar.y" - { - yyerrok; - } -#line 2821 "src/IceGrid/Grammar.cpp" - break; + case 125: /* command: ';' */ +#line 659 "src/IceGrid/Grammar.y" +{ +} +#line 2827 "src/IceGrid/Grammar.cpp" + break; - case 125: /* command: ';' */ -#line 658 "src/IceGrid/Grammar.y" - { - } -#line 2828 "src/IceGrid/Grammar.cpp" - break; + case 126: /* strings: ICEGRID_STRING strings */ +#line 667 "src/IceGrid/Grammar.y" +{ + yyval = yyvsp[0]; + yyval.push_front(yyvsp[-1].front()); +} +#line 2836 "src/IceGrid/Grammar.cpp" + break; - case 126: /* strings: ICE_GRID_STRING strings */ -#line 666 "src/IceGrid/Grammar.y" - { - yyval = yyvsp[0]; - yyval.push_front(yyvsp[-1].front()); - } -#line 2837 "src/IceGrid/Grammar.cpp" - break; + case 127: /* strings: keyword strings */ +#line 672 "src/IceGrid/Grammar.y" +{ + yyval = yyvsp[0]; + yyval.push_front(yyvsp[-1].front()); +} +#line 2845 "src/IceGrid/Grammar.cpp" + break; - case 127: /* strings: keyword strings */ -#line 671 "src/IceGrid/Grammar.y" - { - yyval = yyvsp[0]; - yyval.push_front(yyvsp[-1].front()); - } -#line 2846 "src/IceGrid/Grammar.cpp" - break; + case 128: /* strings: ICEGRID_STRING ICEGRID_HELP strings */ +#line 677 "src/IceGrid/Grammar.y" +{ + yyval = yyvsp[-1]; + yyval.push_front("help"); + yyval.push_front(yyvsp[-2].front()); +} +#line 2855 "src/IceGrid/Grammar.cpp" + break; - case 128: /* strings: ICE_GRID_STRING ICE_GRID_HELP strings */ -#line 676 "src/IceGrid/Grammar.y" - { - yyval = yyvsp[-1]; - yyval.push_front("help"); - yyval.push_front(yyvsp[-2].front()); - } -#line 2856 "src/IceGrid/Grammar.cpp" - break; + case 129: /* strings: keyword ICEGRID_HELP strings */ +#line 683 "src/IceGrid/Grammar.y" +{ + yyval = yyvsp[-1]; + yyval.push_front("help"); + yyval.push_front(yyvsp[-2].front()); +} +#line 2865 "src/IceGrid/Grammar.cpp" + break; - case 129: /* strings: keyword ICE_GRID_HELP strings */ -#line 682 "src/IceGrid/Grammar.y" - { - yyval = yyvsp[-1]; - yyval.push_front("help"); - yyval.push_front(yyvsp[-2].front()); - } -#line 2866 "src/IceGrid/Grammar.cpp" - break; + case 130: /* strings: %empty */ +#line 689 "src/IceGrid/Grammar.y" +{ + yyval = YYSTYPE(); +} +#line 2873 "src/IceGrid/Grammar.cpp" + break; - case 130: /* strings: %empty */ -#line 688 "src/IceGrid/Grammar.y" - { - yyval = YYSTYPE(); - } -#line 2874 "src/IceGrid/Grammar.cpp" - break; + case 131: /* keyword: ICEGRID_EXIT */ +#line 698 "src/IceGrid/Grammar.y" +{ +} +#line 2880 "src/IceGrid/Grammar.cpp" + break; - case 131: /* keyword: ICE_GRID_EXIT */ -#line 697 "src/IceGrid/Grammar.y" - { - } -#line 2881 "src/IceGrid/Grammar.cpp" - break; + case 132: /* keyword: ICEGRID_APPLICATION */ +#line 701 "src/IceGrid/Grammar.y" +{ +} +#line 2887 "src/IceGrid/Grammar.cpp" + break; - case 132: /* keyword: ICE_GRID_APPLICATION */ -#line 700 "src/IceGrid/Grammar.y" - { - } -#line 2888 "src/IceGrid/Grammar.cpp" - break; + case 133: /* keyword: ICEGRID_NODE */ +#line 704 "src/IceGrid/Grammar.y" +{ +} +#line 2894 "src/IceGrid/Grammar.cpp" + break; - case 133: /* keyword: ICE_GRID_NODE */ -#line 703 "src/IceGrid/Grammar.y" - { - } -#line 2895 "src/IceGrid/Grammar.cpp" - break; + case 134: /* keyword: ICEGRID_REGISTRY */ +#line 707 "src/IceGrid/Grammar.y" +{ +} +#line 2901 "src/IceGrid/Grammar.cpp" + break; - case 134: /* keyword: ICE_GRID_REGISTRY */ -#line 706 "src/IceGrid/Grammar.y" - { - } -#line 2902 "src/IceGrid/Grammar.cpp" - break; + case 135: /* keyword: ICEGRID_SERVER */ +#line 710 "src/IceGrid/Grammar.y" +{ +} +#line 2908 "src/IceGrid/Grammar.cpp" + break; - case 135: /* keyword: ICE_GRID_SERVER */ -#line 709 "src/IceGrid/Grammar.y" - { - } -#line 2909 "src/IceGrid/Grammar.cpp" - break; + case 136: /* keyword: ICEGRID_ADAPTER */ +#line 713 "src/IceGrid/Grammar.y" +{ +} +#line 2915 "src/IceGrid/Grammar.cpp" + break; - case 136: /* keyword: ICE_GRID_ADAPTER */ -#line 712 "src/IceGrid/Grammar.y" - { - } -#line 2916 "src/IceGrid/Grammar.cpp" - break; + case 137: /* keyword: ICEGRID_PING */ +#line 716 "src/IceGrid/Grammar.y" +{ +} +#line 2922 "src/IceGrid/Grammar.cpp" + break; - case 137: /* keyword: ICE_GRID_PING */ -#line 715 "src/IceGrid/Grammar.y" - { - } -#line 2923 "src/IceGrid/Grammar.cpp" - break; + case 138: /* keyword: ICEGRID_LOAD */ +#line 719 "src/IceGrid/Grammar.y" +{ +} +#line 2929 "src/IceGrid/Grammar.cpp" + break; - case 138: /* keyword: ICE_GRID_LOAD */ -#line 718 "src/IceGrid/Grammar.y" - { - } -#line 2930 "src/IceGrid/Grammar.cpp" - break; + case 139: /* keyword: ICEGRID_SOCKETS */ +#line 722 "src/IceGrid/Grammar.y" +{ +} +#line 2936 "src/IceGrid/Grammar.cpp" + break; - case 139: /* keyword: ICE_GRID_SOCKETS */ -#line 721 "src/IceGrid/Grammar.y" - { - } -#line 2937 "src/IceGrid/Grammar.cpp" - break; + case 140: /* keyword: ICEGRID_ADD */ +#line 725 "src/IceGrid/Grammar.y" +{ +} +#line 2943 "src/IceGrid/Grammar.cpp" + break; - case 140: /* keyword: ICE_GRID_ADD */ -#line 724 "src/IceGrid/Grammar.y" - { - } -#line 2944 "src/IceGrid/Grammar.cpp" - break; + case 141: /* keyword: ICEGRID_REMOVE */ +#line 728 "src/IceGrid/Grammar.y" +{ +} +#line 2950 "src/IceGrid/Grammar.cpp" + break; - case 141: /* keyword: ICE_GRID_REMOVE */ -#line 727 "src/IceGrid/Grammar.y" - { - } -#line 2951 "src/IceGrid/Grammar.cpp" - break; + case 142: /* keyword: ICEGRID_LIST */ +#line 731 "src/IceGrid/Grammar.y" +{ +} +#line 2957 "src/IceGrid/Grammar.cpp" + break; - case 142: /* keyword: ICE_GRID_LIST */ -#line 730 "src/IceGrid/Grammar.y" - { - } -#line 2958 "src/IceGrid/Grammar.cpp" - break; + case 143: /* keyword: ICEGRID_SHUTDOWN */ +#line 734 "src/IceGrid/Grammar.y" +{ +} +#line 2964 "src/IceGrid/Grammar.cpp" + break; - case 143: /* keyword: ICE_GRID_SHUTDOWN */ -#line 733 "src/IceGrid/Grammar.y" - { - } -#line 2965 "src/IceGrid/Grammar.cpp" - break; + case 144: /* keyword: ICEGRID_START */ +#line 737 "src/IceGrid/Grammar.y" +{ +} +#line 2971 "src/IceGrid/Grammar.cpp" + break; - case 144: /* keyword: ICE_GRID_START */ -#line 736 "src/IceGrid/Grammar.y" - { - } -#line 2972 "src/IceGrid/Grammar.cpp" - break; + case 145: /* keyword: ICEGRID_STOP */ +#line 740 "src/IceGrid/Grammar.y" +{ +} +#line 2978 "src/IceGrid/Grammar.cpp" + break; - case 145: /* keyword: ICE_GRID_STOP */ -#line 739 "src/IceGrid/Grammar.y" - { - } -#line 2979 "src/IceGrid/Grammar.cpp" - break; + case 146: /* keyword: ICEGRID_SIGNAL */ +#line 743 "src/IceGrid/Grammar.y" +{ +} +#line 2985 "src/IceGrid/Grammar.cpp" + break; - case 146: /* keyword: ICE_GRID_SIGNAL */ -#line 742 "src/IceGrid/Grammar.y" - { - } -#line 2986 "src/IceGrid/Grammar.cpp" - break; + case 147: /* keyword: ICEGRID_DESCRIBE */ +#line 746 "src/IceGrid/Grammar.y" +{ +} +#line 2992 "src/IceGrid/Grammar.cpp" + break; - case 147: /* keyword: ICE_GRID_DESCRIBE */ -#line 745 "src/IceGrid/Grammar.y" - { - } -#line 2993 "src/IceGrid/Grammar.cpp" - break; + case 148: /* keyword: ICEGRID_STATE */ +#line 749 "src/IceGrid/Grammar.y" +{ +} +#line 2999 "src/IceGrid/Grammar.cpp" + break; - case 148: /* keyword: ICE_GRID_STATE */ -#line 748 "src/IceGrid/Grammar.y" - { - } -#line 3000 "src/IceGrid/Grammar.cpp" - break; + case 149: /* keyword: ICEGRID_PID */ +#line 752 "src/IceGrid/Grammar.y" +{ +} +#line 3006 "src/IceGrid/Grammar.cpp" + break; - case 149: /* keyword: ICE_GRID_PID */ -#line 751 "src/IceGrid/Grammar.y" - { - } -#line 3007 "src/IceGrid/Grammar.cpp" - break; + case 150: /* keyword: ICEGRID_PROPERTIES */ +#line 755 "src/IceGrid/Grammar.y" +{ +} +#line 3013 "src/IceGrid/Grammar.cpp" + break; - case 150: /* keyword: ICE_GRID_PROPERTIES */ -#line 754 "src/IceGrid/Grammar.y" - { - } -#line 3014 "src/IceGrid/Grammar.cpp" - break; + case 151: /* keyword: ICEGRID_PROPERTY */ +#line 758 "src/IceGrid/Grammar.y" +{ +} +#line 3020 "src/IceGrid/Grammar.cpp" + break; - case 151: /* keyword: ICE_GRID_PROPERTY */ -#line 757 "src/IceGrid/Grammar.y" - { - } -#line 3021 "src/IceGrid/Grammar.cpp" - break; + case 152: /* keyword: ICEGRID_ENDPOINTS */ +#line 761 "src/IceGrid/Grammar.y" +{ +} +#line 3027 "src/IceGrid/Grammar.cpp" + break; - case 152: /* keyword: ICE_GRID_ENDPOINTS */ -#line 760 "src/IceGrid/Grammar.y" - { - } -#line 3028 "src/IceGrid/Grammar.cpp" - break; + case 153: /* keyword: ICEGRID_ACTIVATION */ +#line 764 "src/IceGrid/Grammar.y" +{ +} +#line 3034 "src/IceGrid/Grammar.cpp" + break; - case 153: /* keyword: ICE_GRID_ACTIVATION */ -#line 763 "src/IceGrid/Grammar.y" - { - } -#line 3035 "src/IceGrid/Grammar.cpp" - break; + case 154: /* keyword: ICEGRID_OBJECT */ +#line 767 "src/IceGrid/Grammar.y" +{ +} +#line 3041 "src/IceGrid/Grammar.cpp" + break; - case 154: /* keyword: ICE_GRID_OBJECT */ -#line 766 "src/IceGrid/Grammar.y" - { - } -#line 3042 "src/IceGrid/Grammar.cpp" - break; + case 155: /* keyword: ICEGRID_FIND */ +#line 770 "src/IceGrid/Grammar.y" +{ +} +#line 3048 "src/IceGrid/Grammar.cpp" + break; - case 155: /* keyword: ICE_GRID_FIND */ -#line 769 "src/IceGrid/Grammar.y" - { - } -#line 3049 "src/IceGrid/Grammar.cpp" - break; + case 156: /* keyword: ICEGRID_SHOW */ +#line 773 "src/IceGrid/Grammar.y" +{ +} +#line 3055 "src/IceGrid/Grammar.cpp" + break; - case 156: /* keyword: ICE_GRID_SHOW */ -#line 772 "src/IceGrid/Grammar.y" - { - } -#line 3056 "src/IceGrid/Grammar.cpp" - break; + case 157: /* keyword: ICEGRID_COPYING */ +#line 776 "src/IceGrid/Grammar.y" +{ +} +#line 3062 "src/IceGrid/Grammar.cpp" + break; - case 157: /* keyword: ICE_GRID_COPYING */ -#line 775 "src/IceGrid/Grammar.y" - { - } -#line 3063 "src/IceGrid/Grammar.cpp" - break; + case 158: /* keyword: ICEGRID_WARRANTY */ +#line 779 "src/IceGrid/Grammar.y" +{ +} +#line 3069 "src/IceGrid/Grammar.cpp" + break; - case 158: /* keyword: ICE_GRID_WARRANTY */ -#line 778 "src/IceGrid/Grammar.y" - { - } -#line 3070 "src/IceGrid/Grammar.cpp" - break; + case 159: /* keyword: ICEGRID_DIFF */ +#line 782 "src/IceGrid/Grammar.y" +{ +} +#line 3076 "src/IceGrid/Grammar.cpp" + break; - case 159: /* keyword: ICE_GRID_DIFF */ -#line 781 "src/IceGrid/Grammar.y" - { - } -#line 3077 "src/IceGrid/Grammar.cpp" - break; + case 160: /* keyword: ICEGRID_UPDATE */ +#line 785 "src/IceGrid/Grammar.y" +{ +} +#line 3083 "src/IceGrid/Grammar.cpp" + break; - case 160: /* keyword: ICE_GRID_UPDATE */ -#line 784 "src/IceGrid/Grammar.y" - { - } -#line 3084 "src/IceGrid/Grammar.cpp" - break; + case 161: /* keyword: ICEGRID_INSTANTIATE */ +#line 788 "src/IceGrid/Grammar.y" +{ +} +#line 3090 "src/IceGrid/Grammar.cpp" + break; - case 161: /* keyword: ICE_GRID_INSTANTIATE */ -#line 787 "src/IceGrid/Grammar.y" - { - } -#line 3091 "src/IceGrid/Grammar.cpp" - break; + case 162: /* keyword: ICEGRID_TEMPLATE */ +#line 791 "src/IceGrid/Grammar.y" +{ +} +#line 3097 "src/IceGrid/Grammar.cpp" + break; - case 162: /* keyword: ICE_GRID_TEMPLATE */ -#line 790 "src/IceGrid/Grammar.y" - { - } -#line 3098 "src/IceGrid/Grammar.cpp" - break; + case 163: /* keyword: ICEGRID_SERVICE */ +#line 794 "src/IceGrid/Grammar.y" +{ +} +#line 3104 "src/IceGrid/Grammar.cpp" + break; - case 163: /* keyword: ICE_GRID_SERVICE */ -#line 793 "src/IceGrid/Grammar.y" - { - } -#line 3105 "src/IceGrid/Grammar.cpp" - break; + case 164: /* keyword: ICEGRID_ENABLE */ +#line 797 "src/IceGrid/Grammar.y" +{ +} +#line 3111 "src/IceGrid/Grammar.cpp" + break; - case 164: /* keyword: ICE_GRID_ENABLE */ -#line 796 "src/IceGrid/Grammar.y" - { - } -#line 3112 "src/IceGrid/Grammar.cpp" - break; + case 165: /* keyword: ICEGRID_DISABLE */ +#line 800 "src/IceGrid/Grammar.y" +{ +} +#line 3118 "src/IceGrid/Grammar.cpp" + break; - case 165: /* keyword: ICE_GRID_DISABLE */ -#line 799 "src/IceGrid/Grammar.y" - { - } -#line 3119 "src/IceGrid/Grammar.cpp" - break; + case 166: /* keyword: ICEGRID_STDERR */ +#line 803 "src/IceGrid/Grammar.y" +{ +} +#line 3125 "src/IceGrid/Grammar.cpp" + break; - case 166: /* keyword: ICE_GRID_STDERR */ -#line 802 "src/IceGrid/Grammar.y" - { - } -#line 3126 "src/IceGrid/Grammar.cpp" - break; + case 167: /* keyword: ICEGRID_STDOUT */ +#line 806 "src/IceGrid/Grammar.y" +{ +} +#line 3132 "src/IceGrid/Grammar.cpp" + break; - case 167: /* keyword: ICE_GRID_STDOUT */ -#line 805 "src/IceGrid/Grammar.y" - { - } -#line 3133 "src/IceGrid/Grammar.cpp" - break; -#line 3137 "src/IceGrid/Grammar.cpp" +#line 3136 "src/IceGrid/Grammar.cpp" - default: - break; - } - /* User semantic actions sometimes alter yychar, and that requires - that yytoken be updated with the new translation. We take the - approach of translating immediately before every use of yytoken. - One alternative is translating here after every semantic action, - but that translation would be missed if the semantic action invokes - YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or - if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an - incorrect destructor might then be invoked immediately. In the - case of YYERROR or YYBACKUP, subsequent parser actions might lead - to an incorrect destructor call or verbose syntax error message - before the lookahead is translated. */ - YY_SYMBOL_PRINT("-> $$ =", YY_CAST(yysymbol_kind_t, yyr1[yyn]), &yyval, &yyloc); - - YYPOPSTACK(yylen); - yylen = 0; - - *++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. */ - { - const int yylhs = yyr1[yyn] - YYNTOKENS; - const int yyi = yypgoto[yylhs] + *yyssp; - yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp ? yytable[yyi] : yydefgoto[yylhs]); + default: break; } + /* User semantic actions sometimes alter yychar, and that requires + that yytoken be updated with the new translation. We take the + approach of translating immediately before every use of yytoken. + One alternative is translating here after every semantic action, + but that translation would be missed if the semantic action invokes + YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or + if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an + incorrect destructor might then be invoked immediately. In the + case of YYERROR or YYBACKUP, subsequent parser actions might lead + to an incorrect destructor call or verbose syntax error message + before the lookahead is translated. */ + YY_SYMBOL_PRINT ("-> $$ =", YY_CAST (yysymbol_kind_t, yyr1[yyn]), &yyval, &yyloc); + + YYPOPSTACK (yylen); + yylen = 0; + + *++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. */ + { + const int yylhs = yyr1[yyn] - YYNTOKENS; + const int yyi = yypgoto[yylhs] + *yyssp; + yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp + ? yytable[yyi] + : yydefgoto[yylhs]); + } + + goto yynewstate; - goto yynewstate; /*--------------------------------------. | yyerrlab -- here on detecting error. | `--------------------------------------*/ yyerrlab: - /* Make sure we have latest lookahead translation. See comments at - user semantic actions for why this is necessary. */ - yytoken = yychar == YYEMPTY ? YYSYMBOL_YYEMPTY : YYTRANSLATE(yychar); - /* If not already recovering from an error, report this error. */ - if (!yyerrstatus) + /* Make sure we have latest lookahead translation. See comments at + user semantic actions for why this is necessary. */ + yytoken = yychar == YYEMPTY ? YYSYMBOL_YYEMPTY : YYTRANSLATE (yychar); + /* If not already recovering from an error, report this error. */ + if (!yyerrstatus) { - ++yynerrs; - yyerror(YY_("syntax error")); + ++yynerrs; + yyerror (YY_("syntax error")); } - if (yyerrstatus == 3) + if (yyerrstatus == 3) { - /* If just tried and failed to reuse lookahead token after an - error, discard it. */ + /* If just tried and failed to reuse lookahead token after an + error, discard it. */ - if (yychar <= YYEOF) + if (yychar <= YYEOF) { - /* Return failure if at end of input. */ - if (yychar == YYEOF) - YYABORT; + /* Return failure if at end of input. */ + if (yychar == YYEOF) + YYABORT; } - else + else { - yydestruct("Error: discarding", yytoken, &yylval); - yychar = YYEMPTY; + yydestruct ("Error: discarding", + yytoken, &yylval); + yychar = YYEMPTY; } } - /* Else will try to reuse lookahead token after shifting the error - token. */ - goto yyerrlab1; + /* Else will try to reuse lookahead token after shifting the error + token. */ + goto yyerrlab1; + /*---------------------------------------------------. | yyerrorlab -- error raised explicitly by YYERROR. | `---------------------------------------------------*/ yyerrorlab: - /* Pacify compilers when the user code never invokes YYERROR and the - label yyerrorlab therefore never appears in user code. */ - if (0) - YYERROR; - ++yynerrs; - - /* Do not reclaim the symbols of the rule whose action triggered - this YYERROR. */ - YYPOPSTACK(yylen); - yylen = 0; - YY_STACK_PRINT(yyss, yyssp); - yystate = *yyssp; - goto yyerrlab1; + /* Pacify compilers when the user code never invokes YYERROR and the + label yyerrorlab therefore never appears in user code. */ + if (0) + YYERROR; + ++yynerrs; + + /* Do not reclaim the symbols of the rule whose action triggered + this YYERROR. */ + YYPOPSTACK (yylen); + yylen = 0; + YY_STACK_PRINT (yyss, yyssp); + yystate = *yyssp; + goto yyerrlab1; + /*-------------------------------------------------------------. | yyerrlab1 -- common code for both syntax error and YYERROR. | `-------------------------------------------------------------*/ yyerrlab1: - yyerrstatus = 3; /* Each real token shifted decrements this. */ + yyerrstatus = 3; /* Each real token shifted decrements this. */ - /* Pop stack until we find a state that shifts the error token. */ - for (;;) + /* Pop stack until we find a state that shifts the error token. */ + for (;;) { - yyn = yypact[yystate]; - if (!yypact_value_is_default(yyn)) + yyn = yypact[yystate]; + if (!yypact_value_is_default (yyn)) { - yyn += YYSYMBOL_YYerror; - if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) + yyn += YYSYMBOL_YYerror; + if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) { - yyn = yytable[yyn]; - if (0 < yyn) - break; + yyn = yytable[yyn]; + if (0 < yyn) + break; } } - /* Pop the current state because it cannot handle the error token. */ - if (yyssp == yyss) - YYABORT; + /* Pop the current state because it cannot handle the error token. */ + if (yyssp == yyss) + YYABORT; + - yydestruct("Error: popping", YY_ACCESSING_SYMBOL(yystate), yyvsp); - YYPOPSTACK(1); - yystate = *yyssp; - YY_STACK_PRINT(yyss, yyssp); + yydestruct ("Error: popping", + YY_ACCESSING_SYMBOL (yystate), yyvsp); + YYPOPSTACK (1); + yystate = *yyssp; + YY_STACK_PRINT (yyss, yyssp); } - YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN - *++yyvsp = yylval; - YY_IGNORE_MAYBE_UNINITIALIZED_END + YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN + *++yyvsp = yylval; + YY_IGNORE_MAYBE_UNINITIALIZED_END + + + /* Shift the error token. */ + YY_SYMBOL_PRINT ("Shifting", YY_ACCESSING_SYMBOL (yyn), yyvsp, yylsp); - /* Shift the error token. */ - YY_SYMBOL_PRINT("Shifting", YY_ACCESSING_SYMBOL(yyn), yyvsp, yylsp); + yystate = yyn; + goto yynewstate; - yystate = yyn; - goto yynewstate; /*-------------------------------------. | yyacceptlab -- YYACCEPT comes here. | `-------------------------------------*/ yyacceptlab: - yyresult = 0; - goto yyreturnlab; + yyresult = 0; + goto yyreturnlab; + /*-----------------------------------. | yyabortlab -- YYABORT comes here. | `-----------------------------------*/ yyabortlab: - yyresult = 1; - goto yyreturnlab; + yyresult = 1; + goto yyreturnlab; + /*-----------------------------------------------------------. | yyexhaustedlab -- YYNOMEM (memory exhaustion) comes here. | `-----------------------------------------------------------*/ yyexhaustedlab: - yyerror(YY_("memory exhausted")); - yyresult = 2; - goto yyreturnlab; + yyerror (YY_("memory exhausted")); + yyresult = 2; + goto yyreturnlab; + /*----------------------------------------------------------. | yyreturnlab -- parsing is finished, clean up and return. | `----------------------------------------------------------*/ yyreturnlab: - if (yychar != YYEMPTY) + if (yychar != YYEMPTY) { - /* Make sure we have latest lookahead translation. See comments at - user semantic actions for why this is necessary. */ - yytoken = YYTRANSLATE(yychar); - yydestruct("Cleanup: discarding lookahead", yytoken, &yylval); + /* Make sure we have latest lookahead translation. See comments at + user semantic actions for why this is necessary. */ + yytoken = YYTRANSLATE (yychar); + yydestruct ("Cleanup: discarding lookahead", + yytoken, &yylval); } - /* Do not reclaim the symbols of the rule whose action triggered - this YYABORT or YYACCEPT. */ - YYPOPSTACK(yylen); - YY_STACK_PRINT(yyss, yyssp); - while (yyssp != yyss) + /* Do not reclaim the symbols of the rule whose action triggered + this YYABORT or YYACCEPT. */ + YYPOPSTACK (yylen); + YY_STACK_PRINT (yyss, yyssp); + while (yyssp != yyss) { - yydestruct("Cleanup: popping", YY_ACCESSING_SYMBOL(+*yyssp), yyvsp); - YYPOPSTACK(1); + yydestruct ("Cleanup: popping", + YY_ACCESSING_SYMBOL (+*yyssp), yyvsp); + YYPOPSTACK (1); } #ifndef yyoverflow - if (yyss != yyssa) - YYSTACK_FREE(yyss); + if (yyss != yyssa) + YYSTACK_FREE (yyss); #endif - return yyresult; + return yyresult; } + diff --git a/cpp/src/IceGrid/Grammar.h b/cpp/src/IceGrid/Grammar.h index 598054230ba..2b25d2ee4b6 100644 --- a/cpp/src/IceGrid/Grammar.h +++ b/cpp/src/IceGrid/Grammar.h @@ -36,10 +36,10 @@ private implementation details that can be changed or removed. */ #ifndef YY_YY_SRC_ICEGRID_GRAMMAR_H_INCLUDED -#define YY_YY_SRC_ICEGRID_GRAMMAR_H_INCLUDED +# define YY_YY_SRC_ICEGRID_GRAMMAR_H_INCLUDED /* Debug traces. */ #ifndef YYDEBUG -# define YYDEBUG 1 +# define YYDEBUG 1 #endif #if YYDEBUG extern int yydebug; @@ -47,6 +47,7 @@ extern int yydebug; /* "%code requires" blocks. */ #line 9 "src/IceGrid/Grammar.y" + #include #include @@ -55,73 +56,78 @@ extern int yydebug; // simple malloc/alloc/memcpy calls, which do not work for the // YYSTYPE, since YYSTYPE is a C++ type, with constructor, destructor, // assignment operator, etc. -#define YYMAXDEPTH 10000 // 10000 should suffice. Bison default is 10000 as maximum. +#define YYMAXDEPTH 10000 // 10000 should suffice. Bison default is 10000 as maximum. #define YYINITDEPTH YYMAXDEPTH // Initial depth is set to max depth, for the reasons described above. // Newer bison versions allow to disable stack resizing by defining yyoverflow. #define yyoverflow(a, b, c, d, e, f) yyerror(a) -#line 66 "src/IceGrid/Grammar.h" + +#line 67 "src/IceGrid/Grammar.h" /* Token kinds. */ #ifndef YYTOKENTYPE -# define YYTOKENTYPE -enum yytokentype -{ +# define YYTOKENTYPE + enum yytokentype + { YYEMPTY = -2, - YYEOF = 0, /* "end of file" */ - YYerror = 256, /* error */ - YYUNDEF = 257, /* "invalid token" */ - ICE_GRID_HELP = 258, /* ICE_GRID_HELP */ - ICE_GRID_EXIT = 259, /* ICE_GRID_EXIT */ - ICE_GRID_APPLICATION = 260, /* ICE_GRID_APPLICATION */ - ICE_GRID_NODE = 261, /* ICE_GRID_NODE */ - ICE_GRID_REGISTRY = 262, /* ICE_GRID_REGISTRY */ - ICE_GRID_SERVER = 263, /* ICE_GRID_SERVER */ - ICE_GRID_ADAPTER = 264, /* ICE_GRID_ADAPTER */ - ICE_GRID_PING = 265, /* ICE_GRID_PING */ - ICE_GRID_LOAD = 266, /* ICE_GRID_LOAD */ - ICE_GRID_SOCKETS = 267, /* ICE_GRID_SOCKETS */ - ICE_GRID_ADD = 268, /* ICE_GRID_ADD */ - ICE_GRID_REMOVE = 269, /* ICE_GRID_REMOVE */ - ICE_GRID_LIST = 270, /* ICE_GRID_LIST */ - ICE_GRID_SHUTDOWN = 271, /* ICE_GRID_SHUTDOWN */ - ICE_GRID_STRING = 272, /* ICE_GRID_STRING */ - ICE_GRID_START = 273, /* ICE_GRID_START */ - ICE_GRID_STOP = 274, /* ICE_GRID_STOP */ - ICE_GRID_SIGNAL = 275, /* ICE_GRID_SIGNAL */ - ICE_GRID_STDOUT = 276, /* ICE_GRID_STDOUT */ - ICE_GRID_STDERR = 277, /* ICE_GRID_STDERR */ - ICE_GRID_DESCRIBE = 278, /* ICE_GRID_DESCRIBE */ - ICE_GRID_PROPERTIES = 279, /* ICE_GRID_PROPERTIES */ - ICE_GRID_PROPERTY = 280, /* ICE_GRID_PROPERTY */ - ICE_GRID_STATE = 281, /* ICE_GRID_STATE */ - ICE_GRID_PID = 282, /* ICE_GRID_PID */ - ICE_GRID_ENDPOINTS = 283, /* ICE_GRID_ENDPOINTS */ - ICE_GRID_ACTIVATION = 284, /* ICE_GRID_ACTIVATION */ - ICE_GRID_OBJECT = 285, /* ICE_GRID_OBJECT */ - ICE_GRID_FIND = 286, /* ICE_GRID_FIND */ - ICE_GRID_SHOW = 287, /* ICE_GRID_SHOW */ - ICE_GRID_COPYING = 288, /* ICE_GRID_COPYING */ - ICE_GRID_WARRANTY = 289, /* ICE_GRID_WARRANTY */ - ICE_GRID_DIFF = 290, /* ICE_GRID_DIFF */ - ICE_GRID_UPDATE = 291, /* ICE_GRID_UPDATE */ - ICE_GRID_INSTANTIATE = 292, /* ICE_GRID_INSTANTIATE */ - ICE_GRID_TEMPLATE = 293, /* ICE_GRID_TEMPLATE */ - ICE_GRID_SERVICE = 294, /* ICE_GRID_SERVICE */ - ICE_GRID_ENABLE = 295, /* ICE_GRID_ENABLE */ - ICE_GRID_DISABLE = 296 /* ICE_GRID_DISABLE */ -}; -typedef enum yytokentype yytoken_kind_t; + YYEOF = 0, /* "end of file" */ + YYerror = 256, /* error */ + YYUNDEF = 257, /* "invalid token" */ + ICEGRID_HELP = 258, /* ICEGRID_HELP */ + ICEGRID_EXIT = 259, /* ICEGRID_EXIT */ + ICEGRID_APPLICATION = 260, /* ICEGRID_APPLICATION */ + ICEGRID_NODE = 261, /* ICEGRID_NODE */ + ICEGRID_REGISTRY = 262, /* ICEGRID_REGISTRY */ + ICEGRID_SERVER = 263, /* ICEGRID_SERVER */ + ICEGRID_ADAPTER = 264, /* ICEGRID_ADAPTER */ + ICEGRID_PING = 265, /* ICEGRID_PING */ + ICEGRID_LOAD = 266, /* ICEGRID_LOAD */ + ICEGRID_SOCKETS = 267, /* ICEGRID_SOCKETS */ + ICEGRID_ADD = 268, /* ICEGRID_ADD */ + ICEGRID_REMOVE = 269, /* ICEGRID_REMOVE */ + ICEGRID_LIST = 270, /* ICEGRID_LIST */ + ICEGRID_SHUTDOWN = 271, /* ICEGRID_SHUTDOWN */ + ICEGRID_STRING = 272, /* ICEGRID_STRING */ + ICEGRID_START = 273, /* ICEGRID_START */ + ICEGRID_STOP = 274, /* ICEGRID_STOP */ + ICEGRID_SIGNAL = 275, /* ICEGRID_SIGNAL */ + ICEGRID_STDOUT = 276, /* ICEGRID_STDOUT */ + ICEGRID_STDERR = 277, /* ICEGRID_STDERR */ + ICEGRID_DESCRIBE = 278, /* ICEGRID_DESCRIBE */ + ICEGRID_PROPERTIES = 279, /* ICEGRID_PROPERTIES */ + ICEGRID_PROPERTY = 280, /* ICEGRID_PROPERTY */ + ICEGRID_STATE = 281, /* ICEGRID_STATE */ + ICEGRID_PID = 282, /* ICEGRID_PID */ + ICEGRID_ENDPOINTS = 283, /* ICEGRID_ENDPOINTS */ + ICEGRID_ACTIVATION = 284, /* ICEGRID_ACTIVATION */ + ICEGRID_OBJECT = 285, /* ICEGRID_OBJECT */ + ICEGRID_FIND = 286, /* ICEGRID_FIND */ + ICEGRID_SHOW = 287, /* ICEGRID_SHOW */ + ICEGRID_COPYING = 288, /* ICEGRID_COPYING */ + ICEGRID_WARRANTY = 289, /* ICEGRID_WARRANTY */ + ICEGRID_DIFF = 290, /* ICEGRID_DIFF */ + ICEGRID_UPDATE = 291, /* ICEGRID_UPDATE */ + ICEGRID_INSTANTIATE = 292, /* ICEGRID_INSTANTIATE */ + ICEGRID_TEMPLATE = 293, /* ICEGRID_TEMPLATE */ + ICEGRID_SERVICE = 294, /* ICEGRID_SERVICE */ + ICEGRID_ENABLE = 295, /* ICEGRID_ENABLE */ + ICEGRID_DISABLE = 296 /* ICEGRID_DISABLE */ + }; + typedef enum yytokentype yytoken_kind_t; #endif /* Value type. */ -#if !defined YYSTYPE && !defined YYSTYPE_IS_DECLARED +#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED typedef std::list YYSTYPE; -# define YYSTYPE_IS_TRIVIAL 1 -# define YYSTYPE_IS_DECLARED 1 +# define YYSTYPE_IS_TRIVIAL 1 +# define YYSTYPE_IS_DECLARED 1 #endif -int yyparse(void); + + + +int yyparse (void); + #endif /* !YY_YY_SRC_ICEGRID_GRAMMAR_H_INCLUDED */ diff --git a/cpp/src/IceGrid/Grammar.y b/cpp/src/IceGrid/Grammar.y index 2ddc09c3618..bd8829ccaba 100644 --- a/cpp/src/IceGrid/Grammar.y +++ b/cpp/src/IceGrid/Grammar.y @@ -82,45 +82,45 @@ yyerror(const char* s) // All keyword tokens. Make sure to modify the "keyword" rule in this // file if the list of keywords is changed. Also make sure to add the // keyword to the keyword table in Scanner.l. -%token ICE_GRID_HELP -%token ICE_GRID_EXIT -%token ICE_GRID_APPLICATION -%token ICE_GRID_NODE -%token ICE_GRID_REGISTRY -%token ICE_GRID_SERVER -%token ICE_GRID_ADAPTER -%token ICE_GRID_PING -%token ICE_GRID_LOAD -%token ICE_GRID_SOCKETS -%token ICE_GRID_ADD -%token ICE_GRID_REMOVE -%token ICE_GRID_LIST -%token ICE_GRID_SHUTDOWN -%token ICE_GRID_STRING -%token ICE_GRID_START -%token ICE_GRID_STOP -%token ICE_GRID_SIGNAL -%token ICE_GRID_STDOUT -%token ICE_GRID_STDERR -%token ICE_GRID_DESCRIBE -%token ICE_GRID_PROPERTIES -%token ICE_GRID_PROPERTY -%token ICE_GRID_STATE -%token ICE_GRID_PID -%token ICE_GRID_ENDPOINTS -%token ICE_GRID_ACTIVATION -%token ICE_GRID_OBJECT -%token ICE_GRID_FIND -%token ICE_GRID_SHOW -%token ICE_GRID_COPYING -%token ICE_GRID_WARRANTY -%token ICE_GRID_DIFF -%token ICE_GRID_UPDATE -%token ICE_GRID_INSTANTIATE -%token ICE_GRID_TEMPLATE -%token ICE_GRID_SERVICE -%token ICE_GRID_ENABLE -%token ICE_GRID_DISABLE +%token ICEGRID_HELP +%token ICEGRID_EXIT +%token ICEGRID_APPLICATION +%token ICEGRID_NODE +%token ICEGRID_REGISTRY +%token ICEGRID_SERVER +%token ICEGRID_ADAPTER +%token ICEGRID_PING +%token ICEGRID_LOAD +%token ICEGRID_SOCKETS +%token ICEGRID_ADD +%token ICEGRID_REMOVE +%token ICEGRID_LIST +%token ICEGRID_SHUTDOWN +%token ICEGRID_STRING +%token ICEGRID_START +%token ICEGRID_STOP +%token ICEGRID_SIGNAL +%token ICEGRID_STDOUT +%token ICEGRID_STDERR +%token ICEGRID_DESCRIBE +%token ICEGRID_PROPERTIES +%token ICEGRID_PROPERTY +%token ICEGRID_STATE +%token ICEGRID_PID +%token ICEGRID_ENDPOINTS +%token ICEGRID_ACTIVATION +%token ICEGRID_OBJECT +%token ICEGRID_FIND +%token ICEGRID_SHOW +%token ICEGRID_COPYING +%token ICEGRID_WARRANTY +%token ICEGRID_DIFF +%token ICEGRID_UPDATE +%token ICEGRID_INSTANTIATE +%token ICEGRID_TEMPLATE +%token ICEGRID_SERVICE +%token ICEGRID_ENABLE +%token ICEGRID_DISABLE %% @@ -158,435 +158,435 @@ checkInterrupted // ---------------------------------------------------------------------- command // ---------------------------------------------------------------------- -: ICE_GRID_HELP ';' +: ICEGRID_HELP ';' { parser->usage(); } -| ICE_GRID_EXIT ';' +| ICEGRID_EXIT ';' { return 0; } -| ICE_GRID_APPLICATION ICE_GRID_ADD strings ';' +| ICEGRID_APPLICATION ICEGRID_ADD strings ';' { parser->addApplication($3); } -| ICE_GRID_APPLICATION ICE_GRID_ADD ICE_GRID_HELP ';' +| ICEGRID_APPLICATION ICEGRID_ADD ICEGRID_HELP ';' { parser->usage("application", "add"); } -| ICE_GRID_APPLICATION ICE_GRID_REMOVE strings ';' +| ICEGRID_APPLICATION ICEGRID_REMOVE strings ';' { parser->removeApplication($3); } -| ICE_GRID_APPLICATION ICE_GRID_REMOVE ICE_GRID_HELP ';' +| ICEGRID_APPLICATION ICEGRID_REMOVE ICEGRID_HELP ';' { parser->usage("application", "remove"); } -| ICE_GRID_APPLICATION ICE_GRID_DIFF strings ';' +| ICEGRID_APPLICATION ICEGRID_DIFF strings ';' { parser->diffApplication($3); } -| ICE_GRID_APPLICATION ICE_GRID_DIFF ICE_GRID_HELP ';' +| ICEGRID_APPLICATION ICEGRID_DIFF ICEGRID_HELP ';' { parser->usage("application", "diff"); } -| ICE_GRID_APPLICATION ICE_GRID_UPDATE strings ';' +| ICEGRID_APPLICATION ICEGRID_UPDATE strings ';' { parser->updateApplication($3); } -| ICE_GRID_APPLICATION ICE_GRID_UPDATE ICE_GRID_HELP ';' +| ICEGRID_APPLICATION ICEGRID_UPDATE ICEGRID_HELP ';' { parser->usage("application", "update"); } -| ICE_GRID_APPLICATION ICE_GRID_DESCRIBE strings ';' +| ICEGRID_APPLICATION ICEGRID_DESCRIBE strings ';' { parser->describeApplication($3); } -| ICE_GRID_APPLICATION ICE_GRID_DESCRIBE ICE_GRID_HELP ';' +| ICEGRID_APPLICATION ICEGRID_DESCRIBE ICEGRID_HELP ';' { parser->usage("application", "describe"); } -| ICE_GRID_APPLICATION ICE_GRID_LIST strings ';' +| ICEGRID_APPLICATION ICEGRID_LIST strings ';' { parser->listAllApplications($3); } -| ICE_GRID_APPLICATION ICE_GRID_LIST ICE_GRID_HELP ';' +| ICEGRID_APPLICATION ICEGRID_LIST ICEGRID_HELP ';' { parser->usage("application", "list"); } -| ICE_GRID_SERVER ICE_GRID_TEMPLATE ICE_GRID_DESCRIBE strings ';' +| ICEGRID_SERVER ICEGRID_TEMPLATE ICEGRID_DESCRIBE strings ';' { parser->describeServerTemplate($4); } -| ICE_GRID_SERVER ICE_GRID_TEMPLATE ICE_GRID_DESCRIBE ICE_GRID_HELP ';' +| ICEGRID_SERVER ICEGRID_TEMPLATE ICEGRID_DESCRIBE ICEGRID_HELP ';' { parser->usage("server template", "describe"); } -| ICE_GRID_SERVER ICE_GRID_TEMPLATE ICE_GRID_INSTANTIATE strings ';' +| ICEGRID_SERVER ICEGRID_TEMPLATE ICEGRID_INSTANTIATE strings ';' { parser->instantiateServerTemplate($4); } -| ICE_GRID_SERVER ICE_GRID_TEMPLATE ICE_GRID_INSTANTIATE ICE_GRID_HELP ';' +| ICEGRID_SERVER ICEGRID_TEMPLATE ICEGRID_INSTANTIATE ICEGRID_HELP ';' { parser->usage("server template", "instantiate"); } -| ICE_GRID_SERVER ICE_GRID_TEMPLATE ICE_GRID_HELP ';' +| ICEGRID_SERVER ICEGRID_TEMPLATE ICEGRID_HELP ';' { parser->usage("server template"); } -| ICE_GRID_SERVICE ICE_GRID_TEMPLATE ICE_GRID_DESCRIBE strings ';' +| ICEGRID_SERVICE ICEGRID_TEMPLATE ICEGRID_DESCRIBE strings ';' { parser->describeServiceTemplate($4); } -| ICE_GRID_SERVICE ICE_GRID_TEMPLATE ICE_GRID_DESCRIBE ICE_GRID_HELP ';' +| ICEGRID_SERVICE ICEGRID_TEMPLATE ICEGRID_DESCRIBE ICEGRID_HELP ';' { parser->usage("service template", "describe"); } -| ICE_GRID_SERVICE ICE_GRID_TEMPLATE ICE_GRID_HELP ';' +| ICEGRID_SERVICE ICEGRID_TEMPLATE ICEGRID_HELP ';' { parser->usage("service template"); } -| ICE_GRID_NODE ICE_GRID_DESCRIBE strings ';' +| ICEGRID_NODE ICEGRID_DESCRIBE strings ';' { parser->describeNode($3); } -| ICE_GRID_NODE ICE_GRID_DESCRIBE ICE_GRID_HELP ';' +| ICEGRID_NODE ICEGRID_DESCRIBE ICEGRID_HELP ';' { parser->usage("node", "describe"); } -| ICE_GRID_NODE ICE_GRID_PING strings ';' +| ICEGRID_NODE ICEGRID_PING strings ';' { parser->pingNode($3); } -| ICE_GRID_NODE ICE_GRID_PING ICE_GRID_HELP ';' +| ICEGRID_NODE ICEGRID_PING ICEGRID_HELP ';' { parser->usage("node", "ping"); } -| ICE_GRID_NODE ICE_GRID_LOAD strings ';' +| ICEGRID_NODE ICEGRID_LOAD strings ';' { parser->printLoadNode($3); } -| ICE_GRID_NODE ICE_GRID_LOAD ICE_GRID_HELP ';' +| ICEGRID_NODE ICEGRID_LOAD ICEGRID_HELP ';' { parser->usage("node", "load"); } -| ICE_GRID_NODE ICE_GRID_SOCKETS strings ';' +| ICEGRID_NODE ICEGRID_SOCKETS strings ';' { parser->printNodeProcessorSockets($3); } -| ICE_GRID_NODE ICE_GRID_SOCKETS ICE_GRID_HELP ';' +| ICEGRID_NODE ICEGRID_SOCKETS ICEGRID_HELP ';' { parser->usage("node", "sockets"); } -| ICE_GRID_NODE ICE_GRID_SHUTDOWN strings ';' +| ICEGRID_NODE ICEGRID_SHUTDOWN strings ';' { parser->shutdownNode($3); } -| ICE_GRID_NODE ICE_GRID_SHUTDOWN ICE_GRID_HELP ';' +| ICEGRID_NODE ICEGRID_SHUTDOWN ICEGRID_HELP ';' { parser->usage("node", "shutdown"); } -| ICE_GRID_NODE ICE_GRID_LIST strings ';' +| ICEGRID_NODE ICEGRID_LIST strings ';' { parser->listAllNodes($3); } -| ICE_GRID_NODE ICE_GRID_LIST ICE_GRID_HELP ';' +| ICEGRID_NODE ICEGRID_LIST ICEGRID_HELP ';' { parser->usage("node", "list"); } -| ICE_GRID_NODE ICE_GRID_SHOW strings ';' +| ICEGRID_NODE ICEGRID_SHOW strings ';' { parser->show("node", $3); } -| ICE_GRID_NODE ICE_GRID_SHOW ICE_GRID_HELP ';' +| ICEGRID_NODE ICEGRID_SHOW ICEGRID_HELP ';' { parser->usage("node", "show"); } -| ICE_GRID_REGISTRY ICE_GRID_DESCRIBE strings ';' +| ICEGRID_REGISTRY ICEGRID_DESCRIBE strings ';' { parser->describeRegistry($3); } -| ICE_GRID_REGISTRY ICE_GRID_DESCRIBE ICE_GRID_HELP ';' +| ICEGRID_REGISTRY ICEGRID_DESCRIBE ICEGRID_HELP ';' { parser->usage("registry", "describe"); } -| ICE_GRID_REGISTRY ICE_GRID_PING strings ';' +| ICEGRID_REGISTRY ICEGRID_PING strings ';' { parser->pingRegistry($3); } -| ICE_GRID_REGISTRY ICE_GRID_PING ICE_GRID_HELP ';' +| ICEGRID_REGISTRY ICEGRID_PING ICEGRID_HELP ';' { parser->usage("registry", "ping"); } -| ICE_GRID_REGISTRY ICE_GRID_SHUTDOWN strings ';' +| ICEGRID_REGISTRY ICEGRID_SHUTDOWN strings ';' { parser->shutdownRegistry($3); } -| ICE_GRID_REGISTRY ICE_GRID_SHUTDOWN ICE_GRID_HELP ';' +| ICEGRID_REGISTRY ICEGRID_SHUTDOWN ICEGRID_HELP ';' { parser->usage("registry", "shutdown"); } -| ICE_GRID_REGISTRY ICE_GRID_LIST strings ';' +| ICEGRID_REGISTRY ICEGRID_LIST strings ';' { parser->listAllRegistries($3); } -| ICE_GRID_REGISTRY ICE_GRID_LIST ICE_GRID_HELP ';' +| ICEGRID_REGISTRY ICEGRID_LIST ICEGRID_HELP ';' { parser->usage("registry", "list"); } -| ICE_GRID_REGISTRY ICE_GRID_SHOW strings ';' +| ICEGRID_REGISTRY ICEGRID_SHOW strings ';' { parser->show("registry", $3); } -| ICE_GRID_REGISTRY ICE_GRID_SHOW ICE_GRID_HELP ';' +| ICEGRID_REGISTRY ICEGRID_SHOW ICEGRID_HELP ';' { parser->usage("registry", "show"); } -| ICE_GRID_SERVER ICE_GRID_REMOVE strings ';' +| ICEGRID_SERVER ICEGRID_REMOVE strings ';' { parser->removeServer($3); } -| ICE_GRID_SERVER ICE_GRID_REMOVE ICE_GRID_HELP ';' +| ICEGRID_SERVER ICEGRID_REMOVE ICEGRID_HELP ';' { parser->usage("server", "remove"); } -| ICE_GRID_SERVER ICE_GRID_DESCRIBE strings ';' +| ICEGRID_SERVER ICEGRID_DESCRIBE strings ';' { parser->describeServer($3); } -| ICE_GRID_SERVER ICE_GRID_DESCRIBE ICE_GRID_HELP ';' +| ICEGRID_SERVER ICEGRID_DESCRIBE ICEGRID_HELP ';' { parser->usage("server", "describe"); } -| ICE_GRID_SERVER ICE_GRID_START strings ';' +| ICEGRID_SERVER ICEGRID_START strings ';' { parser->startServer($3); } -| ICE_GRID_SERVER ICE_GRID_START ICE_GRID_HELP ';' +| ICEGRID_SERVER ICEGRID_START ICEGRID_HELP ';' { parser->usage("server", "start"); } -| ICE_GRID_SERVER ICE_GRID_STOP strings ';' +| ICEGRID_SERVER ICEGRID_STOP strings ';' { parser->stopServer($3); } -| ICE_GRID_SERVER ICE_GRID_STOP ICE_GRID_HELP ';' +| ICEGRID_SERVER ICEGRID_STOP ICEGRID_HELP ';' { parser->usage("server", "stop"); } -| ICE_GRID_SERVER ICE_GRID_SIGNAL strings ';' +| ICEGRID_SERVER ICEGRID_SIGNAL strings ';' { parser->signalServer($3); } -| ICE_GRID_SERVER ICE_GRID_SIGNAL ICE_GRID_HELP ';' +| ICEGRID_SERVER ICEGRID_SIGNAL ICEGRID_HELP ';' { parser->usage("server", "signal"); } -| ICE_GRID_SERVER ICE_GRID_STDOUT strings ';' +| ICEGRID_SERVER ICEGRID_STDOUT strings ';' { parser->writeMessage($3, 1); } -| ICE_GRID_SERVER ICE_GRID_STDOUT ICE_GRID_HELP ';' +| ICEGRID_SERVER ICEGRID_STDOUT ICEGRID_HELP ';' { parser->usage("server", "stdout"); } -| ICE_GRID_SERVER ICE_GRID_STDERR strings ';' +| ICEGRID_SERVER ICEGRID_STDERR strings ';' { parser->writeMessage($3, 2); } -| ICE_GRID_SERVER ICE_GRID_STDERR ICE_GRID_HELP ';' +| ICEGRID_SERVER ICEGRID_STDERR ICEGRID_HELP ';' { parser->usage("server", "stderr"); } -| ICE_GRID_SERVER ICE_GRID_STATE strings ';' +| ICEGRID_SERVER ICEGRID_STATE strings ';' { parser->stateServer($3); } -| ICE_GRID_SERVER ICE_GRID_STATE ICE_GRID_HELP ';' +| ICEGRID_SERVER ICEGRID_STATE ICEGRID_HELP ';' { parser->usage("server", "start"); } -| ICE_GRID_SERVER ICE_GRID_PID strings ';' +| ICEGRID_SERVER ICEGRID_PID strings ';' { parser->pidServer($3); } -| ICE_GRID_SERVER ICE_GRID_PID ICE_GRID_HELP ';' +| ICEGRID_SERVER ICEGRID_PID ICEGRID_HELP ';' { parser->usage("server", "pid"); } -| ICE_GRID_SERVER ICE_GRID_PROPERTIES strings ';' +| ICEGRID_SERVER ICEGRID_PROPERTIES strings ';' { parser->propertiesServer($3, false); } -| ICE_GRID_SERVER ICE_GRID_PROPERTIES ICE_GRID_HELP ';' +| ICEGRID_SERVER ICEGRID_PROPERTIES ICEGRID_HELP ';' { parser->usage("server", "properties"); } -| ICE_GRID_SERVER ICE_GRID_PROPERTY strings ';' +| ICEGRID_SERVER ICEGRID_PROPERTY strings ';' { parser->propertiesServer($3, true); } -| ICE_GRID_SERVER ICE_GRID_PROPERTY ICE_GRID_HELP ';' +| ICEGRID_SERVER ICEGRID_PROPERTY ICEGRID_HELP ';' { parser->usage("server", "property"); } -| ICE_GRID_SERVER ICE_GRID_ENABLE strings ';' +| ICEGRID_SERVER ICEGRID_ENABLE strings ';' { parser->enableServer($3, true); } -| ICE_GRID_SERVER ICE_GRID_ENABLE ICE_GRID_HELP ';' +| ICEGRID_SERVER ICEGRID_ENABLE ICEGRID_HELP ';' { parser->usage("server", "enable"); } -| ICE_GRID_SERVER ICE_GRID_DISABLE strings ';' +| ICEGRID_SERVER ICEGRID_DISABLE strings ';' { parser->enableServer($3, false); } -| ICE_GRID_SERVER ICE_GRID_DISABLE ICE_GRID_HELP ';' +| ICEGRID_SERVER ICEGRID_DISABLE ICEGRID_HELP ';' { parser->usage("server", "disable"); } -| ICE_GRID_SERVER ICE_GRID_LIST strings ';' +| ICEGRID_SERVER ICEGRID_LIST strings ';' { parser->listAllServers($3); } -| ICE_GRID_SERVER ICE_GRID_LIST ICE_GRID_HELP ';' +| ICEGRID_SERVER ICEGRID_LIST ICEGRID_HELP ';' { parser->usage("server", "list"); } -| ICE_GRID_SERVER ICE_GRID_SHOW strings ';' +| ICEGRID_SERVER ICEGRID_SHOW strings ';' { parser->show("server", $3); } -| ICE_GRID_SERVER ICE_GRID_SHOW ICE_GRID_HELP ';' +| ICEGRID_SERVER ICEGRID_SHOW ICEGRID_HELP ';' { parser->usage("server", "show"); } -| ICE_GRID_SERVICE ICE_GRID_START strings ';' +| ICEGRID_SERVICE ICEGRID_START strings ';' { parser->startService($3); } -| ICE_GRID_SERVICE ICE_GRID_START ICE_GRID_HELP ';' +| ICEGRID_SERVICE ICEGRID_START ICEGRID_HELP ';' { parser->usage("service", "start"); } -| ICE_GRID_SERVICE ICE_GRID_STOP strings ';' +| ICEGRID_SERVICE ICEGRID_STOP strings ';' { parser->stopService($3); } -| ICE_GRID_SERVICE ICE_GRID_STOP ICE_GRID_HELP ';' +| ICEGRID_SERVICE ICEGRID_STOP ICEGRID_HELP ';' { parser->usage("service", "stop"); } -| ICE_GRID_SERVICE ICE_GRID_DESCRIBE strings ';' +| ICEGRID_SERVICE ICEGRID_DESCRIBE strings ';' { parser->describeService($3); } -| ICE_GRID_SERVICE ICE_GRID_DESCRIBE ICE_GRID_HELP ';' +| ICEGRID_SERVICE ICEGRID_DESCRIBE ICEGRID_HELP ';' { parser->usage("service", "describe"); } -| ICE_GRID_SERVICE ICE_GRID_PROPERTIES strings ';' +| ICEGRID_SERVICE ICEGRID_PROPERTIES strings ';' { parser->propertiesService($3, false); } -| ICE_GRID_SERVICE ICE_GRID_PROPERTIES ICE_GRID_HELP ';' +| ICEGRID_SERVICE ICEGRID_PROPERTIES ICEGRID_HELP ';' { parser->usage("service", "properties"); } -| ICE_GRID_SERVICE ICE_GRID_PROPERTY strings ';' +| ICEGRID_SERVICE ICEGRID_PROPERTY strings ';' { parser->propertiesService($3, true); } -| ICE_GRID_SERVICE ICE_GRID_PROPERTY ICE_GRID_HELP ';' +| ICEGRID_SERVICE ICEGRID_PROPERTY ICEGRID_HELP ';' { parser->usage("service", "property"); } -| ICE_GRID_SERVICE ICE_GRID_LIST strings ';' +| ICEGRID_SERVICE ICEGRID_LIST strings ';' { parser->listServices($3); } -| ICE_GRID_SERVICE ICE_GRID_LIST ICE_GRID_HELP ';' +| ICEGRID_SERVICE ICEGRID_LIST ICEGRID_HELP ';' { parser->usage("service", "list"); } -| ICE_GRID_ADAPTER ICE_GRID_ENDPOINTS strings ';' +| ICEGRID_ADAPTER ICEGRID_ENDPOINTS strings ';' { parser->endpointsAdapter($3); } -| ICE_GRID_ADAPTER ICE_GRID_ENDPOINTS ICE_GRID_HELP ';' +| ICEGRID_ADAPTER ICEGRID_ENDPOINTS ICEGRID_HELP ';' { parser->usage("adapter", "endpoints"); } -| ICE_GRID_ADAPTER ICE_GRID_REMOVE strings ';' +| ICEGRID_ADAPTER ICEGRID_REMOVE strings ';' { parser->removeAdapter($3); } -| ICE_GRID_ADAPTER ICE_GRID_REMOVE ICE_GRID_HELP ';' +| ICEGRID_ADAPTER ICEGRID_REMOVE ICEGRID_HELP ';' { parser->usage("adapter", "remove"); } -| ICE_GRID_ADAPTER ICE_GRID_LIST strings ';' +| ICEGRID_ADAPTER ICEGRID_LIST strings ';' { parser->listAllAdapters($3); } -| ICE_GRID_ADAPTER ICE_GRID_LIST ICE_GRID_HELP ';' +| ICEGRID_ADAPTER ICEGRID_LIST ICEGRID_HELP ';' { parser->usage("adapter", "list"); } -| ICE_GRID_OBJECT ICE_GRID_ADD strings ';' +| ICEGRID_OBJECT ICEGRID_ADD strings ';' { parser->addObject($3); } -| ICE_GRID_OBJECT ICE_GRID_ADD ICE_GRID_HELP ';' +| ICEGRID_OBJECT ICEGRID_ADD ICEGRID_HELP ';' { parser->usage("object", "add"); } -| ICE_GRID_OBJECT ICE_GRID_REMOVE strings ';' +| ICEGRID_OBJECT ICEGRID_REMOVE strings ';' { parser->removeObject($3); } -| ICE_GRID_OBJECT ICE_GRID_REMOVE ICE_GRID_HELP ';' +| ICEGRID_OBJECT ICEGRID_REMOVE ICEGRID_HELP ';' { parser->usage("object", "remove"); } -| ICE_GRID_OBJECT ICE_GRID_FIND strings ';' +| ICEGRID_OBJECT ICEGRID_FIND strings ';' { parser->findObject($3); } -| ICE_GRID_OBJECT ICE_GRID_FIND ICE_GRID_HELP ';' +| ICEGRID_OBJECT ICEGRID_FIND ICEGRID_HELP ';' { parser->usage("object", "find"); } -| ICE_GRID_OBJECT ICE_GRID_LIST strings ';' +| ICEGRID_OBJECT ICEGRID_LIST strings ';' { parser->listObject($3); } -| ICE_GRID_OBJECT ICE_GRID_LIST ICE_GRID_HELP ';' +| ICEGRID_OBJECT ICEGRID_LIST ICEGRID_HELP ';' { parser->usage("object", "list"); } -| ICE_GRID_OBJECT ICE_GRID_DESCRIBE strings ';' +| ICEGRID_OBJECT ICEGRID_DESCRIBE strings ';' { parser->describeObject($3); } -| ICE_GRID_OBJECT ICE_GRID_DESCRIBE ICE_GRID_HELP ';' +| ICEGRID_OBJECT ICEGRID_DESCRIBE ICEGRID_HELP ';' { parser->usage("object", "describe"); } -| ICE_GRID_SHOW ICE_GRID_COPYING ';' +| ICEGRID_SHOW ICEGRID_COPYING ';' { parser->showCopying(); } -| ICE_GRID_SHOW ICE_GRID_WARRANTY ';' +| ICEGRID_SHOW ICEGRID_WARRANTY ';' { parser->showWarranty(); } -| ICE_GRID_HELP keyword ';' +| ICEGRID_HELP keyword ';' { parser->usage($2.front()); } -| ICE_GRID_HELP keyword keyword ';' +| ICEGRID_HELP keyword keyword ';' { if (($2.front() == "server" || $2.front() == "service") && $3.front() == "template") { @@ -597,11 +597,11 @@ command parser->usage($2.front(), $3.front()); } } -| ICE_GRID_HELP keyword ICE_GRID_STRING strings ';' +| ICEGRID_HELP keyword ICEGRID_STRING strings ';' { parser->usage($2.front(), $3.front()); } -| ICE_GRID_HELP keyword keyword keyword ';' +| ICEGRID_HELP keyword keyword keyword ';' { if (($2.front() == "server" || $2.front() == "service") && $3.front() == "template") { @@ -612,7 +612,7 @@ command parser->usage($2.front(), $3.front()); } } -| ICE_GRID_HELP keyword keyword ICE_GRID_STRING strings ';' +| ICEGRID_HELP keyword keyword ICEGRID_STRING strings ';' { if (($2.front() == "server" || $2.front() == "service") && $3.front() == "template") { @@ -623,19 +623,19 @@ command parser->usage($2.front(), $3.front()); } } -| ICE_GRID_HELP ICE_GRID_STRING strings ';' +| ICEGRID_HELP ICEGRID_STRING strings ';' { parser->usage($2.front()); } -| ICE_GRID_HELP error ';' +| ICEGRID_HELP error ';' { parser->usage(); } -| keyword ICE_GRID_HELP ';' +| keyword ICEGRID_HELP ';' { parser->usage($1.front()); } -| keyword ICE_GRID_STRING error ';' +| keyword ICEGRID_STRING error ';' { $1.push_back($2.front()); parser->invalidCommand($1); @@ -646,7 +646,7 @@ command parser->invalidCommand($1); yyerrok; } -| ICE_GRID_STRING error ';' +| ICEGRID_STRING error ';' { parser->invalidCommand($1); yyerrok; @@ -663,7 +663,7 @@ command // ---------------------------------------------------------------------- strings // ---------------------------------------------------------------------- -: ICE_GRID_STRING strings +: ICEGRID_STRING strings { $$ = $2; $$.push_front($1.front()); @@ -673,13 +673,13 @@ strings $$ = $2; $$.push_front($1.front()); } -| ICE_GRID_STRING ICE_GRID_HELP strings +| ICEGRID_STRING ICEGRID_HELP strings { $$ = $2; $$.push_front("help"); $$.push_front($1.front()); } -| keyword ICE_GRID_HELP strings +| keyword ICEGRID_HELP strings { $$ = $2; $$.push_front("help"); @@ -694,115 +694,115 @@ strings // ---------------------------------------------------------------------- keyword // ---------------------------------------------------------------------- -: ICE_GRID_EXIT +: ICEGRID_EXIT { } -| ICE_GRID_APPLICATION +| ICEGRID_APPLICATION { } -| ICE_GRID_NODE +| ICEGRID_NODE { } -| ICE_GRID_REGISTRY +| ICEGRID_REGISTRY { } -| ICE_GRID_SERVER +| ICEGRID_SERVER { } -| ICE_GRID_ADAPTER +| ICEGRID_ADAPTER { } -| ICE_GRID_PING +| ICEGRID_PING { } -| ICE_GRID_LOAD +| ICEGRID_LOAD { } -| ICE_GRID_SOCKETS +| ICEGRID_SOCKETS { } -| ICE_GRID_ADD +| ICEGRID_ADD { } -| ICE_GRID_REMOVE +| ICEGRID_REMOVE { } -| ICE_GRID_LIST +| ICEGRID_LIST { } -| ICE_GRID_SHUTDOWN +| ICEGRID_SHUTDOWN { } -| ICE_GRID_START +| ICEGRID_START { } -| ICE_GRID_STOP +| ICEGRID_STOP { } -| ICE_GRID_SIGNAL +| ICEGRID_SIGNAL { } -| ICE_GRID_DESCRIBE +| ICEGRID_DESCRIBE { } -| ICE_GRID_STATE +| ICEGRID_STATE { } -| ICE_GRID_PID +| ICEGRID_PID { } -| ICE_GRID_PROPERTIES +| ICEGRID_PROPERTIES { } -| ICE_GRID_PROPERTY +| ICEGRID_PROPERTY { } -| ICE_GRID_ENDPOINTS +| ICEGRID_ENDPOINTS { } -| ICE_GRID_ACTIVATION +| ICEGRID_ACTIVATION { } -| ICE_GRID_OBJECT +| ICEGRID_OBJECT { } -| ICE_GRID_FIND +| ICEGRID_FIND { } -| ICE_GRID_SHOW +| ICEGRID_SHOW { } -| ICE_GRID_COPYING +| ICEGRID_COPYING { } -| ICE_GRID_WARRANTY +| ICEGRID_WARRANTY { } -| ICE_GRID_DIFF +| ICEGRID_DIFF { } -| ICE_GRID_UPDATE +| ICEGRID_UPDATE { } -| ICE_GRID_INSTANTIATE +| ICEGRID_INSTANTIATE { } -| ICE_GRID_TEMPLATE +| ICEGRID_TEMPLATE { } -| ICE_GRID_SERVICE +| ICEGRID_SERVICE { } -| ICE_GRID_ENABLE +| ICEGRID_ENABLE { } -| ICE_GRID_DISABLE +| ICEGRID_DISABLE { } -| ICE_GRID_STDERR +| ICEGRID_STDERR { } -| ICE_GRID_STDOUT +| ICEGRID_STDOUT { } ; diff --git a/cpp/src/IceGrid/InternalRegistryI.h b/cpp/src/IceGrid/InternalRegistryI.h index fbe567dbb3d..7f874ee1971 100644 --- a/cpp/src/IceGrid/InternalRegistryI.h +++ b/cpp/src/IceGrid/InternalRegistryI.h @@ -2,8 +2,8 @@ // Copyright (c) ZeroC, Inc. All rights reserved. // -#ifndef ICE_GRID_INTERNALREGISTRYI_H -#define ICE_GRID_INTERNALREGISTRYI_H +#ifndef ICEGRID_INTERNALREGISTRYI_H +#define ICEGRID_INTERNALREGISTRYI_H #include "IceGrid/Registry.h" #include "Internal.h" diff --git a/cpp/src/IceGrid/LocatorI.h b/cpp/src/IceGrid/LocatorI.h index c529eb82b77..15a13defd62 100644 --- a/cpp/src/IceGrid/LocatorI.h +++ b/cpp/src/IceGrid/LocatorI.h @@ -2,8 +2,8 @@ // Copyright (c) ZeroC, Inc. All rights reserved. // -#ifndef ICE_GRID_LOCATOR_I_H -#define ICE_GRID_LOCATOR_I_H +#ifndef ICEGRID_LOCATOR_I_H +#define ICEGRID_LOCATOR_I_H #include "IceGrid/Registry.h" #include "Internal.h" diff --git a/cpp/src/IceGrid/LocatorRegistryI.h b/cpp/src/IceGrid/LocatorRegistryI.h index b2a6b8f29c3..b8455ef2764 100644 --- a/cpp/src/IceGrid/LocatorRegistryI.h +++ b/cpp/src/IceGrid/LocatorRegistryI.h @@ -2,8 +2,8 @@ // Copyright (c) ZeroC, Inc. All rights reserved. // -#ifndef ICE_GRID_LOCATOR_REGISTRY_I_H -#define ICE_GRID_LOCATOR_REGISTRY_I_H +#ifndef ICEGRID_LOCATOR_REGISTRY_I_H +#define ICEGRID_LOCATOR_REGISTRY_I_H #include "Ice/Locator.h" #include "Internal.h" diff --git a/cpp/src/IceGrid/NodeAdminRouter.h b/cpp/src/IceGrid/NodeAdminRouter.h index ce7ab20a58c..6b021dbc9f5 100644 --- a/cpp/src/IceGrid/NodeAdminRouter.h +++ b/cpp/src/IceGrid/NodeAdminRouter.h @@ -2,8 +2,8 @@ // Copyright (c) ZeroC, Inc. All rights reserved. // -#ifndef ICE_GRID_NODE_ADMIN_ROUTER_H -#define ICE_GRID_NODE_ADMIN_ROUTER_H +#ifndef ICEGRID_NODE_ADMIN_ROUTER_H +#define ICEGRID_NODE_ADMIN_ROUTER_H #include "AdminRouter.h" #include "NodeI.h" diff --git a/cpp/src/IceGrid/NodeCache.h b/cpp/src/IceGrid/NodeCache.h index d495e2a9c5d..38fe6b31cd5 100644 --- a/cpp/src/IceGrid/NodeCache.h +++ b/cpp/src/IceGrid/NodeCache.h @@ -2,8 +2,8 @@ // Copyright (c) ZeroC, Inc. All rights reserved. // -#ifndef ICE_GRID_NODECACHE_H -#define ICE_GRID_NODECACHE_H +#ifndef ICEGRID_NODECACHE_H +#define ICEGRID_NODECACHE_H #include "Cache.h" #include "Internal.h" diff --git a/cpp/src/IceGrid/NodeI.h b/cpp/src/IceGrid/NodeI.h index e078662e706..3927d922434 100644 --- a/cpp/src/IceGrid/NodeI.h +++ b/cpp/src/IceGrid/NodeI.h @@ -2,8 +2,8 @@ // Copyright (c) ZeroC, Inc. All rights reserved. // -#ifndef ICE_GRID_NODE_I_H -#define ICE_GRID_NODE_I_H +#ifndef ICEGRID_NODE_I_H +#define ICEGRID_NODE_I_H #include "FileCache.h" #include "Ice/Timer.h" diff --git a/cpp/src/IceGrid/NodeSessionManager.h b/cpp/src/IceGrid/NodeSessionManager.h index 8b421f8fe9b..e417048d75b 100644 --- a/cpp/src/IceGrid/NodeSessionManager.h +++ b/cpp/src/IceGrid/NodeSessionManager.h @@ -2,8 +2,8 @@ // Copyright (c) ZeroC, Inc. All rights reserved. // -#ifndef ICE_GRID_NODE_SESSION_MANAGER_H -#define ICE_GRID_NODE_SESSION_MANAGER_H +#ifndef ICEGRID_NODE_SESSION_MANAGER_H +#define ICEGRID_NODE_SESSION_MANAGER_H #include "IceGrid/Registry.h" #include "Internal.h" diff --git a/cpp/src/IceGrid/ObjectCache.h b/cpp/src/IceGrid/ObjectCache.h index 36f426d344c..d71aa9a72d8 100644 --- a/cpp/src/IceGrid/ObjectCache.h +++ b/cpp/src/IceGrid/ObjectCache.h @@ -2,8 +2,8 @@ // Copyright (c) ZeroC, Inc. All rights reserved. // -#ifndef ICE_GRID_OBJECTCACHE_H -#define ICE_GRID_OBJECTCACHE_H +#ifndef ICEGRID_OBJECTCACHE_H +#define ICEGRID_OBJECTCACHE_H #include "Cache.h" #include "Ice/CommunicatorF.h" diff --git a/cpp/src/IceGrid/Parser.h b/cpp/src/IceGrid/Parser.h index 57187ce5503..5c29991c1b8 100644 --- a/cpp/src/IceGrid/Parser.h +++ b/cpp/src/IceGrid/Parser.h @@ -2,8 +2,8 @@ // Copyright (c) ZeroC, Inc. All rights reserved. // -#ifndef ICE_GRID_PARSER_H -#define ICE_GRID_PARSER_H +#ifndef ICEGRID_PARSER_H +#define ICEGRID_PARSER_H #include "IceGrid/Admin.h" #include "IceGrid/Registry.h" diff --git a/cpp/src/IceGrid/PlatformInfo.h b/cpp/src/IceGrid/PlatformInfo.h index ce334e836b6..54f72b1b2d9 100644 --- a/cpp/src/IceGrid/PlatformInfo.h +++ b/cpp/src/IceGrid/PlatformInfo.h @@ -2,8 +2,8 @@ // Copyright (c) ZeroC, Inc. All rights reserved. // -#ifndef ICE_GRID_PLATFORM_INFO_H -#define ICE_GRID_PLATFORM_INFO_H +#ifndef ICEGRID_PLATFORM_INFO_H +#define ICEGRID_PLATFORM_INFO_H #include "Internal.h" diff --git a/cpp/src/IceGrid/QueryI.h b/cpp/src/IceGrid/QueryI.h index 2addc380045..392b8f82fb0 100644 --- a/cpp/src/IceGrid/QueryI.h +++ b/cpp/src/IceGrid/QueryI.h @@ -2,8 +2,8 @@ // Copyright (c) ZeroC, Inc. All rights reserved. // -#ifndef ICE_GRID_QUERY_I_H -#define ICE_GRID_QUERY_I_H +#ifndef ICEGRID_QUERY_I_H +#define ICEGRID_QUERY_I_H #include "Ice/CommunicatorF.h" #include "IceGrid/Registry.h" diff --git a/cpp/src/IceGrid/RegistryAdminRouter.h b/cpp/src/IceGrid/RegistryAdminRouter.h index a0850a54fe7..cfcca83e900 100644 --- a/cpp/src/IceGrid/RegistryAdminRouter.h +++ b/cpp/src/IceGrid/RegistryAdminRouter.h @@ -2,8 +2,8 @@ // Copyright (c) ZeroC, Inc. All rights reserved. // -#ifndef ICE_GRID_REGISTRY_ADMIN_ROUTER_H -#define ICE_GRID_REGISTRY_ADMIN_ROUTER_H +#ifndef ICEGRID_REGISTRY_ADMIN_ROUTER_H +#define ICEGRID_REGISTRY_ADMIN_ROUTER_H #include "AdminRouter.h" #include "Database.h" diff --git a/cpp/src/IceGrid/RegistryI.h b/cpp/src/IceGrid/RegistryI.h index 99bc9867918..55a9d3d39ff 100644 --- a/cpp/src/IceGrid/RegistryI.h +++ b/cpp/src/IceGrid/RegistryI.h @@ -2,8 +2,8 @@ // Copyright (c) ZeroC, Inc. All rights reserved. // -#ifndef ICE_GRID_REGISTRYI_H -#define ICE_GRID_REGISTRYI_H +#ifndef ICEGRID_REGISTRYI_H +#define ICEGRID_REGISTRYI_H #include "../IceStorm/Service.h" #include "Glacier2/PermissionsVerifier.h" diff --git a/cpp/src/IceGrid/ReplicaCache.h b/cpp/src/IceGrid/ReplicaCache.h index 3750a4e5db6..30dde88d949 100644 --- a/cpp/src/IceGrid/ReplicaCache.h +++ b/cpp/src/IceGrid/ReplicaCache.h @@ -2,8 +2,8 @@ // Copyright (c) ZeroC, Inc. All rights reserved. // -#ifndef ICE_GRID_REPLICACACHE_H -#define ICE_GRID_REPLICACACHE_H +#ifndef ICEGRID_REPLICACACHE_H +#define ICEGRID_REPLICACACHE_H #include "Cache.h" #include "IceStorm/IceStorm.h" diff --git a/cpp/src/IceGrid/ReplicaSessionManager.h b/cpp/src/IceGrid/ReplicaSessionManager.h index 8f2926c13c0..82160a5e847 100644 --- a/cpp/src/IceGrid/ReplicaSessionManager.h +++ b/cpp/src/IceGrid/ReplicaSessionManager.h @@ -2,8 +2,8 @@ // Copyright (c) ZeroC, Inc. All rights reserved. // -#ifndef ICE_GRID_REPLICA_SESSION_MANAGER_H -#define ICE_GRID_REPLICA_SESSION_MANAGER_H +#ifndef ICEGRID_REPLICA_SESSION_MANAGER_H +#define ICEGRID_REPLICA_SESSION_MANAGER_H #include "Internal.h" #include "SessionManager.h" diff --git a/cpp/src/IceGrid/Scanner.cpp b/cpp/src/IceGrid/Scanner.cpp index 3bcf2680dbe..7c971eba936 100644 --- a/cpp/src/IceGrid/Scanner.cpp +++ b/cpp/src/IceGrid/Scanner.cpp @@ -8,7 +8,7 @@ #line 9 "src/IceGrid/Scanner.cpp" -#define YY_INT_ALIGNED long int +#define YY_INT_ALIGNED long int /* A lexical scanner generated by flex */ @@ -17,97 +17,96 @@ #define YY_FLEX_MINOR_VERSION 6 #define YY_FLEX_SUBMINOR_VERSION 4 #if YY_FLEX_SUBMINOR_VERSION > 0 -# define FLEX_BETA +#define FLEX_BETA #endif #ifdef yyget_lval -# define yyget_lval_ALREADY_DEFINED +#define yyget_lval_ALREADY_DEFINED #else -# define yyget_lval yyget_lval +#define yyget_lval yyget_lval #endif #ifdef yyset_lval -# define yyset_lval_ALREADY_DEFINED +#define yyset_lval_ALREADY_DEFINED #else -# define yyset_lval yyset_lval +#define yyset_lval yyset_lval #endif /* First, we deal with platform-specific or compiler-specific issues. */ /* begin standard C headers. */ -#include #include -#include #include +#include +#include /* end standard C headers. */ /* flex integer type definitions */ #ifndef FLEXINT_H -# define FLEXINT_H +#define FLEXINT_H /* C99 systems have . Non-C99 systems may or may not. */ -# if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L +#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, - * if you want the limit (max/min) macros for int types. + * if you want the limit (max/min) macros for int types. */ -# ifndef __STDC_LIMIT_MACROS -# define __STDC_LIMIT_MACROS 1 -# endif +#ifndef __STDC_LIMIT_MACROS +#define __STDC_LIMIT_MACROS 1 +#endif -# include +#include typedef int8_t flex_int8_t; typedef uint8_t flex_uint8_t; typedef int16_t flex_int16_t; typedef uint16_t flex_uint16_t; typedef int32_t flex_int32_t; typedef uint32_t flex_uint32_t; -typedef uint64_t flex_uint64_t; -# else +#else typedef signed char flex_int8_t; typedef short int flex_int16_t; typedef int flex_int32_t; -typedef unsigned char flex_uint8_t; +typedef unsigned char flex_uint8_t; typedef unsigned short int flex_uint16_t; typedef unsigned int flex_uint32_t; /* Limits of integral types. */ -# ifndef INT8_MIN -# define INT8_MIN (-128) -# endif -# ifndef INT16_MIN -# define INT16_MIN (-32767 - 1) -# endif -# ifndef INT32_MIN -# define INT32_MIN (-2147483647 - 1) -# endif -# ifndef INT8_MAX -# define INT8_MAX (127) -# endif -# ifndef INT16_MAX -# define INT16_MAX (32767) -# endif -# ifndef INT32_MAX -# define INT32_MAX (2147483647) -# endif -# ifndef UINT8_MAX -# define UINT8_MAX (255U) -# endif -# ifndef UINT16_MAX -# define UINT16_MAX (65535U) -# endif -# ifndef UINT32_MAX -# define UINT32_MAX (4294967295U) -# endif - -# ifndef SIZE_MAX -# define SIZE_MAX (~(size_t)0) -# endif - -# endif /* ! C99 */ +#ifndef INT8_MIN +#define INT8_MIN (-128) +#endif +#ifndef INT16_MIN +#define INT16_MIN (-32767-1) +#endif +#ifndef INT32_MIN +#define INT32_MIN (-2147483647-1) +#endif +#ifndef INT8_MAX +#define INT8_MAX (127) +#endif +#ifndef INT16_MAX +#define INT16_MAX (32767) +#endif +#ifndef INT32_MAX +#define INT32_MAX (2147483647) +#endif +#ifndef UINT8_MAX +#define UINT8_MAX (255U) +#endif +#ifndef UINT16_MAX +#define UINT16_MAX (65535U) +#endif +#ifndef UINT32_MAX +#define UINT32_MAX (4294967295U) +#endif + +#ifndef SIZE_MAX +#define SIZE_MAX (~(size_t)0) +#endif + +#endif /* ! C99 */ #endif /* ! FLEXINT_H */ @@ -117,9 +116,9 @@ typedef unsigned int flex_uint32_t; #define yyconst const #if defined(__GNUC__) && __GNUC__ >= 3 -# define yynoreturn __attribute__((__noreturn__)) +#define yynoreturn __attribute__((__noreturn__)) #else -# define yynoreturn +#define yynoreturn #endif /* Returned upon end-of-file. */ @@ -128,7 +127,7 @@ typedef unsigned int flex_uint32_t; /* Promotes a possibly negative, possibly signed char to an * integer in range [0..255] for use as an array index. */ -#define YY_SC_TO_UI(c) ((YY_CHAR)(c)) +#define YY_SC_TO_UI(c) ((YY_CHAR) (c)) /* Enter a start condition. This macro really ought to take a parameter, * but we do it the disgusting crufty way forced on us by the ()-less @@ -144,128 +143,131 @@ typedef unsigned int flex_uint32_t; /* Action number for EOF rule of a given start state. */ #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) /* Special action meaning "start processing a new file". */ -#define YY_NEW_FILE yyrestart(yyin) +#define YY_NEW_FILE yyrestart( yyin ) #define YY_END_OF_BUFFER_CHAR 0 /* Size of default input buffer. */ #ifndef YY_BUF_SIZE -# ifdef __ia64__ +#ifdef __ia64__ /* On IA-64, the buffer size is 16k, not 8k. * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case. * Ditto for the __ia64__ case accordingly. */ -# define YY_BUF_SIZE 32768 -# else -# define YY_BUF_SIZE 16384 -# endif /* __ia64__ */ +#define YY_BUF_SIZE 32768 +#else +#define YY_BUF_SIZE 16384 +#endif /* __ia64__ */ #endif /* The state buf must be large enough to hold one state per character in the main buffer. */ -#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) +#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) #ifndef YY_TYPEDEF_YY_BUFFER_STATE -# define YY_TYPEDEF_YY_BUFFER_STATE -typedef struct yy_buffer_state* YY_BUFFER_STATE; +#define YY_TYPEDEF_YY_BUFFER_STATE +typedef struct yy_buffer_state *YY_BUFFER_STATE; #endif #ifndef YY_TYPEDEF_YY_SIZE_T -# define YY_TYPEDEF_YY_SIZE_T +#define YY_TYPEDEF_YY_SIZE_T typedef size_t yy_size_t; #endif -extern yy_size_t yyleng; +extern int yyleng; extern FILE *yyin, *yyout; #define EOB_ACT_CONTINUE_SCAN 0 #define EOB_ACT_END_OF_FILE 1 #define EOB_ACT_LAST_MATCH 2 - -#define YY_LESS_LINENO(n) -#define YY_LINENO_REWIND_TO(ptr) - + + #define YY_LESS_LINENO(n) + #define YY_LINENO_REWIND_TO(ptr) + /* Return all but the first "n" matched characters back to the input stream. */ -#define yyless(n) \ - do \ - { \ - /* Undo effects of setting up yytext. */ \ - int yyless_macro_arg = (n); \ - YY_LESS_LINENO(yyless_macro_arg); \ - *yy_cp = (yy_hold_char); \ - YY_RESTORE_YY_MORE_OFFSET(yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ - YY_DO_BEFORE_ACTION; /* set up yytext again */ \ - } while (0) -#define unput(c) yyunput(c, (yytext_ptr)) +#define yyless(n) \ + do \ + { \ + /* Undo effects of setting up yytext. */ \ + int yyless_macro_arg = (n); \ + YY_LESS_LINENO(yyless_macro_arg);\ + *yy_cp = (yy_hold_char); \ + YY_RESTORE_YY_MORE_OFFSET \ + (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ + YY_DO_BEFORE_ACTION; /* set up yytext again */ \ + } \ + while ( 0 ) +#define unput(c) yyunput( c, (yytext_ptr) ) #ifndef YY_STRUCT_YY_BUFFER_STATE -# define YY_STRUCT_YY_BUFFER_STATE +#define YY_STRUCT_YY_BUFFER_STATE struct yy_buffer_state -{ - FILE* yy_input_file; - - char* yy_ch_buf; /* input buffer */ - char* yy_buf_pos; /* current position in input buffer */ - - /* Size of input buffer in bytes, not including room for EOB - * characters. - */ - int yy_buf_size; - - /* Number of characters read into yy_ch_buf, not including EOB - * characters. - */ - yy_size_t yy_n_chars; - - /* Whether we "own" the buffer - i.e., we know we created it, - * and can realloc() it to grow it, and should free() it to - * delete it. - */ - int yy_is_our_buffer; - - /* Whether this is an "interactive" input source; if so, and - * if we're using stdio for input, then we want to use getc() - * instead of fread(), to make sure we stop fetching input after - * each newline. - */ - int yy_is_interactive; - - /* Whether we're considered to be at the beginning of a line. - * If so, '^' rules will be active on the next match, otherwise - * not. - */ - int yy_at_bol; + { + FILE *yy_input_file; + + char *yy_ch_buf; /* input buffer */ + char *yy_buf_pos; /* current position in input buffer */ + + /* Size of input buffer in bytes, not including room for EOB + * characters. + */ + int yy_buf_size; + + /* Number of characters read into yy_ch_buf, not including EOB + * characters. + */ + int yy_n_chars; + + /* Whether we "own" the buffer - i.e., we know we created it, + * and can realloc() it to grow it, and should free() it to + * delete it. + */ + int yy_is_our_buffer; + + /* Whether this is an "interactive" input source; if so, and + * if we're using stdio for input, then we want to use getc() + * instead of fread(), to make sure we stop fetching input after + * each newline. + */ + int yy_is_interactive; + + /* Whether we're considered to be at the beginning of a line. + * If so, '^' rules will be active on the next match, otherwise + * not. + */ + int yy_at_bol; int yy_bs_lineno; /**< The line count. */ int yy_bs_column; /**< The column count. */ - /* Whether to try to fill the input buffer when we reach the - * end of it. - */ - int yy_fill_buffer; - - int yy_buffer_status; - -# define YY_BUFFER_NEW 0 -# define YY_BUFFER_NORMAL 1 - /* When an EOF's been seen but there's still some text to process - * then we mark the buffer as YY_EOF_PENDING, to indicate that we - * shouldn't try reading from the input source any more. We might - * still have a bunch of tokens to match, though, because of - * possible backing-up. - * - * When we actually see the EOF, we change the status to "new" - * (via yyrestart()), so that the user can continue scanning by - * just pointing yyin at a new input file. - */ -# define YY_BUFFER_EOF_PENDING 2 -}; + /* Whether to try to fill the input buffer when we reach the + * end of it. + */ + int yy_fill_buffer; + + int yy_buffer_status; + +#define YY_BUFFER_NEW 0 +#define YY_BUFFER_NORMAL 1 + /* When an EOF's been seen but there's still some text to process + * then we mark the buffer as YY_EOF_PENDING, to indicate that we + * shouldn't try reading from the input source any more. We might + * still have a bunch of tokens to match, though, because of + * possible backing-up. + * + * When we actually see the EOF, we change the status to "new" + * (via yyrestart()), so that the user can continue scanning by + * just pointing yyin at a new input file. + */ +#define YY_BUFFER_EOF_PENDING 2 + + }; #endif /* !YY_STRUCT_YY_BUFFER_STATE */ /* Stack of input buffers. */ -static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */ -static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */ -static YY_BUFFER_STATE* yy_buffer_stack = NULL; /**< Stack as an array. */ +static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */ +static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */ +static YY_BUFFER_STATE * yy_buffer_stack = NULL; /**< Stack as an array. */ /* We provide macros for accessing buffer states in case in the * future we want to put the buffer states in a more general @@ -273,7 +275,9 @@ static YY_BUFFER_STATE* yy_buffer_stack = NULL; /**< Stack as an array. */ * * Returns the top of the stack, or NULL. */ -#define YY_CURRENT_BUFFER ((yy_buffer_stack) ? (yy_buffer_stack)[(yy_buffer_stack_top)] : NULL) +#define YY_CURRENT_BUFFER ( (yy_buffer_stack) \ + ? (yy_buffer_stack)[(yy_buffer_stack_top)] \ + : NULL) /* Same as previous macro, but useful when we know that the buffer stack is not * NULL or when we need an lvalue. For internal use only. */ @@ -281,64 +285,64 @@ static YY_BUFFER_STATE* yy_buffer_stack = NULL; /**< Stack as an array. */ /* yy_hold_char holds the character lost when yytext is formed. */ static char yy_hold_char; -static yy_size_t yy_n_chars; /* number of characters read into yy_ch_buf */ -yy_size_t yyleng; +static int yy_n_chars; /* number of characters read into yy_ch_buf */ +int yyleng; /* Points to current character in buffer. */ -static char* yy_c_buf_p = NULL; -static int yy_init = 0; /* whether we need to initialize */ -static int yy_start = 0; /* start state number */ +static char *yy_c_buf_p = NULL; +static int yy_init = 0; /* whether we need to initialize */ +static int yy_start = 0; /* start state number */ /* Flag which is used to allow yywrap()'s to do buffer switches * instead of setting up a fresh yyin. A bit of a hack ... */ static int yy_did_buffer_switch_on_eof; -void yyrestart(FILE* input_file); -void yy_switch_to_buffer(YY_BUFFER_STATE new_buffer); -YY_BUFFER_STATE yy_create_buffer(FILE* file, int size); -void yy_delete_buffer(YY_BUFFER_STATE b); -void yy_flush_buffer(YY_BUFFER_STATE b); -void yypush_buffer_state(YY_BUFFER_STATE new_buffer); -void yypop_buffer_state(void); +void yyrestart ( FILE *input_file ); +void yy_switch_to_buffer ( YY_BUFFER_STATE new_buffer ); +YY_BUFFER_STATE yy_create_buffer ( FILE *file, int size ); +void yy_delete_buffer ( YY_BUFFER_STATE b ); +void yy_flush_buffer ( YY_BUFFER_STATE b ); +void yypush_buffer_state ( YY_BUFFER_STATE new_buffer ); +void yypop_buffer_state ( void ); -static void yyensure_buffer_stack(void); -static void yy_load_buffer_state(void); -static void yy_init_buffer(YY_BUFFER_STATE b, FILE* file); -#define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER) +static void yyensure_buffer_stack ( void ); +static void yy_load_buffer_state ( void ); +static void yy_init_buffer ( YY_BUFFER_STATE b, FILE *file ); +#define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER ) -YY_BUFFER_STATE yy_scan_buffer(char* base, yy_size_t size); -YY_BUFFER_STATE yy_scan_string(const char* yy_str); -YY_BUFFER_STATE yy_scan_bytes(const char* bytes, yy_size_t len); +YY_BUFFER_STATE yy_scan_buffer ( char *base, yy_size_t size ); +YY_BUFFER_STATE yy_scan_string ( const char *yy_str ); +YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, int len ); -void* yyalloc(yy_size_t); -void* yyrealloc(void*, yy_size_t); -void yyfree(void*); +void *yyalloc ( yy_size_t ); +void *yyrealloc ( void *, yy_size_t ); +void yyfree ( void * ); #define yy_new_buffer yy_create_buffer -#define yy_set_interactive(is_interactive) \ - { \ - if (!YY_CURRENT_BUFFER) \ - { \ - yyensure_buffer_stack(); \ - YY_CURRENT_BUFFER_LVALUE = yy_create_buffer(yyin, YY_BUF_SIZE); \ - } \ - YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ - } -#define yy_set_bol(at_bol) \ - { \ - if (!YY_CURRENT_BUFFER) \ - { \ - yyensure_buffer_stack(); \ - YY_CURRENT_BUFFER_LVALUE = yy_create_buffer(yyin, YY_BUF_SIZE); \ - } \ - YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ - } +#define yy_set_interactive(is_interactive) \ + { \ + if ( ! YY_CURRENT_BUFFER ){ \ + yyensure_buffer_stack (); \ + YY_CURRENT_BUFFER_LVALUE = \ + yy_create_buffer( yyin, YY_BUF_SIZE ); \ + } \ + YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ + } +#define yy_set_bol(at_bol) \ + { \ + if ( ! YY_CURRENT_BUFFER ){\ + yyensure_buffer_stack (); \ + YY_CURRENT_BUFFER_LVALUE = \ + yy_create_buffer( yyin, YY_BUF_SIZE ); \ + } \ + YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ + } #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) /* Begin user sect3 */ -#define yywrap() (/*CONSTCOND*/ 1) +#define yywrap() (/*CONSTCOND*/1) #define YY_SKIP_YYWRAP typedef flex_uint8_t YY_CHAR; @@ -349,63 +353,108 @@ typedef int yy_state_type; extern int yylineno; int yylineno = 1; -extern char* yytext; +extern char *yytext; #ifdef yytext_ptr -# undef yytext_ptr +#undef yytext_ptr #endif #define yytext_ptr yytext -static yy_state_type yy_get_previous_state(void); -static yy_state_type yy_try_NUL_trans(yy_state_type current_state); -static int yy_get_next_buffer(void); -static void yynoreturn yy_fatal_error(const char* msg); +static yy_state_type yy_get_previous_state ( void ); +static yy_state_type yy_try_NUL_trans ( yy_state_type current_state ); +static int yy_get_next_buffer ( void ); +static void yynoreturn yy_fatal_error ( const char* msg ); /* Done after the current pattern has been matched and before the * corresponding action - sets up yytext. */ -#define YY_DO_BEFORE_ACTION \ - (yytext_ptr) = yy_bp; \ - yyleng = (yy_size_t)(yy_cp - yy_bp); \ - (yy_hold_char) = *yy_cp; \ - *yy_cp = '\0'; \ - (yy_c_buf_p) = yy_cp; +#define YY_DO_BEFORE_ACTION \ + (yytext_ptr) = yy_bp; \ + yyleng = (int) (yy_cp - yy_bp); \ + (yy_hold_char) = *yy_cp; \ + *yy_cp = '\0'; \ + (yy_c_buf_p) = yy_cp; #define YY_NUM_RULES 8 #define YY_END_OF_BUFFER 9 /* This struct is not used in this scanner, but its presence is necessary. */ struct yy_trans_info -{ - flex_int32_t yy_verify; - flex_int32_t yy_nxt; -}; -static const flex_int32_t yy_accept[19] = {0, 3, 3, 9, 7, 3, 4, 5, 6, 7, 4, 7, 3, 0, 2, 1, 0, 3, 0}; - -static const YY_CHAR yy_ec[256] = { - 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, - 4, 1, 1, 1, 1, 5, 1, 1, 6, 1, 1, 1, 1, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 8, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 9, 1, 1, 1, 1, 1, 1, 1, 1, - - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}; - -static const YY_CHAR yy_meta[10] = {0, 1, 1, 1, 1, 1, 1, 1, 1, 1}; - -static const flex_int32_t yy_base[19] = {0, 0, 0, 11, 22, 8, 22, 22, 22, 12, 22, 18, 0, 0, 22, 22, 0, 22, 22}; - -static const flex_int32_t yy_def[19] = {0, 18, 1, 18, 18, 18, 18, 18, 18, 18, 18, 18, 5, 11, 18, 18, 11, 18, 0}; - -static const flex_int32_t yy_nxt[32] = {0, 4, 5, 6, 7, 8, 4, 9, 10, 11, 12, 18, 18, 18, 18, 18, - 18, 13, 14, 15, 16, 17, 3, 18, 18, 18, 18, 18, 18, 18, 18, 18}; - -static const flex_int32_t yy_chk[32] = {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 3, 0, 0, 0, 0, - 0, 5, 9, 9, 11, 11, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18}; + { + flex_int32_t yy_verify; + flex_int32_t yy_nxt; + }; +static const flex_int32_t yy_accept[19] = + { 0, + 3, 3, 9, 7, 3, 4, 5, 6, 7, 4, + 7, 3, 0, 2, 1, 0, 3, 0 + } ; + +static const YY_CHAR yy_ec[256] = + { 0, + 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, + 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 2, 1, 4, 1, 1, 1, 1, 5, 1, + 1, 6, 1, 1, 1, 1, 7, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 8, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 9, 1, 1, 1, 1, 1, 1, 1, 1, + + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1 + } ; + +static const YY_CHAR yy_meta[10] = + { 0, + 1, 1, 1, 1, 1, 1, 1, 1, 1 + } ; + +static const flex_int32_t yy_base[19] = + { 0, + 0, 0, 11, 22, 8, 22, 22, 22, 12, 22, + 18, 0, 0, 22, 22, 0, 22, 22 + } ; + +static const flex_int32_t yy_def[19] = + { 0, + 18, 1, 18, 18, 18, 18, 18, 18, 18, 18, + 18, 5, 11, 18, 18, 11, 18, 0 + } ; + +static const flex_int32_t yy_nxt[32] = + { 0, + 4, 5, 6, 7, 8, 4, 9, 10, 11, 12, + 18, 18, 18, 18, 18, 18, 13, 14, 15, 16, + 17, 3, 18, 18, 18, 18, 18, 18, 18, 18, + 18 + } ; + +static const flex_int32_t yy_chk[32] = + { 0, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, + 3, 0, 0, 0, 0, 0, 5, 9, 9, 11, + 11, 18, 18, 18, 18, 18, 18, 18, 18, 18, + 18 + } ; static yy_state_type yy_last_accepting_state; -static char* yy_last_accepting_cpos; +static char *yy_last_accepting_cpos; extern int yy_flex_debug; int yy_flex_debug = 0; @@ -417,14 +466,14 @@ int yy_flex_debug = 0; #define yymore() yymore_used_but_not_detected #define YY_MORE_ADJ 0 #define YY_RESTORE_YY_MORE_OFFSET -char* yytext; +char *yytext; #line 1 "src/IceGrid/Scanner.l" #line 12 "src/IceGrid/Scanner.l" -#include "Grammar.h" #include "Ice/Ice.h" #include "Parser.h" +#include "Grammar.h" #include @@ -448,20 +497,20 @@ namespace IceGrid #define YY_INPUT(buf, result, maxSize) parser->getInput(buf, result, maxSize) #define YY_FATAL_ERROR(msg) fatalError(msg); -#line 501 "src/IceGrid/Scanner.cpp" +#line 500 "src/IceGrid/Scanner.cpp" #line 42 "src/IceGrid/Scanner.l" -/* Instructs flex to not suppress any warnings when generating the scanner. */ -/* By default flex will 'default match' any text it encounters that doesn't match any specified rules. This - * option disables default-matching (it throws 'scanner jammed' instead) to make grammar holes more obvious. */ -/* Directs flex to generate a scanner tailored for use by bison. - * These options change the signature of the main lexing function, which must match the one declared in Grammar.y */ -/* Ensures flex generates a scanner that supports reading 8-bit characters. */ -/* Directs flex to generate lookup tables that are better aligned in memory to - * improve access speeds, even if this means allocating larger tables. */ -/* Directs flex to store matched text as 'char *' instead of char arrays, for improved performance. */ -/* We always want the scanner to run in interactive mode. */ -/* Disables the generation of functions we don't use to reduce clutter, and possibly improve performance. */ -#line 514 "src/IceGrid/Scanner.cpp" + /* Instructs flex to not suppress any warnings when generating the scanner. */ + /* By default flex will 'default match' any text it encounters that doesn't match any specified rules. This + * option disables default-matching (it throws 'scanner jammed' instead) to make grammar holes more obvious. */ + /* Directs flex to generate a scanner tailored for use by bison. + * These options change the signature of the main lexing function, which must match the one declared in Grammar.y */ + /* Ensures flex generates a scanner that supports reading 8-bit characters. */ + /* Directs flex to generate lookup tables that are better aligned in memory to + * improve access speeds, even if this means allocating larger tables. */ + /* Directs flex to store matched text as 'char *' instead of char arrays, for improved performance. */ + /* We always want the scanner to run in interactive mode. */ + /* Disables the generation of functions we don't use to reduce clutter, and possibly improve performance. */ +#line 513 "src/IceGrid/Scanner.cpp" #define INITIAL 0 @@ -470,65 +519,65 @@ namespace IceGrid * down here because we want the user's section 1 to have been scanned first. * The user has a chance to override it with an option. */ -# include +#include #endif #ifndef YY_EXTRA_TYPE -# define YY_EXTRA_TYPE void* +#define YY_EXTRA_TYPE void * #endif -static int yy_init_globals(void); +static int yy_init_globals ( void ); /* Accessor methods to globals. These are made visible to non-reentrant scanners for convenience. */ -int yylex_destroy(void); +int yylex_destroy ( void ); -void yyset_lval(YYSTYPE* yylval_param); +void yyset_lval ( YYSTYPE * yylval_param ); /* Macros after this point can all be overridden by user definitions in * section 1. */ #ifndef YY_SKIP_YYWRAP -# ifdef __cplusplus -extern "C" int yywrap(void); -# else -extern int yywrap(void); -# endif +#ifdef __cplusplus +extern "C" int yywrap ( void ); +#else +extern int yywrap ( void ); +#endif #endif #ifndef YY_NO_UNPUT - -static void yyunput(int c, char* buf_ptr); - + + static void yyunput ( int c, char *buf_ptr ); + #endif #ifndef yytext_ptr -static void yy_flex_strncpy(char*, const char*, int); +static void yy_flex_strncpy ( char *, const char *, int ); #endif #ifdef YY_NEED_STRLEN -static int yy_flex_strlen(const char*); +static int yy_flex_strlen ( const char * ); #endif #ifndef YY_NO_INPUT -# ifdef __cplusplus -static int yyinput(void); -# else -static int input(void); -# endif +#ifdef __cplusplus +static int yyinput ( void ); +#else +static int input ( void ); +#endif #endif /* Amount of stuff to slurp up with each read. */ #ifndef YY_READ_BUF_SIZE -# ifdef __ia64__ +#ifdef __ia64__ /* On IA-64, the buffer size is 16k, not 8k */ -# define YY_READ_BUF_SIZE 16384 -# else -# define YY_READ_BUF_SIZE 8192 -# endif /* __ia64__ */ +#define YY_READ_BUF_SIZE 16384 +#else +#define YY_READ_BUF_SIZE 8192 +#endif /* __ia64__ */ #endif /* Copy whatever the last rule matched to the standard output. */ @@ -536,46 +585,42 @@ static int input(void); /* This used to be an fputs(), but since the string might contain NUL's, * we now use fwrite(). */ -# define ECHO \ - do \ - { \ - if (fwrite(yytext, (size_t)yyleng, 1, yyout)) \ - { \ - } \ - } while (0) +#define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0) #endif /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, * is returned in "result". */ #ifndef YY_INPUT -# define YY_INPUT(buf, result, max_size) \ - if (YY_CURRENT_BUFFER_LVALUE->yy_is_interactive) \ - { \ - int c = '*'; \ - yy_size_t n; \ - for (n = 0; n < max_size && (c = getc(yyin)) != EOF && c != '\n'; ++n) \ - buf[n] = (char)c; \ - if (c == '\n') \ - buf[n++] = (char)c; \ - if (c == EOF && ferror(yyin)) \ - YY_FATAL_ERROR("input in flex scanner failed"); \ - result = n; \ - } \ - else \ - { \ - errno = 0; \ - while ((result = (int)fread(buf, 1, (yy_size_t)max_size, yyin)) == 0 && ferror(yyin)) \ - { \ - if (errno != EINTR) \ - { \ - YY_FATAL_ERROR("input in flex scanner failed"); \ - break; \ - } \ - errno = 0; \ - clearerr(yyin); \ - } \ - } +#define YY_INPUT(buf,result,max_size) \ + if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ + { \ + int c = '*'; \ + int n; \ + for ( n = 0; n < max_size && \ + (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ + buf[n] = (char) c; \ + if ( c == '\n' ) \ + buf[n++] = (char) c; \ + if ( c == EOF && ferror( yyin ) ) \ + YY_FATAL_ERROR( "input in flex scanner failed" ); \ + result = n; \ + } \ + else \ + { \ + errno=0; \ + while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \ + { \ + if( errno != EINTR) \ + { \ + YY_FATAL_ERROR( "input in flex scanner failed" ); \ + break; \ + } \ + errno=0; \ + clearerr(yyin); \ + } \ + }\ +\ #endif @@ -584,17 +629,17 @@ static int input(void); * some compilers to complain about unreachable statements. */ #ifndef yyterminate -# define yyterminate() return YY_NULL +#define yyterminate() return YY_NULL #endif /* Number of entries by which start-condition stack grows. */ #ifndef YY_START_STACK_INCR -# define YY_START_STACK_INCR 25 +#define YY_START_STACK_INCR 25 #endif /* Report a fatal error. */ #ifndef YY_FATAL_ERROR -# define YY_FATAL_ERROR(msg) yy_fatal_error(msg) +#define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) #endif /* end tables serialization structures and prototypes */ @@ -603,566 +648,580 @@ static int input(void); * easily add parameters. */ #ifndef YY_DECL -# define YY_DECL_IS_OURS 1 +#define YY_DECL_IS_OURS 1 -extern int yylex(YYSTYPE* yylval_param); +extern int yylex \ + (YYSTYPE * yylval_param ); -# define YY_DECL int yylex(YYSTYPE* yylval_param) +#define YY_DECL int yylex \ + (YYSTYPE * yylval_param ) #endif /* !YY_DECL */ /* Code executed at the beginning of each rule, after yytext and yyleng * have been set up. */ #ifndef YY_USER_ACTION -# define YY_USER_ACTION +#define YY_USER_ACTION #endif /* Code executed at the end of each rule. */ #ifndef YY_BREAK -# define YY_BREAK /*LINTED*/ break; +#define YY_BREAK /*LINTED*/break; #endif -#define YY_RULE_SETUP YY_USER_ACTION +#define YY_RULE_SETUP \ + YY_USER_ACTION /** The main scanner function which does all the work. */ YY_DECL { - yy_state_type yy_current_state; - char *yy_cp, *yy_bp; - int yy_act; - - YYSTYPE* yylval; - + yy_state_type yy_current_state; + char *yy_cp, *yy_bp; + int yy_act; + + YYSTYPE * yylval; + yylval = yylval_param; - if (!(yy_init)) - { - (yy_init) = 1; + if ( !(yy_init) ) + { + (yy_init) = 1; #ifdef YY_USER_INIT - YY_USER_INIT; + YY_USER_INIT; #endif - if (!(yy_start)) - (yy_start) = 1; /* first start state */ + if ( ! (yy_start) ) + (yy_start) = 1; /* first start state */ - if (!yyin) - yyin = stdin; + if ( ! yyin ) + yyin = stdin; - if (!yyout) - yyout = stdout; + if ( ! yyout ) + yyout = stdout; - if (!YY_CURRENT_BUFFER) - { - yyensure_buffer_stack(); - YY_CURRENT_BUFFER_LVALUE = yy_create_buffer(yyin, YY_BUF_SIZE); - } + if ( ! YY_CURRENT_BUFFER ) { + yyensure_buffer_stack (); + YY_CURRENT_BUFFER_LVALUE = + yy_create_buffer( yyin, YY_BUF_SIZE ); + } - yy_load_buffer_state(); - } + yy_load_buffer_state( ); + } - { + { #line 73 "src/IceGrid/Scanner.l" -#line 718 "src/IceGrid/Scanner.cpp" - while (/*CONSTCOND*/ 1) /* loops until end-of-file is reached */ +#line 717 "src/IceGrid/Scanner.cpp" + + while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */ + { + yy_cp = (yy_c_buf_p); + + /* Support of yytext. */ + *yy_cp = (yy_hold_char); + + /* yy_bp points to the position in yy_ch_buf of the start of + * the current run. + */ + yy_bp = yy_cp; + + yy_current_state = (yy_start); +yy_match: + do + { + YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ; + if ( yy_accept[yy_current_state] ) + { + (yy_last_accepting_state) = yy_current_state; + (yy_last_accepting_cpos) = yy_cp; + } + while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) + { + yy_current_state = (int) yy_def[yy_current_state]; + if ( yy_current_state >= 19 ) + yy_c = yy_meta[yy_c]; + } + yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; + ++yy_cp; + } + while ( yy_base[yy_current_state] != 22 ); + +yy_find_action: + yy_act = yy_accept[yy_current_state]; + if ( yy_act == 0 ) + { /* have to back up */ + yy_cp = (yy_last_accepting_cpos); + yy_current_state = (yy_last_accepting_state); + yy_act = yy_accept[yy_current_state]; + } + + YY_DO_BEFORE_ACTION; + +do_action: /* This label is used only to access EOF actions. */ + + switch ( yy_act ) + { /* beginning of action switch */ + case 0: /* must back up */ + /* undo the effects of YY_DO_BEFORE_ACTION */ + *yy_cp = (yy_hold_char); + yy_cp = (yy_last_accepting_cpos); + yy_current_state = (yy_last_accepting_state); + goto yy_find_action; + +case 1: +YY_RULE_SETUP +#line 75 "src/IceGrid/Scanner.l" +{ + // C++-style comment + int c; + do + { + c = yyinput(); + } + while (c != '\n' && c != EOF); +} + YY_BREAK +case 2: +YY_RULE_SETUP +#line 85 "src/IceGrid/Scanner.l" +{ + // C-style comment + while (true) + { + int c = yyinput(); + if (c == '*') { - yy_cp = (yy_c_buf_p); - - /* Support of yytext. */ - *yy_cp = (yy_hold_char); - - /* yy_bp points to the position in yy_ch_buf of the start of - * the current run. - */ - yy_bp = yy_cp; - - yy_current_state = (yy_start); - yy_match: - do + int next = yyinput(); + if (next == '/') { - YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; - if (yy_accept[yy_current_state]) - { - (yy_last_accepting_state) = yy_current_state; - (yy_last_accepting_cpos) = yy_cp; - } - while (yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state) - { - yy_current_state = (int)yy_def[yy_current_state]; - if (yy_current_state >= 19) - yy_c = yy_meta[yy_c]; - } - yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; - ++yy_cp; - } while (yy_base[yy_current_state] != 22); - - yy_find_action: - yy_act = yy_accept[yy_current_state]; - if (yy_act == 0) - { /* have to back up */ - yy_cp = (yy_last_accepting_cpos); - yy_current_state = (yy_last_accepting_state); - yy_act = yy_accept[yy_current_state]; + break; } - - YY_DO_BEFORE_ACTION; - - do_action: /* This label is used only to access EOF actions. */ - - switch (yy_act) - { /* beginning of action switch */ - case 0: /* must back up */ - /* undo the effects of YY_DO_BEFORE_ACTION */ - *yy_cp = (yy_hold_char); - yy_cp = (yy_last_accepting_cpos); - yy_current_state = (yy_last_accepting_state); - goto yy_find_action; - - case 1: - YY_RULE_SETUP -#line 75 "src/IceGrid/Scanner.l" - { - // C++-style comment - int c; - do - { - c = yyinput(); - } while (c != '\n' && c != EOF); - } - YY_BREAK - case 2: - YY_RULE_SETUP -#line 85 "src/IceGrid/Scanner.l" - { - // C-style comment - while (true) - { - int c = yyinput(); - if (c == '*') - { - int next = yyinput(); - if (next == '/') - { - break; - } - else - { - unput(next); - } - } - else if (c == EOF) - { - parser->warning("EOF in comment"); - break; - } - } - } - YY_BREAK - case 3: - /* rule 3 can match eol */ - YY_RULE_SETUP + else + { + unput(next); + } + } + else if (c == EOF) + { + parser->warning("EOF in comment"); + break; + } + } +} + YY_BREAK +case 3: +/* rule 3 can match eol */ +YY_RULE_SETUP #line 110 "src/IceGrid/Scanner.l" - { - size_t len = strlen(yytext); - for (size_t i = 0; i < len; ++i) - { - if (yytext[i] == '\\') - { - parser->continueLine(); - } - } - } - YY_BREAK - case 4: - /* rule 4 can match eol */ - YY_RULE_SETUP +{ + size_t len = strlen(yytext); + for (size_t i = 0; i < len; ++i) + { + if (yytext[i] == '\\') + { + parser->continueLine(); + } + } +} + YY_BREAK +case 4: +/* rule 4 can match eol */ +YY_RULE_SETUP #line 121 "src/IceGrid/Scanner.l" - { - return ';'; - } - YY_BREAK - case 5: - YY_RULE_SETUP +{ + return ';'; +} + YY_BREAK +case 5: +YY_RULE_SETUP #line 125 "src/IceGrid/Scanner.l" - { - // "..."-type strings - string s = parseDoubleQuotedString(); - yylval->clear(); - yylval->push_back(s); - return ICE_GRID_STRING; - } - YY_BREAK - case 6: - YY_RULE_SETUP +{ + // "..."-type strings + string s = parseDoubleQuotedString(); + yylval->clear(); + yylval->push_back(s); + return ICEGRID_STRING; +} + YY_BREAK +case 6: +YY_RULE_SETUP #line 133 "src/IceGrid/Scanner.l" - { - // '...'-type strings - string s; - while (true) - { - int c = yyinput(); - if (c == '\'') - { - break; - } - else if (c == EOF) - { - parser->warning("EOF in string"); - break; - } - else - { - s += static_cast(c); - } - } - yylval->clear(); - yylval->push_back(s); - return ICE_GRID_STRING; - } - YY_BREAK - case 7: - YY_RULE_SETUP -#line 158 "src/IceGrid/Scanner.l" - { - // Simple strings - string s; - s += yytext[0]; - while (true) - { - int c = yyinput(); - if (c == EOF) - { - break; - } - else if (c == '"') - { - s += parseDoubleQuotedString(); - continue; - } - else if (c == '\'') - { - s += parseSingleQuotedString(); - continue; - } - else if (isspace(c) || c == ';') - { - unput(c); - break; - } - s += static_cast(c); - } - - yylval->clear(); - yylval->push_back(s); - - const auto pos = keywordMap.find(s); - return pos != keywordMap.end() ? pos->second : ICE_GRID_STRING; - } - YY_BREAK - case 8: - YY_RULE_SETUP -#line 194 "src/IceGrid/Scanner.l" - YY_FATAL_ERROR("flex scanner jammed"); - YY_BREAK -#line 922 "src/IceGrid/Scanner.cpp" - case YY_STATE_EOF(INITIAL): - yyterminate(); - - case YY_END_OF_BUFFER: - { - /* Amount of text matched not including the EOB char. */ - int yy_amount_of_matched_text = (int)(yy_cp - (yytext_ptr)) - 1; - - /* Undo the effects of YY_DO_BEFORE_ACTION. */ - *yy_cp = (yy_hold_char); - YY_RESTORE_YY_MORE_OFFSET - - if (YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW) - { - /* We're scanning a new file or input source. It's - * possible that this happened because the user - * just pointed yyin at a new source and called - * yylex(). If so, then we have to assure - * consistency between YY_CURRENT_BUFFER and our - * globals. Here is the right place to do so, because - * this is the first action (other than possibly a - * back-up) that will match for the new input source. - */ - (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; - YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin; - YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; - } - - /* Note that here we test for yy_c_buf_p "<=" to the position - * of the first EOB in the buffer, since yy_c_buf_p will - * already have been incremented past the NUL character - * (since all states make transitions on EOB to the - * end-of-buffer state). Contrast this with the test - * in input(). - */ - if ((yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)]) - { /* This was really a NUL. */ - yy_state_type yy_next_state; - - (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; - - yy_current_state = yy_get_previous_state(); - - /* Okay, we're now positioned to make the NUL - * transition. We couldn't have - * yy_get_previous_state() go ahead and do it - * for us because it doesn't know how to deal - * with the possibility of jamming (and we don't - * want to build jamming into it because then it - * will run more slowly). - */ - - yy_next_state = yy_try_NUL_trans(yy_current_state); - - yy_bp = (yytext_ptr) + YY_MORE_ADJ; - - if (yy_next_state) - { - /* Consume the NUL. */ - yy_cp = ++(yy_c_buf_p); - yy_current_state = yy_next_state; - goto yy_match; - } - - else - { - yy_cp = (yy_c_buf_p); - goto yy_find_action; - } - } - - else - switch (yy_get_next_buffer()) - { - case EOB_ACT_END_OF_FILE: - { - (yy_did_buffer_switch_on_eof) = 0; - - if (yywrap()) - { - /* Note: because we've taken care in - * yy_get_next_buffer() to have set up - * yytext, we can now set up - * yy_c_buf_p so that if some total - * hoser (like flex itself) wants to - * call the scanner after we return the - * YY_NULL, it'll still work - another - * YY_NULL will get returned. - */ - (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ; - - yy_act = YY_STATE_EOF(YY_START); - goto do_action; - } - - else - { - if (!(yy_did_buffer_switch_on_eof)) - YY_NEW_FILE; - } - break; - } - - case EOB_ACT_CONTINUE_SCAN: - (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; - - yy_current_state = yy_get_previous_state(); - - yy_cp = (yy_c_buf_p); - yy_bp = (yytext_ptr) + YY_MORE_ADJ; - goto yy_match; - - case EOB_ACT_LAST_MATCH: - (yy_c_buf_p) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)]; - - yy_current_state = yy_get_previous_state(); - - yy_cp = (yy_c_buf_p); - yy_bp = (yytext_ptr) + YY_MORE_ADJ; - goto yy_find_action; - } - break; - } - - default: - YY_FATAL_ERROR("fatal flex scanner internal error--no action found"); - } /* end of action switch */ - } /* end of scanning one token */ - } /* end of user's declarations */ -} /* end of yylex */ - -/* yy_get_next_buffer - try to read in a new buffer - * - * Returns a code representing an action: - * EOB_ACT_LAST_MATCH - - * EOB_ACT_CONTINUE_SCAN - continue scanning from current position - * EOB_ACT_END_OF_FILE - end of file - */ -static int -yy_get_next_buffer(void) { - char* dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; - char* source = (yytext_ptr); - int number_to_move, i; - int ret_val; - - if ((yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1]) - YY_FATAL_ERROR("fatal flex scanner internal error--end of buffer missed"); - - if (YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0) - { /* Don't try to fill the buffer, so this is an EOF. */ - if ((yy_c_buf_p) - (yytext_ptr)-YY_MORE_ADJ == 1) + // '...'-type strings + string s; + while (true) + { + int c = yyinput(); + if (c == '\'') { - /* We matched a single character, the EOB, so - * treat this as a final EOF. - */ - return EOB_ACT_END_OF_FILE; + break; + } + else if (c == EOF) + { + parser->warning("EOF in string"); + break; } - else { - /* We matched some text prior to the EOB, first - * process it. - */ - return EOB_ACT_LAST_MATCH; + s += static_cast(c); } } - - /* Try to read more data. */ - - /* First move last chars to start of buffer. */ - number_to_move = (int)((yy_c_buf_p) - (yytext_ptr)-1); - - for (i = 0; i < number_to_move; ++i) - *(dest++) = *(source++); - - if (YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING) - /* don't do the read, it's not guaranteed to return an EOF, - * just force an EOF - */ - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0; - - else + yylval->clear(); + yylval->push_back(s); + return ICEGRID_STRING; +} + YY_BREAK +case 7: +YY_RULE_SETUP +#line 158 "src/IceGrid/Scanner.l" +{ + // Simple strings + string s; + s += yytext[0]; + while (true) { - yy_size_t num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; - - while (num_to_read <= 0) - { /* Not enough room in the buffer - grow it. */ - - /* just a shorter name for the current buffer */ - YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE; - - int yy_c_buf_p_offset = (int)((yy_c_buf_p)-b->yy_ch_buf); - - if (b->yy_is_our_buffer) - { - yy_size_t new_size = b->yy_buf_size * 2; - - if (new_size <= 0) - b->yy_buf_size += b->yy_buf_size / 8; - else - b->yy_buf_size *= 2; - - b->yy_ch_buf = (char*) - /* Include room in for 2 EOB chars. */ - yyrealloc((void*)b->yy_ch_buf, (yy_size_t)(b->yy_buf_size + 2)); - } - else - /* Can't grow it, we don't own it. */ - b->yy_ch_buf = NULL; - - if (!b->yy_ch_buf) - YY_FATAL_ERROR("fatal error - scanner input buffer overflow"); - - (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset]; - - num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; + int c = yyinput(); + if (c == EOF) + { + break; } - - if (num_to_read > YY_READ_BUF_SIZE) - num_to_read = YY_READ_BUF_SIZE; - - /* Read in more data. */ - YY_INPUT((&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), (yy_n_chars), num_to_read); - - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); - } - - if ((yy_n_chars) == 0) - { - if (number_to_move == YY_MORE_ADJ) + else if (c == '"') { - ret_val = EOB_ACT_END_OF_FILE; - yyrestart(yyin); + s += parseDoubleQuotedString(); + continue; } - - else + else if (c == '\'') { - ret_val = EOB_ACT_LAST_MATCH; - YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_EOF_PENDING; + s += parseSingleQuotedString(); + continue; } + else if (isspace(c) || c == ';') + { + unput(c); + break; + } + s += static_cast(c); } - else - ret_val = EOB_ACT_CONTINUE_SCAN; - - if (((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) - { - /* Extend the array by 50%, plus the number we really need. */ - yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1); - YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = - (char*)yyrealloc((void*)YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t)new_size); - if (!YY_CURRENT_BUFFER_LVALUE->yy_ch_buf) - YY_FATAL_ERROR("out of dynamic memory in yy_get_next_buffer()"); - /* "- 2" to take care of EOB's */ - YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int)(new_size - 2); - } - - (yy_n_chars) += number_to_move; - YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR; - YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR; + yylval->clear(); + yylval->push_back(s); - (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; + const auto pos = keywordMap.find(s); + return pos != keywordMap.end() ? pos->second : ICEGRID_STRING; +} + YY_BREAK +case 8: +YY_RULE_SETUP +#line 194 "src/IceGrid/Scanner.l" +YY_FATAL_ERROR( "flex scanner jammed" ); + YY_BREAK +#line 921 "src/IceGrid/Scanner.cpp" +case YY_STATE_EOF(INITIAL): + yyterminate(); + + case YY_END_OF_BUFFER: + { + /* Amount of text matched not including the EOB char. */ + int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1; + + /* Undo the effects of YY_DO_BEFORE_ACTION. */ + *yy_cp = (yy_hold_char); + YY_RESTORE_YY_MORE_OFFSET + + if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) + { + /* We're scanning a new file or input source. It's + * possible that this happened because the user + * just pointed yyin at a new source and called + * yylex(). If so, then we have to assure + * consistency between YY_CURRENT_BUFFER and our + * globals. Here is the right place to do so, because + * this is the first action (other than possibly a + * back-up) that will match for the new input source. + */ + (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; + YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin; + YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; + } + + /* Note that here we test for yy_c_buf_p "<=" to the position + * of the first EOB in the buffer, since yy_c_buf_p will + * already have been incremented past the NUL character + * (since all states make transitions on EOB to the + * end-of-buffer state). Contrast this with the test + * in input(). + */ + if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) + { /* This was really a NUL. */ + yy_state_type yy_next_state; + + (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; + + yy_current_state = yy_get_previous_state( ); + + /* Okay, we're now positioned to make the NUL + * transition. We couldn't have + * yy_get_previous_state() go ahead and do it + * for us because it doesn't know how to deal + * with the possibility of jamming (and we don't + * want to build jamming into it because then it + * will run more slowly). + */ + + yy_next_state = yy_try_NUL_trans( yy_current_state ); + + yy_bp = (yytext_ptr) + YY_MORE_ADJ; + + if ( yy_next_state ) + { + /* Consume the NUL. */ + yy_cp = ++(yy_c_buf_p); + yy_current_state = yy_next_state; + goto yy_match; + } + + else + { + yy_cp = (yy_c_buf_p); + goto yy_find_action; + } + } + + else switch ( yy_get_next_buffer( ) ) + { + case EOB_ACT_END_OF_FILE: + { + (yy_did_buffer_switch_on_eof) = 0; + + if ( yywrap( ) ) + { + /* Note: because we've taken care in + * yy_get_next_buffer() to have set up + * yytext, we can now set up + * yy_c_buf_p so that if some total + * hoser (like flex itself) wants to + * call the scanner after we return the + * YY_NULL, it'll still work - another + * YY_NULL will get returned. + */ + (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ; + + yy_act = YY_STATE_EOF(YY_START); + goto do_action; + } + + else + { + if ( ! (yy_did_buffer_switch_on_eof) ) + YY_NEW_FILE; + } + break; + } + + case EOB_ACT_CONTINUE_SCAN: + (yy_c_buf_p) = + (yytext_ptr) + yy_amount_of_matched_text; + + yy_current_state = yy_get_previous_state( ); + + yy_cp = (yy_c_buf_p); + yy_bp = (yytext_ptr) + YY_MORE_ADJ; + goto yy_match; + + case EOB_ACT_LAST_MATCH: + (yy_c_buf_p) = + &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)]; + + yy_current_state = yy_get_previous_state( ); + + yy_cp = (yy_c_buf_p); + yy_bp = (yytext_ptr) + YY_MORE_ADJ; + goto yy_find_action; + } + break; + } + + default: + YY_FATAL_ERROR( + "fatal flex scanner internal error--no action found" ); + } /* end of action switch */ + } /* end of scanning one token */ + } /* end of user's declarations */ +} /* end of yylex */ - return ret_val; +/* yy_get_next_buffer - try to read in a new buffer + * + * Returns a code representing an action: + * EOB_ACT_LAST_MATCH - + * EOB_ACT_CONTINUE_SCAN - continue scanning from current position + * EOB_ACT_END_OF_FILE - end of file + */ +static int yy_get_next_buffer (void) +{ + char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; + char *source = (yytext_ptr); + int number_to_move, i; + int ret_val; + + if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] ) + YY_FATAL_ERROR( + "fatal flex scanner internal error--end of buffer missed" ); + + if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 ) + { /* Don't try to fill the buffer, so this is an EOF. */ + if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 ) + { + /* We matched a single character, the EOB, so + * treat this as a final EOF. + */ + return EOB_ACT_END_OF_FILE; + } + + else + { + /* We matched some text prior to the EOB, first + * process it. + */ + return EOB_ACT_LAST_MATCH; + } + } + + /* Try to read more data. */ + + /* First move last chars to start of buffer. */ + number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr) - 1); + + for ( i = 0; i < number_to_move; ++i ) + *(dest++) = *(source++); + + if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) + /* don't do the read, it's not guaranteed to return an EOF, + * just force an EOF + */ + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0; + + else + { + int num_to_read = + YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; + + while ( num_to_read <= 0 ) + { /* Not enough room in the buffer - grow it. */ + + /* just a shorter name for the current buffer */ + YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE; + + int yy_c_buf_p_offset = + (int) ((yy_c_buf_p) - b->yy_ch_buf); + + if ( b->yy_is_our_buffer ) + { + int new_size = b->yy_buf_size * 2; + + if ( new_size <= 0 ) + b->yy_buf_size += b->yy_buf_size / 8; + else + b->yy_buf_size *= 2; + + b->yy_ch_buf = (char *) + /* Include room in for 2 EOB chars. */ + yyrealloc( (void *) b->yy_ch_buf, + (yy_size_t) (b->yy_buf_size + 2) ); + } + else + /* Can't grow it, we don't own it. */ + b->yy_ch_buf = NULL; + + if ( ! b->yy_ch_buf ) + YY_FATAL_ERROR( + "fatal error - scanner input buffer overflow" ); + + (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset]; + + num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - + number_to_move - 1; + + } + + if ( num_to_read > YY_READ_BUF_SIZE ) + num_to_read = YY_READ_BUF_SIZE; + + /* Read in more data. */ + YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), + (yy_n_chars), num_to_read ); + + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); + } + + if ( (yy_n_chars) == 0 ) + { + if ( number_to_move == YY_MORE_ADJ ) + { + ret_val = EOB_ACT_END_OF_FILE; + yyrestart( yyin ); + } + + else + { + ret_val = EOB_ACT_LAST_MATCH; + YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = + YY_BUFFER_EOF_PENDING; + } + } + + else + ret_val = EOB_ACT_CONTINUE_SCAN; + + if (((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) { + /* Extend the array by 50%, plus the number we really need. */ + int new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1); + YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc( + (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size ); + if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) + YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" ); + /* "- 2" to take care of EOB's */ + YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2); + } + + (yy_n_chars) += number_to_move; + YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR; + YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR; + + (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; + + return ret_val; } /* yy_get_previous_state - get the state just before the EOB char was reached */ -static yy_state_type -yy_get_previous_state(void) + static yy_state_type yy_get_previous_state (void) { - yy_state_type yy_current_state; - char* yy_cp; - - yy_current_state = (yy_start); - - for (yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp) - { - YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); - if (yy_accept[yy_current_state]) - { - (yy_last_accepting_state) = yy_current_state; - (yy_last_accepting_cpos) = yy_cp; - } - while (yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state) - { - yy_current_state = (int)yy_def[yy_current_state]; - if (yy_current_state >= 19) - yy_c = yy_meta[yy_c]; - } - yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; - } - - return yy_current_state; + yy_state_type yy_current_state; + char *yy_cp; + + yy_current_state = (yy_start); + + for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) + { + YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); + if ( yy_accept[yy_current_state] ) + { + (yy_last_accepting_state) = yy_current_state; + (yy_last_accepting_cpos) = yy_cp; + } + while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) + { + yy_current_state = (int) yy_def[yy_current_state]; + if ( yy_current_state >= 19 ) + yy_c = yy_meta[yy_c]; + } + yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; + } + + return yy_current_state; } /* yy_try_NUL_trans - try to make a transition on the NUL character @@ -1170,450 +1229,443 @@ yy_get_previous_state(void) * synopsis * next_state = yy_try_NUL_trans( current_state ); */ -static yy_state_type -yy_try_NUL_trans(yy_state_type yy_current_state) + static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state ) { - int yy_is_jam; - char* yy_cp = (yy_c_buf_p); - - YY_CHAR yy_c = 1; - if (yy_accept[yy_current_state]) - { - (yy_last_accepting_state) = yy_current_state; - (yy_last_accepting_cpos) = yy_cp; - } - while (yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state) - { - yy_current_state = (int)yy_def[yy_current_state]; - if (yy_current_state >= 19) - yy_c = yy_meta[yy_c]; - } - yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; - yy_is_jam = (yy_current_state == 18); - - return yy_is_jam ? 0 : yy_current_state; + int yy_is_jam; + char *yy_cp = (yy_c_buf_p); + + YY_CHAR yy_c = 1; + if ( yy_accept[yy_current_state] ) + { + (yy_last_accepting_state) = yy_current_state; + (yy_last_accepting_cpos) = yy_cp; + } + while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) + { + yy_current_state = (int) yy_def[yy_current_state]; + if ( yy_current_state >= 19 ) + yy_c = yy_meta[yy_c]; + } + yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; + yy_is_jam = (yy_current_state == 18); + + return yy_is_jam ? 0 : yy_current_state; } #ifndef YY_NO_UNPUT -static void -yyunput(int c, char* yy_bp) + static void yyunput (int c, char * yy_bp ) { - char* yy_cp; - + char *yy_cp; + yy_cp = (yy_c_buf_p); - /* undo effects of setting up yytext */ - *yy_cp = (yy_hold_char); + /* undo effects of setting up yytext */ + *yy_cp = (yy_hold_char); - if (yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2) - { /* need to shift things up to make room */ - /* +2 for EOB chars. */ - yy_size_t number_to_move = (yy_n_chars) + 2; - char* dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2]; - char* source = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]; + if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) + { /* need to shift things up to make room */ + /* +2 for EOB chars. */ + int number_to_move = (yy_n_chars) + 2; + char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[ + YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2]; + char *source = + &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]; - while (source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf) - *--dest = *--source; + while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) + *--dest = *--source; - yy_cp += (int)(dest - source); - yy_bp += (int)(dest - source); - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = (int)YY_CURRENT_BUFFER_LVALUE->yy_buf_size; + yy_cp += (int) (dest - source); + yy_bp += (int) (dest - source); + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = + (yy_n_chars) = (int) YY_CURRENT_BUFFER_LVALUE->yy_buf_size; - if (yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2) - YY_FATAL_ERROR("flex scanner push-back overflow"); - } + if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) + YY_FATAL_ERROR( "flex scanner push-back overflow" ); + } - *--yy_cp = (char)c; + *--yy_cp = (char) c; - (yytext_ptr) = yy_bp; - (yy_hold_char) = *yy_cp; - (yy_c_buf_p) = yy_cp; + (yytext_ptr) = yy_bp; + (yy_hold_char) = *yy_cp; + (yy_c_buf_p) = yy_cp; } #endif #ifndef YY_NO_INPUT -# ifdef __cplusplus -static int -yyinput(void) -# else -static int -input(void) -# endif +#ifdef __cplusplus + static int yyinput (void) +#else + static int input (void) +#endif { - int c; - - *(yy_c_buf_p) = (yy_hold_char); - - if (*(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR) - { - /* yy_c_buf_p now points to the character we want to return. - * If this occurs *before* the EOB characters, then it's a - * valid NUL; if not, then we've hit the end of the buffer. - */ - if ((yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)]) - /* This was really a NUL. */ - *(yy_c_buf_p) = '\0'; - - else - { /* need more input */ - yy_size_t offset = (yy_c_buf_p) - (yytext_ptr); - ++(yy_c_buf_p); - - switch (yy_get_next_buffer()) - { - case EOB_ACT_LAST_MATCH: - /* This happens because yy_g_n_b() - * sees that we've accumulated a - * token and flags that we need to - * try matching the token before - * proceeding. But for input(), - * there's no matching to consider. - * So convert the EOB_ACT_LAST_MATCH - * to EOB_ACT_END_OF_FILE. - */ - - /* Reset buffer status. */ - yyrestart(yyin); - - /*FALLTHROUGH*/ - - case EOB_ACT_END_OF_FILE: - { - if (yywrap()) - return 0; - - if (!(yy_did_buffer_switch_on_eof)) - YY_NEW_FILE; -# ifdef __cplusplus - return yyinput(); -# else - return input(); -# endif - } + int c; + + *(yy_c_buf_p) = (yy_hold_char); + + if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR ) + { + /* yy_c_buf_p now points to the character we want to return. + * If this occurs *before* the EOB characters, then it's a + * valid NUL; if not, then we've hit the end of the buffer. + */ + if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) + /* This was really a NUL. */ + *(yy_c_buf_p) = '\0'; + + else + { /* need more input */ + int offset = (int) ((yy_c_buf_p) - (yytext_ptr)); + ++(yy_c_buf_p); + + switch ( yy_get_next_buffer( ) ) + { + case EOB_ACT_LAST_MATCH: + /* This happens because yy_g_n_b() + * sees that we've accumulated a + * token and flags that we need to + * try matching the token before + * proceeding. But for input(), + * there's no matching to consider. + * So convert the EOB_ACT_LAST_MATCH + * to EOB_ACT_END_OF_FILE. + */ + + /* Reset buffer status. */ + yyrestart( yyin ); + + /*FALLTHROUGH*/ + + case EOB_ACT_END_OF_FILE: + { + if ( yywrap( ) ) + return 0; + + if ( ! (yy_did_buffer_switch_on_eof) ) + YY_NEW_FILE; +#ifdef __cplusplus + return yyinput(); +#else + return input(); +#endif + } - case EOB_ACT_CONTINUE_SCAN: - (yy_c_buf_p) = (yytext_ptr) + offset; - break; - } - } - } + case EOB_ACT_CONTINUE_SCAN: + (yy_c_buf_p) = (yytext_ptr) + offset; + break; + } + } + } - c = *(unsigned char*)(yy_c_buf_p); /* cast for 8-bit char's */ - *(yy_c_buf_p) = '\0'; /* preserve yytext */ - (yy_hold_char) = *++(yy_c_buf_p); + c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */ + *(yy_c_buf_p) = '\0'; /* preserve yytext */ + (yy_hold_char) = *++(yy_c_buf_p); - return c; + return c; } -#endif /* ifndef YY_NO_INPUT */ +#endif /* ifndef YY_NO_INPUT */ /** Immediately switch to a different input stream. * @param input_file A readable stream. - * + * * @note This function does not reset the start condition to @c INITIAL . */ -void -yyrestart(FILE* input_file) + void yyrestart (FILE * input_file ) { - if (!YY_CURRENT_BUFFER) - { - yyensure_buffer_stack(); - YY_CURRENT_BUFFER_LVALUE = yy_create_buffer(yyin, YY_BUF_SIZE); - } - - yy_init_buffer(YY_CURRENT_BUFFER, input_file); - yy_load_buffer_state(); + + if ( ! YY_CURRENT_BUFFER ){ + yyensure_buffer_stack (); + YY_CURRENT_BUFFER_LVALUE = + yy_create_buffer( yyin, YY_BUF_SIZE ); + } + + yy_init_buffer( YY_CURRENT_BUFFER, input_file ); + yy_load_buffer_state( ); } /** Switch to a different input buffer. * @param new_buffer The new input buffer. - * + * */ -void -yy_switch_to_buffer(YY_BUFFER_STATE new_buffer) + void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ) { - /* TODO. We should be able to replace this entire function body - * with - * yypop_buffer_state(); - * yypush_buffer_state(new_buffer); - */ - yyensure_buffer_stack(); - if (YY_CURRENT_BUFFER == new_buffer) - return; - - if (YY_CURRENT_BUFFER) - { - /* Flush out information for old buffer. */ - *(yy_c_buf_p) = (yy_hold_char); - YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); - } - - YY_CURRENT_BUFFER_LVALUE = new_buffer; - yy_load_buffer_state(); - - /* We don't actually know whether we did this switch during - * EOF (yywrap()) processing, but the only time this flag - * is looked at is after yywrap() is called, so it's safe - * to go ahead and always set it. + + /* TODO. We should be able to replace this entire function body + * with + * yypop_buffer_state(); + * yypush_buffer_state(new_buffer); */ - (yy_did_buffer_switch_on_eof) = 1; + yyensure_buffer_stack (); + if ( YY_CURRENT_BUFFER == new_buffer ) + return; + + if ( YY_CURRENT_BUFFER ) + { + /* Flush out information for old buffer. */ + *(yy_c_buf_p) = (yy_hold_char); + YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); + } + + YY_CURRENT_BUFFER_LVALUE = new_buffer; + yy_load_buffer_state( ); + + /* We don't actually know whether we did this switch during + * EOF (yywrap()) processing, but the only time this flag + * is looked at is after yywrap() is called, so it's safe + * to go ahead and always set it. + */ + (yy_did_buffer_switch_on_eof) = 1; } -static void -yy_load_buffer_state(void) +static void yy_load_buffer_state (void) { - (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; - (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; - yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file; - (yy_hold_char) = *(yy_c_buf_p); + (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; + (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; + yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file; + (yy_hold_char) = *(yy_c_buf_p); } /** Allocate and initialize an input buffer state. * @param file A readable stream. * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE. - * + * * @return the allocated buffer state. */ -YY_BUFFER_STATE -yy_create_buffer(FILE* file, int size) + YY_BUFFER_STATE yy_create_buffer (FILE * file, int size ) { - YY_BUFFER_STATE b; - - b = (YY_BUFFER_STATE)yyalloc(sizeof(struct yy_buffer_state)); - if (!b) - YY_FATAL_ERROR("out of dynamic memory in yy_create_buffer()"); + YY_BUFFER_STATE b; + + b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) ); + if ( ! b ) + YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); - b->yy_buf_size = size; + b->yy_buf_size = size; - /* yy_ch_buf has to be 2 characters longer than the size given because - * we need to put in 2 end-of-buffer characters. - */ - b->yy_ch_buf = (char*)yyalloc((yy_size_t)(b->yy_buf_size + 2)); - if (!b->yy_ch_buf) - YY_FATAL_ERROR("out of dynamic memory in yy_create_buffer()"); + /* yy_ch_buf has to be 2 characters longer than the size given because + * we need to put in 2 end-of-buffer characters. + */ + b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) ); + if ( ! b->yy_ch_buf ) + YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); - b->yy_is_our_buffer = 1; + b->yy_is_our_buffer = 1; - yy_init_buffer(b, file); + yy_init_buffer( b, file ); - return b; + return b; } /** Destroy the buffer. * @param b a buffer created with yy_create_buffer() - * + * */ -void -yy_delete_buffer(YY_BUFFER_STATE b) + void yy_delete_buffer (YY_BUFFER_STATE b ) { - if (!b) - return; + + if ( ! b ) + return; - if (b == YY_CURRENT_BUFFER) /* Not sure if we should pop here. */ - YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE)0; + if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */ + YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; - if (b->yy_is_our_buffer) - yyfree((void*)b->yy_ch_buf); + if ( b->yy_is_our_buffer ) + yyfree( (void *) b->yy_ch_buf ); - yyfree((void*)b); + yyfree( (void *) b ); } /* Initializes or reinitializes a buffer. * This function is sometimes called more than once on the same buffer, * such as during a yyrestart() or at EOF. */ -static void -yy_init_buffer(YY_BUFFER_STATE b, FILE* file) + static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file ) { - int oerrno = errno; - - yy_flush_buffer(b); + int oerrno = errno; + + yy_flush_buffer( b ); - b->yy_input_file = file; - b->yy_fill_buffer = 1; + b->yy_input_file = file; + b->yy_fill_buffer = 1; /* If b is the current buffer, then yy_init_buffer was _probably_ * called from yyrestart() or through yy_get_next_buffer. * In that case, we don't want to reset the lineno or column. */ - if (b != YY_CURRENT_BUFFER) - { + if (b != YY_CURRENT_BUFFER){ b->yy_bs_lineno = 1; b->yy_bs_column = 0; } - b->yy_is_interactive = 1; + b->yy_is_interactive = 1; - errno = oerrno; + errno = oerrno; } /** Discard all buffered characters. On the next scan, YY_INPUT will be called. * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. - * + * */ -void -yy_flush_buffer(YY_BUFFER_STATE b) + void yy_flush_buffer (YY_BUFFER_STATE b ) { - if (!b) - return; + if ( ! b ) + return; - b->yy_n_chars = 0; + b->yy_n_chars = 0; - /* We always need two end-of-buffer characters. The first causes - * a transition to the end-of-buffer state. The second causes - * a jam in that state. - */ - b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; - b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; + /* We always need two end-of-buffer characters. The first causes + * a transition to the end-of-buffer state. The second causes + * a jam in that state. + */ + b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; + b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; - b->yy_buf_pos = &b->yy_ch_buf[0]; + b->yy_buf_pos = &b->yy_ch_buf[0]; - b->yy_at_bol = 1; - b->yy_buffer_status = YY_BUFFER_NEW; + b->yy_at_bol = 1; + b->yy_buffer_status = YY_BUFFER_NEW; - if (b == YY_CURRENT_BUFFER) - yy_load_buffer_state(); + if ( b == YY_CURRENT_BUFFER ) + yy_load_buffer_state( ); } /** Pushes the new state onto the stack. The new state becomes * the current state. This function will allocate the stack * if necessary. * @param new_buffer The new state. - * + * */ -void -yypush_buffer_state(YY_BUFFER_STATE new_buffer) +void yypush_buffer_state (YY_BUFFER_STATE new_buffer ) { - if (new_buffer == NULL) - return; - - yyensure_buffer_stack(); - - /* This block is copied from yy_switch_to_buffer. */ - if (YY_CURRENT_BUFFER) - { - /* Flush out information for old buffer. */ - *(yy_c_buf_p) = (yy_hold_char); - YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); - } - - /* Only push if top exists. Otherwise, replace top. */ - if (YY_CURRENT_BUFFER) - (yy_buffer_stack_top)++; - YY_CURRENT_BUFFER_LVALUE = new_buffer; - - /* copied from yy_switch_to_buffer. */ - yy_load_buffer_state(); - (yy_did_buffer_switch_on_eof) = 1; + if (new_buffer == NULL) + return; + + yyensure_buffer_stack(); + + /* This block is copied from yy_switch_to_buffer. */ + if ( YY_CURRENT_BUFFER ) + { + /* Flush out information for old buffer. */ + *(yy_c_buf_p) = (yy_hold_char); + YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); + } + + /* Only push if top exists. Otherwise, replace top. */ + if (YY_CURRENT_BUFFER) + (yy_buffer_stack_top)++; + YY_CURRENT_BUFFER_LVALUE = new_buffer; + + /* copied from yy_switch_to_buffer. */ + yy_load_buffer_state( ); + (yy_did_buffer_switch_on_eof) = 1; } /** Removes and deletes the top of the stack, if present. * The next element becomes the new top. - * + * */ -void -yypop_buffer_state(void) +void yypop_buffer_state (void) { - if (!YY_CURRENT_BUFFER) - return; - - yy_delete_buffer(YY_CURRENT_BUFFER); - YY_CURRENT_BUFFER_LVALUE = NULL; - if ((yy_buffer_stack_top) > 0) - --(yy_buffer_stack_top); - - if (YY_CURRENT_BUFFER) - { - yy_load_buffer_state(); - (yy_did_buffer_switch_on_eof) = 1; - } + if (!YY_CURRENT_BUFFER) + return; + + yy_delete_buffer(YY_CURRENT_BUFFER ); + YY_CURRENT_BUFFER_LVALUE = NULL; + if ((yy_buffer_stack_top) > 0) + --(yy_buffer_stack_top); + + if (YY_CURRENT_BUFFER) { + yy_load_buffer_state( ); + (yy_did_buffer_switch_on_eof) = 1; + } } /* Allocates the stack if it does not exist. * Guarantees space for at least one push. */ -static void -yyensure_buffer_stack(void) +static void yyensure_buffer_stack (void) { - yy_size_t num_to_alloc; + yy_size_t num_to_alloc; + + if (!(yy_buffer_stack)) { - if (!(yy_buffer_stack)) - { - /* First allocation is just for 2 elements, since we don't know if this - * scanner will even need a stack. We use 2 instead of 1 to avoid an - * immediate realloc on the next call. + /* First allocation is just for 2 elements, since we don't know if this + * scanner will even need a stack. We use 2 instead of 1 to avoid an + * immediate realloc on the next call. */ - num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */ - (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc(num_to_alloc * sizeof(struct yy_buffer_state*)); - if (!(yy_buffer_stack)) - YY_FATAL_ERROR("out of dynamic memory in yyensure_buffer_stack()"); - - memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*)); - - (yy_buffer_stack_max) = num_to_alloc; - (yy_buffer_stack_top) = 0; - return; - } - - if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1) - { - /* Increase the buffer to prepare for a possible push. */ - yy_size_t grow_size = 8 /* arbitrary grow size */; - - num_to_alloc = (yy_buffer_stack_max) + grow_size; - (yy_buffer_stack) = - (struct yy_buffer_state**)yyrealloc((yy_buffer_stack), num_to_alloc * sizeof(struct yy_buffer_state*)); - if (!(yy_buffer_stack)) - YY_FATAL_ERROR("out of dynamic memory in yyensure_buffer_stack()"); - - /* zero only the new slots.*/ - memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*)); - (yy_buffer_stack_max) = num_to_alloc; - } + num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */ + (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc + (num_to_alloc * sizeof(struct yy_buffer_state*) + ); + if ( ! (yy_buffer_stack) ) + YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); + + memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*)); + + (yy_buffer_stack_max) = num_to_alloc; + (yy_buffer_stack_top) = 0; + return; + } + + if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){ + + /* Increase the buffer to prepare for a possible push. */ + yy_size_t grow_size = 8 /* arbitrary grow size */; + + num_to_alloc = (yy_buffer_stack_max) + grow_size; + (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc + ((yy_buffer_stack), + num_to_alloc * sizeof(struct yy_buffer_state*) + ); + if ( ! (yy_buffer_stack) ) + YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); + + /* zero only the new slots.*/ + memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*)); + (yy_buffer_stack_max) = num_to_alloc; + } } #ifndef YY_EXIT_FAILURE -# define YY_EXIT_FAILURE 2 +#define YY_EXIT_FAILURE 2 #endif -static void yynoreturn -yy_fatal_error(const char* msg) +static void yynoreturn yy_fatal_error (const char* msg ) { - fprintf(stderr, "%s\n", msg); - exit(YY_EXIT_FAILURE); + fprintf( stderr, "%s\n", msg ); + exit( YY_EXIT_FAILURE ); } /* Redefine yyless() so it works in section 3 code. */ #undef yyless -#define yyless(n) \ - do \ - { \ - /* Undo effects of setting up yytext. */ \ - yy_size_t yyless_macro_arg = (n); \ - YY_LESS_LINENO(yyless_macro_arg); \ - yytext[yyleng] = (yy_hold_char); \ - (yy_c_buf_p) = yytext + yyless_macro_arg; \ - (yy_hold_char) = *(yy_c_buf_p); \ - *(yy_c_buf_p) = '\0'; \ - yyleng = yyless_macro_arg; \ - } while (0) +#define yyless(n) \ + do \ + { \ + /* Undo effects of setting up yytext. */ \ + int yyless_macro_arg = (n); \ + YY_LESS_LINENO(yyless_macro_arg);\ + yytext[yyleng] = (yy_hold_char); \ + (yy_c_buf_p) = yytext + yyless_macro_arg; \ + (yy_hold_char) = *(yy_c_buf_p); \ + *(yy_c_buf_p) = '\0'; \ + yyleng = yyless_macro_arg; \ + } \ + while ( 0 ) /* Accessor methods (get/set functions) to struct members. */ /** Get the current token. - * + * */ -static int -yy_init_globals(void) +static int yy_init_globals (void) { - /* Initialization is the same as for the non-reentrant scanner. + /* Initialization is the same as for the non-reentrant scanner. * This function is called from yylex_destroy(), so don't allocate here. */ @@ -1640,24 +1692,23 @@ yy_init_globals(void) } /* yylex_destroy is for both reentrant and non-reentrant scanners. */ -int -yylex_destroy(void) +int yylex_destroy (void) { + /* Pop the buffer stack, destroying each element. */ - while (YY_CURRENT_BUFFER) - { - yy_delete_buffer(YY_CURRENT_BUFFER); - YY_CURRENT_BUFFER_LVALUE = NULL; - yypop_buffer_state(); - } + while(YY_CURRENT_BUFFER){ + yy_delete_buffer( YY_CURRENT_BUFFER ); + YY_CURRENT_BUFFER_LVALUE = NULL; + yypop_buffer_state(); + } - /* Destroy the stack itself. */ - yyfree((yy_buffer_stack)); - (yy_buffer_stack) = NULL; + /* Destroy the stack itself. */ + yyfree((yy_buffer_stack) ); + (yy_buffer_stack) = NULL; /* Reset the globals. This is important in a non-reentrant scanner so the next time * yylex() is called, initialization will occur. */ - yy_init_globals(); + yy_init_globals( ); return 0; } @@ -1667,102 +1718,100 @@ yylex_destroy(void) */ #ifndef yytext_ptr -static void -yy_flex_strncpy(char* s1, const char* s2, int n) +static void yy_flex_strncpy (char* s1, const char * s2, int n ) { - int i; - for (i = 0; i < n; ++i) - s1[i] = s2[i]; + + int i; + for ( i = 0; i < n; ++i ) + s1[i] = s2[i]; } #endif #ifdef YY_NEED_STRLEN -static int -yy_flex_strlen(const char* s) +static int yy_flex_strlen (const char * s ) { - int n; - for (n = 0; s[n]; ++n) - ; + int n; + for ( n = 0; s[n]; ++n ) + ; - return n; + return n; } #endif -void* -yyalloc(yy_size_t size) +void *yyalloc (yy_size_t size ) { - return malloc(size); + return malloc(size); } -void* -yyrealloc(void* ptr, yy_size_t size) +void *yyrealloc (void * ptr, yy_size_t size ) { - /* The cast to (char *) in the following accommodates both - * implementations that use char* generic pointers, and those - * that use void* generic pointers. It works with the latter - * because both ANSI C and C++ allow castless assignment from - * any pointer type to void*, and deal with argument conversions - * as though doing an assignment. - */ - return realloc(ptr, size); + + /* The cast to (char *) in the following accommodates both + * implementations that use char* generic pointers, and those + * that use void* generic pointers. It works with the latter + * because both ANSI C and C++ allow castless assignment from + * any pointer type to void*, and deal with argument conversions + * as though doing an assignment. + */ + return realloc(ptr, size); } -void -yyfree(void* ptr) +void yyfree (void * ptr ) { - free((char*)ptr); /* see yyrealloc() for (char *) cast */ + free( (char *) ptr ); /* see yyrealloc() for (char *) cast */ } #define YYTABLES_NAME "yytables" #line 194 "src/IceGrid/Scanner.l" + namespace IceGrid { // This function is always called once, right before scanning begins. // It fills the keyword map with all keyword-token pairs. void initScanner() { - keywordMap["help"] = ICE_GRID_HELP; - keywordMap["quit"] = ICE_GRID_EXIT; - keywordMap["exit"] = ICE_GRID_EXIT; - keywordMap["application"] = ICE_GRID_APPLICATION; - keywordMap["server"] = ICE_GRID_SERVER; - keywordMap["adapter"] = ICE_GRID_ADAPTER; - keywordMap["add"] = ICE_GRID_ADD; - keywordMap["remove"] = ICE_GRID_REMOVE; - keywordMap["list"] = ICE_GRID_LIST; - keywordMap["shutdown"] = ICE_GRID_SHUTDOWN; - keywordMap["describe"] = ICE_GRID_DESCRIBE; - keywordMap["properties"] = ICE_GRID_PROPERTIES; - keywordMap["property"] = ICE_GRID_PROPERTY; - keywordMap["state"] = ICE_GRID_STATE; - keywordMap["pid"] = ICE_GRID_PID; - keywordMap["endpoints"] = ICE_GRID_ENDPOINTS; - keywordMap["start"] = ICE_GRID_START; - keywordMap["stop"] = ICE_GRID_STOP; - keywordMap["signal"] = ICE_GRID_SIGNAL; - keywordMap["stdout"] = ICE_GRID_STDOUT; - keywordMap["stderr"] = ICE_GRID_STDERR; - keywordMap["node"] = ICE_GRID_NODE; - keywordMap["registry"] = ICE_GRID_REGISTRY; - keywordMap["ping"] = ICE_GRID_PING; - keywordMap["load"] = ICE_GRID_LOAD; - keywordMap["processors"] = ICE_GRID_SOCKETS; - keywordMap["sockets"] = ICE_GRID_SOCKETS; - keywordMap["activation"] = ICE_GRID_ACTIVATION; - keywordMap["object"] = ICE_GRID_OBJECT; - keywordMap["find"] = ICE_GRID_FIND; - keywordMap["show"] = ICE_GRID_SHOW; - keywordMap["copying"] = ICE_GRID_COPYING; - keywordMap["warranty"] = ICE_GRID_WARRANTY; - keywordMap["diff"] = ICE_GRID_DIFF; - keywordMap["update"] = ICE_GRID_UPDATE; - keywordMap["instantiate"] = ICE_GRID_INSTANTIATE; - keywordMap["template"] = ICE_GRID_TEMPLATE; - keywordMap["service"] = ICE_GRID_SERVICE; - keywordMap["enable"] = ICE_GRID_ENABLE; - keywordMap["disable"] = ICE_GRID_DISABLE; + keywordMap["help"] = ICEGRID_HELP; + keywordMap["quit"] = ICEGRID_EXIT; + keywordMap["exit"] = ICEGRID_EXIT; + keywordMap["application"] = ICEGRID_APPLICATION; + keywordMap["server"] = ICEGRID_SERVER; + keywordMap["adapter"] = ICEGRID_ADAPTER; + keywordMap["add"] = ICEGRID_ADD; + keywordMap["remove"] = ICEGRID_REMOVE; + keywordMap["list"] = ICEGRID_LIST; + keywordMap["shutdown"] = ICEGRID_SHUTDOWN; + keywordMap["describe"] = ICEGRID_DESCRIBE; + keywordMap["properties"] = ICEGRID_PROPERTIES; + keywordMap["property"] = ICEGRID_PROPERTY; + keywordMap["state"] = ICEGRID_STATE; + keywordMap["pid"] = ICEGRID_PID; + keywordMap["endpoints"] = ICEGRID_ENDPOINTS; + keywordMap["start"] = ICEGRID_START; + keywordMap["stop"] = ICEGRID_STOP; + keywordMap["signal"] = ICEGRID_SIGNAL; + keywordMap["stdout"] = ICEGRID_STDOUT; + keywordMap["stderr"] = ICEGRID_STDERR; + keywordMap["node"] = ICEGRID_NODE; + keywordMap["registry"] = ICEGRID_REGISTRY; + keywordMap["ping"] = ICEGRID_PING; + keywordMap["load"] = ICEGRID_LOAD; + keywordMap["processors"] = ICEGRID_SOCKETS; + keywordMap["sockets"] = ICEGRID_SOCKETS; + keywordMap["activation"] = ICEGRID_ACTIVATION; + keywordMap["object"] = ICEGRID_OBJECT; + keywordMap["find"] = ICEGRID_FIND; + keywordMap["show"] = ICEGRID_SHOW; + keywordMap["copying"] = ICEGRID_COPYING; + keywordMap["warranty"] = ICEGRID_WARRANTY; + keywordMap["diff"] = ICEGRID_DIFF; + keywordMap["update"] = ICEGRID_UPDATE; + keywordMap["instantiate"] = ICEGRID_INSTANTIATE; + keywordMap["template"] = ICEGRID_TEMPLATE; + keywordMap["service"] = ICEGRID_SERVICE; + keywordMap["enable"] = ICEGRID_ENABLE; + keywordMap["disable"] = ICEGRID_DISABLE; } // This function is called whenever the scanner encounters an unrecoverable error. @@ -1774,7 +1823,8 @@ namespace IceGrid exit(YY_EXIT_FAILURE); } - string parseDoubleQuotedString() + string + parseDoubleQuotedString() { string s; while (true) @@ -1816,7 +1866,8 @@ namespace IceGrid return s; } - string parseSingleQuotedString() + string + parseSingleQuotedString() { string s; while (true) @@ -1839,3 +1890,4 @@ namespace IceGrid return s; } } + diff --git a/cpp/src/IceGrid/Scanner.l b/cpp/src/IceGrid/Scanner.l index b1e7904ca96..767712a04f2 100644 --- a/cpp/src/IceGrid/Scanner.l +++ b/cpp/src/IceGrid/Scanner.l @@ -126,7 +126,7 @@ keyword [[:alpha:]]* string s = parseDoubleQuotedString(); yylval->clear(); yylval->push_back(s); - return ICE_GRID_STRING; + return ICEGRID_STRING; } \' { @@ -151,7 +151,7 @@ keyword [[:alpha:]]* } yylval->clear(); yylval->push_back(s); - return ICE_GRID_STRING; + return ICEGRID_STRING; } . { @@ -187,7 +187,7 @@ keyword [[:alpha:]]* yylval->push_back(s); const auto pos = keywordMap.find(s); - return pos != keywordMap.end() ? pos->second : ICE_GRID_STRING; + return pos != keywordMap.end() ? pos->second : ICEGRID_STRING; } %% @@ -198,46 +198,46 @@ namespace IceGrid // It fills the keyword map with all keyword-token pairs. void initScanner() { - keywordMap["help"] = ICE_GRID_HELP; - keywordMap["quit"] = ICE_GRID_EXIT; - keywordMap["exit"] = ICE_GRID_EXIT; - keywordMap["application"] = ICE_GRID_APPLICATION; - keywordMap["server"] = ICE_GRID_SERVER; - keywordMap["adapter"] = ICE_GRID_ADAPTER; - keywordMap["add"] = ICE_GRID_ADD; - keywordMap["remove"] = ICE_GRID_REMOVE; - keywordMap["list"] = ICE_GRID_LIST; - keywordMap["shutdown"] = ICE_GRID_SHUTDOWN; - keywordMap["describe"] = ICE_GRID_DESCRIBE; - keywordMap["properties"] = ICE_GRID_PROPERTIES; - keywordMap["property"] = ICE_GRID_PROPERTY; - keywordMap["state"] = ICE_GRID_STATE; - keywordMap["pid"] = ICE_GRID_PID; - keywordMap["endpoints"] = ICE_GRID_ENDPOINTS; - keywordMap["start"] = ICE_GRID_START; - keywordMap["stop"] = ICE_GRID_STOP; - keywordMap["signal"] = ICE_GRID_SIGNAL; - keywordMap["stdout"] = ICE_GRID_STDOUT; - keywordMap["stderr"] = ICE_GRID_STDERR; - keywordMap["node"] = ICE_GRID_NODE; - keywordMap["registry"] = ICE_GRID_REGISTRY; - keywordMap["ping"] = ICE_GRID_PING; - keywordMap["load"] = ICE_GRID_LOAD; - keywordMap["processors"] = ICE_GRID_SOCKETS; - keywordMap["sockets"] = ICE_GRID_SOCKETS; - keywordMap["activation"] = ICE_GRID_ACTIVATION; - keywordMap["object"] = ICE_GRID_OBJECT; - keywordMap["find"] = ICE_GRID_FIND; - keywordMap["show"] = ICE_GRID_SHOW; - keywordMap["copying"] = ICE_GRID_COPYING; - keywordMap["warranty"] = ICE_GRID_WARRANTY; - keywordMap["diff"] = ICE_GRID_DIFF; - keywordMap["update"] = ICE_GRID_UPDATE; - keywordMap["instantiate"] = ICE_GRID_INSTANTIATE; - keywordMap["template"] = ICE_GRID_TEMPLATE; - keywordMap["service"] = ICE_GRID_SERVICE; - keywordMap["enable"] = ICE_GRID_ENABLE; - keywordMap["disable"] = ICE_GRID_DISABLE; + keywordMap["help"] = ICEGRID_HELP; + keywordMap["quit"] = ICEGRID_EXIT; + keywordMap["exit"] = ICEGRID_EXIT; + keywordMap["application"] = ICEGRID_APPLICATION; + keywordMap["server"] = ICEGRID_SERVER; + keywordMap["adapter"] = ICEGRID_ADAPTER; + keywordMap["add"] = ICEGRID_ADD; + keywordMap["remove"] = ICEGRID_REMOVE; + keywordMap["list"] = ICEGRID_LIST; + keywordMap["shutdown"] = ICEGRID_SHUTDOWN; + keywordMap["describe"] = ICEGRID_DESCRIBE; + keywordMap["properties"] = ICEGRID_PROPERTIES; + keywordMap["property"] = ICEGRID_PROPERTY; + keywordMap["state"] = ICEGRID_STATE; + keywordMap["pid"] = ICEGRID_PID; + keywordMap["endpoints"] = ICEGRID_ENDPOINTS; + keywordMap["start"] = ICEGRID_START; + keywordMap["stop"] = ICEGRID_STOP; + keywordMap["signal"] = ICEGRID_SIGNAL; + keywordMap["stdout"] = ICEGRID_STDOUT; + keywordMap["stderr"] = ICEGRID_STDERR; + keywordMap["node"] = ICEGRID_NODE; + keywordMap["registry"] = ICEGRID_REGISTRY; + keywordMap["ping"] = ICEGRID_PING; + keywordMap["load"] = ICEGRID_LOAD; + keywordMap["processors"] = ICEGRID_SOCKETS; + keywordMap["sockets"] = ICEGRID_SOCKETS; + keywordMap["activation"] = ICEGRID_ACTIVATION; + keywordMap["object"] = ICEGRID_OBJECT; + keywordMap["find"] = ICEGRID_FIND; + keywordMap["show"] = ICEGRID_SHOW; + keywordMap["copying"] = ICEGRID_COPYING; + keywordMap["warranty"] = ICEGRID_WARRANTY; + keywordMap["diff"] = ICEGRID_DIFF; + keywordMap["update"] = ICEGRID_UPDATE; + keywordMap["instantiate"] = ICEGRID_INSTANTIATE; + keywordMap["template"] = ICEGRID_TEMPLATE; + keywordMap["service"] = ICEGRID_SERVICE; + keywordMap["enable"] = ICEGRID_ENABLE; + keywordMap["disable"] = ICEGRID_DISABLE; } // This function is called whenever the scanner encounters an unrecoverable error. diff --git a/cpp/src/IceGrid/ServerAdapterI.h b/cpp/src/IceGrid/ServerAdapterI.h index 356594ab647..31c32cd6687 100644 --- a/cpp/src/IceGrid/ServerAdapterI.h +++ b/cpp/src/IceGrid/ServerAdapterI.h @@ -2,8 +2,8 @@ // Copyright (c) ZeroC, Inc. All rights reserved. // -#ifndef ICE_GRID_SERVER_ADAPTER_I_H -#define ICE_GRID_SERVER_ADAPTER_I_H +#ifndef ICEGRID_SERVER_ADAPTER_I_H +#define ICEGRID_SERVER_ADAPTER_I_H #include "Internal.h" diff --git a/cpp/src/IceGrid/ServerCache.h b/cpp/src/IceGrid/ServerCache.h index 33bd58acc8b..1b94c59e1c4 100644 --- a/cpp/src/IceGrid/ServerCache.h +++ b/cpp/src/IceGrid/ServerCache.h @@ -2,8 +2,8 @@ // Copyright (c) ZeroC, Inc. All rights reserved. // -#ifndef ICE_GRID_SERVERCACHE_H -#define ICE_GRID_SERVERCACHE_H +#ifndef ICEGRID_SERVERCACHE_H +#define ICEGRID_SERVERCACHE_H #include "Allocatable.h" #include "Cache.h" diff --git a/cpp/src/IceGrid/ServerI.h b/cpp/src/IceGrid/ServerI.h index e07e138b887..585a095a30f 100644 --- a/cpp/src/IceGrid/ServerI.h +++ b/cpp/src/IceGrid/ServerI.h @@ -2,8 +2,8 @@ // Copyright (c) ZeroC, Inc. All rights reserved. // -#ifndef ICE_GRID_SERVER_I_H -#define ICE_GRID_SERVER_I_H +#ifndef ICEGRID_SERVER_I_H +#define ICEGRID_SERVER_I_H #include "Activator.h" #include "Ice/Timer.h" diff --git a/cpp/src/IceGrid/SessionManager.h b/cpp/src/IceGrid/SessionManager.h index 1b18a59b37a..527fe03ce53 100644 --- a/cpp/src/IceGrid/SessionManager.h +++ b/cpp/src/IceGrid/SessionManager.h @@ -2,8 +2,8 @@ // Copyright (c) ZeroC, Inc. All rights reserved. // -#ifndef ICE_GRID_SESSION_MANAGER_H -#define ICE_GRID_SESSION_MANAGER_H +#ifndef ICEGRID_SESSION_MANAGER_H +#define ICEGRID_SESSION_MANAGER_H #include "Ice/Logger.h" #include "Ice/LoggerUtil.h" diff --git a/cpp/src/IceGrid/SessionServantManager.h b/cpp/src/IceGrid/SessionServantManager.h index 7923a9ba18f..e795334c099 100644 --- a/cpp/src/IceGrid/SessionServantManager.h +++ b/cpp/src/IceGrid/SessionServantManager.h @@ -2,8 +2,8 @@ // Copyright (c) ZeroC, Inc. All rights reserved. // -#ifndef ICE_GRID_SESSIONSERVANTLOCATOR_H -#define ICE_GRID_SESSIONSERVANTLOCATOR_H +#ifndef ICEGRID_SESSIONSERVANTLOCATOR_H +#define ICEGRID_SESSIONSERVANTLOCATOR_H #include "AdminCallbackRouter.h" #include "Ice/ServantLocator.h" diff --git a/cpp/src/IceGrid/TraceLevels.h b/cpp/src/IceGrid/TraceLevels.h index 13020ed81a4..847a3561874 100644 --- a/cpp/src/IceGrid/TraceLevels.h +++ b/cpp/src/IceGrid/TraceLevels.h @@ -2,8 +2,8 @@ // Copyright (c) ZeroC, Inc. All rights reserved. // -#ifndef ICE_GRID_TRACE_LEVELS_H -#define ICE_GRID_TRACE_LEVELS_H +#ifndef ICEGRID_TRACE_LEVELS_H +#define ICEGRID_TRACE_LEVELS_H #include "Ice/CommunicatorF.h" #include "Ice/Logger.h" diff --git a/cpp/src/IceGrid/Util.h b/cpp/src/IceGrid/Util.h index 385386cb048..acc425dc05b 100644 --- a/cpp/src/IceGrid/Util.h +++ b/cpp/src/IceGrid/Util.h @@ -2,8 +2,8 @@ // Copyright (c) ZeroC, Inc. All rights reserved. // -#ifndef ICE_GRID_UTIL_H -#define ICE_GRID_UTIL_H +#ifndef ICEGRID_UTIL_H +#define ICEGRID_UTIL_H #include "../Ice/Random.h" #include "Ice/BuiltinSequences.h" diff --git a/cpp/src/IceGrid/WellKnownObjectsManager.h b/cpp/src/IceGrid/WellKnownObjectsManager.h index f6624c18e99..258430a9a92 100644 --- a/cpp/src/IceGrid/WellKnownObjectsManager.h +++ b/cpp/src/IceGrid/WellKnownObjectsManager.h @@ -2,8 +2,8 @@ // Copyright (c) ZeroC, Inc. All rights reserved. // -#ifndef ICE_GRID_WELL_KNOWN_OBJECTS_MANAGER_H -#define ICE_GRID_WELL_KNOWN_OBJECTS_MANAGER_H +#ifndef ICEGRID_WELL_KNOWN_OBJECTS_MANAGER_H +#define ICEGRID_WELL_KNOWN_OBJECTS_MANAGER_H #include "IceGrid/Registry.h" #include "Internal.h" diff --git a/cpp/src/IceStorm/Grammar.cpp b/cpp/src/IceStorm/Grammar.cpp index d9d767e5e77..28d7cee3281 100644 --- a/cpp/src/IceStorm/Grammar.cpp +++ b/cpp/src/IceStorm/Grammar.cpp @@ -66,23 +66,28 @@ /* "%code top" blocks. */ #line 1 "src/IceStorm/Grammar.y" + // // Copyright (c) ZeroC, Inc. All rights reserved. // + #line 76 "src/IceStorm/Grammar.cpp" + + /* First part of user prologue. */ -#line 34 "src/IceStorm/Grammar.y" +#line 35 "src/IceStorm/Grammar.y" + #include "Ice/Ice.h" #include "Parser.h" #ifdef _MSC_VER // warning C4102: 'yyoverflowlab' : unreferenced label -# pragma warning(disable : 4102) +# pragma warning(disable:4102) // warning C4702: unreachable code -# pragma warning(disable : 4702) +# pragma warning(disable:4702) #endif // Avoid old style cast warnings in generated grammar @@ -107,70 +112,75 @@ yyerror(const char* s) parser->error(s); } + #line 117 "src/IceStorm/Grammar.cpp" -#ifndef YY_CAST -# ifdef __cplusplus -# define YY_CAST(Type, Val) static_cast(Val) -# define YY_REINTERPRET_CAST(Type, Val) reinterpret_cast(Val) -# else -# define YY_CAST(Type, Val) ((Type)(Val)) -# define YY_REINTERPRET_CAST(Type, Val) ((Type)(Val)) -# endif -#endif -#ifndef YY_NULLPTR -# if defined __cplusplus -# if 201103L <= __cplusplus -# define YY_NULLPTR nullptr -# else -# define YY_NULLPTR 0 -# endif -# else -# define YY_NULLPTR ((void*)0) -# endif -#endif +# ifndef YY_CAST +# ifdef __cplusplus +# define YY_CAST(Type, Val) static_cast (Val) +# define YY_REINTERPRET_CAST(Type, Val) reinterpret_cast (Val) +# else +# define YY_CAST(Type, Val) ((Type) (Val)) +# define YY_REINTERPRET_CAST(Type, Val) ((Type) (Val)) +# endif +# endif +# ifndef YY_NULLPTR +# if defined __cplusplus +# if 201103L <= __cplusplus +# define YY_NULLPTR nullptr +# else +# define YY_NULLPTR 0 +# endif +# else +# define YY_NULLPTR ((void*)0) +# endif +# endif #include "Grammar.h" /* Symbol kind. */ enum yysymbol_kind_t { - YYSYMBOL_YYEMPTY = -2, - YYSYMBOL_YYEOF = 0, /* "end of file" */ - YYSYMBOL_YYerror = 1, /* error */ - YYSYMBOL_YYUNDEF = 2, /* "invalid token" */ - YYSYMBOL_ICE_STORM_HELP = 3, /* ICE_STORM_HELP */ - YYSYMBOL_ICE_STORM_EXIT = 4, /* ICE_STORM_EXIT */ - YYSYMBOL_ICE_STORM_CURRENT = 5, /* ICE_STORM_CURRENT */ - YYSYMBOL_ICE_STORM_CREATE = 6, /* ICE_STORM_CREATE */ - YYSYMBOL_ICE_STORM_DESTROY = 7, /* ICE_STORM_DESTROY */ - YYSYMBOL_ICE_STORM_LINK = 8, /* ICE_STORM_LINK */ - YYSYMBOL_ICE_STORM_UNLINK = 9, /* ICE_STORM_UNLINK */ - YYSYMBOL_ICE_STORM_LINKS = 10, /* ICE_STORM_LINKS */ - YYSYMBOL_ICE_STORM_TOPICS = 11, /* ICE_STORM_TOPICS */ - YYSYMBOL_ICE_STORM_REPLICA = 12, /* ICE_STORM_REPLICA */ - YYSYMBOL_ICE_STORM_SUBSCRIBERS = 13, /* ICE_STORM_SUBSCRIBERS */ - YYSYMBOL_ICE_STORM_STRING = 14, /* ICE_STORM_STRING */ - YYSYMBOL_15_ = 15, /* ';' */ - YYSYMBOL_YYACCEPT = 16, /* $accept */ - YYSYMBOL_start = 17, /* start */ - YYSYMBOL_commands = 18, /* commands */ - YYSYMBOL_command = 19, /* command */ - YYSYMBOL_strings = 20, /* strings */ - YYSYMBOL_keyword = 21 /* keyword */ + YYSYMBOL_YYEMPTY = -2, + YYSYMBOL_YYEOF = 0, /* "end of file" */ + YYSYMBOL_YYerror = 1, /* error */ + YYSYMBOL_YYUNDEF = 2, /* "invalid token" */ + YYSYMBOL_ICESTORM_HELP = 3, /* ICESTORM_HELP */ + YYSYMBOL_ICESTORM_EXIT = 4, /* ICESTORM_EXIT */ + YYSYMBOL_ICESTORM_CURRENT = 5, /* ICESTORM_CURRENT */ + YYSYMBOL_ICESTORM_CREATE = 6, /* ICESTORM_CREATE */ + YYSYMBOL_ICESTORM_DESTROY = 7, /* ICESTORM_DESTROY */ + YYSYMBOL_ICESTORM_LINK = 8, /* ICESTORM_LINK */ + YYSYMBOL_ICESTORM_UNLINK = 9, /* ICESTORM_UNLINK */ + YYSYMBOL_ICESTORM_LINKS = 10, /* ICESTORM_LINKS */ + YYSYMBOL_ICESTORM_TOPICS = 11, /* ICESTORM_TOPICS */ + YYSYMBOL_ICESTORM_REPLICA = 12, /* ICESTORM_REPLICA */ + YYSYMBOL_ICESTORM_SUBSCRIBERS = 13, /* ICESTORM_SUBSCRIBERS */ + YYSYMBOL_ICESTORM_STRING = 14, /* ICESTORM_STRING */ + YYSYMBOL_15_ = 15, /* ';' */ + YYSYMBOL_YYACCEPT = 16, /* $accept */ + YYSYMBOL_start = 17, /* start */ + YYSYMBOL_commands = 18, /* commands */ + YYSYMBOL_command = 19, /* command */ + YYSYMBOL_strings = 20, /* strings */ + YYSYMBOL_keyword = 21 /* keyword */ }; typedef enum yysymbol_kind_t yysymbol_kind_t; + + /* Unqualified %code blocks. */ -#line 26 "src/IceStorm/Grammar.y" +#line 27 "src/IceStorm/Grammar.y" + // Forward declaration of the lexing function generated by flex, so bison knows about it. // This must match the definition of 'yylex' in the generated scanner. int yylex(YYSTYPE* yylvalp); + #line 181 "src/IceStorm/Grammar.cpp" #ifdef short -# undef short +# undef short #endif /* On compilers that do not define __PTRDIFF_MAX__ etc., make sure @@ -178,11 +188,11 @@ int yylex(YYSTYPE* yylvalp); so that the code can choose integer types of a good width. */ #ifndef __PTRDIFF_MAX__ -# include /* INFRINGES ON USER NAME SPACE */ -# if defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__ -# include /* INFRINGES ON USER NAME SPACE */ -# define YY_STDINT_H -# endif +# include /* INFRINGES ON USER NAME SPACE */ +# if defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__ +# include /* INFRINGES ON USER NAME SPACE */ +# define YY_STDINT_H +# endif #endif /* Narrow types that promote to a signed type and that can represent a @@ -212,15 +222,16 @@ typedef short yytype_int16; (aka HP-UX 11i v2) only through the end of 2022; see Table 2 of . */ #ifdef __hpux -# undef UINT_LEAST8_MAX -# undef UINT_LEAST16_MAX -# define UINT_LEAST8_MAX 255 -# define UINT_LEAST16_MAX 65535 +# undef UINT_LEAST8_MAX +# undef UINT_LEAST16_MAX +# define UINT_LEAST8_MAX 255 +# define UINT_LEAST16_MAX 65535 #endif #if defined __UINT_LEAST8_MAX__ && __UINT_LEAST8_MAX__ <= __INT_MAX__ typedef __UINT_LEAST8_TYPE__ yytype_uint8; -#elif (!defined __UINT_LEAST8_MAX__ && defined YY_STDINT_H && UINT_LEAST8_MAX <= INT_MAX) +#elif (!defined __UINT_LEAST8_MAX__ && defined YY_STDINT_H \ + && UINT_LEAST8_MAX <= INT_MAX) typedef uint_least8_t yytype_uint8; #elif !defined __UINT_LEAST8_MAX__ && UCHAR_MAX <= INT_MAX typedef unsigned char yytype_uint8; @@ -230,7 +241,8 @@ typedef short yytype_uint8; #if defined __UINT_LEAST16_MAX__ && __UINT_LEAST16_MAX__ <= __INT_MAX__ typedef __UINT_LEAST16_TYPE__ yytype_uint16; -#elif (!defined __UINT_LEAST16_MAX__ && defined YY_STDINT_H && UINT_LEAST16_MAX <= INT_MAX) +#elif (!defined __UINT_LEAST16_MAX__ && defined YY_STDINT_H \ + && UINT_LEAST16_MAX <= INT_MAX) typedef uint_least16_t yytype_uint16; #elif !defined __UINT_LEAST16_MAX__ && USHRT_MAX <= INT_MAX typedef unsigned short yytype_uint16; @@ -239,38 +251,42 @@ typedef int yytype_uint16; #endif #ifndef YYPTRDIFF_T -# if defined __PTRDIFF_TYPE__ && defined __PTRDIFF_MAX__ -# define YYPTRDIFF_T __PTRDIFF_TYPE__ -# define YYPTRDIFF_MAXIMUM __PTRDIFF_MAX__ -# elif defined PTRDIFF_MAX -# ifndef ptrdiff_t -# include /* INFRINGES ON USER NAME SPACE */ -# endif -# define YYPTRDIFF_T ptrdiff_t -# define YYPTRDIFF_MAXIMUM PTRDIFF_MAX -# else -# define YYPTRDIFF_T long -# define YYPTRDIFF_MAXIMUM LONG_MAX -# endif +# if defined __PTRDIFF_TYPE__ && defined __PTRDIFF_MAX__ +# define YYPTRDIFF_T __PTRDIFF_TYPE__ +# define YYPTRDIFF_MAXIMUM __PTRDIFF_MAX__ +# elif defined PTRDIFF_MAX +# ifndef ptrdiff_t +# include /* INFRINGES ON USER NAME SPACE */ +# endif +# define YYPTRDIFF_T ptrdiff_t +# define YYPTRDIFF_MAXIMUM PTRDIFF_MAX +# else +# define YYPTRDIFF_T long +# define YYPTRDIFF_MAXIMUM LONG_MAX +# endif #endif #ifndef YYSIZE_T -# ifdef __SIZE_TYPE__ -# define YYSIZE_T __SIZE_TYPE__ -# elif defined size_t -# define YYSIZE_T size_t -# elif defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__ -# include /* INFRINGES ON USER NAME SPACE */ -# define YYSIZE_T size_t -# else -# define YYSIZE_T unsigned -# endif +# ifdef __SIZE_TYPE__ +# define YYSIZE_T __SIZE_TYPE__ +# elif defined size_t +# define YYSIZE_T size_t +# elif defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__ +# include /* INFRINGES ON USER NAME SPACE */ +# define YYSIZE_T size_t +# else +# define YYSIZE_T unsigned +# endif #endif -#define YYSIZE_MAXIMUM \ - YY_CAST(YYPTRDIFF_T, (YYPTRDIFF_MAXIMUM < YY_CAST(YYSIZE_T, -1) ? YYPTRDIFF_MAXIMUM : YY_CAST(YYSIZE_T, -1))) +#define YYSIZE_MAXIMUM \ + YY_CAST (YYPTRDIFF_T, \ + (YYPTRDIFF_MAXIMUM < YY_CAST (YYSIZE_T, -1) \ + ? YYPTRDIFF_MAXIMUM \ + : YY_CAST (YYSIZE_T, -1))) + +#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X)) -#define YYSIZEOF(X) YY_CAST(YYPTRDIFF_T, sizeof(X)) /* Stored state numbers (used for stacks). */ typedef yytype_int8 yy_state_t; @@ -279,411 +295,502 @@ typedef yytype_int8 yy_state_t; typedef int yy_state_fast_t; #ifndef YY_ -# if defined YYENABLE_NLS && YYENABLE_NLS -# if ENABLE_NLS -# include /* INFRINGES ON USER NAME SPACE */ -# define YY_(Msgid) dgettext("bison-runtime", Msgid) -# endif -# endif -# ifndef YY_ -# define YY_(Msgid) Msgid -# endif +# if defined YYENABLE_NLS && YYENABLE_NLS +# if ENABLE_NLS +# include /* INFRINGES ON USER NAME SPACE */ +# define YY_(Msgid) dgettext ("bison-runtime", Msgid) +# endif +# endif +# ifndef YY_ +# define YY_(Msgid) Msgid +# endif #endif + #ifndef YY_ATTRIBUTE_PURE -# if defined __GNUC__ && 2 < __GNUC__ + (96 <= __GNUC_MINOR__) -# define YY_ATTRIBUTE_PURE __attribute__((__pure__)) -# else -# define YY_ATTRIBUTE_PURE -# endif +# if defined __GNUC__ && 2 < __GNUC__ + (96 <= __GNUC_MINOR__) +# define YY_ATTRIBUTE_PURE __attribute__ ((__pure__)) +# else +# define YY_ATTRIBUTE_PURE +# endif #endif #ifndef YY_ATTRIBUTE_UNUSED -# if defined __GNUC__ && 2 < __GNUC__ + (7 <= __GNUC_MINOR__) -# define YY_ATTRIBUTE_UNUSED __attribute__((__unused__)) -# else -# define YY_ATTRIBUTE_UNUSED -# endif +# if defined __GNUC__ && 2 < __GNUC__ + (7 <= __GNUC_MINOR__) +# define YY_ATTRIBUTE_UNUSED __attribute__ ((__unused__)) +# else +# define YY_ATTRIBUTE_UNUSED +# endif #endif /* Suppress unused-variable warnings by "using" E. */ -#if !defined lint || defined __GNUC__ -# define YY_USE(E) ((void)(E)) +#if ! defined lint || defined __GNUC__ +# define YY_USE(E) ((void) (E)) #else -# define YY_USE(E) /* empty */ +# define YY_USE(E) /* empty */ #endif /* Suppress an incorrect diagnostic about yylval being uninitialized. */ -#if defined __GNUC__ && !defined __ICC && 406 <= __GNUC__ * 100 + __GNUC_MINOR__ -# if __GNUC__ * 100 + __GNUC_MINOR__ < 407 -# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ - _Pragma("GCC diagnostic push") _Pragma("GCC diagnostic ignored \"-Wuninitialized\"") -# else -# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ - _Pragma("GCC diagnostic push") _Pragma("GCC diagnostic ignored \"-Wuninitialized\"") \ - _Pragma("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") -# endif -# define YY_IGNORE_MAYBE_UNINITIALIZED_END _Pragma("GCC diagnostic pop") +#if defined __GNUC__ && ! defined __ICC && 406 <= __GNUC__ * 100 + __GNUC_MINOR__ +# if __GNUC__ * 100 + __GNUC_MINOR__ < 407 +# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ + _Pragma ("GCC diagnostic push") \ + _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"") +# else +# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ + _Pragma ("GCC diagnostic push") \ + _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"") \ + _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") +# endif +# define YY_IGNORE_MAYBE_UNINITIALIZED_END \ + _Pragma ("GCC diagnostic pop") #else -# define YY_INITIAL_VALUE(Value) Value +# define YY_INITIAL_VALUE(Value) Value #endif #ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN -# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN -# define YY_IGNORE_MAYBE_UNINITIALIZED_END +# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN +# define YY_IGNORE_MAYBE_UNINITIALIZED_END #endif #ifndef YY_INITIAL_VALUE -# define YY_INITIAL_VALUE(Value) /* Nothing. */ +# define YY_INITIAL_VALUE(Value) /* Nothing. */ #endif -#if defined __cplusplus && defined __GNUC__ && !defined __ICC && 6 <= __GNUC__ -# define YY_IGNORE_USELESS_CAST_BEGIN \ - _Pragma("GCC diagnostic push") _Pragma("GCC diagnostic ignored \"-Wuseless-cast\"") -# define YY_IGNORE_USELESS_CAST_END _Pragma("GCC diagnostic pop") +#if defined __cplusplus && defined __GNUC__ && ! defined __ICC && 6 <= __GNUC__ +# define YY_IGNORE_USELESS_CAST_BEGIN \ + _Pragma ("GCC diagnostic push") \ + _Pragma ("GCC diagnostic ignored \"-Wuseless-cast\"") +# define YY_IGNORE_USELESS_CAST_END \ + _Pragma ("GCC diagnostic pop") #endif #ifndef YY_IGNORE_USELESS_CAST_BEGIN -# define YY_IGNORE_USELESS_CAST_BEGIN -# define YY_IGNORE_USELESS_CAST_END +# define YY_IGNORE_USELESS_CAST_BEGIN +# define YY_IGNORE_USELESS_CAST_END #endif -#define YY_ASSERT(E) ((void)(0 && (E))) + +#define YY_ASSERT(E) ((void) (0 && (E))) #if !defined yyoverflow /* The parser invokes alloca or malloc; define the necessary symbols. */ -# ifdef YYSTACK_USE_ALLOCA -# if YYSTACK_USE_ALLOCA -# ifdef __GNUC__ -# define YYSTACK_ALLOC __builtin_alloca -# elif defined __BUILTIN_VA_ARG_INCR -# include /* INFRINGES ON USER NAME SPACE */ -# elif defined _AIX -# define YYSTACK_ALLOC __alloca -# elif defined _MSC_VER -# include /* INFRINGES ON USER NAME SPACE */ -# define alloca _alloca -# else -# define YYSTACK_ALLOC alloca -# if !defined _ALLOCA_H && !defined EXIT_SUCCESS -# include /* INFRINGES ON USER NAME SPACE */ -/* Use EXIT_SUCCESS as a witness for stdlib.h. */ -# ifndef EXIT_SUCCESS -# define EXIT_SUCCESS 0 -# endif -# endif -# endif -# endif -# endif - -# ifdef YYSTACK_ALLOC -/* Pacify GCC's 'empty if-body' warning. */ -# define YYSTACK_FREE(Ptr) \ - do \ - { /* empty */ \ - ; \ - } while (0) -# ifndef YYSTACK_ALLOC_MAXIMUM -/* The OS might guarantee only one guard page at the bottom of the stack, - and a page size can be as small as 4096 bytes. So we cannot safely - invoke alloca (N) if N exceeds 4096. Use a slightly smaller number - to allow for a few compiler-allocated temporary stack slots. */ -# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */ -# endif -# else -# define YYSTACK_ALLOC YYMALLOC -# define YYSTACK_FREE YYFREE -# ifndef YYSTACK_ALLOC_MAXIMUM -# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM -# endif -# if ( \ - defined __cplusplus && !defined EXIT_SUCCESS && \ - !((defined YYMALLOC || defined malloc) && (defined YYFREE || defined free))) -# include /* INFRINGES ON USER NAME SPACE */ -# ifndef EXIT_SUCCESS -# define EXIT_SUCCESS 0 -# endif -# endif -# ifndef YYMALLOC -# define YYMALLOC malloc -# if !defined malloc && !defined EXIT_SUCCESS -void* malloc(YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ -# endif -# endif -# ifndef YYFREE -# define YYFREE free -# if !defined free && !defined EXIT_SUCCESS -void free(void*); /* INFRINGES ON USER NAME SPACE */ -# endif -# endif +# ifdef YYSTACK_USE_ALLOCA +# if YYSTACK_USE_ALLOCA +# ifdef __GNUC__ +# define YYSTACK_ALLOC __builtin_alloca +# elif defined __BUILTIN_VA_ARG_INCR +# include /* INFRINGES ON USER NAME SPACE */ +# elif defined _AIX +# define YYSTACK_ALLOC __alloca +# elif defined _MSC_VER +# include /* INFRINGES ON USER NAME SPACE */ +# define alloca _alloca +# else +# define YYSTACK_ALLOC alloca +# if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS +# include /* INFRINGES ON USER NAME SPACE */ + /* Use EXIT_SUCCESS as a witness for stdlib.h. */ +# ifndef EXIT_SUCCESS +# define EXIT_SUCCESS 0 +# endif # endif +# endif +# endif +# endif + +# ifdef YYSTACK_ALLOC + /* Pacify GCC's 'empty if-body' warning. */ +# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0) +# ifndef YYSTACK_ALLOC_MAXIMUM + /* The OS might guarantee only one guard page at the bottom of the stack, + and a page size can be as small as 4096 bytes. So we cannot safely + invoke alloca (N) if N exceeds 4096. Use a slightly smaller number + to allow for a few compiler-allocated temporary stack slots. */ +# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */ +# endif +# else +# define YYSTACK_ALLOC YYMALLOC +# define YYSTACK_FREE YYFREE +# ifndef YYSTACK_ALLOC_MAXIMUM +# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM +# endif +# if (defined __cplusplus && ! defined EXIT_SUCCESS \ + && ! ((defined YYMALLOC || defined malloc) \ + && (defined YYFREE || defined free))) +# include /* INFRINGES ON USER NAME SPACE */ +# ifndef EXIT_SUCCESS +# define EXIT_SUCCESS 0 +# endif +# endif +# ifndef YYMALLOC +# define YYMALLOC malloc +# if ! defined malloc && ! defined EXIT_SUCCESS +void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ +# endif +# endif +# ifndef YYFREE +# define YYFREE free +# if ! defined free && ! defined EXIT_SUCCESS +void free (void *); /* INFRINGES ON USER NAME SPACE */ +# endif +# endif +# endif #endif /* !defined yyoverflow */ -#if (!defined yyoverflow && (!defined __cplusplus || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) +#if (! defined yyoverflow \ + && (! defined __cplusplus \ + || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) /* A type that is properly aligned for any stack member. */ union yyalloc { - yy_state_t yyss_alloc; - YYSTYPE yyvs_alloc; + yy_state_t yyss_alloc; + YYSTYPE yyvs_alloc; }; /* The size of the maximum gap between one aligned stack and the next. */ -# define YYSTACK_GAP_MAXIMUM (YYSIZEOF(union yyalloc) - 1) +# define YYSTACK_GAP_MAXIMUM (YYSIZEOF (union yyalloc) - 1) /* The size of an array large to enough to hold all stacks, each with N elements. */ -# define YYSTACK_BYTES(N) ((N) * (YYSIZEOF(yy_state_t) + YYSIZEOF(YYSTYPE)) + YYSTACK_GAP_MAXIMUM) +# define YYSTACK_BYTES(N) \ + ((N) * (YYSIZEOF (yy_state_t) + YYSIZEOF (YYSTYPE)) \ + + YYSTACK_GAP_MAXIMUM) -# define YYCOPY_NEEDED 1 +# define YYCOPY_NEEDED 1 /* Relocate STACK from its old location to the new one. The local variables YYSIZE and YYSTACKSIZE give the old and new number of 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_alloc, Stack) \ - do \ - { \ - YYPTRDIFF_T yynewbytes; \ - YYCOPY(&yyptr->Stack_alloc, Stack, yysize); \ - Stack = &yyptr->Stack_alloc; \ - yynewbytes = yystacksize * YYSIZEOF(*Stack) + YYSTACK_GAP_MAXIMUM; \ - yyptr += yynewbytes / YYSIZEOF(*yyptr); \ - } while (0) +# define YYSTACK_RELOCATE(Stack_alloc, Stack) \ + do \ + { \ + YYPTRDIFF_T yynewbytes; \ + YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ + Stack = &yyptr->Stack_alloc; \ + yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \ + yyptr += yynewbytes / YYSIZEOF (*yyptr); \ + } \ + while (0) #endif #if defined YYCOPY_NEEDED && YYCOPY_NEEDED /* Copy COUNT objects from SRC to DST. The source and destination do not overlap. */ -# ifndef YYCOPY -# if defined __GNUC__ && 1 < __GNUC__ -# define YYCOPY(Dst, Src, Count) __builtin_memcpy(Dst, Src, YY_CAST(YYSIZE_T, (Count)) * sizeof(*(Src))) -# else -# define YYCOPY(Dst, Src, Count) \ - do \ - { \ - YYPTRDIFF_T yyi; \ - for (yyi = 0; yyi < (Count); yyi++) \ - (Dst)[yyi] = (Src)[yyi]; \ - } while (0) -# endif -# endif +# ifndef YYCOPY +# if defined __GNUC__ && 1 < __GNUC__ +# define YYCOPY(Dst, Src, Count) \ + __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src))) +# else +# define YYCOPY(Dst, Src, Count) \ + do \ + { \ + YYPTRDIFF_T yyi; \ + for (yyi = 0; yyi < (Count); yyi++) \ + (Dst)[yyi] = (Src)[yyi]; \ + } \ + while (0) +# endif +# endif #endif /* !YYCOPY_NEEDED */ /* YYFINAL -- State number of the termination state. */ -#define YYFINAL 42 +#define YYFINAL 42 /* YYLAST -- Last index in YYTABLE. */ -#define YYLAST 65 +#define YYLAST 65 /* YYNTOKENS -- Number of terminals. */ -#define YYNTOKENS 16 +#define YYNTOKENS 16 /* YYNNTS -- Number of nonterminals. */ -#define YYNNTS 6 +#define YYNNTS 6 /* YYNRULES -- Number of rules. */ -#define YYNRULES 31 +#define YYNRULES 31 /* YYNSTATES -- Number of states. */ -#define YYNSTATES 56 +#define YYNSTATES 56 /* YYMAXUTOK -- Last valid token kind. */ -#define YYMAXUTOK 269 +#define YYMAXUTOK 269 + /* YYTRANSLATE(TOKEN-NUM) -- Symbol number corresponding to TOKEN-NUM as returned by yylex, with out-of-bounds checking. */ -#define YYTRANSLATE(YYX) \ - (0 <= (YYX) && (YYX) <= YYMAXUTOK ? YY_CAST(yysymbol_kind_t, yytranslate[YYX]) : YYSYMBOL_YYUNDEF) +#define YYTRANSLATE(YYX) \ + (0 <= (YYX) && (YYX) <= YYMAXUTOK \ + ? YY_CAST (yysymbol_kind_t, yytranslate[YYX]) \ + : YYSYMBOL_YYUNDEF) /* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM as returned by yylex. */ -static const yytype_int8 yytranslate[] = { - 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 15, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14}; +static const yytype_int8 yytranslate[] = +{ + 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 15, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 1, 2, 3, 4, + 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 +}; #if YYDEBUG /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */ -static const yytype_uint8 yyrline[] = {0, 96, 96, 99, 107, 110, 118, 122, 126, 130, 134, 138, 142, 146, 150, 154, - 158, 162, 166, 170, 178, 183, 188, 197, 200, 203, 206, 209, 212, 215, 218, 221}; +static const yytype_uint8 yyrline[] = +{ + 0, 97, 97, 100, 108, 111, 119, 123, 127, 131, + 135, 139, 143, 147, 151, 155, 159, 163, 167, 171, + 179, 184, 189, 198, 201, 204, 207, 210, 213, 216, + 219, 222 +}; #endif /** Accessing symbol of state STATE. */ -#define YY_ACCESSING_SYMBOL(State) YY_CAST(yysymbol_kind_t, yystos[State]) +#define YY_ACCESSING_SYMBOL(State) YY_CAST (yysymbol_kind_t, yystos[State]) #if YYDEBUG || 0 /* The user-facing name of the symbol whose (internal) number is YYSYMBOL. No bounds checking. */ -static const char* yysymbol_name(yysymbol_kind_t yysymbol) YY_ATTRIBUTE_UNUSED; +static const char *yysymbol_name (yysymbol_kind_t yysymbol) YY_ATTRIBUTE_UNUSED; /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. First, the terminals, then, starting at YYNTOKENS, nonterminals. */ -static const char* const yytname[] = {"\"end of file\"", "error", - "\"invalid token\"", "ICE_STORM_HELP", - "ICE_STORM_EXIT", "ICE_STORM_CURRENT", - "ICE_STORM_CREATE", "ICE_STORM_DESTROY", - "ICE_STORM_LINK", "ICE_STORM_UNLINK", - "ICE_STORM_LINKS", "ICE_STORM_TOPICS", - "ICE_STORM_REPLICA", "ICE_STORM_SUBSCRIBERS", - "ICE_STORM_STRING", "';'", - "$accept", "start", - "commands", "command", - "strings", "keyword", - YY_NULLPTR}; - -static const char* -yysymbol_name(yysymbol_kind_t yysymbol) +static const char *const yytname[] = +{ + "\"end of file\"", "error", "\"invalid token\"", "ICESTORM_HELP", + "ICESTORM_EXIT", "ICESTORM_CURRENT", "ICESTORM_CREATE", + "ICESTORM_DESTROY", "ICESTORM_LINK", "ICESTORM_UNLINK", "ICESTORM_LINKS", + "ICESTORM_TOPICS", "ICESTORM_REPLICA", "ICESTORM_SUBSCRIBERS", + "ICESTORM_STRING", "';'", "$accept", "start", "commands", "command", + "strings", "keyword", YY_NULLPTR +}; + +static const char * +yysymbol_name (yysymbol_kind_t yysymbol) { - return yytname[yysymbol]; + return yytname[yysymbol]; } #endif #define YYPACT_NINF (-6) -#define yypact_value_is_default(Yyn) ((Yyn) == YYPACT_NINF) +#define yypact_value_is_default(Yyn) \ + ((Yyn) == YYPACT_NINF) #define YYTABLE_NINF (-4) -#define yytable_value_is_error(Yyn) 0 +#define yytable_value_is_error(Yyn) \ + 0 /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing STATE-NUM. */ -static const yytype_int8 yypact[] = {8, 9, 11, 15, 41, 41, 41, 41, 41, 41, 41, 41, 41, 52, -6, 10, 28, -6, -6, - -6, -6, -6, -6, -6, -6, -6, -6, -6, -6, -6, 41, 39, 41, 42, 43, 44, 45, 46, - 47, 48, 49, 50, -6, -6, -6, -6, -6, -6, -6, -6, -6, -6, -6, -6, -6, -6}; +static const yytype_int8 yypact[] = +{ + 8, 9, 11, 15, 41, 41, 41, 41, 41, 41, + 41, 41, 41, 52, -6, 10, 28, -6, -6, -6, + -6, -6, -6, -6, -6, -6, -6, -6, -6, -6, + 41, 39, 41, 42, 43, 44, 45, 46, 47, 48, + 49, 50, -6, -6, -6, -6, -6, -6, -6, -6, + -6, -6, -6, -6, -6, -6 +}; /* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM. Performed when YYTABLE does not specify something else to do. Zero means the default is an error. */ -static const yytype_int8 yydefact[] = {0, 0, 0, 0, 22, 22, 22, 22, 22, 22, 22, 22, 22, 0, 19, 0, 0, 5, 18, - 6, 7, 23, 24, 25, 26, 27, 28, 29, 30, 31, 22, 0, 22, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 1, 4, 20, 9, 21, 8, 10, 11, 12, 13, 14, 15, 16, 17}; +static const yytype_int8 yydefact[] = +{ + 0, 0, 0, 0, 22, 22, 22, 22, 22, 22, + 22, 22, 22, 0, 19, 0, 0, 5, 18, 6, + 7, 23, 24, 25, 26, 27, 28, 29, 30, 31, + 22, 0, 22, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 1, 4, 20, 9, 21, 8, 10, 11, + 12, 13, 14, 15, 16, 17 +}; /* YYPGOTO[NTERM-NUM]. */ -static const yytype_int8 yypgoto[] = {-6, -6, -6, 40, -5, -6}; +static const yytype_int8 yypgoto[] = +{ + -6, -6, -6, 40, -5, -6 +}; /* YYDEFGOTO[NTERM-NUM]. */ -static const yytype_int8 yydefgoto[] = {0, 15, 16, 17, 31, 32}; +static const yytype_int8 yydefgoto[] = +{ + 0, 15, 16, 17, 31, 32 +}; /* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If positive, shift that token. If negative, reduce the rule whose number is the opposite. If YYTABLE_NINF, syntax error. */ -static const yytype_int8 yytable[] = {33, 34, 35, 36, 37, 38, 39, 40, -3, 1, 42, 2, 3, 4, 5, 6, 7, - 8, 9, 10, 11, 12, 13, 14, 18, 44, 19, 46, -2, 1, 20, 2, 3, 4, - 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 21, 22, 23, 24, 25, 26, 27, - 28, 29, 41, 45, 30, 43, 47, 48, 49, 50, 51, 52, 53, 54, 55}; +static const yytype_int8 yytable[] = +{ + 33, 34, 35, 36, 37, 38, 39, 40, -3, 1, + 42, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 18, 44, 19, 46, -2, 1, + 20, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 21, 22, 23, 24, 25, 26, + 27, 28, 29, 41, 45, 30, 43, 47, 48, 49, + 50, 51, 52, 53, 54, 55 +}; -static const yytype_int8 yycheck[] = {5, 6, 7, 8, 9, 10, 11, 12, 0, 1, 0, 3, 4, 5, 6, 7, 8, - 9, 10, 11, 12, 13, 14, 15, 15, 30, 15, 32, 0, 1, 15, 3, 4, 5, - 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 3, 4, 5, 6, 7, 8, 9, - 10, 11, 1, 15, 14, 16, 15, 15, 15, 15, 15, 15, 15, 15, 15}; +static const yytype_int8 yycheck[] = +{ + 5, 6, 7, 8, 9, 10, 11, 12, 0, 1, + 0, 3, 4, 5, 6, 7, 8, 9, 10, 11, + 12, 13, 14, 15, 15, 30, 15, 32, 0, 1, + 15, 3, 4, 5, 6, 7, 8, 9, 10, 11, + 12, 13, 14, 15, 3, 4, 5, 6, 7, 8, + 9, 10, 11, 1, 15, 14, 16, 15, 15, 15, + 15, 15, 15, 15, 15, 15 +}; /* YYSTOS[STATE-NUM] -- The symbol kind of the accessing symbol of state STATE-NUM. */ -static const yytype_int8 yystos[] = {0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17, 18, 19, 15, - 15, 15, 3, 4, 5, 6, 7, 8, 9, 10, 11, 14, 20, 21, 20, 20, 20, 20, 20, - 20, 20, 20, 1, 0, 19, 20, 15, 20, 15, 15, 15, 15, 15, 15, 15, 15, 15}; +static const yytype_int8 yystos[] = +{ + 0, 1, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 17, 18, 19, 15, 15, + 15, 3, 4, 5, 6, 7, 8, 9, 10, 11, + 14, 20, 21, 20, 20, 20, 20, 20, 20, 20, + 20, 1, 0, 19, 20, 15, 20, 15, 15, 15, + 15, 15, 15, 15, 15, 15 +}; /* YYR1[RULE-NUM] -- Symbol kind of the left-hand side of rule RULE-NUM. */ -static const yytype_int8 yyr1[] = {0, 16, 17, 17, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, - 19, 19, 19, 19, 20, 20, 20, 21, 21, 21, 21, 21, 21, 21, 21, 21}; +static const yytype_int8 yyr1[] = +{ + 0, 16, 17, 17, 18, 18, 19, 19, 19, 19, + 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, + 20, 20, 20, 21, 21, 21, 21, 21, 21, 21, + 21, 21 +}; /* YYR2[RULE-NUM] -- Number of symbols on the right-hand side of rule RULE-NUM. */ -static const yytype_int8 yyr2[] = {0, 2, 1, 0, 2, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, - 3, 3, 2, 1, 2, 2, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1}; - -enum +static const yytype_int8 yyr2[] = { - YYENOMEM = -2 + 0, 2, 1, 0, 2, 1, 2, 2, 3, 3, + 3, 3, 3, 3, 3, 3, 3, 3, 2, 1, + 2, 2, 0, 1, 1, 1, 1, 1, 1, 1, + 1, 1 }; -#define yyerrok (yyerrstatus = 0) -#define yyclearin (yychar = YYEMPTY) - -#define YYACCEPT goto yyacceptlab -#define YYABORT goto yyabortlab -#define YYERROR goto yyerrorlab -#define YYNOMEM goto yyexhaustedlab - -#define YYRECOVERING() (!!yyerrstatus) - -#define YYBACKUP(Token, Value) \ - do \ - if (yychar == YYEMPTY) \ - { \ - yychar = (Token); \ - yylval = (Value); \ - YYPOPSTACK(yylen); \ - yystate = *yyssp; \ - goto yybackup; \ - } \ - else \ - { \ - yyerror(YY_("syntax error: cannot back up")); \ - YYERROR; \ - } \ - while (0) + +enum { YYENOMEM = -2 }; + +#define yyerrok (yyerrstatus = 0) +#define yyclearin (yychar = YYEMPTY) + +#define YYACCEPT goto yyacceptlab +#define YYABORT goto yyabortlab +#define YYERROR goto yyerrorlab +#define YYNOMEM goto yyexhaustedlab + + +#define YYRECOVERING() (!!yyerrstatus) + +#define YYBACKUP(Token, Value) \ + do \ + if (yychar == YYEMPTY) \ + { \ + yychar = (Token); \ + yylval = (Value); \ + YYPOPSTACK (yylen); \ + yystate = *yyssp; \ + goto yybackup; \ + } \ + else \ + { \ + yyerror (YY_("syntax error: cannot back up")); \ + YYERROR; \ + } \ + while (0) /* Backward compatibility with an undocumented macro. Use YYerror or YYUNDEF. */ #define YYERRCODE YYUNDEF + /* Enable debugging if requested. */ #if YYDEBUG -# ifndef YYFPRINTF -# include /* INFRINGES ON USER NAME SPACE */ -# define YYFPRINTF fprintf -# endif +# ifndef YYFPRINTF +# include /* INFRINGES ON USER NAME SPACE */ +# define YYFPRINTF fprintf +# endif + +# define YYDPRINTF(Args) \ +do { \ + if (yydebug) \ + YYFPRINTF Args; \ +} while (0) + + + + +# define YY_SYMBOL_PRINT(Title, Kind, Value, Location) \ +do { \ + if (yydebug) \ + { \ + YYFPRINTF (stderr, "%s ", Title); \ + yy_symbol_print (stderr, \ + Kind, Value); \ + YYFPRINTF (stderr, "\n"); \ + } \ +} while (0) -# define YYDPRINTF(Args) \ - do \ - { \ - if (yydebug) \ - YYFPRINTF Args; \ - } while (0) - -# define YY_SYMBOL_PRINT(Title, Kind, Value, Location) \ - do \ - { \ - if (yydebug) \ - { \ - YYFPRINTF(stderr, "%s ", Title); \ - yy_symbol_print(stderr, Kind, Value); \ - YYFPRINTF(stderr, "\n"); \ - } \ - } while (0) /*-----------------------------------. | Print this symbol's value on YYO. | `-----------------------------------*/ static void -yy_symbol_value_print(FILE* yyo, yysymbol_kind_t yykind, YYSTYPE const* const yyvaluep) +yy_symbol_value_print (FILE *yyo, + yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep) { - FILE* yyoutput = yyo; - YY_USE(yyoutput); - if (!yyvaluep) - return; - YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN - YY_USE(yykind); - YY_IGNORE_MAYBE_UNINITIALIZED_END + FILE *yyoutput = yyo; + YY_USE (yyoutput); + if (!yyvaluep) + return; + YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN + YY_USE (yykind); + YY_IGNORE_MAYBE_UNINITIALIZED_END } + /*---------------------------. | Print this symbol on YYO. | `---------------------------*/ static void -yy_symbol_print(FILE* yyo, yysymbol_kind_t yykind, YYSTYPE const* const yyvaluep) +yy_symbol_print (FILE *yyo, + yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep) { - YYFPRINTF(yyo, "%s %s (", yykind < YYNTOKENS ? "token" : "nterm", yysymbol_name(yykind)); + YYFPRINTF (yyo, "%s %s (", + yykind < YYNTOKENS ? "token" : "nterm", yysymbol_name (yykind)); - yy_symbol_value_print(yyo, yykind, yyvaluep); - YYFPRINTF(yyo, ")"); + yy_symbol_value_print (yyo, yykind, yyvaluep); + YYFPRINTF (yyo, ")"); } /*------------------------------------------------------------------. @@ -692,64 +799,68 @@ yy_symbol_print(FILE* yyo, yysymbol_kind_t yykind, YYSTYPE const* const yyvaluep `------------------------------------------------------------------*/ static void -yy_stack_print(yy_state_t* yybottom, yy_state_t* yytop) +yy_stack_print (yy_state_t *yybottom, yy_state_t *yytop) { - YYFPRINTF(stderr, "Stack now"); - for (; yybottom <= yytop; yybottom++) + YYFPRINTF (stderr, "Stack now"); + for (; yybottom <= yytop; yybottom++) { - int yybot = *yybottom; - YYFPRINTF(stderr, " %d", yybot); + int yybot = *yybottom; + YYFPRINTF (stderr, " %d", yybot); } - YYFPRINTF(stderr, "\n"); + YYFPRINTF (stderr, "\n"); } -# define YY_STACK_PRINT(Bottom, Top) \ - do \ - { \ - if (yydebug) \ - yy_stack_print((Bottom), (Top)); \ - } while (0) +# define YY_STACK_PRINT(Bottom, Top) \ +do { \ + if (yydebug) \ + yy_stack_print ((Bottom), (Top)); \ +} while (0) + /*------------------------------------------------. | Report that the YYRULE is going to be reduced. | `------------------------------------------------*/ static void -yy_reduce_print(yy_state_t* yyssp, YYSTYPE* yyvsp, int yyrule) +yy_reduce_print (yy_state_t *yyssp, YYSTYPE *yyvsp, + int yyrule) { - int yylno = yyrline[yyrule]; - int yynrhs = yyr2[yyrule]; - int yyi; - YYFPRINTF(stderr, "Reducing stack by rule %d (line %d):\n", yyrule - 1, yylno); - /* The symbols being reduced. */ - for (yyi = 0; yyi < yynrhs; yyi++) + int yylno = yyrline[yyrule]; + int yynrhs = yyr2[yyrule]; + int yyi; + YYFPRINTF (stderr, "Reducing stack by rule %d (line %d):\n", + yyrule - 1, yylno); + /* The symbols being reduced. */ + for (yyi = 0; yyi < yynrhs; yyi++) { - YYFPRINTF(stderr, " $%d = ", yyi + 1); - yy_symbol_print(stderr, YY_ACCESSING_SYMBOL(+yyssp[yyi + 1 - yynrhs]), &yyvsp[(yyi + 1) - (yynrhs)]); - YYFPRINTF(stderr, "\n"); + YYFPRINTF (stderr, " $%d = ", yyi + 1); + yy_symbol_print (stderr, + YY_ACCESSING_SYMBOL (+yyssp[yyi + 1 - yynrhs]), + &yyvsp[(yyi + 1) - (yynrhs)]); + YYFPRINTF (stderr, "\n"); } } -# define YY_REDUCE_PRINT(Rule) \ - do \ - { \ - if (yydebug) \ - yy_reduce_print(yyssp, yyvsp, Rule); \ - } while (0) +# define YY_REDUCE_PRINT(Rule) \ +do { \ + if (yydebug) \ + yy_reduce_print (yyssp, yyvsp, Rule); \ +} while (0) /* Nonzero means print parse trace. It is left uninitialized so that multiple parsers can coexist. */ int yydebug; #else /* !YYDEBUG */ -# define YYDPRINTF(Args) ((void)0) -# define YY_SYMBOL_PRINT(Title, Kind, Value, Location) -# define YY_STACK_PRINT(Bottom, Top) -# define YY_REDUCE_PRINT(Rule) +# define YYDPRINTF(Args) ((void) 0) +# define YY_SYMBOL_PRINT(Title, Kind, Value, Location) +# define YY_STACK_PRINT(Bottom, Top) +# define YY_REDUCE_PRINT(Rule) #endif /* !YYDEBUG */ + /* YYINITDEPTH -- initial size of the parser's stacks. */ #ifndef YYINITDEPTH -# define YYINITDEPTH 200 +# define YYINITDEPTH 200 #endif /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only @@ -760,41 +871,53 @@ int yydebug; evaluated with infinite-precision integer arithmetic. */ #ifndef YYMAXDEPTH -# define YYMAXDEPTH 10000 +# define YYMAXDEPTH 10000 #endif + + + + + /*-----------------------------------------------. | Release the memory associated to this symbol. | `-----------------------------------------------*/ static void -yydestruct(const char* yymsg, yysymbol_kind_t yykind, YYSTYPE* yyvaluep) +yydestruct (const char *yymsg, + yysymbol_kind_t yykind, YYSTYPE *yyvaluep) { - YY_USE(yyvaluep); - if (!yymsg) - yymsg = "Deleting"; - YY_SYMBOL_PRINT(yymsg, yykind, yyvaluep, yylocationp); - - YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN - YY_USE(yykind); - YY_IGNORE_MAYBE_UNINITIALIZED_END + YY_USE (yyvaluep); + if (!yymsg) + yymsg = "Deleting"; + YY_SYMBOL_PRINT (yymsg, yykind, yyvaluep, yylocationp); + + YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN + YY_USE (yykind); + YY_IGNORE_MAYBE_UNINITIALIZED_END } + + + + + /*----------. | yyparse. | `----------*/ int -yyparse(void) +yyparse (void) { - /* Lookahead token kind. */ - int yychar; +/* Lookahead token kind. */ +int yychar; + - /* The semantic value of the lookahead symbol. */ - /* Default value used for initialization, for pacifying older GCCs - or non-GCC compilers. */ - YY_INITIAL_VALUE(static YYSTYPE yyval_default;) - YYSTYPE yylval YY_INITIAL_VALUE(= yyval_default); +/* The semantic value of the lookahead symbol. */ +/* Default value used for initialization, for pacifying older GCCs + or non-GCC compilers. */ +YY_INITIAL_VALUE (static YYSTYPE yyval_default;) +YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default); /* Number of syntax errors so far. */ int yynerrs = 0; @@ -811,630 +934,654 @@ yyparse(void) /* The state stack: array, bottom, top. */ yy_state_t yyssa[YYINITDEPTH]; - yy_state_t* yyss = yyssa; - yy_state_t* yyssp = yyss; + yy_state_t *yyss = yyssa; + yy_state_t *yyssp = yyss; /* The semantic value stack: array, bottom, top. */ YYSTYPE yyvsa[YYINITDEPTH]; - YYSTYPE* yyvs = yyvsa; - YYSTYPE* yyvsp = yyvs; + YYSTYPE *yyvs = yyvsa; + YYSTYPE *yyvsp = yyvs; + + int yyn; + /* The return value of yyparse. */ + int yyresult; + /* Lookahead symbol kind. */ + yysymbol_kind_t yytoken = YYSYMBOL_YYEMPTY; + /* The variables used to return semantic value and location from the + action routines. */ + YYSTYPE yyval; + - int yyn; - /* The return value of yyparse. */ - int yyresult; - /* Lookahead symbol kind. */ - yysymbol_kind_t yytoken = YYSYMBOL_YYEMPTY; - /* The variables used to return semantic value and location from the - action routines. */ - YYSTYPE yyval; -#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) +#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; + /* The number of symbols on the RHS of the reduced rule. + Keep to zero when no symbol should be popped. */ + int yylen = 0; - YYDPRINTF((stderr, "Starting parse\n")); + YYDPRINTF ((stderr, "Starting parse\n")); - yychar = YYEMPTY; /* Cause a token to be read. */ + yychar = YYEMPTY; /* Cause a token to be read. */ + + goto yysetstate; - goto yysetstate; /*------------------------------------------------------------. | yynewstate -- push a new state, which is found in yystate. | `------------------------------------------------------------*/ yynewstate: - /* In all cases, when you get here, the value and location stacks - have just been pushed. So pushing a state here evens the stacks. */ - yyssp++; + /* In all cases, when you get here, the value and location stacks + have just been pushed. So pushing a state here evens the stacks. */ + yyssp++; + /*--------------------------------------------------------------------. | yysetstate -- set current state (the top of the stack) to yystate. | `--------------------------------------------------------------------*/ yysetstate: - YYDPRINTF((stderr, "Entering state %d\n", yystate)); - YY_ASSERT(0 <= yystate && yystate < YYNSTATES); - YY_IGNORE_USELESS_CAST_BEGIN - *yyssp = YY_CAST(yy_state_t, yystate); - YY_IGNORE_USELESS_CAST_END - YY_STACK_PRINT(yyss, yyssp); - - if (yyss + yystacksize - 1 <= yyssp) + YYDPRINTF ((stderr, "Entering state %d\n", yystate)); + YY_ASSERT (0 <= yystate && yystate < YYNSTATES); + YY_IGNORE_USELESS_CAST_BEGIN + *yyssp = YY_CAST (yy_state_t, yystate); + YY_IGNORE_USELESS_CAST_END + YY_STACK_PRINT (yyss, yyssp); + + if (yyss + yystacksize - 1 <= yyssp) #if !defined yyoverflow && !defined YYSTACK_RELOCATE - YYNOMEM; + YYNOMEM; #else { - /* Get the current used size of the three stacks, in elements. */ - YYPTRDIFF_T yysize = yyssp - yyss + 1; - -# if defined yyoverflow - { - /* Give user a chance to reallocate the stack. Use copies of - these so that the &'s don't force the real ones into - memory. */ - yy_state_t* yyss1 = yyss; - YYSTYPE* yyvs1 = yyvs; - - /* 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 - be undefined if yyoverflow is a macro. */ - yyoverflow( - YY_("memory exhausted"), - &yyss1, - yysize * YYSIZEOF(*yyssp), - &yyvs1, - yysize * YYSIZEOF(*yyvsp), - &yystacksize); - yyss = yyss1; - yyvs = yyvs1; - } -# else /* defined YYSTACK_RELOCATE */ - /* Extend the stack our own way. */ - if (YYMAXDEPTH <= yystacksize) - YYNOMEM; - yystacksize *= 2; - if (YYMAXDEPTH < yystacksize) - yystacksize = YYMAXDEPTH; - - { - yy_state_t* yyss1 = yyss; - union yyalloc* yyptr = - YY_CAST(union yyalloc*, YYSTACK_ALLOC(YY_CAST(YYSIZE_T, YYSTACK_BYTES(yystacksize)))); - if (!yyptr) - YYNOMEM; - YYSTACK_RELOCATE(yyss_alloc, yyss); - YYSTACK_RELOCATE(yyvs_alloc, yyvs); -# undef YYSTACK_RELOCATE - if (yyss1 != yyssa) - YYSTACK_FREE(yyss1); - } -# endif - - yyssp = yyss + yysize - 1; - yyvsp = yyvs + yysize - 1; - - YY_IGNORE_USELESS_CAST_BEGIN - YYDPRINTF((stderr, "Stack size increased to %ld\n", YY_CAST(long, yystacksize))); - YY_IGNORE_USELESS_CAST_END - - if (yyss + yystacksize - 1 <= yyssp) - YYABORT; + /* Get the current used size of the three stacks, in elements. */ + YYPTRDIFF_T yysize = yyssp - yyss + 1; + +# if defined yyoverflow + { + /* Give user a chance to reallocate the stack. Use copies of + these so that the &'s don't force the real ones into + memory. */ + yy_state_t *yyss1 = yyss; + YYSTYPE *yyvs1 = yyvs; + + /* 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 + be undefined if yyoverflow is a macro. */ + yyoverflow (YY_("memory exhausted"), + &yyss1, yysize * YYSIZEOF (*yyssp), + &yyvs1, yysize * YYSIZEOF (*yyvsp), + &yystacksize); + yyss = yyss1; + yyvs = yyvs1; + } +# else /* defined YYSTACK_RELOCATE */ + /* Extend the stack our own way. */ + if (YYMAXDEPTH <= yystacksize) + YYNOMEM; + yystacksize *= 2; + if (YYMAXDEPTH < yystacksize) + yystacksize = YYMAXDEPTH; + + { + yy_state_t *yyss1 = yyss; + union yyalloc *yyptr = + YY_CAST (union yyalloc *, + YYSTACK_ALLOC (YY_CAST (YYSIZE_T, YYSTACK_BYTES (yystacksize)))); + if (! yyptr) + YYNOMEM; + YYSTACK_RELOCATE (yyss_alloc, yyss); + YYSTACK_RELOCATE (yyvs_alloc, yyvs); +# undef YYSTACK_RELOCATE + if (yyss1 != yyssa) + YYSTACK_FREE (yyss1); + } +# endif + + yyssp = yyss + yysize - 1; + yyvsp = yyvs + yysize - 1; + + YY_IGNORE_USELESS_CAST_BEGIN + YYDPRINTF ((stderr, "Stack size increased to %ld\n", + YY_CAST (long, yystacksize))); + YY_IGNORE_USELESS_CAST_END + + if (yyss + yystacksize - 1 <= yyssp) + YYABORT; } #endif /* !defined yyoverflow && !defined YYSTACK_RELOCATE */ - if (yystate == YYFINAL) - YYACCEPT; - goto yybackup; + if (yystate == YYFINAL) + YYACCEPT; + + goto yybackup; + /*-----------. | yybackup. | `-----------*/ yybackup: - /* Do appropriate processing given the current state. Read a - lookahead token if we need one and don't already have one. */ + /* Do appropriate processing given the current state. Read a + lookahead token if we need one and don't already have one. */ - /* First try to decide what to do without reference to lookahead token. */ - yyn = yypact[yystate]; - if (yypact_value_is_default(yyn)) - goto yydefault; + /* First try to decide what to do without reference to lookahead token. */ + yyn = yypact[yystate]; + if (yypact_value_is_default (yyn)) + goto yydefault; - /* Not known => get a lookahead token if don't already have one. */ + /* Not known => get a lookahead token if don't already have one. */ - /* YYCHAR is either empty, or end-of-input, or a valid lookahead. */ - if (yychar == YYEMPTY) + /* YYCHAR is either empty, or end-of-input, or a valid lookahead. */ + if (yychar == YYEMPTY) { - YYDPRINTF((stderr, "Reading a token\n")); - yychar = yylex(&yylval); + YYDPRINTF ((stderr, "Reading a token\n")); + yychar = yylex (&yylval); } - if (yychar <= YYEOF) + if (yychar <= YYEOF) { - yychar = YYEOF; - yytoken = YYSYMBOL_YYEOF; - YYDPRINTF((stderr, "Now at end of input.\n")); + yychar = YYEOF; + yytoken = YYSYMBOL_YYEOF; + YYDPRINTF ((stderr, "Now at end of input.\n")); } - else if (yychar == YYerror) + else if (yychar == YYerror) { - /* The scanner already issued an error message, process directly - to error recovery. But do not keep the error token as - lookahead, it is too special and may lead us to an endless - loop in error recovery. */ - yychar = YYUNDEF; - yytoken = YYSYMBOL_YYerror; - goto yyerrlab1; + /* The scanner already issued an error message, process directly + to error recovery. But do not keep the error token as + lookahead, it is too special and may lead us to an endless + loop in error recovery. */ + yychar = YYUNDEF; + yytoken = YYSYMBOL_YYerror; + goto yyerrlab1; } - else + else { - yytoken = YYTRANSLATE(yychar); - YY_SYMBOL_PRINT("Next token is", yytoken, &yylval, &yylloc); + yytoken = YYTRANSLATE (yychar); + YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc); } - /* If the proper action on seeing token YYTOKEN is to reduce or to - detect an error, take that action. */ - yyn += yytoken; - if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) - goto yydefault; - yyn = yytable[yyn]; - if (yyn <= 0) + /* If the proper action on seeing token YYTOKEN is to reduce or to + detect an error, take that action. */ + yyn += yytoken; + if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) + goto yydefault; + yyn = yytable[yyn]; + if (yyn <= 0) { - if (yytable_value_is_error(yyn)) - goto yyerrlab; - yyn = -yyn; - goto yyreduce; + if (yytable_value_is_error (yyn)) + goto yyerrlab; + yyn = -yyn; + goto yyreduce; } - /* Count tokens shifted since error; after three, turn off error - status. */ - if (yyerrstatus) - yyerrstatus--; + /* Count tokens shifted since error; after three, turn off error + status. */ + if (yyerrstatus) + yyerrstatus--; + + /* Shift the lookahead token. */ + YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); + yystate = yyn; + YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN + *++yyvsp = yylval; + YY_IGNORE_MAYBE_UNINITIALIZED_END - /* Shift the lookahead token. */ - YY_SYMBOL_PRINT("Shifting", yytoken, &yylval, &yylloc); - yystate = yyn; - YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN - *++yyvsp = yylval; - YY_IGNORE_MAYBE_UNINITIALIZED_END + /* Discard the shifted token. */ + yychar = YYEMPTY; + goto yynewstate; - /* Discard the shifted token. */ - yychar = YYEMPTY; - goto yynewstate; /*-----------------------------------------------------------. | yydefault -- do the default action for the current state. | `-----------------------------------------------------------*/ yydefault: - yyn = yydefact[yystate]; - if (yyn == 0) - goto yyerrlab; - goto yyreduce; + yyn = yydefact[yystate]; + if (yyn == 0) + goto yyerrlab; + goto yyreduce; + /*-----------------------------. | yyreduce -- do a reduction. | `-----------------------------*/ yyreduce: - /* yyn is the number of a rule to reduce with. */ - yylen = yyr2[yyn]; + /* yyn is the number of a rule to reduce with. */ + yylen = yyr2[yyn]; + + /* If YYLEN is nonzero, implement the default value of the action: + '$$ = $1'. - /* If YYLEN is nonzero, implement the default value of the action: - '$$ = $1'. + Otherwise, the following line sets YYVAL to garbage. + This behavior is undocumented and Bison + users should not rely upon it. Assigning to YYVAL + unconditionally makes the parser a bit smaller, and it avoids a + GCC warning that YYVAL may be used uninitialized. */ + yyval = yyvsp[1-yylen]; - Otherwise, the following line sets YYVAL to garbage. - This behavior is undocumented and Bison - users should not rely upon it. Assigning to YYVAL - unconditionally makes the parser a bit smaller, and it avoids a - GCC warning that YYVAL may be used uninitialized. */ - yyval = yyvsp[1 - yylen]; - YY_REDUCE_PRINT(yyn); - switch (yyn) + YY_REDUCE_PRINT (yyn); + switch (yyn) { - case 2: /* start: commands */ -#line 97 "src/IceStorm/Grammar.y" - { - } + case 2: /* start: commands */ +#line 98 "src/IceStorm/Grammar.y" +{ +} #line 1169 "src/IceStorm/Grammar.cpp" - break; + break; - case 3: /* start: %empty */ -#line 100 "src/IceStorm/Grammar.y" - { - } + case 3: /* start: %empty */ +#line 101 "src/IceStorm/Grammar.y" +{ +} #line 1176 "src/IceStorm/Grammar.cpp" - break; + break; - case 4: /* commands: commands command */ -#line 108 "src/IceStorm/Grammar.y" - { - } + case 4: /* commands: commands command */ +#line 109 "src/IceStorm/Grammar.y" +{ +} #line 1183 "src/IceStorm/Grammar.cpp" - break; + break; - case 5: /* commands: command */ -#line 111 "src/IceStorm/Grammar.y" - { - } + case 5: /* commands: command */ +#line 112 "src/IceStorm/Grammar.y" +{ +} #line 1190 "src/IceStorm/Grammar.cpp" - break; + break; - case 6: /* command: ICE_STORM_HELP ';' */ -#line 119 "src/IceStorm/Grammar.y" - { - parser->usage(); - } + case 6: /* command: ICESTORM_HELP ';' */ +#line 120 "src/IceStorm/Grammar.y" +{ + parser->usage(); +} #line 1198 "src/IceStorm/Grammar.cpp" - break; + break; - case 7: /* command: ICE_STORM_EXIT ';' */ -#line 123 "src/IceStorm/Grammar.y" - { - return 0; - } + case 7: /* command: ICESTORM_EXIT ';' */ +#line 124 "src/IceStorm/Grammar.y" +{ + return 0; +} #line 1206 "src/IceStorm/Grammar.cpp" - break; + break; - case 8: /* command: ICE_STORM_CREATE strings ';' */ -#line 127 "src/IceStorm/Grammar.y" - { - parser->create(yyvsp[-1]); - } + case 8: /* command: ICESTORM_CREATE strings ';' */ +#line 128 "src/IceStorm/Grammar.y" +{ + parser->create(yyvsp[-1]); +} #line 1214 "src/IceStorm/Grammar.cpp" - break; + break; - case 9: /* command: ICE_STORM_CURRENT strings ';' */ -#line 131 "src/IceStorm/Grammar.y" - { - parser->current(yyvsp[-1]); - } + case 9: /* command: ICESTORM_CURRENT strings ';' */ +#line 132 "src/IceStorm/Grammar.y" +{ + parser->current(yyvsp[-1]); +} #line 1222 "src/IceStorm/Grammar.cpp" - break; + break; - case 10: /* command: ICE_STORM_DESTROY strings ';' */ -#line 135 "src/IceStorm/Grammar.y" - { - parser->destroy(yyvsp[-1]); - } + case 10: /* command: ICESTORM_DESTROY strings ';' */ +#line 136 "src/IceStorm/Grammar.y" +{ + parser->destroy(yyvsp[-1]); +} #line 1230 "src/IceStorm/Grammar.cpp" - break; + break; - case 11: /* command: ICE_STORM_LINK strings ';' */ -#line 139 "src/IceStorm/Grammar.y" - { - parser->link(yyvsp[-1]); - } + case 11: /* command: ICESTORM_LINK strings ';' */ +#line 140 "src/IceStorm/Grammar.y" +{ + parser->link(yyvsp[-1]); +} #line 1238 "src/IceStorm/Grammar.cpp" - break; + break; - case 12: /* command: ICE_STORM_UNLINK strings ';' */ -#line 143 "src/IceStorm/Grammar.y" - { - parser->unlink(yyvsp[-1]); - } + case 12: /* command: ICESTORM_UNLINK strings ';' */ +#line 144 "src/IceStorm/Grammar.y" +{ + parser->unlink(yyvsp[-1]); +} #line 1246 "src/IceStorm/Grammar.cpp" - break; + break; - case 13: /* command: ICE_STORM_LINKS strings ';' */ -#line 147 "src/IceStorm/Grammar.y" - { - parser->links(yyvsp[-1]); - } + case 13: /* command: ICESTORM_LINKS strings ';' */ +#line 148 "src/IceStorm/Grammar.y" +{ + parser->links(yyvsp[-1]); +} #line 1254 "src/IceStorm/Grammar.cpp" - break; + break; - case 14: /* command: ICE_STORM_TOPICS strings ';' */ -#line 151 "src/IceStorm/Grammar.y" - { - parser->topics(yyvsp[-1]); - } + case 14: /* command: ICESTORM_TOPICS strings ';' */ +#line 152 "src/IceStorm/Grammar.y" +{ + parser->topics(yyvsp[-1]); +} #line 1262 "src/IceStorm/Grammar.cpp" - break; + break; - case 15: /* command: ICE_STORM_REPLICA strings ';' */ -#line 155 "src/IceStorm/Grammar.y" - { - parser->replica(yyvsp[-1]); - } + case 15: /* command: ICESTORM_REPLICA strings ';' */ +#line 156 "src/IceStorm/Grammar.y" +{ + parser->replica(yyvsp[-1]); +} #line 1270 "src/IceStorm/Grammar.cpp" - break; + break; - case 16: /* command: ICE_STORM_SUBSCRIBERS strings ';' */ -#line 159 "src/IceStorm/Grammar.y" - { - parser->subscribers(yyvsp[-1]); - } + case 16: /* command: ICESTORM_SUBSCRIBERS strings ';' */ +#line 160 "src/IceStorm/Grammar.y" +{ + parser->subscribers(yyvsp[-1]); +} #line 1278 "src/IceStorm/Grammar.cpp" - break; + break; - case 17: /* command: ICE_STORM_STRING error ';' */ -#line 163 "src/IceStorm/Grammar.y" - { - parser->invalidCommand("unknown command `" + yyvsp[-2].front() + "' (type `help' for more info)"); - } + case 17: /* command: ICESTORM_STRING error ';' */ +#line 164 "src/IceStorm/Grammar.y" +{ + parser->invalidCommand("unknown command `" + yyvsp[-2].front() + "' (type `help' for more info)"); +} #line 1286 "src/IceStorm/Grammar.cpp" - break; + break; - case 18: /* command: error ';' */ -#line 167 "src/IceStorm/Grammar.y" - { - yyerrok; - } + case 18: /* command: error ';' */ +#line 168 "src/IceStorm/Grammar.y" +{ + yyerrok; +} #line 1294 "src/IceStorm/Grammar.cpp" - break; + break; - case 19: /* command: ';' */ -#line 171 "src/IceStorm/Grammar.y" - { - } + case 19: /* command: ';' */ +#line 172 "src/IceStorm/Grammar.y" +{ +} #line 1301 "src/IceStorm/Grammar.cpp" - break; + break; - case 20: /* strings: ICE_STORM_STRING strings */ -#line 179 "src/IceStorm/Grammar.y" - { - yyval = yyvsp[0]; - yyval.push_front(yyvsp[-1].front()); - } + case 20: /* strings: ICESTORM_STRING strings */ +#line 180 "src/IceStorm/Grammar.y" +{ + yyval = yyvsp[0]; + yyval.push_front(yyvsp[-1].front()); +} #line 1310 "src/IceStorm/Grammar.cpp" - break; + break; - case 21: /* strings: keyword strings */ -#line 184 "src/IceStorm/Grammar.y" - { - yyval = yyvsp[0]; - yyval.push_front(yyvsp[-1].front()); - } + case 21: /* strings: keyword strings */ +#line 185 "src/IceStorm/Grammar.y" +{ + yyval = yyvsp[0]; + yyval.push_front(yyvsp[-1].front()); +} #line 1319 "src/IceStorm/Grammar.cpp" - break; + break; - case 22: /* strings: %empty */ -#line 189 "src/IceStorm/Grammar.y" - { - yyval = YYSTYPE(); - } + case 22: /* strings: %empty */ +#line 190 "src/IceStorm/Grammar.y" +{ + yyval = YYSTYPE(); +} #line 1327 "src/IceStorm/Grammar.cpp" - break; + break; - case 23: /* keyword: ICE_STORM_HELP */ -#line 198 "src/IceStorm/Grammar.y" - { - } + case 23: /* keyword: ICESTORM_HELP */ +#line 199 "src/IceStorm/Grammar.y" +{ +} #line 1334 "src/IceStorm/Grammar.cpp" - break; + break; - case 24: /* keyword: ICE_STORM_EXIT */ -#line 201 "src/IceStorm/Grammar.y" - { - } + case 24: /* keyword: ICESTORM_EXIT */ +#line 202 "src/IceStorm/Grammar.y" +{ +} #line 1341 "src/IceStorm/Grammar.cpp" - break; + break; - case 25: /* keyword: ICE_STORM_CURRENT */ -#line 204 "src/IceStorm/Grammar.y" - { - } + case 25: /* keyword: ICESTORM_CURRENT */ +#line 205 "src/IceStorm/Grammar.y" +{ +} #line 1348 "src/IceStorm/Grammar.cpp" - break; + break; - case 26: /* keyword: ICE_STORM_CREATE */ -#line 207 "src/IceStorm/Grammar.y" - { - } + case 26: /* keyword: ICESTORM_CREATE */ +#line 208 "src/IceStorm/Grammar.y" +{ +} #line 1355 "src/IceStorm/Grammar.cpp" - break; + break; - case 27: /* keyword: ICE_STORM_DESTROY */ -#line 210 "src/IceStorm/Grammar.y" - { - } + case 27: /* keyword: ICESTORM_DESTROY */ +#line 211 "src/IceStorm/Grammar.y" +{ +} #line 1362 "src/IceStorm/Grammar.cpp" - break; + break; - case 28: /* keyword: ICE_STORM_LINK */ -#line 213 "src/IceStorm/Grammar.y" - { - } + case 28: /* keyword: ICESTORM_LINK */ +#line 214 "src/IceStorm/Grammar.y" +{ +} #line 1369 "src/IceStorm/Grammar.cpp" - break; + break; - case 29: /* keyword: ICE_STORM_UNLINK */ -#line 216 "src/IceStorm/Grammar.y" - { - } + case 29: /* keyword: ICESTORM_UNLINK */ +#line 217 "src/IceStorm/Grammar.y" +{ +} #line 1376 "src/IceStorm/Grammar.cpp" - break; + break; - case 30: /* keyword: ICE_STORM_LINKS */ -#line 219 "src/IceStorm/Grammar.y" - { - } + case 30: /* keyword: ICESTORM_LINKS */ +#line 220 "src/IceStorm/Grammar.y" +{ +} #line 1383 "src/IceStorm/Grammar.cpp" - break; + break; - case 31: /* keyword: ICE_STORM_TOPICS */ -#line 222 "src/IceStorm/Grammar.y" - { - } + case 31: /* keyword: ICESTORM_TOPICS */ +#line 223 "src/IceStorm/Grammar.y" +{ +} #line 1390 "src/IceStorm/Grammar.cpp" - break; + break; + #line 1394 "src/IceStorm/Grammar.cpp" - default: - break; - } - /* User semantic actions sometimes alter yychar, and that requires - that yytoken be updated with the new translation. We take the - approach of translating immediately before every use of yytoken. - One alternative is translating here after every semantic action, - but that translation would be missed if the semantic action invokes - YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or - if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an - incorrect destructor might then be invoked immediately. In the - case of YYERROR or YYBACKUP, subsequent parser actions might lead - to an incorrect destructor call or verbose syntax error message - before the lookahead is translated. */ - YY_SYMBOL_PRINT("-> $$ =", YY_CAST(yysymbol_kind_t, yyr1[yyn]), &yyval, &yyloc); - - YYPOPSTACK(yylen); - yylen = 0; - - *++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. */ - { - const int yylhs = yyr1[yyn] - YYNTOKENS; - const int yyi = yypgoto[yylhs] + *yyssp; - yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp ? yytable[yyi] : yydefgoto[yylhs]); + default: break; } + /* User semantic actions sometimes alter yychar, and that requires + that yytoken be updated with the new translation. We take the + approach of translating immediately before every use of yytoken. + One alternative is translating here after every semantic action, + but that translation would be missed if the semantic action invokes + YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or + if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an + incorrect destructor might then be invoked immediately. In the + case of YYERROR or YYBACKUP, subsequent parser actions might lead + to an incorrect destructor call or verbose syntax error message + before the lookahead is translated. */ + YY_SYMBOL_PRINT ("-> $$ =", YY_CAST (yysymbol_kind_t, yyr1[yyn]), &yyval, &yyloc); + + YYPOPSTACK (yylen); + yylen = 0; + + *++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. */ + { + const int yylhs = yyr1[yyn] - YYNTOKENS; + const int yyi = yypgoto[yylhs] + *yyssp; + yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp + ? yytable[yyi] + : yydefgoto[yylhs]); + } + + goto yynewstate; - goto yynewstate; /*--------------------------------------. | yyerrlab -- here on detecting error. | `--------------------------------------*/ yyerrlab: - /* Make sure we have latest lookahead translation. See comments at - user semantic actions for why this is necessary. */ - yytoken = yychar == YYEMPTY ? YYSYMBOL_YYEMPTY : YYTRANSLATE(yychar); - /* If not already recovering from an error, report this error. */ - if (!yyerrstatus) + /* Make sure we have latest lookahead translation. See comments at + user semantic actions for why this is necessary. */ + yytoken = yychar == YYEMPTY ? YYSYMBOL_YYEMPTY : YYTRANSLATE (yychar); + /* If not already recovering from an error, report this error. */ + if (!yyerrstatus) { - ++yynerrs; - yyerror(YY_("syntax error")); + ++yynerrs; + yyerror (YY_("syntax error")); } - if (yyerrstatus == 3) + if (yyerrstatus == 3) { - /* If just tried and failed to reuse lookahead token after an - error, discard it. */ + /* If just tried and failed to reuse lookahead token after an + error, discard it. */ - if (yychar <= YYEOF) + if (yychar <= YYEOF) { - /* Return failure if at end of input. */ - if (yychar == YYEOF) - YYABORT; + /* Return failure if at end of input. */ + if (yychar == YYEOF) + YYABORT; } - else + else { - yydestruct("Error: discarding", yytoken, &yylval); - yychar = YYEMPTY; + yydestruct ("Error: discarding", + yytoken, &yylval); + yychar = YYEMPTY; } } - /* Else will try to reuse lookahead token after shifting the error - token. */ - goto yyerrlab1; + /* Else will try to reuse lookahead token after shifting the error + token. */ + goto yyerrlab1; + /*---------------------------------------------------. | yyerrorlab -- error raised explicitly by YYERROR. | `---------------------------------------------------*/ yyerrorlab: - /* Pacify compilers when the user code never invokes YYERROR and the - label yyerrorlab therefore never appears in user code. */ - if (0) - YYERROR; - ++yynerrs; - - /* Do not reclaim the symbols of the rule whose action triggered - this YYERROR. */ - YYPOPSTACK(yylen); - yylen = 0; - YY_STACK_PRINT(yyss, yyssp); - yystate = *yyssp; - goto yyerrlab1; + /* Pacify compilers when the user code never invokes YYERROR and the + label yyerrorlab therefore never appears in user code. */ + if (0) + YYERROR; + ++yynerrs; + + /* Do not reclaim the symbols of the rule whose action triggered + this YYERROR. */ + YYPOPSTACK (yylen); + yylen = 0; + YY_STACK_PRINT (yyss, yyssp); + yystate = *yyssp; + goto yyerrlab1; + /*-------------------------------------------------------------. | yyerrlab1 -- common code for both syntax error and YYERROR. | `-------------------------------------------------------------*/ yyerrlab1: - yyerrstatus = 3; /* Each real token shifted decrements this. */ + yyerrstatus = 3; /* Each real token shifted decrements this. */ - /* Pop stack until we find a state that shifts the error token. */ - for (;;) + /* Pop stack until we find a state that shifts the error token. */ + for (;;) { - yyn = yypact[yystate]; - if (!yypact_value_is_default(yyn)) + yyn = yypact[yystate]; + if (!yypact_value_is_default (yyn)) { - yyn += YYSYMBOL_YYerror; - if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) + yyn += YYSYMBOL_YYerror; + if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) { - yyn = yytable[yyn]; - if (0 < yyn) - break; + yyn = yytable[yyn]; + if (0 < yyn) + break; } } - /* Pop the current state because it cannot handle the error token. */ - if (yyssp == yyss) - YYABORT; + /* Pop the current state because it cannot handle the error token. */ + if (yyssp == yyss) + YYABORT; - yydestruct("Error: popping", YY_ACCESSING_SYMBOL(yystate), yyvsp); - YYPOPSTACK(1); - yystate = *yyssp; - YY_STACK_PRINT(yyss, yyssp); + + yydestruct ("Error: popping", + YY_ACCESSING_SYMBOL (yystate), yyvsp); + YYPOPSTACK (1); + yystate = *yyssp; + YY_STACK_PRINT (yyss, yyssp); } - YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN - *++yyvsp = yylval; - YY_IGNORE_MAYBE_UNINITIALIZED_END + YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN + *++yyvsp = yylval; + YY_IGNORE_MAYBE_UNINITIALIZED_END + - /* Shift the error token. */ - YY_SYMBOL_PRINT("Shifting", YY_ACCESSING_SYMBOL(yyn), yyvsp, yylsp); + /* Shift the error token. */ + YY_SYMBOL_PRINT ("Shifting", YY_ACCESSING_SYMBOL (yyn), yyvsp, yylsp); + + yystate = yyn; + goto yynewstate; - yystate = yyn; - goto yynewstate; /*-------------------------------------. | yyacceptlab -- YYACCEPT comes here. | `-------------------------------------*/ yyacceptlab: - yyresult = 0; - goto yyreturnlab; + yyresult = 0; + goto yyreturnlab; + /*-----------------------------------. | yyabortlab -- YYABORT comes here. | `-----------------------------------*/ yyabortlab: - yyresult = 1; - goto yyreturnlab; + yyresult = 1; + goto yyreturnlab; + /*-----------------------------------------------------------. | yyexhaustedlab -- YYNOMEM (memory exhaustion) comes here. | `-----------------------------------------------------------*/ yyexhaustedlab: - yyerror(YY_("memory exhausted")); - yyresult = 2; - goto yyreturnlab; + yyerror (YY_("memory exhausted")); + yyresult = 2; + goto yyreturnlab; + /*----------------------------------------------------------. | yyreturnlab -- parsing is finished, clean up and return. | `----------------------------------------------------------*/ yyreturnlab: - if (yychar != YYEMPTY) + if (yychar != YYEMPTY) { - /* Make sure we have latest lookahead translation. See comments at - user semantic actions for why this is necessary. */ - yytoken = YYTRANSLATE(yychar); - yydestruct("Cleanup: discarding lookahead", yytoken, &yylval); + /* Make sure we have latest lookahead translation. See comments at + user semantic actions for why this is necessary. */ + yytoken = YYTRANSLATE (yychar); + yydestruct ("Cleanup: discarding lookahead", + yytoken, &yylval); } - /* Do not reclaim the symbols of the rule whose action triggered - this YYABORT or YYACCEPT. */ - YYPOPSTACK(yylen); - YY_STACK_PRINT(yyss, yyssp); - while (yyssp != yyss) + /* Do not reclaim the symbols of the rule whose action triggered + this YYABORT or YYACCEPT. */ + YYPOPSTACK (yylen); + YY_STACK_PRINT (yyss, yyssp); + while (yyssp != yyss) { - yydestruct("Cleanup: popping", YY_ACCESSING_SYMBOL(+*yyssp), yyvsp); - YYPOPSTACK(1); + yydestruct ("Cleanup: popping", + YY_ACCESSING_SYMBOL (+*yyssp), yyvsp); + YYPOPSTACK (1); } #ifndef yyoverflow - if (yyss != yyssa) - YYSTACK_FREE(yyss); + if (yyss != yyssa) + YYSTACK_FREE (yyss); #endif - return yyresult; + return yyresult; } -#line 225 "src/IceStorm/Grammar.y" +#line 226 "src/IceStorm/Grammar.y" + diff --git a/cpp/src/IceStorm/Grammar.h b/cpp/src/IceStorm/Grammar.h index eed12d87b5f..1e15679de6f 100644 --- a/cpp/src/IceStorm/Grammar.h +++ b/cpp/src/IceStorm/Grammar.h @@ -36,10 +36,10 @@ private implementation details that can be changed or removed. */ #ifndef YY_YY_SRC_ICESTORM_GRAMMAR_H_INCLUDED -#define YY_YY_SRC_ICESTORM_GRAMMAR_H_INCLUDED +# define YY_YY_SRC_ICESTORM_GRAMMAR_H_INCLUDED /* Debug traces. */ #ifndef YYDEBUG -# define YYDEBUG 1 +# define YYDEBUG 1 #endif #if YYDEBUG extern int yydebug; @@ -47,6 +47,7 @@ extern int yydebug; /* "%code requires" blocks. */ #line 9 "src/IceStorm/Grammar.y" + #include #include @@ -55,46 +56,51 @@ extern int yydebug; // simple malloc/alloc/memcpy calls, which do not work for the // YYSTYPE, since YYSTYPE is a C++ type, with constructor, destructor, // assignment operator, etc. -#define YYMAXDEPTH 10000 // 10000 should suffice. Bison default is 10000 as maximum. +#define YYMAXDEPTH 10000 // 10000 should suffice. Bison default is 10000 as maximum. #define YYINITDEPTH YYMAXDEPTH // Initial depth is set to max depth, for the reasons described above. // Newer bison versions allow to disable stack resizing by defining yyoverflow. #define yyoverflow(a, b, c, d, e, f) yyerror(a) -#line 66 "src/IceStorm/Grammar.h" + +#line 67 "src/IceStorm/Grammar.h" /* Token kinds. */ #ifndef YYTOKENTYPE -# define YYTOKENTYPE -enum yytokentype -{ +# define YYTOKENTYPE + enum yytokentype + { YYEMPTY = -2, - YYEOF = 0, /* "end of file" */ - YYerror = 256, /* error */ - YYUNDEF = 257, /* "invalid token" */ - ICE_STORM_HELP = 258, /* ICE_STORM_HELP */ - ICE_STORM_EXIT = 259, /* ICE_STORM_EXIT */ - ICE_STORM_CURRENT = 260, /* ICE_STORM_CURRENT */ - ICE_STORM_CREATE = 261, /* ICE_STORM_CREATE */ - ICE_STORM_DESTROY = 262, /* ICE_STORM_DESTROY */ - ICE_STORM_LINK = 263, /* ICE_STORM_LINK */ - ICE_STORM_UNLINK = 264, /* ICE_STORM_UNLINK */ - ICE_STORM_LINKS = 265, /* ICE_STORM_LINKS */ - ICE_STORM_TOPICS = 266, /* ICE_STORM_TOPICS */ - ICE_STORM_REPLICA = 267, /* ICE_STORM_REPLICA */ - ICE_STORM_SUBSCRIBERS = 268, /* ICE_STORM_SUBSCRIBERS */ - ICE_STORM_STRING = 269 /* ICE_STORM_STRING */ -}; -typedef enum yytokentype yytoken_kind_t; + YYEOF = 0, /* "end of file" */ + YYerror = 256, /* error */ + YYUNDEF = 257, /* "invalid token" */ + ICESTORM_HELP = 258, /* ICESTORM_HELP */ + ICESTORM_EXIT = 259, /* ICESTORM_EXIT */ + ICESTORM_CURRENT = 260, /* ICESTORM_CURRENT */ + ICESTORM_CREATE = 261, /* ICESTORM_CREATE */ + ICESTORM_DESTROY = 262, /* ICESTORM_DESTROY */ + ICESTORM_LINK = 263, /* ICESTORM_LINK */ + ICESTORM_UNLINK = 264, /* ICESTORM_UNLINK */ + ICESTORM_LINKS = 265, /* ICESTORM_LINKS */ + ICESTORM_TOPICS = 266, /* ICESTORM_TOPICS */ + ICESTORM_REPLICA = 267, /* ICESTORM_REPLICA */ + ICESTORM_SUBSCRIBERS = 268, /* ICESTORM_SUBSCRIBERS */ + ICESTORM_STRING = 269 /* ICESTORM_STRING */ + }; + typedef enum yytokentype yytoken_kind_t; #endif /* Value type. */ -#if !defined YYSTYPE && !defined YYSTYPE_IS_DECLARED +#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED typedef std::list YYSTYPE; -# define YYSTYPE_IS_TRIVIAL 1 -# define YYSTYPE_IS_DECLARED 1 +# define YYSTYPE_IS_TRIVIAL 1 +# define YYSTYPE_IS_DECLARED 1 #endif -int yyparse(void); + + + +int yyparse (void); + #endif /* !YY_YY_SRC_ICESTORM_GRAMMAR_H_INCLUDED */ diff --git a/cpp/src/IceStorm/Grammar.y b/cpp/src/IceStorm/Grammar.y index b2942cd0f6a..8659a3f9001 100644 --- a/cpp/src/IceStorm/Grammar.y +++ b/cpp/src/IceStorm/Grammar.y @@ -76,18 +76,18 @@ yyerror(const char* s) // All keyword tokens. Make sure to modify the "keyword" rule in this // file if the list of keywords is changed. Also make sure to add the // keyword to the keyword table in Scanner.l. -%token ICE_STORM_HELP -%token ICE_STORM_EXIT -%token ICE_STORM_CURRENT -%token ICE_STORM_CREATE -%token ICE_STORM_DESTROY -%token ICE_STORM_LINK -%token ICE_STORM_UNLINK -%token ICE_STORM_LINKS -%token ICE_STORM_TOPICS -%token ICE_STORM_REPLICA -%token ICE_STORM_SUBSCRIBERS -%token ICE_STORM_STRING +%token ICESTORM_HELP +%token ICESTORM_EXIT +%token ICESTORM_CURRENT +%token ICESTORM_CREATE +%token ICESTORM_DESTROY +%token ICESTORM_LINK +%token ICESTORM_UNLINK +%token ICESTORM_LINKS +%token ICESTORM_TOPICS +%token ICESTORM_REPLICA +%token ICESTORM_SUBSCRIBERS +%token ICESTORM_STRING %% @@ -116,51 +116,51 @@ commands // ---------------------------------------------------------------------- command // ---------------------------------------------------------------------- -: ICE_STORM_HELP ';' +: ICESTORM_HELP ';' { parser->usage(); } -| ICE_STORM_EXIT ';' +| ICESTORM_EXIT ';' { return 0; } -| ICE_STORM_CREATE strings ';' +| ICESTORM_CREATE strings ';' { parser->create($2); } -| ICE_STORM_CURRENT strings ';' +| ICESTORM_CURRENT strings ';' { parser->current($2); } -| ICE_STORM_DESTROY strings ';' +| ICESTORM_DESTROY strings ';' { parser->destroy($2); } -| ICE_STORM_LINK strings ';' +| ICESTORM_LINK strings ';' { parser->link($2); } -| ICE_STORM_UNLINK strings ';' +| ICESTORM_UNLINK strings ';' { parser->unlink($2); } -| ICE_STORM_LINKS strings ';' +| ICESTORM_LINKS strings ';' { parser->links($2); } -| ICE_STORM_TOPICS strings ';' +| ICESTORM_TOPICS strings ';' { parser->topics($2); } -| ICE_STORM_REPLICA strings ';' +| ICESTORM_REPLICA strings ';' { parser->replica($2); } -| ICE_STORM_SUBSCRIBERS strings ';' +| ICESTORM_SUBSCRIBERS strings ';' { parser->subscribers($2); } -| ICE_STORM_STRING error ';' +| ICESTORM_STRING error ';' { parser->invalidCommand("unknown command `" + $1.front() + "' (type `help' for more info)"); } @@ -176,7 +176,7 @@ command // ---------------------------------------------------------------------- strings // ---------------------------------------------------------------------- -: ICE_STORM_STRING strings +: ICESTORM_STRING strings { $$ = $2; $$.push_front($1.front()); @@ -195,31 +195,31 @@ strings // ---------------------------------------------------------------------- keyword // ---------------------------------------------------------------------- -: ICE_STORM_HELP +: ICESTORM_HELP { } -| ICE_STORM_EXIT +| ICESTORM_EXIT { } -| ICE_STORM_CURRENT +| ICESTORM_CURRENT { } -| ICE_STORM_CREATE +| ICESTORM_CREATE { } -| ICE_STORM_DESTROY +| ICESTORM_DESTROY { } -| ICE_STORM_LINK +| ICESTORM_LINK { } -| ICE_STORM_UNLINK +| ICESTORM_UNLINK { } -| ICE_STORM_LINKS +| ICESTORM_LINKS { } -| ICE_STORM_TOPICS +| ICESTORM_TOPICS { } diff --git a/cpp/src/IceStorm/Scanner.cpp b/cpp/src/IceStorm/Scanner.cpp index 5c369d5ca52..0ff67e05c93 100644 --- a/cpp/src/IceStorm/Scanner.cpp +++ b/cpp/src/IceStorm/Scanner.cpp @@ -8,7 +8,7 @@ #line 9 "src/IceStorm/Scanner.cpp" -#define YY_INT_ALIGNED long int +#define YY_INT_ALIGNED long int /* A lexical scanner generated by flex */ @@ -17,97 +17,96 @@ #define YY_FLEX_MINOR_VERSION 6 #define YY_FLEX_SUBMINOR_VERSION 4 #if YY_FLEX_SUBMINOR_VERSION > 0 -# define FLEX_BETA +#define FLEX_BETA #endif #ifdef yyget_lval -# define yyget_lval_ALREADY_DEFINED +#define yyget_lval_ALREADY_DEFINED #else -# define yyget_lval yyget_lval +#define yyget_lval yyget_lval #endif #ifdef yyset_lval -# define yyset_lval_ALREADY_DEFINED +#define yyset_lval_ALREADY_DEFINED #else -# define yyset_lval yyset_lval +#define yyset_lval yyset_lval #endif /* First, we deal with platform-specific or compiler-specific issues. */ /* begin standard C headers. */ -#include #include -#include #include +#include +#include /* end standard C headers. */ /* flex integer type definitions */ #ifndef FLEXINT_H -# define FLEXINT_H +#define FLEXINT_H /* C99 systems have . Non-C99 systems may or may not. */ -# if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L +#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, - * if you want the limit (max/min) macros for int types. + * if you want the limit (max/min) macros for int types. */ -# ifndef __STDC_LIMIT_MACROS -# define __STDC_LIMIT_MACROS 1 -# endif +#ifndef __STDC_LIMIT_MACROS +#define __STDC_LIMIT_MACROS 1 +#endif -# include +#include typedef int8_t flex_int8_t; typedef uint8_t flex_uint8_t; typedef int16_t flex_int16_t; typedef uint16_t flex_uint16_t; typedef int32_t flex_int32_t; typedef uint32_t flex_uint32_t; -typedef uint64_t flex_uint64_t; -# else +#else typedef signed char flex_int8_t; typedef short int flex_int16_t; typedef int flex_int32_t; -typedef unsigned char flex_uint8_t; +typedef unsigned char flex_uint8_t; typedef unsigned short int flex_uint16_t; typedef unsigned int flex_uint32_t; /* Limits of integral types. */ -# ifndef INT8_MIN -# define INT8_MIN (-128) -# endif -# ifndef INT16_MIN -# define INT16_MIN (-32767 - 1) -# endif -# ifndef INT32_MIN -# define INT32_MIN (-2147483647 - 1) -# endif -# ifndef INT8_MAX -# define INT8_MAX (127) -# endif -# ifndef INT16_MAX -# define INT16_MAX (32767) -# endif -# ifndef INT32_MAX -# define INT32_MAX (2147483647) -# endif -# ifndef UINT8_MAX -# define UINT8_MAX (255U) -# endif -# ifndef UINT16_MAX -# define UINT16_MAX (65535U) -# endif -# ifndef UINT32_MAX -# define UINT32_MAX (4294967295U) -# endif - -# ifndef SIZE_MAX -# define SIZE_MAX (~(size_t)0) -# endif - -# endif /* ! C99 */ +#ifndef INT8_MIN +#define INT8_MIN (-128) +#endif +#ifndef INT16_MIN +#define INT16_MIN (-32767-1) +#endif +#ifndef INT32_MIN +#define INT32_MIN (-2147483647-1) +#endif +#ifndef INT8_MAX +#define INT8_MAX (127) +#endif +#ifndef INT16_MAX +#define INT16_MAX (32767) +#endif +#ifndef INT32_MAX +#define INT32_MAX (2147483647) +#endif +#ifndef UINT8_MAX +#define UINT8_MAX (255U) +#endif +#ifndef UINT16_MAX +#define UINT16_MAX (65535U) +#endif +#ifndef UINT32_MAX +#define UINT32_MAX (4294967295U) +#endif + +#ifndef SIZE_MAX +#define SIZE_MAX (~(size_t)0) +#endif + +#endif /* ! C99 */ #endif /* ! FLEXINT_H */ @@ -117,9 +116,9 @@ typedef unsigned int flex_uint32_t; #define yyconst const #if defined(__GNUC__) && __GNUC__ >= 3 -# define yynoreturn __attribute__((__noreturn__)) +#define yynoreturn __attribute__((__noreturn__)) #else -# define yynoreturn +#define yynoreturn #endif /* Returned upon end-of-file. */ @@ -128,7 +127,7 @@ typedef unsigned int flex_uint32_t; /* Promotes a possibly negative, possibly signed char to an * integer in range [0..255] for use as an array index. */ -#define YY_SC_TO_UI(c) ((YY_CHAR)(c)) +#define YY_SC_TO_UI(c) ((YY_CHAR) (c)) /* Enter a start condition. This macro really ought to take a parameter, * but we do it the disgusting crufty way forced on us by the ()-less @@ -144,128 +143,131 @@ typedef unsigned int flex_uint32_t; /* Action number for EOF rule of a given start state. */ #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) /* Special action meaning "start processing a new file". */ -#define YY_NEW_FILE yyrestart(yyin) +#define YY_NEW_FILE yyrestart( yyin ) #define YY_END_OF_BUFFER_CHAR 0 /* Size of default input buffer. */ #ifndef YY_BUF_SIZE -# ifdef __ia64__ +#ifdef __ia64__ /* On IA-64, the buffer size is 16k, not 8k. * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case. * Ditto for the __ia64__ case accordingly. */ -# define YY_BUF_SIZE 32768 -# else -# define YY_BUF_SIZE 16384 -# endif /* __ia64__ */ +#define YY_BUF_SIZE 32768 +#else +#define YY_BUF_SIZE 16384 +#endif /* __ia64__ */ #endif /* The state buf must be large enough to hold one state per character in the main buffer. */ -#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) +#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) #ifndef YY_TYPEDEF_YY_BUFFER_STATE -# define YY_TYPEDEF_YY_BUFFER_STATE -typedef struct yy_buffer_state* YY_BUFFER_STATE; +#define YY_TYPEDEF_YY_BUFFER_STATE +typedef struct yy_buffer_state *YY_BUFFER_STATE; #endif #ifndef YY_TYPEDEF_YY_SIZE_T -# define YY_TYPEDEF_YY_SIZE_T +#define YY_TYPEDEF_YY_SIZE_T typedef size_t yy_size_t; #endif -extern yy_size_t yyleng; +extern int yyleng; extern FILE *yyin, *yyout; #define EOB_ACT_CONTINUE_SCAN 0 #define EOB_ACT_END_OF_FILE 1 #define EOB_ACT_LAST_MATCH 2 - -#define YY_LESS_LINENO(n) -#define YY_LINENO_REWIND_TO(ptr) - + + #define YY_LESS_LINENO(n) + #define YY_LINENO_REWIND_TO(ptr) + /* Return all but the first "n" matched characters back to the input stream. */ -#define yyless(n) \ - do \ - { \ - /* Undo effects of setting up yytext. */ \ - int yyless_macro_arg = (n); \ - YY_LESS_LINENO(yyless_macro_arg); \ - *yy_cp = (yy_hold_char); \ - YY_RESTORE_YY_MORE_OFFSET(yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ - YY_DO_BEFORE_ACTION; /* set up yytext again */ \ - } while (0) -#define unput(c) yyunput(c, (yytext_ptr)) +#define yyless(n) \ + do \ + { \ + /* Undo effects of setting up yytext. */ \ + int yyless_macro_arg = (n); \ + YY_LESS_LINENO(yyless_macro_arg);\ + *yy_cp = (yy_hold_char); \ + YY_RESTORE_YY_MORE_OFFSET \ + (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ + YY_DO_BEFORE_ACTION; /* set up yytext again */ \ + } \ + while ( 0 ) +#define unput(c) yyunput( c, (yytext_ptr) ) #ifndef YY_STRUCT_YY_BUFFER_STATE -# define YY_STRUCT_YY_BUFFER_STATE +#define YY_STRUCT_YY_BUFFER_STATE struct yy_buffer_state -{ - FILE* yy_input_file; - - char* yy_ch_buf; /* input buffer */ - char* yy_buf_pos; /* current position in input buffer */ - - /* Size of input buffer in bytes, not including room for EOB - * characters. - */ - int yy_buf_size; - - /* Number of characters read into yy_ch_buf, not including EOB - * characters. - */ - yy_size_t yy_n_chars; - - /* Whether we "own" the buffer - i.e., we know we created it, - * and can realloc() it to grow it, and should free() it to - * delete it. - */ - int yy_is_our_buffer; - - /* Whether this is an "interactive" input source; if so, and - * if we're using stdio for input, then we want to use getc() - * instead of fread(), to make sure we stop fetching input after - * each newline. - */ - int yy_is_interactive; - - /* Whether we're considered to be at the beginning of a line. - * If so, '^' rules will be active on the next match, otherwise - * not. - */ - int yy_at_bol; + { + FILE *yy_input_file; + + char *yy_ch_buf; /* input buffer */ + char *yy_buf_pos; /* current position in input buffer */ + + /* Size of input buffer in bytes, not including room for EOB + * characters. + */ + int yy_buf_size; + + /* Number of characters read into yy_ch_buf, not including EOB + * characters. + */ + int yy_n_chars; + + /* Whether we "own" the buffer - i.e., we know we created it, + * and can realloc() it to grow it, and should free() it to + * delete it. + */ + int yy_is_our_buffer; + + /* Whether this is an "interactive" input source; if so, and + * if we're using stdio for input, then we want to use getc() + * instead of fread(), to make sure we stop fetching input after + * each newline. + */ + int yy_is_interactive; + + /* Whether we're considered to be at the beginning of a line. + * If so, '^' rules will be active on the next match, otherwise + * not. + */ + int yy_at_bol; int yy_bs_lineno; /**< The line count. */ int yy_bs_column; /**< The column count. */ - /* Whether to try to fill the input buffer when we reach the - * end of it. - */ - int yy_fill_buffer; - - int yy_buffer_status; - -# define YY_BUFFER_NEW 0 -# define YY_BUFFER_NORMAL 1 - /* When an EOF's been seen but there's still some text to process - * then we mark the buffer as YY_EOF_PENDING, to indicate that we - * shouldn't try reading from the input source any more. We might - * still have a bunch of tokens to match, though, because of - * possible backing-up. - * - * When we actually see the EOF, we change the status to "new" - * (via yyrestart()), so that the user can continue scanning by - * just pointing yyin at a new input file. - */ -# define YY_BUFFER_EOF_PENDING 2 -}; + /* Whether to try to fill the input buffer when we reach the + * end of it. + */ + int yy_fill_buffer; + + int yy_buffer_status; + +#define YY_BUFFER_NEW 0 +#define YY_BUFFER_NORMAL 1 + /* When an EOF's been seen but there's still some text to process + * then we mark the buffer as YY_EOF_PENDING, to indicate that we + * shouldn't try reading from the input source any more. We might + * still have a bunch of tokens to match, though, because of + * possible backing-up. + * + * When we actually see the EOF, we change the status to "new" + * (via yyrestart()), so that the user can continue scanning by + * just pointing yyin at a new input file. + */ +#define YY_BUFFER_EOF_PENDING 2 + + }; #endif /* !YY_STRUCT_YY_BUFFER_STATE */ /* Stack of input buffers. */ -static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */ -static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */ -static YY_BUFFER_STATE* yy_buffer_stack = NULL; /**< Stack as an array. */ +static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */ +static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */ +static YY_BUFFER_STATE * yy_buffer_stack = NULL; /**< Stack as an array. */ /* We provide macros for accessing buffer states in case in the * future we want to put the buffer states in a more general @@ -273,7 +275,9 @@ static YY_BUFFER_STATE* yy_buffer_stack = NULL; /**< Stack as an array. */ * * Returns the top of the stack, or NULL. */ -#define YY_CURRENT_BUFFER ((yy_buffer_stack) ? (yy_buffer_stack)[(yy_buffer_stack_top)] : NULL) +#define YY_CURRENT_BUFFER ( (yy_buffer_stack) \ + ? (yy_buffer_stack)[(yy_buffer_stack_top)] \ + : NULL) /* Same as previous macro, but useful when we know that the buffer stack is not * NULL or when we need an lvalue. For internal use only. */ @@ -281,64 +285,64 @@ static YY_BUFFER_STATE* yy_buffer_stack = NULL; /**< Stack as an array. */ /* yy_hold_char holds the character lost when yytext is formed. */ static char yy_hold_char; -static yy_size_t yy_n_chars; /* number of characters read into yy_ch_buf */ -yy_size_t yyleng; +static int yy_n_chars; /* number of characters read into yy_ch_buf */ +int yyleng; /* Points to current character in buffer. */ -static char* yy_c_buf_p = NULL; -static int yy_init = 0; /* whether we need to initialize */ -static int yy_start = 0; /* start state number */ +static char *yy_c_buf_p = NULL; +static int yy_init = 0; /* whether we need to initialize */ +static int yy_start = 0; /* start state number */ /* Flag which is used to allow yywrap()'s to do buffer switches * instead of setting up a fresh yyin. A bit of a hack ... */ static int yy_did_buffer_switch_on_eof; -void yyrestart(FILE* input_file); -void yy_switch_to_buffer(YY_BUFFER_STATE new_buffer); -YY_BUFFER_STATE yy_create_buffer(FILE* file, int size); -void yy_delete_buffer(YY_BUFFER_STATE b); -void yy_flush_buffer(YY_BUFFER_STATE b); -void yypush_buffer_state(YY_BUFFER_STATE new_buffer); -void yypop_buffer_state(void); +void yyrestart ( FILE *input_file ); +void yy_switch_to_buffer ( YY_BUFFER_STATE new_buffer ); +YY_BUFFER_STATE yy_create_buffer ( FILE *file, int size ); +void yy_delete_buffer ( YY_BUFFER_STATE b ); +void yy_flush_buffer ( YY_BUFFER_STATE b ); +void yypush_buffer_state ( YY_BUFFER_STATE new_buffer ); +void yypop_buffer_state ( void ); -static void yyensure_buffer_stack(void); -static void yy_load_buffer_state(void); -static void yy_init_buffer(YY_BUFFER_STATE b, FILE* file); -#define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER) +static void yyensure_buffer_stack ( void ); +static void yy_load_buffer_state ( void ); +static void yy_init_buffer ( YY_BUFFER_STATE b, FILE *file ); +#define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER ) -YY_BUFFER_STATE yy_scan_buffer(char* base, yy_size_t size); -YY_BUFFER_STATE yy_scan_string(const char* yy_str); -YY_BUFFER_STATE yy_scan_bytes(const char* bytes, yy_size_t len); +YY_BUFFER_STATE yy_scan_buffer ( char *base, yy_size_t size ); +YY_BUFFER_STATE yy_scan_string ( const char *yy_str ); +YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, int len ); -void* yyalloc(yy_size_t); -void* yyrealloc(void*, yy_size_t); -void yyfree(void*); +void *yyalloc ( yy_size_t ); +void *yyrealloc ( void *, yy_size_t ); +void yyfree ( void * ); #define yy_new_buffer yy_create_buffer -#define yy_set_interactive(is_interactive) \ - { \ - if (!YY_CURRENT_BUFFER) \ - { \ - yyensure_buffer_stack(); \ - YY_CURRENT_BUFFER_LVALUE = yy_create_buffer(yyin, YY_BUF_SIZE); \ - } \ - YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ - } -#define yy_set_bol(at_bol) \ - { \ - if (!YY_CURRENT_BUFFER) \ - { \ - yyensure_buffer_stack(); \ - YY_CURRENT_BUFFER_LVALUE = yy_create_buffer(yyin, YY_BUF_SIZE); \ - } \ - YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ - } +#define yy_set_interactive(is_interactive) \ + { \ + if ( ! YY_CURRENT_BUFFER ){ \ + yyensure_buffer_stack (); \ + YY_CURRENT_BUFFER_LVALUE = \ + yy_create_buffer( yyin, YY_BUF_SIZE ); \ + } \ + YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ + } +#define yy_set_bol(at_bol) \ + { \ + if ( ! YY_CURRENT_BUFFER ){\ + yyensure_buffer_stack (); \ + YY_CURRENT_BUFFER_LVALUE = \ + yy_create_buffer( yyin, YY_BUF_SIZE ); \ + } \ + YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ + } #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) /* Begin user sect3 */ -#define yywrap() (/*CONSTCOND*/ 1) +#define yywrap() (/*CONSTCOND*/1) #define YY_SKIP_YYWRAP typedef flex_uint8_t YY_CHAR; @@ -349,63 +353,108 @@ typedef int yy_state_type; extern int yylineno; int yylineno = 1; -extern char* yytext; +extern char *yytext; #ifdef yytext_ptr -# undef yytext_ptr +#undef yytext_ptr #endif #define yytext_ptr yytext -static yy_state_type yy_get_previous_state(void); -static yy_state_type yy_try_NUL_trans(yy_state_type current_state); -static int yy_get_next_buffer(void); -static void yynoreturn yy_fatal_error(const char* msg); +static yy_state_type yy_get_previous_state ( void ); +static yy_state_type yy_try_NUL_trans ( yy_state_type current_state ); +static int yy_get_next_buffer ( void ); +static void yynoreturn yy_fatal_error ( const char* msg ); /* Done after the current pattern has been matched and before the * corresponding action - sets up yytext. */ -#define YY_DO_BEFORE_ACTION \ - (yytext_ptr) = yy_bp; \ - yyleng = (yy_size_t)(yy_cp - yy_bp); \ - (yy_hold_char) = *yy_cp; \ - *yy_cp = '\0'; \ - (yy_c_buf_p) = yy_cp; +#define YY_DO_BEFORE_ACTION \ + (yytext_ptr) = yy_bp; \ + yyleng = (int) (yy_cp - yy_bp); \ + (yy_hold_char) = *yy_cp; \ + *yy_cp = '\0'; \ + (yy_c_buf_p) = yy_cp; #define YY_NUM_RULES 8 #define YY_END_OF_BUFFER 9 /* This struct is not used in this scanner, but its presence is necessary. */ struct yy_trans_info -{ - flex_int32_t yy_verify; - flex_int32_t yy_nxt; -}; -static const flex_int32_t yy_accept[19] = {0, 3, 3, 9, 7, 3, 4, 5, 6, 7, 4, 7, 3, 0, 2, 1, 0, 3, 0}; - -static const YY_CHAR yy_ec[256] = { - 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, - 4, 1, 1, 1, 1, 5, 1, 1, 6, 1, 1, 1, 1, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 8, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 9, 1, 1, 1, 1, 1, 1, 1, 1, - - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}; - -static const YY_CHAR yy_meta[10] = {0, 1, 1, 1, 1, 1, 1, 1, 1, 1}; - -static const flex_int32_t yy_base[19] = {0, 0, 0, 11, 22, 8, 22, 22, 22, 12, 22, 18, 0, 0, 22, 22, 0, 22, 22}; - -static const flex_int32_t yy_def[19] = {0, 18, 1, 18, 18, 18, 18, 18, 18, 18, 18, 18, 5, 11, 18, 18, 11, 18, 0}; - -static const flex_int32_t yy_nxt[32] = {0, 4, 5, 6, 7, 8, 4, 9, 10, 11, 12, 18, 18, 18, 18, 18, - 18, 13, 14, 15, 16, 17, 3, 18, 18, 18, 18, 18, 18, 18, 18, 18}; - -static const flex_int32_t yy_chk[32] = {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 3, 0, 0, 0, 0, - 0, 5, 9, 9, 11, 11, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18}; + { + flex_int32_t yy_verify; + flex_int32_t yy_nxt; + }; +static const flex_int32_t yy_accept[19] = + { 0, + 3, 3, 9, 7, 3, 4, 5, 6, 7, 4, + 7, 3, 0, 2, 1, 0, 3, 0 + } ; + +static const YY_CHAR yy_ec[256] = + { 0, + 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, + 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 2, 1, 4, 1, 1, 1, 1, 5, 1, + 1, 6, 1, 1, 1, 1, 7, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 8, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 9, 1, 1, 1, 1, 1, 1, 1, 1, + + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1 + } ; + +static const YY_CHAR yy_meta[10] = + { 0, + 1, 1, 1, 1, 1, 1, 1, 1, 1 + } ; + +static const flex_int32_t yy_base[19] = + { 0, + 0, 0, 11, 22, 8, 22, 22, 22, 12, 22, + 18, 0, 0, 22, 22, 0, 22, 22 + } ; + +static const flex_int32_t yy_def[19] = + { 0, + 18, 1, 18, 18, 18, 18, 18, 18, 18, 18, + 18, 5, 11, 18, 18, 11, 18, 0 + } ; + +static const flex_int32_t yy_nxt[32] = + { 0, + 4, 5, 6, 7, 8, 4, 9, 10, 11, 12, + 18, 18, 18, 18, 18, 18, 13, 14, 15, 16, + 17, 3, 18, 18, 18, 18, 18, 18, 18, 18, + 18 + } ; + +static const flex_int32_t yy_chk[32] = + { 0, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, + 3, 0, 0, 0, 0, 0, 5, 9, 9, 11, + 11, 18, 18, 18, 18, 18, 18, 18, 18, 18, + 18 + } ; static yy_state_type yy_last_accepting_state; -static char* yy_last_accepting_cpos; +static char *yy_last_accepting_cpos; extern int yy_flex_debug; int yy_flex_debug = 0; @@ -417,14 +466,14 @@ int yy_flex_debug = 0; #define yymore() yymore_used_but_not_detected #define YY_MORE_ADJ 0 #define YY_RESTORE_YY_MORE_OFFSET -char* yytext; +char *yytext; #line 1 "src/IceStorm/Scanner.l" #line 12 "src/IceStorm/Scanner.l" -#include "Grammar.h" #include "Ice/Ice.h" #include "Parser.h" +#include "Grammar.h" #include @@ -446,20 +495,20 @@ namespace IceStorm #define YY_INPUT(buf, result, maxSize) parser->getInput(buf, result, maxSize) #define YY_FATAL_ERROR(msg) fatalError(msg); -#line 499 "src/IceStorm/Scanner.cpp" +#line 498 "src/IceStorm/Scanner.cpp" #line 40 "src/IceStorm/Scanner.l" -/* Instructs flex to not suppress any warnings when generating the scanner. */ -/* By default flex will 'default match' any text it encounters that doesn't match any specified rules. This - * option disables default-matching (it throws 'scanner jammed' instead) to make grammar holes more obvious. */ -/* Directs flex to generate a scanner tailored for use by bison. - * These options change the signature of the main lexing function, which must match the one declared in Grammar.y */ -/* Ensures flex generates a scanner that supports reading 8-bit characters. */ -/* Directs flex to generate lookup tables that are better aligned in memory to - * improve access speeds, even if this means allocating larger tables. */ -/* Directs flex to store matched text as 'char *' instead of char arrays, for improved performance. */ -/* We always want the scanner to run in interactive mode. */ -/* Disables the generation of functions we don't use to reduce clutter, and possibly improve performance. */ -#line 512 "src/IceStorm/Scanner.cpp" + /* Instructs flex to not suppress any warnings when generating the scanner. */ + /* By default flex will 'default match' any text it encounters that doesn't match any specified rules. This + * option disables default-matching (it throws 'scanner jammed' instead) to make grammar holes more obvious. */ + /* Directs flex to generate a scanner tailored for use by bison. + * These options change the signature of the main lexing function, which must match the one declared in Grammar.y */ + /* Ensures flex generates a scanner that supports reading 8-bit characters. */ + /* Directs flex to generate lookup tables that are better aligned in memory to + * improve access speeds, even if this means allocating larger tables. */ + /* Directs flex to store matched text as 'char *' instead of char arrays, for improved performance. */ + /* We always want the scanner to run in interactive mode. */ + /* Disables the generation of functions we don't use to reduce clutter, and possibly improve performance. */ +#line 511 "src/IceStorm/Scanner.cpp" #define INITIAL 0 @@ -468,65 +517,65 @@ namespace IceStorm * down here because we want the user's section 1 to have been scanned first. * The user has a chance to override it with an option. */ -# include +#include #endif #ifndef YY_EXTRA_TYPE -# define YY_EXTRA_TYPE void* +#define YY_EXTRA_TYPE void * #endif -static int yy_init_globals(void); +static int yy_init_globals ( void ); /* Accessor methods to globals. These are made visible to non-reentrant scanners for convenience. */ -int yylex_destroy(void); +int yylex_destroy ( void ); -void yyset_lval(YYSTYPE* yylval_param); +void yyset_lval ( YYSTYPE * yylval_param ); /* Macros after this point can all be overridden by user definitions in * section 1. */ #ifndef YY_SKIP_YYWRAP -# ifdef __cplusplus -extern "C" int yywrap(void); -# else -extern int yywrap(void); -# endif +#ifdef __cplusplus +extern "C" int yywrap ( void ); +#else +extern int yywrap ( void ); +#endif #endif #ifndef YY_NO_UNPUT - -static void yyunput(int c, char* buf_ptr); - + + static void yyunput ( int c, char *buf_ptr ); + #endif #ifndef yytext_ptr -static void yy_flex_strncpy(char*, const char*, int); +static void yy_flex_strncpy ( char *, const char *, int ); #endif #ifdef YY_NEED_STRLEN -static int yy_flex_strlen(const char*); +static int yy_flex_strlen ( const char * ); #endif #ifndef YY_NO_INPUT -# ifdef __cplusplus -static int yyinput(void); -# else -static int input(void); -# endif +#ifdef __cplusplus +static int yyinput ( void ); +#else +static int input ( void ); +#endif #endif /* Amount of stuff to slurp up with each read. */ #ifndef YY_READ_BUF_SIZE -# ifdef __ia64__ +#ifdef __ia64__ /* On IA-64, the buffer size is 16k, not 8k */ -# define YY_READ_BUF_SIZE 16384 -# else -# define YY_READ_BUF_SIZE 8192 -# endif /* __ia64__ */ +#define YY_READ_BUF_SIZE 16384 +#else +#define YY_READ_BUF_SIZE 8192 +#endif /* __ia64__ */ #endif /* Copy whatever the last rule matched to the standard output. */ @@ -534,46 +583,42 @@ static int input(void); /* This used to be an fputs(), but since the string might contain NUL's, * we now use fwrite(). */ -# define ECHO \ - do \ - { \ - if (fwrite(yytext, (size_t)yyleng, 1, yyout)) \ - { \ - } \ - } while (0) +#define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0) #endif /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, * is returned in "result". */ #ifndef YY_INPUT -# define YY_INPUT(buf, result, max_size) \ - if (YY_CURRENT_BUFFER_LVALUE->yy_is_interactive) \ - { \ - int c = '*'; \ - yy_size_t n; \ - for (n = 0; n < max_size && (c = getc(yyin)) != EOF && c != '\n'; ++n) \ - buf[n] = (char)c; \ - if (c == '\n') \ - buf[n++] = (char)c; \ - if (c == EOF && ferror(yyin)) \ - YY_FATAL_ERROR("input in flex scanner failed"); \ - result = n; \ - } \ - else \ - { \ - errno = 0; \ - while ((result = (int)fread(buf, 1, (yy_size_t)max_size, yyin)) == 0 && ferror(yyin)) \ - { \ - if (errno != EINTR) \ - { \ - YY_FATAL_ERROR("input in flex scanner failed"); \ - break; \ - } \ - errno = 0; \ - clearerr(yyin); \ - } \ - } +#define YY_INPUT(buf,result,max_size) \ + if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ + { \ + int c = '*'; \ + int n; \ + for ( n = 0; n < max_size && \ + (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ + buf[n] = (char) c; \ + if ( c == '\n' ) \ + buf[n++] = (char) c; \ + if ( c == EOF && ferror( yyin ) ) \ + YY_FATAL_ERROR( "input in flex scanner failed" ); \ + result = n; \ + } \ + else \ + { \ + errno=0; \ + while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \ + { \ + if( errno != EINTR) \ + { \ + YY_FATAL_ERROR( "input in flex scanner failed" ); \ + break; \ + } \ + errno=0; \ + clearerr(yyin); \ + } \ + }\ +\ #endif @@ -582,17 +627,17 @@ static int input(void); * some compilers to complain about unreachable statements. */ #ifndef yyterminate -# define yyterminate() return YY_NULL +#define yyterminate() return YY_NULL #endif /* Number of entries by which start-condition stack grows. */ #ifndef YY_START_STACK_INCR -# define YY_START_STACK_INCR 25 +#define YY_START_STACK_INCR 25 #endif /* Report a fatal error. */ #ifndef YY_FATAL_ERROR -# define YY_FATAL_ERROR(msg) yy_fatal_error(msg) +#define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) #endif /* end tables serialization structures and prototypes */ @@ -601,593 +646,607 @@ static int input(void); * easily add parameters. */ #ifndef YY_DECL -# define YY_DECL_IS_OURS 1 +#define YY_DECL_IS_OURS 1 -extern int yylex(YYSTYPE* yylval_param); +extern int yylex \ + (YYSTYPE * yylval_param ); -# define YY_DECL int yylex(YYSTYPE* yylval_param) +#define YY_DECL int yylex \ + (YYSTYPE * yylval_param ) #endif /* !YY_DECL */ /* Code executed at the beginning of each rule, after yytext and yyleng * have been set up. */ #ifndef YY_USER_ACTION -# define YY_USER_ACTION +#define YY_USER_ACTION #endif /* Code executed at the end of each rule. */ #ifndef YY_BREAK -# define YY_BREAK /*LINTED*/ break; +#define YY_BREAK /*LINTED*/break; #endif -#define YY_RULE_SETUP YY_USER_ACTION +#define YY_RULE_SETUP \ + YY_USER_ACTION /** The main scanner function which does all the work. */ YY_DECL { - yy_state_type yy_current_state; - char *yy_cp, *yy_bp; - int yy_act; - - YYSTYPE* yylval; - + yy_state_type yy_current_state; + char *yy_cp, *yy_bp; + int yy_act; + + YYSTYPE * yylval; + yylval = yylval_param; - if (!(yy_init)) - { - (yy_init) = 1; + if ( !(yy_init) ) + { + (yy_init) = 1; #ifdef YY_USER_INIT - YY_USER_INIT; + YY_USER_INIT; #endif - if (!(yy_start)) - (yy_start) = 1; /* first start state */ + if ( ! (yy_start) ) + (yy_start) = 1; /* first start state */ - if (!yyin) - yyin = stdin; + if ( ! yyin ) + yyin = stdin; - if (!yyout) - yyout = stdout; + if ( ! yyout ) + yyout = stdout; - if (!YY_CURRENT_BUFFER) - { - yyensure_buffer_stack(); - YY_CURRENT_BUFFER_LVALUE = yy_create_buffer(yyin, YY_BUF_SIZE); - } + if ( ! YY_CURRENT_BUFFER ) { + yyensure_buffer_stack (); + YY_CURRENT_BUFFER_LVALUE = + yy_create_buffer( yyin, YY_BUF_SIZE ); + } - yy_load_buffer_state(); - } + yy_load_buffer_state( ); + } - { + { #line 71 "src/IceStorm/Scanner.l" -#line 716 "src/IceStorm/Scanner.cpp" - while (/*CONSTCOND*/ 1) /* loops until end-of-file is reached */ +#line 715 "src/IceStorm/Scanner.cpp" + + while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */ + { + yy_cp = (yy_c_buf_p); + + /* Support of yytext. */ + *yy_cp = (yy_hold_char); + + /* yy_bp points to the position in yy_ch_buf of the start of + * the current run. + */ + yy_bp = yy_cp; + + yy_current_state = (yy_start); +yy_match: + do + { + YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ; + if ( yy_accept[yy_current_state] ) + { + (yy_last_accepting_state) = yy_current_state; + (yy_last_accepting_cpos) = yy_cp; + } + while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) + { + yy_current_state = (int) yy_def[yy_current_state]; + if ( yy_current_state >= 19 ) + yy_c = yy_meta[yy_c]; + } + yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; + ++yy_cp; + } + while ( yy_base[yy_current_state] != 22 ); + +yy_find_action: + yy_act = yy_accept[yy_current_state]; + if ( yy_act == 0 ) + { /* have to back up */ + yy_cp = (yy_last_accepting_cpos); + yy_current_state = (yy_last_accepting_state); + yy_act = yy_accept[yy_current_state]; + } + + YY_DO_BEFORE_ACTION; + +do_action: /* This label is used only to access EOF actions. */ + + switch ( yy_act ) + { /* beginning of action switch */ + case 0: /* must back up */ + /* undo the effects of YY_DO_BEFORE_ACTION */ + *yy_cp = (yy_hold_char); + yy_cp = (yy_last_accepting_cpos); + yy_current_state = (yy_last_accepting_state); + goto yy_find_action; + +case 1: +YY_RULE_SETUP +#line 73 "src/IceStorm/Scanner.l" +{ + // C++-style comment + int c; + do + { + c = yyinput(); + } + while (c != '\n' && c != EOF); +} + YY_BREAK +case 2: +YY_RULE_SETUP +#line 83 "src/IceStorm/Scanner.l" +{ + // C-style comment + while (true) + { + int c = yyinput(); + if (c == '*') { - yy_cp = (yy_c_buf_p); - - /* Support of yytext. */ - *yy_cp = (yy_hold_char); - - /* yy_bp points to the position in yy_ch_buf of the start of - * the current run. - */ - yy_bp = yy_cp; - - yy_current_state = (yy_start); - yy_match: - do + int next = yyinput(); + if (next == '/') { - YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; - if (yy_accept[yy_current_state]) - { - (yy_last_accepting_state) = yy_current_state; - (yy_last_accepting_cpos) = yy_cp; - } - while (yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state) - { - yy_current_state = (int)yy_def[yy_current_state]; - if (yy_current_state >= 19) - yy_c = yy_meta[yy_c]; - } - yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; - ++yy_cp; - } while (yy_base[yy_current_state] != 22); - - yy_find_action: - yy_act = yy_accept[yy_current_state]; - if (yy_act == 0) - { /* have to back up */ - yy_cp = (yy_last_accepting_cpos); - yy_current_state = (yy_last_accepting_state); - yy_act = yy_accept[yy_current_state]; + break; } - - YY_DO_BEFORE_ACTION; - - do_action: /* This label is used only to access EOF actions. */ - - switch (yy_act) - { /* beginning of action switch */ - case 0: /* must back up */ - /* undo the effects of YY_DO_BEFORE_ACTION */ - *yy_cp = (yy_hold_char); - yy_cp = (yy_last_accepting_cpos); - yy_current_state = (yy_last_accepting_state); - goto yy_find_action; - - case 1: - YY_RULE_SETUP -#line 73 "src/IceStorm/Scanner.l" - { - // C++-style comment - int c; - do - { - c = yyinput(); - } while (c != '\n' && c != EOF); - } - YY_BREAK - case 2: - YY_RULE_SETUP -#line 83 "src/IceStorm/Scanner.l" - { - // C-style comment - while (true) - { - int c = yyinput(); - if (c == '*') - { - int next = yyinput(); - if (next == '/') - { - break; - } - else - { - unput(next); - } - } - else if (c == EOF) - { - parser->warning("EOF in comment"); - break; - } - } - } - YY_BREAK - case 3: - /* rule 3 can match eol */ - YY_RULE_SETUP + else + { + unput(next); + } + } + else if (c == EOF) + { + parser->warning("EOF in comment"); + break; + } + } +} + YY_BREAK +case 3: +/* rule 3 can match eol */ +YY_RULE_SETUP #line 108 "src/IceStorm/Scanner.l" - { - size_t len = strlen(yytext); - for (size_t i = 0; i < len; ++i) - { - if (yytext[i] == '\\') - { - parser->continueLine(); - } - } - } - YY_BREAK - case 4: - /* rule 4 can match eol */ - YY_RULE_SETUP +{ + size_t len = strlen(yytext); + for (size_t i = 0; i < len; ++i) + { + if (yytext[i] == '\\') + { + parser->continueLine(); + } + } +} + YY_BREAK +case 4: +/* rule 4 can match eol */ +YY_RULE_SETUP #line 119 "src/IceStorm/Scanner.l" - { - return ';'; - } - YY_BREAK - case 5: - YY_RULE_SETUP +{ + return ';'; +} + YY_BREAK +case 5: +YY_RULE_SETUP #line 123 "src/IceStorm/Scanner.l" - { - // "..."-type strings - string s; - while (true) - { - int c = yyinput(); - if (c == '"') - { - break; - } - else if (c == EOF) - { - parser->warning("EOF in string"); - break; - } - else if (c == '\\') - { - int next = yyinput(); - switch (next) - { - case '\\': - case '"': - { - s += static_cast(next); - break; - } - - default: - { - s += static_cast(c); - unput(next); - } - } - } - else - { - s += static_cast(c); - } - } - yylval->clear(); - yylval->push_back(s); - return ICE_STORM_STRING; - } - YY_BREAK - case 6: - YY_RULE_SETUP -#line 167 "src/IceStorm/Scanner.l" - { - // '...'-type strings - string s; - while (true) - { - int c = yyinput(); - if (c == '\'') - { - break; - } - else if (c == EOF) - { - parser->warning("EOF in string"); - break; - } - else - { - s += c; - } - } - yylval->clear(); - yylval->push_back(s); - return ICE_STORM_STRING; - } - YY_BREAK - case 7: - YY_RULE_SETUP -#line 192 "src/IceStorm/Scanner.l" - { - // Simple strings - string s; - s += yytext[0]; - while (true) - { - int c = yyinput(); - if (c == EOF) - { - break; - } - else if (isspace(c) || c == ';') - { - unput(c); - break; - } - - s += static_cast(c); - } - - yylval->clear(); - yylval->push_back(s); - - const auto pos = keywordMap.find(s); - return pos != keywordMap.end() ? pos->second : ICE_STORM_STRING; - } - YY_BREAK - case 8: - YY_RULE_SETUP -#line 219 "src/IceStorm/Scanner.l" - YY_FATAL_ERROR("flex scanner jammed"); - YY_BREAK -#line 947 "src/IceStorm/Scanner.cpp" - case YY_STATE_EOF(INITIAL): - yyterminate(); - - case YY_END_OF_BUFFER: +{ + // "..."-type strings + string s; + while (true) + { + int c = yyinput(); + if (c == '"') + { + break; + } + else if (c == EOF) + { + parser->warning("EOF in string"); + break; + } + else if (c == '\\') + { + int next = yyinput(); + switch(next) + { + case '\\': + case '"': { - /* Amount of text matched not including the EOB char. */ - int yy_amount_of_matched_text = (int)(yy_cp - (yytext_ptr)) - 1; - - /* Undo the effects of YY_DO_BEFORE_ACTION. */ - *yy_cp = (yy_hold_char); - YY_RESTORE_YY_MORE_OFFSET - - if (YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW) - { - /* We're scanning a new file or input source. It's - * possible that this happened because the user - * just pointed yyin at a new source and called - * yylex(). If so, then we have to assure - * consistency between YY_CURRENT_BUFFER and our - * globals. Here is the right place to do so, because - * this is the first action (other than possibly a - * back-up) that will match for the new input source. - */ - (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; - YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin; - YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; - } - - /* Note that here we test for yy_c_buf_p "<=" to the position - * of the first EOB in the buffer, since yy_c_buf_p will - * already have been incremented past the NUL character - * (since all states make transitions on EOB to the - * end-of-buffer state). Contrast this with the test - * in input(). - */ - if ((yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)]) - { /* This was really a NUL. */ - yy_state_type yy_next_state; - - (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; - - yy_current_state = yy_get_previous_state(); - - /* Okay, we're now positioned to make the NUL - * transition. We couldn't have - * yy_get_previous_state() go ahead and do it - * for us because it doesn't know how to deal - * with the possibility of jamming (and we don't - * want to build jamming into it because then it - * will run more slowly). - */ - - yy_next_state = yy_try_NUL_trans(yy_current_state); - - yy_bp = (yytext_ptr) + YY_MORE_ADJ; - - if (yy_next_state) - { - /* Consume the NUL. */ - yy_cp = ++(yy_c_buf_p); - yy_current_state = yy_next_state; - goto yy_match; - } - - else - { - yy_cp = (yy_c_buf_p); - goto yy_find_action; - } - } - - else - switch (yy_get_next_buffer()) - { - case EOB_ACT_END_OF_FILE: - { - (yy_did_buffer_switch_on_eof) = 0; - - if (yywrap()) - { - /* Note: because we've taken care in - * yy_get_next_buffer() to have set up - * yytext, we can now set up - * yy_c_buf_p so that if some total - * hoser (like flex itself) wants to - * call the scanner after we return the - * YY_NULL, it'll still work - another - * YY_NULL will get returned. - */ - (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ; - - yy_act = YY_STATE_EOF(YY_START); - goto do_action; - } - - else - { - if (!(yy_did_buffer_switch_on_eof)) - YY_NEW_FILE; - } - break; - } - - case EOB_ACT_CONTINUE_SCAN: - (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; - - yy_current_state = yy_get_previous_state(); - - yy_cp = (yy_c_buf_p); - yy_bp = (yytext_ptr) + YY_MORE_ADJ; - goto yy_match; - - case EOB_ACT_LAST_MATCH: - (yy_c_buf_p) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)]; - - yy_current_state = yy_get_previous_state(); - - yy_cp = (yy_c_buf_p); - yy_bp = (yytext_ptr) + YY_MORE_ADJ; - goto yy_find_action; - } + s += static_cast(next); break; } default: - YY_FATAL_ERROR("fatal flex scanner internal error--no action found"); - } /* end of action switch */ - } /* end of scanning one token */ - } /* end of user's declarations */ -} /* end of yylex */ - -/* yy_get_next_buffer - try to read in a new buffer - * - * Returns a code representing an action: - * EOB_ACT_LAST_MATCH - - * EOB_ACT_CONTINUE_SCAN - continue scanning from current position - * EOB_ACT_END_OF_FILE - end of file - */ -static int -yy_get_next_buffer(void) -{ - char* dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; - char* source = (yytext_ptr); - int number_to_move, i; - int ret_val; - - if ((yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1]) - YY_FATAL_ERROR("fatal flex scanner internal error--end of buffer missed"); - - if (YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0) - { /* Don't try to fill the buffer, so this is an EOF. */ - if ((yy_c_buf_p) - (yytext_ptr)-YY_MORE_ADJ == 1) - { - /* We matched a single character, the EOB, so - * treat this as a final EOF. - */ - return EOB_ACT_END_OF_FILE; + { + s += static_cast(c); + unput(next); + } + } } - else { - /* We matched some text prior to the EOB, first - * process it. - */ - return EOB_ACT_LAST_MATCH; + s += static_cast(c); } } - - /* Try to read more data. */ - - /* First move last chars to start of buffer. */ - number_to_move = (int)((yy_c_buf_p) - (yytext_ptr)-1); - - for (i = 0; i < number_to_move; ++i) - *(dest++) = *(source++); - - if (YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING) - /* don't do the read, it's not guaranteed to return an EOF, - * just force an EOF - */ - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0; - - else + yylval->clear(); + yylval->push_back(s); + return ICESTORM_STRING; +} + YY_BREAK +case 6: +YY_RULE_SETUP +#line 167 "src/IceStorm/Scanner.l" +{ + // '...'-type strings + string s; + while (true) { - yy_size_t num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; - - while (num_to_read <= 0) - { /* Not enough room in the buffer - grow it. */ - - /* just a shorter name for the current buffer */ - YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE; - - int yy_c_buf_p_offset = (int)((yy_c_buf_p)-b->yy_ch_buf); - - if (b->yy_is_our_buffer) - { - yy_size_t new_size = b->yy_buf_size * 2; - - if (new_size <= 0) - b->yy_buf_size += b->yy_buf_size / 8; - else - b->yy_buf_size *= 2; - - b->yy_ch_buf = (char*) - /* Include room in for 2 EOB chars. */ - yyrealloc((void*)b->yy_ch_buf, (yy_size_t)(b->yy_buf_size + 2)); - } - else - /* Can't grow it, we don't own it. */ - b->yy_ch_buf = NULL; - - if (!b->yy_ch_buf) - YY_FATAL_ERROR("fatal error - scanner input buffer overflow"); - - (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset]; - - num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; + int c = yyinput(); + if (c == '\'') + { + break; } - - if (num_to_read > YY_READ_BUF_SIZE) - num_to_read = YY_READ_BUF_SIZE; - - /* Read in more data. */ - YY_INPUT((&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), (yy_n_chars), num_to_read); - - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); - } - - if ((yy_n_chars) == 0) - { - if (number_to_move == YY_MORE_ADJ) + else if (c == EOF) { - ret_val = EOB_ACT_END_OF_FILE; - yyrestart(yyin); + parser->warning("EOF in string"); + break; } - else { - ret_val = EOB_ACT_LAST_MATCH; - YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_EOF_PENDING; + s += c; } } - - else - ret_val = EOB_ACT_CONTINUE_SCAN; - - if (((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) + yylval->clear(); + yylval->push_back(s); + return ICESTORM_STRING; +} + YY_BREAK +case 7: +YY_RULE_SETUP +#line 192 "src/IceStorm/Scanner.l" +{ + // Simple strings + string s; + s += yytext[0]; + while (true) { - /* Extend the array by 50%, plus the number we really need. */ - yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1); - YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = - (char*)yyrealloc((void*)YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t)new_size); - if (!YY_CURRENT_BUFFER_LVALUE->yy_ch_buf) - YY_FATAL_ERROR("out of dynamic memory in yy_get_next_buffer()"); - /* "- 2" to take care of EOB's */ - YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int)(new_size - 2); + int c = yyinput(); + if (c == EOF) + { + break; + } + else if (isspace(c) || c == ';') + { + unput(c); + break; + } + + s += static_cast(c); } - (yy_n_chars) += number_to_move; - YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR; - YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR; + yylval->clear(); + yylval->push_back(s); - (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; + const auto pos = keywordMap.find(s); + return pos != keywordMap.end() ? pos->second : ICESTORM_STRING; +} + YY_BREAK +case 8: +YY_RULE_SETUP +#line 219 "src/IceStorm/Scanner.l" +YY_FATAL_ERROR( "flex scanner jammed" ); + YY_BREAK +#line 946 "src/IceStorm/Scanner.cpp" +case YY_STATE_EOF(INITIAL): + yyterminate(); + + case YY_END_OF_BUFFER: + { + /* Amount of text matched not including the EOB char. */ + int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1; + + /* Undo the effects of YY_DO_BEFORE_ACTION. */ + *yy_cp = (yy_hold_char); + YY_RESTORE_YY_MORE_OFFSET + + if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) + { + /* We're scanning a new file or input source. It's + * possible that this happened because the user + * just pointed yyin at a new source and called + * yylex(). If so, then we have to assure + * consistency between YY_CURRENT_BUFFER and our + * globals. Here is the right place to do so, because + * this is the first action (other than possibly a + * back-up) that will match for the new input source. + */ + (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; + YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin; + YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; + } + + /* Note that here we test for yy_c_buf_p "<=" to the position + * of the first EOB in the buffer, since yy_c_buf_p will + * already have been incremented past the NUL character + * (since all states make transitions on EOB to the + * end-of-buffer state). Contrast this with the test + * in input(). + */ + if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) + { /* This was really a NUL. */ + yy_state_type yy_next_state; + + (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; + + yy_current_state = yy_get_previous_state( ); + + /* Okay, we're now positioned to make the NUL + * transition. We couldn't have + * yy_get_previous_state() go ahead and do it + * for us because it doesn't know how to deal + * with the possibility of jamming (and we don't + * want to build jamming into it because then it + * will run more slowly). + */ + + yy_next_state = yy_try_NUL_trans( yy_current_state ); + + yy_bp = (yytext_ptr) + YY_MORE_ADJ; + + if ( yy_next_state ) + { + /* Consume the NUL. */ + yy_cp = ++(yy_c_buf_p); + yy_current_state = yy_next_state; + goto yy_match; + } + + else + { + yy_cp = (yy_c_buf_p); + goto yy_find_action; + } + } + + else switch ( yy_get_next_buffer( ) ) + { + case EOB_ACT_END_OF_FILE: + { + (yy_did_buffer_switch_on_eof) = 0; + + if ( yywrap( ) ) + { + /* Note: because we've taken care in + * yy_get_next_buffer() to have set up + * yytext, we can now set up + * yy_c_buf_p so that if some total + * hoser (like flex itself) wants to + * call the scanner after we return the + * YY_NULL, it'll still work - another + * YY_NULL will get returned. + */ + (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ; + + yy_act = YY_STATE_EOF(YY_START); + goto do_action; + } + + else + { + if ( ! (yy_did_buffer_switch_on_eof) ) + YY_NEW_FILE; + } + break; + } + + case EOB_ACT_CONTINUE_SCAN: + (yy_c_buf_p) = + (yytext_ptr) + yy_amount_of_matched_text; + + yy_current_state = yy_get_previous_state( ); + + yy_cp = (yy_c_buf_p); + yy_bp = (yytext_ptr) + YY_MORE_ADJ; + goto yy_match; + + case EOB_ACT_LAST_MATCH: + (yy_c_buf_p) = + &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)]; + + yy_current_state = yy_get_previous_state( ); + + yy_cp = (yy_c_buf_p); + yy_bp = (yytext_ptr) + YY_MORE_ADJ; + goto yy_find_action; + } + break; + } + + default: + YY_FATAL_ERROR( + "fatal flex scanner internal error--no action found" ); + } /* end of action switch */ + } /* end of scanning one token */ + } /* end of user's declarations */ +} /* end of yylex */ - return ret_val; +/* yy_get_next_buffer - try to read in a new buffer + * + * Returns a code representing an action: + * EOB_ACT_LAST_MATCH - + * EOB_ACT_CONTINUE_SCAN - continue scanning from current position + * EOB_ACT_END_OF_FILE - end of file + */ +static int yy_get_next_buffer (void) +{ + char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; + char *source = (yytext_ptr); + int number_to_move, i; + int ret_val; + + if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] ) + YY_FATAL_ERROR( + "fatal flex scanner internal error--end of buffer missed" ); + + if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 ) + { /* Don't try to fill the buffer, so this is an EOF. */ + if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 ) + { + /* We matched a single character, the EOB, so + * treat this as a final EOF. + */ + return EOB_ACT_END_OF_FILE; + } + + else + { + /* We matched some text prior to the EOB, first + * process it. + */ + return EOB_ACT_LAST_MATCH; + } + } + + /* Try to read more data. */ + + /* First move last chars to start of buffer. */ + number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr) - 1); + + for ( i = 0; i < number_to_move; ++i ) + *(dest++) = *(source++); + + if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) + /* don't do the read, it's not guaranteed to return an EOF, + * just force an EOF + */ + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0; + + else + { + int num_to_read = + YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; + + while ( num_to_read <= 0 ) + { /* Not enough room in the buffer - grow it. */ + + /* just a shorter name for the current buffer */ + YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE; + + int yy_c_buf_p_offset = + (int) ((yy_c_buf_p) - b->yy_ch_buf); + + if ( b->yy_is_our_buffer ) + { + int new_size = b->yy_buf_size * 2; + + if ( new_size <= 0 ) + b->yy_buf_size += b->yy_buf_size / 8; + else + b->yy_buf_size *= 2; + + b->yy_ch_buf = (char *) + /* Include room in for 2 EOB chars. */ + yyrealloc( (void *) b->yy_ch_buf, + (yy_size_t) (b->yy_buf_size + 2) ); + } + else + /* Can't grow it, we don't own it. */ + b->yy_ch_buf = NULL; + + if ( ! b->yy_ch_buf ) + YY_FATAL_ERROR( + "fatal error - scanner input buffer overflow" ); + + (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset]; + + num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - + number_to_move - 1; + + } + + if ( num_to_read > YY_READ_BUF_SIZE ) + num_to_read = YY_READ_BUF_SIZE; + + /* Read in more data. */ + YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), + (yy_n_chars), num_to_read ); + + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); + } + + if ( (yy_n_chars) == 0 ) + { + if ( number_to_move == YY_MORE_ADJ ) + { + ret_val = EOB_ACT_END_OF_FILE; + yyrestart( yyin ); + } + + else + { + ret_val = EOB_ACT_LAST_MATCH; + YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = + YY_BUFFER_EOF_PENDING; + } + } + + else + ret_val = EOB_ACT_CONTINUE_SCAN; + + if (((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) { + /* Extend the array by 50%, plus the number we really need. */ + int new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1); + YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc( + (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size ); + if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) + YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" ); + /* "- 2" to take care of EOB's */ + YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2); + } + + (yy_n_chars) += number_to_move; + YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR; + YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR; + + (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; + + return ret_val; } /* yy_get_previous_state - get the state just before the EOB char was reached */ -static yy_state_type -yy_get_previous_state(void) + static yy_state_type yy_get_previous_state (void) { - yy_state_type yy_current_state; - char* yy_cp; - - yy_current_state = (yy_start); - - for (yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp) - { - YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); - if (yy_accept[yy_current_state]) - { - (yy_last_accepting_state) = yy_current_state; - (yy_last_accepting_cpos) = yy_cp; - } - while (yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state) - { - yy_current_state = (int)yy_def[yy_current_state]; - if (yy_current_state >= 19) - yy_c = yy_meta[yy_c]; - } - yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; - } - - return yy_current_state; + yy_state_type yy_current_state; + char *yy_cp; + + yy_current_state = (yy_start); + + for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) + { + YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); + if ( yy_accept[yy_current_state] ) + { + (yy_last_accepting_state) = yy_current_state; + (yy_last_accepting_cpos) = yy_cp; + } + while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) + { + yy_current_state = (int) yy_def[yy_current_state]; + if ( yy_current_state >= 19 ) + yy_c = yy_meta[yy_c]; + } + yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; + } + + return yy_current_state; } /* yy_try_NUL_trans - try to make a transition on the NUL character @@ -1195,450 +1254,443 @@ yy_get_previous_state(void) * synopsis * next_state = yy_try_NUL_trans( current_state ); */ -static yy_state_type -yy_try_NUL_trans(yy_state_type yy_current_state) + static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state ) { - int yy_is_jam; - char* yy_cp = (yy_c_buf_p); - - YY_CHAR yy_c = 1; - if (yy_accept[yy_current_state]) - { - (yy_last_accepting_state) = yy_current_state; - (yy_last_accepting_cpos) = yy_cp; - } - while (yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state) - { - yy_current_state = (int)yy_def[yy_current_state]; - if (yy_current_state >= 19) - yy_c = yy_meta[yy_c]; - } - yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; - yy_is_jam = (yy_current_state == 18); - - return yy_is_jam ? 0 : yy_current_state; + int yy_is_jam; + char *yy_cp = (yy_c_buf_p); + + YY_CHAR yy_c = 1; + if ( yy_accept[yy_current_state] ) + { + (yy_last_accepting_state) = yy_current_state; + (yy_last_accepting_cpos) = yy_cp; + } + while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) + { + yy_current_state = (int) yy_def[yy_current_state]; + if ( yy_current_state >= 19 ) + yy_c = yy_meta[yy_c]; + } + yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; + yy_is_jam = (yy_current_state == 18); + + return yy_is_jam ? 0 : yy_current_state; } #ifndef YY_NO_UNPUT -static void -yyunput(int c, char* yy_bp) + static void yyunput (int c, char * yy_bp ) { - char* yy_cp; - + char *yy_cp; + yy_cp = (yy_c_buf_p); - /* undo effects of setting up yytext */ - *yy_cp = (yy_hold_char); + /* undo effects of setting up yytext */ + *yy_cp = (yy_hold_char); - if (yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2) - { /* need to shift things up to make room */ - /* +2 for EOB chars. */ - yy_size_t number_to_move = (yy_n_chars) + 2; - char* dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2]; - char* source = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]; + if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) + { /* need to shift things up to make room */ + /* +2 for EOB chars. */ + int number_to_move = (yy_n_chars) + 2; + char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[ + YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2]; + char *source = + &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]; - while (source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf) - *--dest = *--source; + while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) + *--dest = *--source; - yy_cp += (int)(dest - source); - yy_bp += (int)(dest - source); - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = (int)YY_CURRENT_BUFFER_LVALUE->yy_buf_size; + yy_cp += (int) (dest - source); + yy_bp += (int) (dest - source); + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = + (yy_n_chars) = (int) YY_CURRENT_BUFFER_LVALUE->yy_buf_size; - if (yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2) - YY_FATAL_ERROR("flex scanner push-back overflow"); - } + if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) + YY_FATAL_ERROR( "flex scanner push-back overflow" ); + } - *--yy_cp = (char)c; + *--yy_cp = (char) c; - (yytext_ptr) = yy_bp; - (yy_hold_char) = *yy_cp; - (yy_c_buf_p) = yy_cp; + (yytext_ptr) = yy_bp; + (yy_hold_char) = *yy_cp; + (yy_c_buf_p) = yy_cp; } #endif #ifndef YY_NO_INPUT -# ifdef __cplusplus -static int -yyinput(void) -# else -static int -input(void) -# endif +#ifdef __cplusplus + static int yyinput (void) +#else + static int input (void) +#endif { - int c; - - *(yy_c_buf_p) = (yy_hold_char); - - if (*(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR) - { - /* yy_c_buf_p now points to the character we want to return. - * If this occurs *before* the EOB characters, then it's a - * valid NUL; if not, then we've hit the end of the buffer. - */ - if ((yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)]) - /* This was really a NUL. */ - *(yy_c_buf_p) = '\0'; + int c; + + *(yy_c_buf_p) = (yy_hold_char); + + if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR ) + { + /* yy_c_buf_p now points to the character we want to return. + * If this occurs *before* the EOB characters, then it's a + * valid NUL; if not, then we've hit the end of the buffer. + */ + if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) + /* This was really a NUL. */ + *(yy_c_buf_p) = '\0'; + + else + { /* need more input */ + int offset = (int) ((yy_c_buf_p) - (yytext_ptr)); + ++(yy_c_buf_p); + + switch ( yy_get_next_buffer( ) ) + { + case EOB_ACT_LAST_MATCH: + /* This happens because yy_g_n_b() + * sees that we've accumulated a + * token and flags that we need to + * try matching the token before + * proceeding. But for input(), + * there's no matching to consider. + * So convert the EOB_ACT_LAST_MATCH + * to EOB_ACT_END_OF_FILE. + */ + + /* Reset buffer status. */ + yyrestart( yyin ); + + /*FALLTHROUGH*/ + + case EOB_ACT_END_OF_FILE: + { + if ( yywrap( ) ) + return 0; + + if ( ! (yy_did_buffer_switch_on_eof) ) + YY_NEW_FILE; +#ifdef __cplusplus + return yyinput(); +#else + return input(); +#endif + } - else - { /* need more input */ - yy_size_t offset = (yy_c_buf_p) - (yytext_ptr); - ++(yy_c_buf_p); + case EOB_ACT_CONTINUE_SCAN: + (yy_c_buf_p) = (yytext_ptr) + offset; + break; + } + } + } - switch (yy_get_next_buffer()) - { - case EOB_ACT_LAST_MATCH: - /* This happens because yy_g_n_b() - * sees that we've accumulated a - * token and flags that we need to - * try matching the token before - * proceeding. But for input(), - * there's no matching to consider. - * So convert the EOB_ACT_LAST_MATCH - * to EOB_ACT_END_OF_FILE. - */ - - /* Reset buffer status. */ - yyrestart(yyin); - - /*FALLTHROUGH*/ - - case EOB_ACT_END_OF_FILE: - { - if (yywrap()) - return 0; - - if (!(yy_did_buffer_switch_on_eof)) - YY_NEW_FILE; -# ifdef __cplusplus - return yyinput(); -# else - return input(); -# endif - } + c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */ + *(yy_c_buf_p) = '\0'; /* preserve yytext */ + (yy_hold_char) = *++(yy_c_buf_p); - case EOB_ACT_CONTINUE_SCAN: - (yy_c_buf_p) = (yytext_ptr) + offset; - break; - } - } - } - - c = *(unsigned char*)(yy_c_buf_p); /* cast for 8-bit char's */ - *(yy_c_buf_p) = '\0'; /* preserve yytext */ - (yy_hold_char) = *++(yy_c_buf_p); - - return c; + return c; } -#endif /* ifndef YY_NO_INPUT */ +#endif /* ifndef YY_NO_INPUT */ /** Immediately switch to a different input stream. * @param input_file A readable stream. - * + * * @note This function does not reset the start condition to @c INITIAL . */ -void -yyrestart(FILE* input_file) + void yyrestart (FILE * input_file ) { - if (!YY_CURRENT_BUFFER) - { - yyensure_buffer_stack(); - YY_CURRENT_BUFFER_LVALUE = yy_create_buffer(yyin, YY_BUF_SIZE); - } - - yy_init_buffer(YY_CURRENT_BUFFER, input_file); - yy_load_buffer_state(); + + if ( ! YY_CURRENT_BUFFER ){ + yyensure_buffer_stack (); + YY_CURRENT_BUFFER_LVALUE = + yy_create_buffer( yyin, YY_BUF_SIZE ); + } + + yy_init_buffer( YY_CURRENT_BUFFER, input_file ); + yy_load_buffer_state( ); } /** Switch to a different input buffer. * @param new_buffer The new input buffer. - * + * */ -void -yy_switch_to_buffer(YY_BUFFER_STATE new_buffer) + void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ) { - /* TODO. We should be able to replace this entire function body - * with - * yypop_buffer_state(); - * yypush_buffer_state(new_buffer); + + /* TODO. We should be able to replace this entire function body + * with + * yypop_buffer_state(); + * yypush_buffer_state(new_buffer); */ - yyensure_buffer_stack(); - if (YY_CURRENT_BUFFER == new_buffer) - return; - - if (YY_CURRENT_BUFFER) - { - /* Flush out information for old buffer. */ - *(yy_c_buf_p) = (yy_hold_char); - YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); - } - - YY_CURRENT_BUFFER_LVALUE = new_buffer; - yy_load_buffer_state(); - - /* We don't actually know whether we did this switch during - * EOF (yywrap()) processing, but the only time this flag - * is looked at is after yywrap() is called, so it's safe - * to go ahead and always set it. - */ - (yy_did_buffer_switch_on_eof) = 1; + yyensure_buffer_stack (); + if ( YY_CURRENT_BUFFER == new_buffer ) + return; + + if ( YY_CURRENT_BUFFER ) + { + /* Flush out information for old buffer. */ + *(yy_c_buf_p) = (yy_hold_char); + YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); + } + + YY_CURRENT_BUFFER_LVALUE = new_buffer; + yy_load_buffer_state( ); + + /* We don't actually know whether we did this switch during + * EOF (yywrap()) processing, but the only time this flag + * is looked at is after yywrap() is called, so it's safe + * to go ahead and always set it. + */ + (yy_did_buffer_switch_on_eof) = 1; } -static void -yy_load_buffer_state(void) +static void yy_load_buffer_state (void) { - (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; - (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; - yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file; - (yy_hold_char) = *(yy_c_buf_p); + (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; + (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; + yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file; + (yy_hold_char) = *(yy_c_buf_p); } /** Allocate and initialize an input buffer state. * @param file A readable stream. * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE. - * + * * @return the allocated buffer state. */ -YY_BUFFER_STATE -yy_create_buffer(FILE* file, int size) + YY_BUFFER_STATE yy_create_buffer (FILE * file, int size ) { - YY_BUFFER_STATE b; + YY_BUFFER_STATE b; + + b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) ); + if ( ! b ) + YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); - b = (YY_BUFFER_STATE)yyalloc(sizeof(struct yy_buffer_state)); - if (!b) - YY_FATAL_ERROR("out of dynamic memory in yy_create_buffer()"); + b->yy_buf_size = size; - b->yy_buf_size = size; + /* yy_ch_buf has to be 2 characters longer than the size given because + * we need to put in 2 end-of-buffer characters. + */ + b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) ); + if ( ! b->yy_ch_buf ) + YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); - /* yy_ch_buf has to be 2 characters longer than the size given because - * we need to put in 2 end-of-buffer characters. - */ - b->yy_ch_buf = (char*)yyalloc((yy_size_t)(b->yy_buf_size + 2)); - if (!b->yy_ch_buf) - YY_FATAL_ERROR("out of dynamic memory in yy_create_buffer()"); + b->yy_is_our_buffer = 1; - b->yy_is_our_buffer = 1; + yy_init_buffer( b, file ); - yy_init_buffer(b, file); - - return b; + return b; } /** Destroy the buffer. * @param b a buffer created with yy_create_buffer() - * + * */ -void -yy_delete_buffer(YY_BUFFER_STATE b) + void yy_delete_buffer (YY_BUFFER_STATE b ) { - if (!b) - return; + + if ( ! b ) + return; - if (b == YY_CURRENT_BUFFER) /* Not sure if we should pop here. */ - YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE)0; + if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */ + YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; - if (b->yy_is_our_buffer) - yyfree((void*)b->yy_ch_buf); + if ( b->yy_is_our_buffer ) + yyfree( (void *) b->yy_ch_buf ); - yyfree((void*)b); + yyfree( (void *) b ); } /* Initializes or reinitializes a buffer. * This function is sometimes called more than once on the same buffer, * such as during a yyrestart() or at EOF. */ -static void -yy_init_buffer(YY_BUFFER_STATE b, FILE* file) + static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file ) { - int oerrno = errno; + int oerrno = errno; + + yy_flush_buffer( b ); - yy_flush_buffer(b); - - b->yy_input_file = file; - b->yy_fill_buffer = 1; + b->yy_input_file = file; + b->yy_fill_buffer = 1; /* If b is the current buffer, then yy_init_buffer was _probably_ * called from yyrestart() or through yy_get_next_buffer. * In that case, we don't want to reset the lineno or column. */ - if (b != YY_CURRENT_BUFFER) - { + if (b != YY_CURRENT_BUFFER){ b->yy_bs_lineno = 1; b->yy_bs_column = 0; } - b->yy_is_interactive = 1; + b->yy_is_interactive = 1; - errno = oerrno; + errno = oerrno; } /** Discard all buffered characters. On the next scan, YY_INPUT will be called. * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. - * + * */ -void -yy_flush_buffer(YY_BUFFER_STATE b) + void yy_flush_buffer (YY_BUFFER_STATE b ) { - if (!b) - return; + if ( ! b ) + return; - b->yy_n_chars = 0; + b->yy_n_chars = 0; - /* We always need two end-of-buffer characters. The first causes - * a transition to the end-of-buffer state. The second causes - * a jam in that state. - */ - b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; - b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; + /* We always need two end-of-buffer characters. The first causes + * a transition to the end-of-buffer state. The second causes + * a jam in that state. + */ + b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; + b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; - b->yy_buf_pos = &b->yy_ch_buf[0]; + b->yy_buf_pos = &b->yy_ch_buf[0]; - b->yy_at_bol = 1; - b->yy_buffer_status = YY_BUFFER_NEW; + b->yy_at_bol = 1; + b->yy_buffer_status = YY_BUFFER_NEW; - if (b == YY_CURRENT_BUFFER) - yy_load_buffer_state(); + if ( b == YY_CURRENT_BUFFER ) + yy_load_buffer_state( ); } /** Pushes the new state onto the stack. The new state becomes * the current state. This function will allocate the stack * if necessary. * @param new_buffer The new state. - * + * */ -void -yypush_buffer_state(YY_BUFFER_STATE new_buffer) +void yypush_buffer_state (YY_BUFFER_STATE new_buffer ) { - if (new_buffer == NULL) - return; - - yyensure_buffer_stack(); - - /* This block is copied from yy_switch_to_buffer. */ - if (YY_CURRENT_BUFFER) - { - /* Flush out information for old buffer. */ - *(yy_c_buf_p) = (yy_hold_char); - YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); - } - - /* Only push if top exists. Otherwise, replace top. */ - if (YY_CURRENT_BUFFER) - (yy_buffer_stack_top)++; - YY_CURRENT_BUFFER_LVALUE = new_buffer; - - /* copied from yy_switch_to_buffer. */ - yy_load_buffer_state(); - (yy_did_buffer_switch_on_eof) = 1; + if (new_buffer == NULL) + return; + + yyensure_buffer_stack(); + + /* This block is copied from yy_switch_to_buffer. */ + if ( YY_CURRENT_BUFFER ) + { + /* Flush out information for old buffer. */ + *(yy_c_buf_p) = (yy_hold_char); + YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); + } + + /* Only push if top exists. Otherwise, replace top. */ + if (YY_CURRENT_BUFFER) + (yy_buffer_stack_top)++; + YY_CURRENT_BUFFER_LVALUE = new_buffer; + + /* copied from yy_switch_to_buffer. */ + yy_load_buffer_state( ); + (yy_did_buffer_switch_on_eof) = 1; } /** Removes and deletes the top of the stack, if present. * The next element becomes the new top. - * + * */ -void -yypop_buffer_state(void) +void yypop_buffer_state (void) { - if (!YY_CURRENT_BUFFER) - return; - - yy_delete_buffer(YY_CURRENT_BUFFER); - YY_CURRENT_BUFFER_LVALUE = NULL; - if ((yy_buffer_stack_top) > 0) - --(yy_buffer_stack_top); - - if (YY_CURRENT_BUFFER) - { - yy_load_buffer_state(); - (yy_did_buffer_switch_on_eof) = 1; - } + if (!YY_CURRENT_BUFFER) + return; + + yy_delete_buffer(YY_CURRENT_BUFFER ); + YY_CURRENT_BUFFER_LVALUE = NULL; + if ((yy_buffer_stack_top) > 0) + --(yy_buffer_stack_top); + + if (YY_CURRENT_BUFFER) { + yy_load_buffer_state( ); + (yy_did_buffer_switch_on_eof) = 1; + } } /* Allocates the stack if it does not exist. * Guarantees space for at least one push. */ -static void -yyensure_buffer_stack(void) +static void yyensure_buffer_stack (void) { - yy_size_t num_to_alloc; + yy_size_t num_to_alloc; + + if (!(yy_buffer_stack)) { - if (!(yy_buffer_stack)) - { - /* First allocation is just for 2 elements, since we don't know if this - * scanner will even need a stack. We use 2 instead of 1 to avoid an - * immediate realloc on the next call. + /* First allocation is just for 2 elements, since we don't know if this + * scanner will even need a stack. We use 2 instead of 1 to avoid an + * immediate realloc on the next call. */ - num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */ - (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc(num_to_alloc * sizeof(struct yy_buffer_state*)); - if (!(yy_buffer_stack)) - YY_FATAL_ERROR("out of dynamic memory in yyensure_buffer_stack()"); - - memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*)); - - (yy_buffer_stack_max) = num_to_alloc; - (yy_buffer_stack_top) = 0; - return; - } - - if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1) - { - /* Increase the buffer to prepare for a possible push. */ - yy_size_t grow_size = 8 /* arbitrary grow size */; - - num_to_alloc = (yy_buffer_stack_max) + grow_size; - (yy_buffer_stack) = - (struct yy_buffer_state**)yyrealloc((yy_buffer_stack), num_to_alloc * sizeof(struct yy_buffer_state*)); - if (!(yy_buffer_stack)) - YY_FATAL_ERROR("out of dynamic memory in yyensure_buffer_stack()"); - - /* zero only the new slots.*/ - memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*)); - (yy_buffer_stack_max) = num_to_alloc; - } + num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */ + (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc + (num_to_alloc * sizeof(struct yy_buffer_state*) + ); + if ( ! (yy_buffer_stack) ) + YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); + + memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*)); + + (yy_buffer_stack_max) = num_to_alloc; + (yy_buffer_stack_top) = 0; + return; + } + + if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){ + + /* Increase the buffer to prepare for a possible push. */ + yy_size_t grow_size = 8 /* arbitrary grow size */; + + num_to_alloc = (yy_buffer_stack_max) + grow_size; + (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc + ((yy_buffer_stack), + num_to_alloc * sizeof(struct yy_buffer_state*) + ); + if ( ! (yy_buffer_stack) ) + YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); + + /* zero only the new slots.*/ + memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*)); + (yy_buffer_stack_max) = num_to_alloc; + } } #ifndef YY_EXIT_FAILURE -# define YY_EXIT_FAILURE 2 +#define YY_EXIT_FAILURE 2 #endif -static void yynoreturn -yy_fatal_error(const char* msg) +static void yynoreturn yy_fatal_error (const char* msg ) { - fprintf(stderr, "%s\n", msg); - exit(YY_EXIT_FAILURE); + fprintf( stderr, "%s\n", msg ); + exit( YY_EXIT_FAILURE ); } /* Redefine yyless() so it works in section 3 code. */ #undef yyless -#define yyless(n) \ - do \ - { \ - /* Undo effects of setting up yytext. */ \ - yy_size_t yyless_macro_arg = (n); \ - YY_LESS_LINENO(yyless_macro_arg); \ - yytext[yyleng] = (yy_hold_char); \ - (yy_c_buf_p) = yytext + yyless_macro_arg; \ - (yy_hold_char) = *(yy_c_buf_p); \ - *(yy_c_buf_p) = '\0'; \ - yyleng = yyless_macro_arg; \ - } while (0) +#define yyless(n) \ + do \ + { \ + /* Undo effects of setting up yytext. */ \ + int yyless_macro_arg = (n); \ + YY_LESS_LINENO(yyless_macro_arg);\ + yytext[yyleng] = (yy_hold_char); \ + (yy_c_buf_p) = yytext + yyless_macro_arg; \ + (yy_hold_char) = *(yy_c_buf_p); \ + *(yy_c_buf_p) = '\0'; \ + yyleng = yyless_macro_arg; \ + } \ + while ( 0 ) /* Accessor methods (get/set functions) to struct members. */ /** Get the current token. - * + * */ -static int -yy_init_globals(void) +static int yy_init_globals (void) { - /* Initialization is the same as for the non-reentrant scanner. + /* Initialization is the same as for the non-reentrant scanner. * This function is called from yylex_destroy(), so don't allocate here. */ @@ -1665,24 +1717,23 @@ yy_init_globals(void) } /* yylex_destroy is for both reentrant and non-reentrant scanners. */ -int -yylex_destroy(void) +int yylex_destroy (void) { + /* Pop the buffer stack, destroying each element. */ - while (YY_CURRENT_BUFFER) - { - yy_delete_buffer(YY_CURRENT_BUFFER); - YY_CURRENT_BUFFER_LVALUE = NULL; - yypop_buffer_state(); - } + while(YY_CURRENT_BUFFER){ + yy_delete_buffer( YY_CURRENT_BUFFER ); + YY_CURRENT_BUFFER_LVALUE = NULL; + yypop_buffer_state(); + } - /* Destroy the stack itself. */ - yyfree((yy_buffer_stack)); - (yy_buffer_stack) = NULL; + /* Destroy the stack itself. */ + yyfree((yy_buffer_stack) ); + (yy_buffer_stack) = NULL; /* Reset the globals. This is important in a non-reentrant scanner so the next time * yylex() is called, initialization will occur. */ - yy_init_globals(); + yy_init_globals( ); return 0; } @@ -1692,74 +1743,72 @@ yylex_destroy(void) */ #ifndef yytext_ptr -static void -yy_flex_strncpy(char* s1, const char* s2, int n) +static void yy_flex_strncpy (char* s1, const char * s2, int n ) { - int i; - for (i = 0; i < n; ++i) - s1[i] = s2[i]; + + int i; + for ( i = 0; i < n; ++i ) + s1[i] = s2[i]; } #endif #ifdef YY_NEED_STRLEN -static int -yy_flex_strlen(const char* s) +static int yy_flex_strlen (const char * s ) { - int n; - for (n = 0; s[n]; ++n) - ; + int n; + for ( n = 0; s[n]; ++n ) + ; - return n; + return n; } #endif -void* -yyalloc(yy_size_t size) +void *yyalloc (yy_size_t size ) { - return malloc(size); + return malloc(size); } -void* -yyrealloc(void* ptr, yy_size_t size) +void *yyrealloc (void * ptr, yy_size_t size ) { - /* The cast to (char *) in the following accommodates both - * implementations that use char* generic pointers, and those - * that use void* generic pointers. It works with the latter - * because both ANSI C and C++ allow castless assignment from - * any pointer type to void*, and deal with argument conversions - * as though doing an assignment. - */ - return realloc(ptr, size); + + /* The cast to (char *) in the following accommodates both + * implementations that use char* generic pointers, and those + * that use void* generic pointers. It works with the latter + * because both ANSI C and C++ allow castless assignment from + * any pointer type to void*, and deal with argument conversions + * as though doing an assignment. + */ + return realloc(ptr, size); } -void -yyfree(void* ptr) +void yyfree (void * ptr ) { - free((char*)ptr); /* see yyrealloc() for (char *) cast */ + free( (char *) ptr ); /* see yyrealloc() for (char *) cast */ } #define YYTABLES_NAME "yytables" #line 219 "src/IceStorm/Scanner.l" + namespace IceStorm { // This function is always called once, right before scanning begins. // It fills the keyword map with all keyword-token pairs. void initScanner() { - keywordMap["help"] = ICE_STORM_HELP; - keywordMap["quit"] = ICE_STORM_EXIT; - keywordMap["exit"] = ICE_STORM_EXIT; - keywordMap["current"] = ICE_STORM_CURRENT; - keywordMap["create"] = ICE_STORM_CREATE; - keywordMap["destroy"] = ICE_STORM_DESTROY; - keywordMap["link"] = ICE_STORM_LINK; - keywordMap["unlink"] = ICE_STORM_UNLINK; - keywordMap["links"] = ICE_STORM_LINKS; - keywordMap["topics"] = ICE_STORM_TOPICS; - keywordMap["replica"] = ICE_STORM_REPLICA; - keywordMap["subscribers"] = ICE_STORM_SUBSCRIBERS; + keywordMap["help"] = ICESTORM_HELP; + keywordMap["quit"] = ICESTORM_EXIT; + keywordMap["exit"] = ICESTORM_EXIT; + keywordMap["current"] = ICESTORM_CURRENT; + keywordMap["create"] = ICESTORM_CREATE; + keywordMap["destroy"] = ICESTORM_DESTROY; + keywordMap["link"] = ICESTORM_LINK; + keywordMap["unlink"] = ICESTORM_UNLINK; + keywordMap["links"] = ICESTORM_LINKS; + keywordMap["topics"] = ICESTORM_TOPICS; + keywordMap["replica"] = ICESTORM_REPLICA; + keywordMap["subscribers"] = ICESTORM_SUBSCRIBERS; } // This function is called whenever the scanner encounters an unrecoverable error. @@ -1771,3 +1820,4 @@ namespace IceStorm exit(YY_EXIT_FAILURE); } } + diff --git a/cpp/src/IceStorm/Scanner.l b/cpp/src/IceStorm/Scanner.l index 827681bd440..7aa92e4e9de 100644 --- a/cpp/src/IceStorm/Scanner.l +++ b/cpp/src/IceStorm/Scanner.l @@ -160,7 +160,7 @@ keyword [[:alpha:]]* } yylval->clear(); yylval->push_back(s); - return ICE_STORM_STRING; + return ICESTORM_STRING; } \' { @@ -185,7 +185,7 @@ keyword [[:alpha:]]* } yylval->clear(); yylval->push_back(s); - return ICE_STORM_STRING; + return ICESTORM_STRING; } . { @@ -212,7 +212,7 @@ keyword [[:alpha:]]* yylval->push_back(s); const auto pos = keywordMap.find(s); - return pos != keywordMap.end() ? pos->second : ICE_STORM_STRING; + return pos != keywordMap.end() ? pos->second : ICESTORM_STRING; } %% @@ -223,18 +223,18 @@ namespace IceStorm // It fills the keyword map with all keyword-token pairs. void initScanner() { - keywordMap["help"] = ICE_STORM_HELP; - keywordMap["quit"] = ICE_STORM_EXIT; - keywordMap["exit"] = ICE_STORM_EXIT; - keywordMap["current"] = ICE_STORM_CURRENT; - keywordMap["create"] = ICE_STORM_CREATE; - keywordMap["destroy"] = ICE_STORM_DESTROY; - keywordMap["link"] = ICE_STORM_LINK; - keywordMap["unlink"] = ICE_STORM_UNLINK; - keywordMap["links"] = ICE_STORM_LINKS; - keywordMap["topics"] = ICE_STORM_TOPICS; - keywordMap["replica"] = ICE_STORM_REPLICA; - keywordMap["subscribers"] = ICE_STORM_SUBSCRIBERS; + keywordMap["help"] = ICESTORM_HELP; + keywordMap["quit"] = ICESTORM_EXIT; + keywordMap["exit"] = ICESTORM_EXIT; + keywordMap["current"] = ICESTORM_CURRENT; + keywordMap["create"] = ICESTORM_CREATE; + keywordMap["destroy"] = ICESTORM_DESTROY; + keywordMap["link"] = ICESTORM_LINK; + keywordMap["unlink"] = ICESTORM_UNLINK; + keywordMap["links"] = ICESTORM_LINKS; + keywordMap["topics"] = ICESTORM_TOPICS; + keywordMap["replica"] = ICESTORM_REPLICA; + keywordMap["subscribers"] = ICESTORM_SUBSCRIBERS; } // This function is called whenever the scanner encounters an unrecoverable error. diff --git a/cpp/src/IceStorm/Service.h b/cpp/src/IceStorm/Service.h index 28077031f27..fa0f7e74cb9 100644 --- a/cpp/src/IceStorm/Service.h +++ b/cpp/src/IceStorm/Service.h @@ -12,11 +12,11 @@ // Automatically link with IceStormService[D].lib // -#if !defined(ICE_BUILDING_ICE_STORM_SERVICE) && defined(ICESTORM_SERVICE_API_EXPORTS) -# define ICE_BUILDING_ICE_STORM_SERVICE +#if !defined(ICE_BUILDING_ICESTORM_SERVICE) && defined(ICESTORM_SERVICE_API_EXPORTS) +# define ICE_BUILDING_ICESTORM_SERVICE #endif -#if defined(_MSC_VER) && !defined(ICE_BUILDING_ICE_STORM_SERVICE) +#if defined(_MSC_VER) && !defined(ICE_BUILDING_ICESTORM_SERVICE) # pragma comment(lib, ICE_LIBNAME("IceStormService")) #endif diff --git a/cpp/src/Slice/Grammar.cpp b/cpp/src/Slice/Grammar.cpp index 7b6ac8ae322..1a69fe43a48 100644 --- a/cpp/src/Slice/Grammar.cpp +++ b/cpp/src/Slice/Grammar.cpp @@ -731,22 +731,22 @@ static const yytype_int16 yyrline[] = 272, 277, 276, 282, 281, 286, 291, 290, 296, 295, 300, 305, 304, 310, 309, 314, 319, 318, 323, 328, 327, 333, 332, 337, 341, 351, 350, 381, 380, 464, - 468, 479, 490, 489, 515, 523, 532, 545, 563, 639, - 645, 656, 673, 686, 690, 701, 712, 711, 750, 754, - 765, 790, 878, 890, 903, 902, 936, 970, 979, 982, - 990, 999, 1002, 1006, 1014, 1044, 1075, 1097, 1123, 1138, - 1144, 1154, 1178, 1208, 1232, 1267, 1266, 1289, 1288, 1311, - 1315, 1326, 1340, 1339, 1373, 1408, 1443, 1448, 1458, 1462, - 1471, 1480, 1483, 1487, 1495, 1502, 1514, 1526, 1537, 1545, - 1559, 1569, 1585, 1589, 1601, 1600, 1632, 1631, 1649, 1661, - 1673, 1682, 1688, 1706, 1718, 1722, 1763, 1769, 1780, 1783, - 1799, 1815, 1827, 1839, 1850, 1866, 1870, 1879, 1882, 1890, - 1891, 1892, 1893, 1894, 1895, 1896, 1897, 1898, 1899, 1904, - 1908, 1913, 1944, 1980, 1986, 1994, 2001, 2013, 2022, 2031, - 2066, 2073, 2080, 2092, 2101, 2115, 2116, 2117, 2118, 2119, - 2120, 2121, 2122, 2123, 2124, 2125, 2126, 2127, 2128, 2129, - 2130, 2131, 2132, 2133, 2134, 2135, 2136, 2137, 2138, 2139, - 2140, 2141 + 468, 479, 490, 489, 515, 523, 532, 543, 561, 637, + 643, 654, 671, 684, 688, 699, 710, 709, 748, 752, + 763, 788, 876, 888, 901, 900, 934, 968, 977, 980, + 988, 997, 1000, 1004, 1012, 1042, 1073, 1095, 1121, 1136, + 1142, 1152, 1176, 1206, 1230, 1265, 1264, 1287, 1286, 1309, + 1313, 1324, 1338, 1337, 1371, 1406, 1441, 1446, 1456, 1460, + 1469, 1478, 1481, 1485, 1493, 1500, 1512, 1524, 1535, 1543, + 1557, 1567, 1583, 1587, 1599, 1598, 1630, 1629, 1647, 1659, + 1671, 1680, 1686, 1704, 1716, 1720, 1761, 1767, 1778, 1781, + 1797, 1813, 1825, 1837, 1848, 1864, 1868, 1877, 1880, 1888, + 1889, 1890, 1891, 1892, 1893, 1894, 1895, 1896, 1897, 1902, + 1906, 1911, 1942, 1978, 1984, 1992, 1999, 2011, 2020, 2029, + 2064, 2071, 2078, 2090, 2099, 2113, 2114, 2115, 2116, 2117, + 2118, 2119, 2120, 2121, 2122, 2123, 2124, 2125, 2126, 2127, + 2128, 2129, 2130, 2131, 2132, 2133, 2134, 2135, 2136, 2137, + 2138, 2139 }; #endif @@ -2180,11 +2180,11 @@ YYLTYPE yylloc = yyloc_default; auto ident = dynamic_pointer_cast(yyvsp[0]); yyval = make_shared(type, ident->v); } -#line 2186 "src/Slice/Grammar.cpp" +#line 2184 "src/Slice/Grammar.cpp" break; case 57: /* optional: ICE_OPTIONAL_OPEN ICE_INTEGER_LITERAL ')' */ -#line 546 "src/Slice/Grammar.y" +#line 544 "src/Slice/Grammar.y" { auto i = dynamic_pointer_cast(yyvsp[-1]); @@ -2202,11 +2202,11 @@ YYLTYPE yylloc = yyloc_default; auto m = make_shared(tag); yyval = m; } -#line 2208 "src/Slice/Grammar.cpp" +#line 2206 "src/Slice/Grammar.cpp" break; case 58: /* optional: ICE_OPTIONAL_OPEN scoped_name ')' */ -#line 564 "src/Slice/Grammar.y" +#line 562 "src/Slice/Grammar.y" { auto scoped = dynamic_pointer_cast(yyvsp[-1]); ContainerPtr cont = currentUnit->currentContainer(); @@ -2282,31 +2282,31 @@ YYLTYPE yylloc = yyloc_default; auto m = make_shared(tag); yyval = m; } -#line 2288 "src/Slice/Grammar.cpp" +#line 2286 "src/Slice/Grammar.cpp" break; case 59: /* optional: ICE_OPTIONAL_OPEN ')' */ -#line 640 "src/Slice/Grammar.y" +#line 638 "src/Slice/Grammar.y" { currentUnit->error("missing tag"); auto m = make_shared(-1); // Dummy yyval = m; } -#line 2298 "src/Slice/Grammar.cpp" +#line 2296 "src/Slice/Grammar.cpp" break; case 60: /* optional: ICE_OPTIONAL */ -#line 646 "src/Slice/Grammar.y" +#line 644 "src/Slice/Grammar.y" { currentUnit->error("missing tag"); auto m = make_shared(-1); // Dummy yyval = m; } -#line 2308 "src/Slice/Grammar.cpp" +#line 2306 "src/Slice/Grammar.cpp" break; case 61: /* optional_type_id: optional type_id */ -#line 657 "src/Slice/Grammar.y" +#line 655 "src/Slice/Grammar.y" { auto m = dynamic_pointer_cast(yyvsp[-1]); auto ts = dynamic_pointer_cast(yyvsp[0]); @@ -2323,11 +2323,11 @@ YYLTYPE yylloc = yyloc_default; yyval = m; } -#line 2329 "src/Slice/Grammar.cpp" +#line 2327 "src/Slice/Grammar.cpp" break; case 62: /* optional_type_id: type_id */ -#line 674 "src/Slice/Grammar.y" +#line 672 "src/Slice/Grammar.y" { auto ts = dynamic_pointer_cast(yyvsp[0]); auto m = make_shared(-1); @@ -2335,38 +2335,38 @@ YYLTYPE yylloc = yyloc_default; m->name = ts->name; yyval = m; } -#line 2341 "src/Slice/Grammar.cpp" +#line 2339 "src/Slice/Grammar.cpp" break; case 63: /* struct_id: ICE_STRUCT ICE_IDENTIFIER */ -#line 687 "src/Slice/Grammar.y" +#line 685 "src/Slice/Grammar.y" { yyval = yyvsp[0]; } -#line 2349 "src/Slice/Grammar.cpp" +#line 2347 "src/Slice/Grammar.cpp" break; case 64: /* struct_id: ICE_STRUCT keyword */ -#line 691 "src/Slice/Grammar.y" +#line 689 "src/Slice/Grammar.y" { auto ident = dynamic_pointer_cast(yyvsp[0]); currentUnit->error("keyword `" + ident->v + "' cannot be used as struct name"); yyval = yyvsp[0]; // Dummy } -#line 2359 "src/Slice/Grammar.cpp" +#line 2357 "src/Slice/Grammar.cpp" break; case 65: /* struct_decl: struct_id */ -#line 702 "src/Slice/Grammar.y" +#line 700 "src/Slice/Grammar.y" { currentUnit->error("structs cannot be forward declared"); yyval = nullptr; // Dummy } -#line 2368 "src/Slice/Grammar.cpp" +#line 2366 "src/Slice/Grammar.cpp" break; case 66: /* @17: %empty */ -#line 712 "src/Slice/Grammar.y" +#line 710 "src/Slice/Grammar.y" { auto ident = dynamic_pointer_cast(yyvsp[0]); ContainerPtr cont = currentUnit->currentContainer(); @@ -2384,11 +2384,11 @@ YYLTYPE yylloc = yyloc_default; } yyval = st; } -#line 2390 "src/Slice/Grammar.cpp" +#line 2388 "src/Slice/Grammar.cpp" break; case 67: /* struct_def: struct_id @17 '{' data_members '}' */ -#line 730 "src/Slice/Grammar.y" +#line 728 "src/Slice/Grammar.y" { if (yyvsp[-3]) { @@ -2404,29 +2404,29 @@ YYLTYPE yylloc = yyloc_default; currentUnit->error("struct `" + st->name() + "' must have at least one member"); // $$ is a dummy } } -#line 2410 "src/Slice/Grammar.cpp" +#line 2408 "src/Slice/Grammar.cpp" break; case 68: /* class_name: ICE_CLASS ICE_IDENTIFIER */ -#line 751 "src/Slice/Grammar.y" +#line 749 "src/Slice/Grammar.y" { yyval = yyvsp[0]; } -#line 2418 "src/Slice/Grammar.cpp" +#line 2416 "src/Slice/Grammar.cpp" break; case 69: /* class_name: ICE_CLASS keyword */ -#line 755 "src/Slice/Grammar.y" +#line 753 "src/Slice/Grammar.y" { auto ident = dynamic_pointer_cast(yyvsp[0]); currentUnit->error("keyword `" + ident->v + "' cannot be used as class name"); yyval = yyvsp[0]; // Dummy } -#line 2428 "src/Slice/Grammar.cpp" +#line 2426 "src/Slice/Grammar.cpp" break; case 70: /* class_id: ICE_CLASS ICE_IDENT_OPEN ICE_INTEGER_LITERAL ')' */ -#line 766 "src/Slice/Grammar.y" +#line 764 "src/Slice/Grammar.y" { int64_t id = dynamic_pointer_cast(yyvsp[-1])->v; if (id < 0) @@ -2451,11 +2451,11 @@ YYLTYPE yylloc = yyloc_default; classId->t = static_cast(id); yyval = classId; } -#line 2457 "src/Slice/Grammar.cpp" +#line 2455 "src/Slice/Grammar.cpp" break; case 71: /* class_id: ICE_CLASS ICE_IDENT_OPEN scoped_name ')' */ -#line 791 "src/Slice/Grammar.y" +#line 789 "src/Slice/Grammar.y" { auto scoped = dynamic_pointer_cast(yyvsp[-1]); @@ -2543,33 +2543,33 @@ YYLTYPE yylloc = yyloc_default; yyval = classId; } -#line 2549 "src/Slice/Grammar.cpp" +#line 2547 "src/Slice/Grammar.cpp" break; case 72: /* class_id: class_name */ -#line 879 "src/Slice/Grammar.y" +#line 877 "src/Slice/Grammar.y" { auto classId = make_shared(); classId->v = dynamic_pointer_cast(yyvsp[0])->v; classId->t = -1; yyval = classId; } -#line 2560 "src/Slice/Grammar.cpp" +#line 2558 "src/Slice/Grammar.cpp" break; case 73: /* class_decl: class_name */ -#line 891 "src/Slice/Grammar.y" +#line 889 "src/Slice/Grammar.y" { auto ident = dynamic_pointer_cast(yyvsp[0]); ContainerPtr cont = currentUnit->currentContainer(); ClassDeclPtr cl = cont->createClassDecl(ident->v); yyval = cl; } -#line 2571 "src/Slice/Grammar.cpp" +#line 2569 "src/Slice/Grammar.cpp" break; case 74: /* @18: %empty */ -#line 903 "src/Slice/Grammar.y" +#line 901 "src/Slice/Grammar.y" { auto ident = dynamic_pointer_cast(yyvsp[-1]); ContainerPtr cont = currentUnit->currentContainer(); @@ -2586,11 +2586,11 @@ YYLTYPE yylloc = yyloc_default; yyval = nullptr; } } -#line 2592 "src/Slice/Grammar.cpp" +#line 2590 "src/Slice/Grammar.cpp" break; case 75: /* class_def: class_id class_extends @18 '{' data_members '}' */ -#line 920 "src/Slice/Grammar.y" +#line 918 "src/Slice/Grammar.y" { if (yyvsp[-3]) { @@ -2602,11 +2602,11 @@ YYLTYPE yylloc = yyloc_default; yyval = nullptr; } } -#line 2608 "src/Slice/Grammar.cpp" +#line 2606 "src/Slice/Grammar.cpp" break; case 76: /* class_extends: extends scoped_name */ -#line 937 "src/Slice/Grammar.y" +#line 935 "src/Slice/Grammar.y" { auto scoped = dynamic_pointer_cast(yyvsp[0]); ContainerPtr cont = currentUnit->currentContainer(); @@ -2640,33 +2640,33 @@ YYLTYPE yylloc = yyloc_default; } } } -#line 2646 "src/Slice/Grammar.cpp" +#line 2644 "src/Slice/Grammar.cpp" break; case 77: /* class_extends: %empty */ -#line 971 "src/Slice/Grammar.y" +#line 969 "src/Slice/Grammar.y" { yyval = nullptr; } -#line 2654 "src/Slice/Grammar.cpp" +#line 2652 "src/Slice/Grammar.cpp" break; case 78: /* extends: ICE_EXTENDS */ -#line 980 "src/Slice/Grammar.y" +#line 978 "src/Slice/Grammar.y" { } -#line 2661 "src/Slice/Grammar.cpp" +#line 2659 "src/Slice/Grammar.cpp" break; case 79: /* extends: ':' */ -#line 983 "src/Slice/Grammar.y" +#line 981 "src/Slice/Grammar.y" { } -#line 2668 "src/Slice/Grammar.cpp" +#line 2666 "src/Slice/Grammar.cpp" break; case 80: /* data_members: metadata data_member ';' data_members */ -#line 991 "src/Slice/Grammar.y" +#line 989 "src/Slice/Grammar.y" { auto metadata = dynamic_pointer_cast(yyvsp[-3]); auto contained = dynamic_pointer_cast(yyvsp[-2]); @@ -2675,33 +2675,33 @@ YYLTYPE yylloc = yyloc_default; contained->setMetadata(metadata->v); } } -#line 2681 "src/Slice/Grammar.cpp" +#line 2679 "src/Slice/Grammar.cpp" break; case 81: /* data_members: error ';' data_members */ -#line 1000 "src/Slice/Grammar.y" +#line 998 "src/Slice/Grammar.y" { } -#line 2688 "src/Slice/Grammar.cpp" +#line 2686 "src/Slice/Grammar.cpp" break; case 82: /* data_members: metadata data_member */ -#line 1003 "src/Slice/Grammar.y" +#line 1001 "src/Slice/Grammar.y" { currentUnit->error("`;' missing after definition"); } -#line 2696 "src/Slice/Grammar.cpp" +#line 2694 "src/Slice/Grammar.cpp" break; case 83: /* data_members: %empty */ -#line 1007 "src/Slice/Grammar.y" +#line 1005 "src/Slice/Grammar.y" { } -#line 2703 "src/Slice/Grammar.cpp" +#line 2701 "src/Slice/Grammar.cpp" break; case 84: /* data_member: optional_type_id */ -#line 1015 "src/Slice/Grammar.y" +#line 1013 "src/Slice/Grammar.y" { auto def = dynamic_pointer_cast(yyvsp[0]); auto cl = dynamic_pointer_cast(currentUnit->currentContainer()); @@ -2731,11 +2731,11 @@ YYLTYPE yylloc = yyloc_default; currentUnit->currentContainer()->checkIntroduced(def->name, dm); yyval = dm; } -#line 2737 "src/Slice/Grammar.cpp" +#line 2735 "src/Slice/Grammar.cpp" break; case 85: /* data_member: optional_type_id '=' const_initializer */ -#line 1045 "src/Slice/Grammar.y" +#line 1043 "src/Slice/Grammar.y" { auto def = dynamic_pointer_cast(yyvsp[-2]); auto value = dynamic_pointer_cast(yyvsp[0]); @@ -2766,11 +2766,11 @@ YYLTYPE yylloc = yyloc_default; currentUnit->currentContainer()->checkIntroduced(def->name, dm); yyval = dm; } -#line 2772 "src/Slice/Grammar.cpp" +#line 2770 "src/Slice/Grammar.cpp" break; case 86: /* data_member: type keyword */ -#line 1076 "src/Slice/Grammar.y" +#line 1074 "src/Slice/Grammar.y" { auto type = dynamic_pointer_cast(yyvsp[-1]); string name = dynamic_pointer_cast(yyvsp[0])->v; @@ -2792,11 +2792,11 @@ YYLTYPE yylloc = yyloc_default; assert(yyval); currentUnit->error("keyword `" + name + "' cannot be used as data member name"); } -#line 2798 "src/Slice/Grammar.cpp" +#line 2796 "src/Slice/Grammar.cpp" break; case 87: /* data_member: type */ -#line 1098 "src/Slice/Grammar.y" +#line 1096 "src/Slice/Grammar.y" { auto type = dynamic_pointer_cast(yyvsp[0]); auto cl = dynamic_pointer_cast(currentUnit->currentContainer()); @@ -2817,11 +2817,11 @@ YYLTYPE yylloc = yyloc_default; assert(yyval); currentUnit->error("missing data member name"); } -#line 2823 "src/Slice/Grammar.cpp" +#line 2821 "src/Slice/Grammar.cpp" break; case 88: /* return_type: optional type */ -#line 1124 "src/Slice/Grammar.y" +#line 1122 "src/Slice/Grammar.y" { auto m = dynamic_pointer_cast(yyvsp[-1]); m->type = dynamic_pointer_cast(yyvsp[0]); @@ -2836,30 +2836,30 @@ YYLTYPE yylloc = yyloc_default; yyval = m; } -#line 2842 "src/Slice/Grammar.cpp" +#line 2840 "src/Slice/Grammar.cpp" break; case 89: /* return_type: type */ -#line 1139 "src/Slice/Grammar.y" +#line 1137 "src/Slice/Grammar.y" { auto m = make_shared(-1); m->type = dynamic_pointer_cast(yyvsp[0]); yyval = m; } -#line 2852 "src/Slice/Grammar.cpp" +#line 2850 "src/Slice/Grammar.cpp" break; case 90: /* return_type: ICE_VOID */ -#line 1145 "src/Slice/Grammar.y" +#line 1143 "src/Slice/Grammar.y" { auto m = make_shared(-1); yyval = m; } -#line 2861 "src/Slice/Grammar.cpp" +#line 2859 "src/Slice/Grammar.cpp" break; case 91: /* operation_preamble: return_type ICE_IDENT_OPEN */ -#line 1155 "src/Slice/Grammar.y" +#line 1153 "src/Slice/Grammar.y" { auto returnType = dynamic_pointer_cast(yyvsp[-1]); string name = dynamic_pointer_cast(yyvsp[0])->v; @@ -2883,11 +2883,11 @@ YYLTYPE yylloc = yyloc_default; yyval = nullptr; } } -#line 2889 "src/Slice/Grammar.cpp" +#line 2887 "src/Slice/Grammar.cpp" break; case 92: /* operation_preamble: ICE_IDEMPOTENT return_type ICE_IDENT_OPEN */ -#line 1179 "src/Slice/Grammar.y" +#line 1177 "src/Slice/Grammar.y" { auto returnType = dynamic_pointer_cast(yyvsp[-1]); string name = dynamic_pointer_cast(yyvsp[0])->v; @@ -2917,11 +2917,11 @@ YYLTYPE yylloc = yyloc_default; yyval = nullptr; } } -#line 2923 "src/Slice/Grammar.cpp" +#line 2921 "src/Slice/Grammar.cpp" break; case 93: /* operation_preamble: return_type ICE_KEYWORD_OPEN */ -#line 1209 "src/Slice/Grammar.y" +#line 1207 "src/Slice/Grammar.y" { auto returnType = dynamic_pointer_cast(yyvsp[-1]); string name = dynamic_pointer_cast(yyvsp[0])->v; @@ -2945,11 +2945,11 @@ YYLTYPE yylloc = yyloc_default; yyval = nullptr; } } -#line 2951 "src/Slice/Grammar.cpp" +#line 2949 "src/Slice/Grammar.cpp" break; case 94: /* operation_preamble: ICE_IDEMPOTENT return_type ICE_KEYWORD_OPEN */ -#line 1233 "src/Slice/Grammar.y" +#line 1231 "src/Slice/Grammar.y" { auto returnType = dynamic_pointer_cast(yyvsp[-1]); string name = dynamic_pointer_cast(yyvsp[0])->v; @@ -2978,11 +2978,11 @@ YYLTYPE yylloc = yyloc_default; yyval = nullptr; } } -#line 2984 "src/Slice/Grammar.cpp" +#line 2982 "src/Slice/Grammar.cpp" break; case 95: /* @19: %empty */ -#line 1267 "src/Slice/Grammar.y" +#line 1265 "src/Slice/Grammar.y" { if (yyvsp[-2]) { @@ -2994,11 +2994,11 @@ YYLTYPE yylloc = yyloc_default; yyval = nullptr; } } -#line 3000 "src/Slice/Grammar.cpp" +#line 2998 "src/Slice/Grammar.cpp" break; case 96: /* operation: operation_preamble parameters ')' @19 throws */ -#line 1279 "src/Slice/Grammar.y" +#line 1277 "src/Slice/Grammar.y" { auto op = dynamic_pointer_cast(yyvsp[-1]); auto el = dynamic_pointer_cast(yyvsp[0]); @@ -3008,11 +3008,11 @@ YYLTYPE yylloc = yyloc_default; op->setExceptionList(el->v); } } -#line 3014 "src/Slice/Grammar.cpp" +#line 3012 "src/Slice/Grammar.cpp" break; case 97: /* @20: %empty */ -#line 1289 "src/Slice/Grammar.y" +#line 1287 "src/Slice/Grammar.y" { if (yyvsp[-2]) { @@ -3020,11 +3020,11 @@ YYLTYPE yylloc = yyloc_default; } yyerrok; } -#line 3026 "src/Slice/Grammar.cpp" +#line 3024 "src/Slice/Grammar.cpp" break; case 98: /* operation: operation_preamble error ')' @20 throws */ -#line 1297 "src/Slice/Grammar.y" +#line 1295 "src/Slice/Grammar.y" { auto op = dynamic_pointer_cast(yyvsp[-1]); auto el = dynamic_pointer_cast(yyvsp[0]); @@ -3034,29 +3034,29 @@ YYLTYPE yylloc = yyloc_default; op->setExceptionList(el->v); // Dummy } } -#line 3040 "src/Slice/Grammar.cpp" +#line 3038 "src/Slice/Grammar.cpp" break; case 99: /* interface_id: ICE_INTERFACE ICE_IDENTIFIER */ -#line 1312 "src/Slice/Grammar.y" +#line 1310 "src/Slice/Grammar.y" { yyval = yyvsp[0]; } -#line 3048 "src/Slice/Grammar.cpp" +#line 3046 "src/Slice/Grammar.cpp" break; case 100: /* interface_id: ICE_INTERFACE keyword */ -#line 1316 "src/Slice/Grammar.y" +#line 1314 "src/Slice/Grammar.y" { auto ident = dynamic_pointer_cast(yyvsp[0]); currentUnit->error("keyword `" + ident->v + "' cannot be used as interface name"); yyval = yyvsp[0]; // Dummy } -#line 3058 "src/Slice/Grammar.cpp" +#line 3056 "src/Slice/Grammar.cpp" break; case 101: /* interface_decl: interface_id */ -#line 1327 "src/Slice/Grammar.y" +#line 1325 "src/Slice/Grammar.y" { auto ident = dynamic_pointer_cast(yyvsp[0]); auto cont = currentUnit->currentContainer(); @@ -3064,11 +3064,11 @@ YYLTYPE yylloc = yyloc_default; cont->checkIntroduced(ident->v, cl); yyval = cl; } -#line 3070 "src/Slice/Grammar.cpp" +#line 3068 "src/Slice/Grammar.cpp" break; case 102: /* @21: %empty */ -#line 1340 "src/Slice/Grammar.y" +#line 1338 "src/Slice/Grammar.y" { auto ident = dynamic_pointer_cast(yyvsp[-1]); ContainerPtr cont = currentUnit->currentContainer(); @@ -3085,11 +3085,11 @@ YYLTYPE yylloc = yyloc_default; yyval = nullptr; } } -#line 3091 "src/Slice/Grammar.cpp" +#line 3089 "src/Slice/Grammar.cpp" break; case 103: /* interface_def: interface_id interface_extends @21 '{' operations '}' */ -#line 1357 "src/Slice/Grammar.y" +#line 1355 "src/Slice/Grammar.y" { if (yyvsp[-3]) { @@ -3101,11 +3101,11 @@ YYLTYPE yylloc = yyloc_default; yyval = nullptr; } } -#line 3107 "src/Slice/Grammar.cpp" +#line 3105 "src/Slice/Grammar.cpp" break; case 104: /* interface_list: scoped_name ',' interface_list */ -#line 1374 "src/Slice/Grammar.y" +#line 1372 "src/Slice/Grammar.y" { auto intfs = dynamic_pointer_cast(yyvsp[0]); auto scoped = dynamic_pointer_cast(yyvsp[-2]); @@ -3140,11 +3140,11 @@ YYLTYPE yylloc = yyloc_default; } yyval = intfs; } -#line 3146 "src/Slice/Grammar.cpp" +#line 3144 "src/Slice/Grammar.cpp" break; case 105: /* interface_list: scoped_name */ -#line 1409 "src/Slice/Grammar.y" +#line 1407 "src/Slice/Grammar.y" { auto intfs = make_shared(); auto scoped = dynamic_pointer_cast(yyvsp[0]); @@ -3179,45 +3179,45 @@ YYLTYPE yylloc = yyloc_default; } yyval = intfs; } -#line 3185 "src/Slice/Grammar.cpp" +#line 3183 "src/Slice/Grammar.cpp" break; case 106: /* interface_list: ICE_OBJECT */ -#line 1444 "src/Slice/Grammar.y" +#line 1442 "src/Slice/Grammar.y" { currentUnit->error("illegal inheritance from type Object"); yyval = make_shared(); // Dummy } -#line 3194 "src/Slice/Grammar.cpp" +#line 3192 "src/Slice/Grammar.cpp" break; case 107: /* interface_list: ICE_VALUE */ -#line 1449 "src/Slice/Grammar.y" +#line 1447 "src/Slice/Grammar.y" { currentUnit->error("illegal inheritance from type Value"); yyval = make_shared(); // Dummy } -#line 3203 "src/Slice/Grammar.cpp" +#line 3201 "src/Slice/Grammar.cpp" break; case 108: /* interface_extends: extends interface_list */ -#line 1459 "src/Slice/Grammar.y" +#line 1457 "src/Slice/Grammar.y" { yyval = yyvsp[0]; } -#line 3211 "src/Slice/Grammar.cpp" +#line 3209 "src/Slice/Grammar.cpp" break; case 109: /* interface_extends: %empty */ -#line 1463 "src/Slice/Grammar.y" +#line 1461 "src/Slice/Grammar.y" { yyval = make_shared(); } -#line 3219 "src/Slice/Grammar.cpp" +#line 3217 "src/Slice/Grammar.cpp" break; case 110: /* operations: metadata operation ';' operations */ -#line 1472 "src/Slice/Grammar.y" +#line 1470 "src/Slice/Grammar.y" { auto metadata = dynamic_pointer_cast(yyvsp[-3]); auto contained = dynamic_pointer_cast(yyvsp[-2]); @@ -3226,55 +3226,55 @@ YYLTYPE yylloc = yyloc_default; contained->setMetadata(metadata->v); } } -#line 3232 "src/Slice/Grammar.cpp" +#line 3230 "src/Slice/Grammar.cpp" break; case 111: /* operations: error ';' operations */ -#line 1481 "src/Slice/Grammar.y" +#line 1479 "src/Slice/Grammar.y" { } -#line 3239 "src/Slice/Grammar.cpp" +#line 3237 "src/Slice/Grammar.cpp" break; case 112: /* operations: metadata operation */ -#line 1484 "src/Slice/Grammar.y" +#line 1482 "src/Slice/Grammar.y" { currentUnit->error("`;' missing after definition"); } -#line 3247 "src/Slice/Grammar.cpp" +#line 3245 "src/Slice/Grammar.cpp" break; case 113: /* operations: %empty */ -#line 1488 "src/Slice/Grammar.y" +#line 1486 "src/Slice/Grammar.y" { } -#line 3254 "src/Slice/Grammar.cpp" +#line 3252 "src/Slice/Grammar.cpp" break; case 114: /* exception_list: exception ',' exception_list */ -#line 1496 "src/Slice/Grammar.y" +#line 1494 "src/Slice/Grammar.y" { auto exception = dynamic_pointer_cast(yyvsp[-2]); auto exceptionList = dynamic_pointer_cast(yyvsp[0]); exceptionList->v.push_front(exception); yyval = exceptionList; } -#line 3265 "src/Slice/Grammar.cpp" +#line 3263 "src/Slice/Grammar.cpp" break; case 115: /* exception_list: exception */ -#line 1503 "src/Slice/Grammar.y" +#line 1501 "src/Slice/Grammar.y" { auto exception = dynamic_pointer_cast(yyvsp[0]); auto exceptionList = make_shared(); exceptionList->v.push_front(exception); yyval = exceptionList; } -#line 3276 "src/Slice/Grammar.cpp" +#line 3274 "src/Slice/Grammar.cpp" break; case 116: /* exception: scoped_name */ -#line 1515 "src/Slice/Grammar.y" +#line 1513 "src/Slice/Grammar.y" { auto scoped = dynamic_pointer_cast(yyvsp[0]); ContainerPtr cont = currentUnit->currentContainer(); @@ -3286,21 +3286,21 @@ YYLTYPE yylloc = yyloc_default; cont->checkIntroduced(scoped->v, exception); yyval = exception; } -#line 3292 "src/Slice/Grammar.cpp" +#line 3290 "src/Slice/Grammar.cpp" break; case 117: /* exception: keyword */ -#line 1527 "src/Slice/Grammar.y" +#line 1525 "src/Slice/Grammar.y" { auto ident = dynamic_pointer_cast(yyvsp[0]); currentUnit->error("keyword `" + ident->v + "' cannot be used as exception name"); yyval = currentUnit->currentContainer()->createException(Ice::generateUUID(), 0, Dummy); // Dummy } -#line 3302 "src/Slice/Grammar.cpp" +#line 3300 "src/Slice/Grammar.cpp" break; case 118: /* sequence_def: ICE_SEQUENCE '<' metadata type '>' ICE_IDENTIFIER */ -#line 1538 "src/Slice/Grammar.y" +#line 1536 "src/Slice/Grammar.y" { auto ident = dynamic_pointer_cast(yyvsp[0]); auto metadata = dynamic_pointer_cast(yyvsp[-3]); @@ -3308,11 +3308,11 @@ YYLTYPE yylloc = yyloc_default; ContainerPtr cont = currentUnit->currentContainer(); yyval = cont->createSequence(ident->v, type, metadata->v); } -#line 3314 "src/Slice/Grammar.cpp" +#line 3312 "src/Slice/Grammar.cpp" break; case 119: /* sequence_def: ICE_SEQUENCE '<' metadata type '>' keyword */ -#line 1546 "src/Slice/Grammar.y" +#line 1544 "src/Slice/Grammar.y" { auto ident = dynamic_pointer_cast(yyvsp[0]); auto metadata = dynamic_pointer_cast(yyvsp[-3]); @@ -3321,11 +3321,11 @@ YYLTYPE yylloc = yyloc_default; yyval = cont->createSequence(ident->v, type, metadata->v); // Dummy currentUnit->error("keyword `" + ident->v + "' cannot be used as sequence name"); } -#line 3327 "src/Slice/Grammar.cpp" +#line 3325 "src/Slice/Grammar.cpp" break; case 120: /* dictionary_def: ICE_DICTIONARY '<' metadata type ',' metadata type '>' ICE_IDENTIFIER */ -#line 1560 "src/Slice/Grammar.y" +#line 1558 "src/Slice/Grammar.y" { auto ident = dynamic_pointer_cast(yyvsp[0]); auto keyMetadata = dynamic_pointer_cast(yyvsp[-6]); @@ -3335,11 +3335,11 @@ YYLTYPE yylloc = yyloc_default; ContainerPtr cont = currentUnit->currentContainer(); yyval = cont->createDictionary(ident->v, keyType, keyMetadata->v, valueType, valueMetadata->v); } -#line 3341 "src/Slice/Grammar.cpp" +#line 3339 "src/Slice/Grammar.cpp" break; case 121: /* dictionary_def: ICE_DICTIONARY '<' metadata type ',' metadata type '>' keyword */ -#line 1570 "src/Slice/Grammar.y" +#line 1568 "src/Slice/Grammar.y" { auto ident = dynamic_pointer_cast(yyvsp[0]); auto keyMetadata = dynamic_pointer_cast(yyvsp[-6]); @@ -3350,29 +3350,29 @@ YYLTYPE yylloc = yyloc_default; yyval = cont->createDictionary(ident->v, keyType, keyMetadata->v, valueType, valueMetadata->v); // Dummy currentUnit->error("keyword `" + ident->v + "' cannot be used as dictionary name"); } -#line 3356 "src/Slice/Grammar.cpp" +#line 3354 "src/Slice/Grammar.cpp" break; case 122: /* enum_id: ICE_ENUM ICE_IDENTIFIER */ -#line 1586 "src/Slice/Grammar.y" +#line 1584 "src/Slice/Grammar.y" { yyval = yyvsp[0]; } -#line 3364 "src/Slice/Grammar.cpp" +#line 3362 "src/Slice/Grammar.cpp" break; case 123: /* enum_id: ICE_ENUM keyword */ -#line 1590 "src/Slice/Grammar.y" +#line 1588 "src/Slice/Grammar.y" { auto ident = dynamic_pointer_cast(yyvsp[0]); currentUnit->error("keyword `" + ident->v + "' cannot be used as enumeration name"); yyval = yyvsp[0]; // Dummy } -#line 3374 "src/Slice/Grammar.cpp" +#line 3372 "src/Slice/Grammar.cpp" break; case 124: /* @22: %empty */ -#line 1601 "src/Slice/Grammar.y" +#line 1599 "src/Slice/Grammar.y" { auto ident = dynamic_pointer_cast(yyvsp[0]); ContainerPtr cont = currentUnit->currentContainer(); @@ -3388,11 +3388,11 @@ YYLTYPE yylloc = yyloc_default; currentUnit->pushContainer(en); yyval = en; } -#line 3394 "src/Slice/Grammar.cpp" +#line 3392 "src/Slice/Grammar.cpp" break; case 125: /* enum_def: enum_id @22 '{' enumerator_list '}' */ -#line 1617 "src/Slice/Grammar.y" +#line 1615 "src/Slice/Grammar.y" { auto en = dynamic_pointer_cast(yyvsp[-3]); if (en) @@ -3406,11 +3406,11 @@ YYLTYPE yylloc = yyloc_default; } yyval = yyvsp[-3]; } -#line 3412 "src/Slice/Grammar.cpp" +#line 3410 "src/Slice/Grammar.cpp" break; case 126: /* @23: %empty */ -#line 1632 "src/Slice/Grammar.y" +#line 1630 "src/Slice/Grammar.y" { currentUnit->error("missing enumeration name"); ContainerPtr cont = currentUnit->currentContainer(); @@ -3418,20 +3418,20 @@ YYLTYPE yylloc = yyloc_default; currentUnit->pushContainer(en); yyval = en; } -#line 3424 "src/Slice/Grammar.cpp" +#line 3422 "src/Slice/Grammar.cpp" break; case 127: /* enum_def: ICE_ENUM @23 '{' enumerator_list '}' */ -#line 1640 "src/Slice/Grammar.y" +#line 1638 "src/Slice/Grammar.y" { currentUnit->popContainer(); yyval = yyvsp[-4]; } -#line 3433 "src/Slice/Grammar.cpp" +#line 3431 "src/Slice/Grammar.cpp" break; case 128: /* enumerator_list: metadata enumerator ',' enumerator_list */ -#line 1650 "src/Slice/Grammar.y" +#line 1648 "src/Slice/Grammar.y" { auto metadata = dynamic_pointer_cast(yyvsp[-3]); auto enumerator = dynamic_pointer_cast(yyvsp[-2]); @@ -3443,11 +3443,11 @@ YYLTYPE yylloc = yyloc_default; enumeratorList->v.push_front(enumerator); yyval = enumeratorList; } -#line 3449 "src/Slice/Grammar.cpp" +#line 3447 "src/Slice/Grammar.cpp" break; case 129: /* enumerator_list: metadata enumerator */ -#line 1662 "src/Slice/Grammar.y" +#line 1660 "src/Slice/Grammar.y" { auto metadata = dynamic_pointer_cast(yyvsp[-1]); auto enumerator = dynamic_pointer_cast(yyvsp[0]); @@ -3459,29 +3459,29 @@ YYLTYPE yylloc = yyloc_default; enumeratorList->v.push_front(enumerator); yyval = enumeratorList; } -#line 3465 "src/Slice/Grammar.cpp" +#line 3463 "src/Slice/Grammar.cpp" break; case 130: /* enumerator_list: %empty */ -#line 1674 "src/Slice/Grammar.y" +#line 1672 "src/Slice/Grammar.y" { yyval = make_shared(); // Empty list } -#line 3473 "src/Slice/Grammar.cpp" +#line 3471 "src/Slice/Grammar.cpp" break; case 131: /* enumerator: ICE_IDENTIFIER */ -#line 1683 "src/Slice/Grammar.y" +#line 1681 "src/Slice/Grammar.y" { auto ident = dynamic_pointer_cast(yyvsp[0]); EnumPtr cont = dynamic_pointer_cast(currentUnit->currentContainer()); yyval = cont->createEnumerator(ident->v, nullopt); } -#line 3483 "src/Slice/Grammar.cpp" +#line 3481 "src/Slice/Grammar.cpp" break; case 132: /* enumerator: ICE_IDENTIFIER '=' enumerator_initializer */ -#line 1689 "src/Slice/Grammar.y" +#line 1687 "src/Slice/Grammar.y" { auto ident = dynamic_pointer_cast(yyvsp[-2]); EnumPtr cont = dynamic_pointer_cast(currentUnit->currentContainer()); @@ -3499,30 +3499,30 @@ YYLTYPE yylloc = yyloc_default; yyval = cont->createEnumerator(ident->v, nullopt); // Dummy } } -#line 3505 "src/Slice/Grammar.cpp" +#line 3503 "src/Slice/Grammar.cpp" break; case 133: /* enumerator: keyword */ -#line 1707 "src/Slice/Grammar.y" +#line 1705 "src/Slice/Grammar.y" { auto ident = dynamic_pointer_cast(yyvsp[0]); EnumPtr cont = dynamic_pointer_cast(currentUnit->currentContainer()); currentUnit->error("keyword `" + ident->v + "' cannot be used as enumerator"); yyval = cont->createEnumerator(ident->v, nullopt); // Dummy } -#line 3516 "src/Slice/Grammar.cpp" +#line 3514 "src/Slice/Grammar.cpp" break; case 134: /* enumerator_initializer: ICE_INTEGER_LITERAL */ -#line 1719 "src/Slice/Grammar.y" +#line 1717 "src/Slice/Grammar.y" { yyval = yyvsp[0]; } -#line 3524 "src/Slice/Grammar.cpp" +#line 3522 "src/Slice/Grammar.cpp" break; case 135: /* enumerator_initializer: scoped_name */ -#line 1723 "src/Slice/Grammar.y" +#line 1721 "src/Slice/Grammar.y" { auto scoped = dynamic_pointer_cast(yyvsp[0]); ContainedList cl = currentUnit->currentContainer()->lookupContained(scoped->v, true); @@ -3558,38 +3558,38 @@ YYLTYPE yylloc = yyloc_default; yyval = tok; } -#line 3564 "src/Slice/Grammar.cpp" +#line 3562 "src/Slice/Grammar.cpp" break; case 136: /* out_qualifier: ICE_OUT */ -#line 1764 "src/Slice/Grammar.y" +#line 1762 "src/Slice/Grammar.y" { auto out = make_shared(); out->v = true; yyval = out; } -#line 3574 "src/Slice/Grammar.cpp" +#line 3572 "src/Slice/Grammar.cpp" break; case 137: /* out_qualifier: %empty */ -#line 1770 "src/Slice/Grammar.y" +#line 1768 "src/Slice/Grammar.y" { auto out = make_shared(); out->v = false; yyval = out; } -#line 3584 "src/Slice/Grammar.cpp" +#line 3582 "src/Slice/Grammar.cpp" break; case 138: /* parameters: %empty */ -#line 1781 "src/Slice/Grammar.y" +#line 1779 "src/Slice/Grammar.y" { } -#line 3591 "src/Slice/Grammar.cpp" +#line 3589 "src/Slice/Grammar.cpp" break; case 139: /* parameters: out_qualifier metadata optional_type_id */ -#line 1784 "src/Slice/Grammar.y" +#line 1782 "src/Slice/Grammar.y" { auto isOutParam = dynamic_pointer_cast(yyvsp[-2]); auto tsp = dynamic_pointer_cast(yyvsp[0]); @@ -3605,11 +3605,11 @@ YYLTYPE yylloc = yyloc_default; } } } -#line 3611 "src/Slice/Grammar.cpp" +#line 3609 "src/Slice/Grammar.cpp" break; case 140: /* parameters: parameters ',' out_qualifier metadata optional_type_id */ -#line 1800 "src/Slice/Grammar.y" +#line 1798 "src/Slice/Grammar.y" { auto isOutParam = dynamic_pointer_cast(yyvsp[-2]); auto tsp = dynamic_pointer_cast(yyvsp[0]); @@ -3625,11 +3625,11 @@ YYLTYPE yylloc = yyloc_default; } } } -#line 3631 "src/Slice/Grammar.cpp" +#line 3629 "src/Slice/Grammar.cpp" break; case 141: /* parameters: out_qualifier metadata type keyword */ -#line 1816 "src/Slice/Grammar.y" +#line 1814 "src/Slice/Grammar.y" { auto isOutParam = dynamic_pointer_cast(yyvsp[-3]); auto type = dynamic_pointer_cast(yyvsp[-1]); @@ -3641,11 +3641,11 @@ YYLTYPE yylloc = yyloc_default; currentUnit->error("keyword `" + ident->v + "' cannot be used as parameter name"); } } -#line 3647 "src/Slice/Grammar.cpp" +#line 3645 "src/Slice/Grammar.cpp" break; case 142: /* parameters: parameters ',' out_qualifier metadata type keyword */ -#line 1828 "src/Slice/Grammar.y" +#line 1826 "src/Slice/Grammar.y" { auto isOutParam = dynamic_pointer_cast(yyvsp[-3]); auto type = dynamic_pointer_cast(yyvsp[-1]); @@ -3657,11 +3657,11 @@ YYLTYPE yylloc = yyloc_default; currentUnit->error("keyword `" + ident->v + "' cannot be used as parameter name"); } } -#line 3663 "src/Slice/Grammar.cpp" +#line 3661 "src/Slice/Grammar.cpp" break; case 143: /* parameters: out_qualifier metadata type */ -#line 1840 "src/Slice/Grammar.y" +#line 1838 "src/Slice/Grammar.y" { auto isOutParam = dynamic_pointer_cast(yyvsp[-2]); auto type = dynamic_pointer_cast(yyvsp[0]); @@ -3672,11 +3672,11 @@ YYLTYPE yylloc = yyloc_default; currentUnit->error("missing parameter name"); } } -#line 3678 "src/Slice/Grammar.cpp" +#line 3676 "src/Slice/Grammar.cpp" break; case 144: /* parameters: parameters ',' out_qualifier metadata type */ -#line 1851 "src/Slice/Grammar.y" +#line 1849 "src/Slice/Grammar.y" { auto isOutParam = dynamic_pointer_cast(yyvsp[-2]); auto type = dynamic_pointer_cast(yyvsp[0]); @@ -3687,118 +3687,118 @@ YYLTYPE yylloc = yyloc_default; currentUnit->error("missing parameter name"); } } -#line 3693 "src/Slice/Grammar.cpp" +#line 3691 "src/Slice/Grammar.cpp" break; case 145: /* throws: ICE_THROWS exception_list */ -#line 1867 "src/Slice/Grammar.y" +#line 1865 "src/Slice/Grammar.y" { yyval = yyvsp[0]; } -#line 3701 "src/Slice/Grammar.cpp" +#line 3699 "src/Slice/Grammar.cpp" break; case 146: /* throws: %empty */ -#line 1871 "src/Slice/Grammar.y" +#line 1869 "src/Slice/Grammar.y" { yyval = make_shared(); } -#line 3709 "src/Slice/Grammar.cpp" +#line 3707 "src/Slice/Grammar.cpp" break; case 147: /* scoped_name: ICE_IDENTIFIER */ -#line 1880 "src/Slice/Grammar.y" +#line 1878 "src/Slice/Grammar.y" { } -#line 3716 "src/Slice/Grammar.cpp" +#line 3714 "src/Slice/Grammar.cpp" break; case 148: /* scoped_name: ICE_SCOPED_IDENTIFIER */ -#line 1883 "src/Slice/Grammar.y" +#line 1881 "src/Slice/Grammar.y" { } -#line 3723 "src/Slice/Grammar.cpp" +#line 3721 "src/Slice/Grammar.cpp" break; case 149: /* builtin: ICE_BOOL */ -#line 1890 "src/Slice/Grammar.y" +#line 1888 "src/Slice/Grammar.y" {} -#line 3729 "src/Slice/Grammar.cpp" +#line 3727 "src/Slice/Grammar.cpp" break; case 150: /* builtin: ICE_BYTE */ -#line 1891 "src/Slice/Grammar.y" +#line 1889 "src/Slice/Grammar.y" {} -#line 3735 "src/Slice/Grammar.cpp" +#line 3733 "src/Slice/Grammar.cpp" break; case 151: /* builtin: ICE_SHORT */ -#line 1892 "src/Slice/Grammar.y" +#line 1890 "src/Slice/Grammar.y" {} -#line 3741 "src/Slice/Grammar.cpp" +#line 3739 "src/Slice/Grammar.cpp" break; case 152: /* builtin: ICE_INT */ -#line 1893 "src/Slice/Grammar.y" +#line 1891 "src/Slice/Grammar.y" {} -#line 3747 "src/Slice/Grammar.cpp" +#line 3745 "src/Slice/Grammar.cpp" break; case 153: /* builtin: ICE_LONG */ -#line 1894 "src/Slice/Grammar.y" +#line 1892 "src/Slice/Grammar.y" {} -#line 3753 "src/Slice/Grammar.cpp" +#line 3751 "src/Slice/Grammar.cpp" break; case 154: /* builtin: ICE_FLOAT */ -#line 1895 "src/Slice/Grammar.y" +#line 1893 "src/Slice/Grammar.y" {} -#line 3759 "src/Slice/Grammar.cpp" +#line 3757 "src/Slice/Grammar.cpp" break; case 155: /* builtin: ICE_DOUBLE */ -#line 1896 "src/Slice/Grammar.y" +#line 1894 "src/Slice/Grammar.y" {} -#line 3765 "src/Slice/Grammar.cpp" +#line 3763 "src/Slice/Grammar.cpp" break; case 156: /* builtin: ICE_STRING */ -#line 1897 "src/Slice/Grammar.y" +#line 1895 "src/Slice/Grammar.y" {} -#line 3771 "src/Slice/Grammar.cpp" +#line 3769 "src/Slice/Grammar.cpp" break; case 157: /* builtin: ICE_OBJECT */ -#line 1898 "src/Slice/Grammar.y" +#line 1896 "src/Slice/Grammar.y" {} -#line 3777 "src/Slice/Grammar.cpp" +#line 3775 "src/Slice/Grammar.cpp" break; case 158: /* builtin: ICE_VALUE */ -#line 1899 "src/Slice/Grammar.y" +#line 1897 "src/Slice/Grammar.y" {} -#line 3783 "src/Slice/Grammar.cpp" +#line 3781 "src/Slice/Grammar.cpp" break; case 159: /* type: ICE_OBJECT '*' */ -#line 1905 "src/Slice/Grammar.y" +#line 1903 "src/Slice/Grammar.y" { yyval = currentUnit->createBuiltin(Builtin::KindObjectProxy); } -#line 3791 "src/Slice/Grammar.cpp" +#line 3789 "src/Slice/Grammar.cpp" break; case 160: /* type: builtin */ -#line 1909 "src/Slice/Grammar.y" +#line 1907 "src/Slice/Grammar.y" { auto typeName = dynamic_pointer_cast(yyvsp[0]); yyval = currentUnit->createBuiltin(Builtin::kindFromString(typeName->v).value()); } -#line 3800 "src/Slice/Grammar.cpp" +#line 3798 "src/Slice/Grammar.cpp" break; case 161: /* type: scoped_name */ -#line 1914 "src/Slice/Grammar.y" +#line 1912 "src/Slice/Grammar.y" { auto scoped = dynamic_pointer_cast(yyvsp[0]); ContainerPtr cont = currentUnit->currentContainer(); @@ -3829,11 +3829,11 @@ YYLTYPE yylloc = yyloc_default; yyval = nullptr; } } -#line 3835 "src/Slice/Grammar.cpp" +#line 3833 "src/Slice/Grammar.cpp" break; case 162: /* type: scoped_name '*' */ -#line 1945 "src/Slice/Grammar.y" +#line 1943 "src/Slice/Grammar.y" { auto scoped = dynamic_pointer_cast(yyvsp[-1]); ContainerPtr cont = currentUnit->currentContainer(); @@ -3864,50 +3864,50 @@ YYLTYPE yylloc = yyloc_default; yyval = nullptr; } } -#line 3870 "src/Slice/Grammar.cpp" +#line 3868 "src/Slice/Grammar.cpp" break; case 163: /* string_literal: ICE_STRING_LITERAL string_literal */ -#line 1981 "src/Slice/Grammar.y" +#line 1979 "src/Slice/Grammar.y" { auto str1 = dynamic_pointer_cast(yyvsp[-1]); auto str2 = dynamic_pointer_cast(yyvsp[0]); str1->v += str2->v; } -#line 3880 "src/Slice/Grammar.cpp" +#line 3878 "src/Slice/Grammar.cpp" break; case 164: /* string_literal: ICE_STRING_LITERAL */ -#line 1987 "src/Slice/Grammar.y" +#line 1985 "src/Slice/Grammar.y" { } -#line 3887 "src/Slice/Grammar.cpp" +#line 3885 "src/Slice/Grammar.cpp" break; case 165: /* string_list: string_list ',' string_literal */ -#line 1995 "src/Slice/Grammar.y" +#line 1993 "src/Slice/Grammar.y" { auto str = dynamic_pointer_cast(yyvsp[0]); auto stringList = dynamic_pointer_cast(yyvsp[-2]); stringList->v.push_back(str->v); yyval = stringList; } -#line 3898 "src/Slice/Grammar.cpp" +#line 3896 "src/Slice/Grammar.cpp" break; case 166: /* string_list: string_literal */ -#line 2002 "src/Slice/Grammar.y" +#line 2000 "src/Slice/Grammar.y" { auto str = dynamic_pointer_cast(yyvsp[0]); auto stringList = make_shared(); stringList->v.push_back(str->v); yyval = stringList; } -#line 3909 "src/Slice/Grammar.cpp" +#line 3907 "src/Slice/Grammar.cpp" break; case 167: /* const_initializer: ICE_INTEGER_LITERAL */ -#line 2014 "src/Slice/Grammar.y" +#line 2012 "src/Slice/Grammar.y" { BuiltinPtr type = currentUnit->createBuiltin(Builtin::KindLong); auto intVal = dynamic_pointer_cast(yyvsp[0]); @@ -3916,11 +3916,11 @@ YYLTYPE yylloc = yyloc_default; auto def = make_shared(type, sstr.str()); yyval = def; } -#line 3922 "src/Slice/Grammar.cpp" +#line 3920 "src/Slice/Grammar.cpp" break; case 168: /* const_initializer: ICE_FLOATING_POINT_LITERAL */ -#line 2023 "src/Slice/Grammar.y" +#line 2021 "src/Slice/Grammar.y" { BuiltinPtr type = currentUnit->createBuiltin(Builtin::KindDouble); auto floatVal = dynamic_pointer_cast(yyvsp[0]); @@ -3929,11 +3929,11 @@ YYLTYPE yylloc = yyloc_default; auto def = make_shared(type, sstr.str()); yyval = def; } -#line 3935 "src/Slice/Grammar.cpp" +#line 3933 "src/Slice/Grammar.cpp" break; case 169: /* const_initializer: scoped_name */ -#line 2032 "src/Slice/Grammar.y" +#line 2030 "src/Slice/Grammar.y" { auto scoped = dynamic_pointer_cast(yyvsp[0]); ConstDefTokPtr def; @@ -3968,44 +3968,44 @@ YYLTYPE yylloc = yyloc_default; } yyval = def; } -#line 3974 "src/Slice/Grammar.cpp" +#line 3972 "src/Slice/Grammar.cpp" break; case 170: /* const_initializer: ICE_STRING_LITERAL */ -#line 2067 "src/Slice/Grammar.y" +#line 2065 "src/Slice/Grammar.y" { BuiltinPtr type = currentUnit->createBuiltin(Builtin::KindString); auto literal = dynamic_pointer_cast(yyvsp[0]); auto def = make_shared(type, literal->v); yyval = def; } -#line 3985 "src/Slice/Grammar.cpp" +#line 3983 "src/Slice/Grammar.cpp" break; case 171: /* const_initializer: ICE_FALSE */ -#line 2074 "src/Slice/Grammar.y" +#line 2072 "src/Slice/Grammar.y" { BuiltinPtr type = currentUnit->createBuiltin(Builtin::KindBool); auto literal = dynamic_pointer_cast(yyvsp[0]); auto def = make_shared(type, "false"); yyval = def; } -#line 3996 "src/Slice/Grammar.cpp" +#line 3994 "src/Slice/Grammar.cpp" break; case 172: /* const_initializer: ICE_TRUE */ -#line 2081 "src/Slice/Grammar.y" +#line 2079 "src/Slice/Grammar.y" { BuiltinPtr type = currentUnit->createBuiltin(Builtin::KindBool); auto literal = dynamic_pointer_cast(yyvsp[0]); auto def = make_shared(type, "true"); yyval = def; } -#line 4007 "src/Slice/Grammar.cpp" +#line 4005 "src/Slice/Grammar.cpp" break; case 173: /* const_def: ICE_CONST metadata type ICE_IDENTIFIER '=' const_initializer */ -#line 2093 "src/Slice/Grammar.y" +#line 2091 "src/Slice/Grammar.y" { auto metadata = dynamic_pointer_cast(yyvsp[-4]); auto const_type = dynamic_pointer_cast(yyvsp[-3]); @@ -4014,11 +4014,11 @@ YYLTYPE yylloc = yyloc_default; yyval = currentUnit->currentContainer()->createConst(ident->v, const_type, metadata->v, value->v, value->valueAsString); } -#line 4020 "src/Slice/Grammar.cpp" +#line 4018 "src/Slice/Grammar.cpp" break; case 174: /* const_def: ICE_CONST metadata type '=' const_initializer */ -#line 2102 "src/Slice/Grammar.y" +#line 2100 "src/Slice/Grammar.y" { auto metadata = dynamic_pointer_cast(yyvsp[-3]); auto const_type = dynamic_pointer_cast(yyvsp[-2]); @@ -4027,173 +4027,173 @@ YYLTYPE yylloc = yyloc_default; yyval = currentUnit->currentContainer()->createConst(Ice::generateUUID(), const_type, metadata->v, value->v, value->valueAsString, Dummy); // Dummy } -#line 4033 "src/Slice/Grammar.cpp" +#line 4031 "src/Slice/Grammar.cpp" break; case 175: /* keyword: ICE_MODULE */ -#line 2115 "src/Slice/Grammar.y" +#line 2113 "src/Slice/Grammar.y" {} -#line 4039 "src/Slice/Grammar.cpp" +#line 4037 "src/Slice/Grammar.cpp" break; case 176: /* keyword: ICE_CLASS */ -#line 2116 "src/Slice/Grammar.y" +#line 2114 "src/Slice/Grammar.y" {} -#line 4045 "src/Slice/Grammar.cpp" +#line 4043 "src/Slice/Grammar.cpp" break; case 177: /* keyword: ICE_INTERFACE */ -#line 2117 "src/Slice/Grammar.y" +#line 2115 "src/Slice/Grammar.y" {} -#line 4051 "src/Slice/Grammar.cpp" +#line 4049 "src/Slice/Grammar.cpp" break; case 178: /* keyword: ICE_EXCEPTION */ -#line 2118 "src/Slice/Grammar.y" +#line 2116 "src/Slice/Grammar.y" {} -#line 4057 "src/Slice/Grammar.cpp" +#line 4055 "src/Slice/Grammar.cpp" break; case 179: /* keyword: ICE_STRUCT */ -#line 2119 "src/Slice/Grammar.y" +#line 2117 "src/Slice/Grammar.y" {} -#line 4063 "src/Slice/Grammar.cpp" +#line 4061 "src/Slice/Grammar.cpp" break; case 180: /* keyword: ICE_SEQUENCE */ -#line 2120 "src/Slice/Grammar.y" +#line 2118 "src/Slice/Grammar.y" {} -#line 4069 "src/Slice/Grammar.cpp" +#line 4067 "src/Slice/Grammar.cpp" break; case 181: /* keyword: ICE_DICTIONARY */ -#line 2121 "src/Slice/Grammar.y" +#line 2119 "src/Slice/Grammar.y" {} -#line 4075 "src/Slice/Grammar.cpp" +#line 4073 "src/Slice/Grammar.cpp" break; case 182: /* keyword: ICE_ENUM */ -#line 2122 "src/Slice/Grammar.y" +#line 2120 "src/Slice/Grammar.y" {} -#line 4081 "src/Slice/Grammar.cpp" +#line 4079 "src/Slice/Grammar.cpp" break; case 183: /* keyword: ICE_OUT */ -#line 2123 "src/Slice/Grammar.y" +#line 2121 "src/Slice/Grammar.y" {} -#line 4087 "src/Slice/Grammar.cpp" +#line 4085 "src/Slice/Grammar.cpp" break; case 184: /* keyword: ICE_EXTENDS */ -#line 2124 "src/Slice/Grammar.y" +#line 2122 "src/Slice/Grammar.y" {} -#line 4093 "src/Slice/Grammar.cpp" +#line 4091 "src/Slice/Grammar.cpp" break; case 185: /* keyword: ICE_THROWS */ -#line 2125 "src/Slice/Grammar.y" +#line 2123 "src/Slice/Grammar.y" {} -#line 4099 "src/Slice/Grammar.cpp" +#line 4097 "src/Slice/Grammar.cpp" break; case 186: /* keyword: ICE_VOID */ -#line 2126 "src/Slice/Grammar.y" +#line 2124 "src/Slice/Grammar.y" {} -#line 4105 "src/Slice/Grammar.cpp" +#line 4103 "src/Slice/Grammar.cpp" break; case 187: /* keyword: ICE_BOOL */ -#line 2127 "src/Slice/Grammar.y" +#line 2125 "src/Slice/Grammar.y" {} -#line 4111 "src/Slice/Grammar.cpp" +#line 4109 "src/Slice/Grammar.cpp" break; case 188: /* keyword: ICE_BYTE */ -#line 2128 "src/Slice/Grammar.y" +#line 2126 "src/Slice/Grammar.y" {} -#line 4117 "src/Slice/Grammar.cpp" +#line 4115 "src/Slice/Grammar.cpp" break; case 189: /* keyword: ICE_SHORT */ -#line 2129 "src/Slice/Grammar.y" +#line 2127 "src/Slice/Grammar.y" {} -#line 4123 "src/Slice/Grammar.cpp" +#line 4121 "src/Slice/Grammar.cpp" break; case 190: /* keyword: ICE_INT */ -#line 2130 "src/Slice/Grammar.y" +#line 2128 "src/Slice/Grammar.y" {} -#line 4129 "src/Slice/Grammar.cpp" +#line 4127 "src/Slice/Grammar.cpp" break; case 191: /* keyword: ICE_LONG */ -#line 2131 "src/Slice/Grammar.y" +#line 2129 "src/Slice/Grammar.y" {} -#line 4135 "src/Slice/Grammar.cpp" +#line 4133 "src/Slice/Grammar.cpp" break; case 192: /* keyword: ICE_FLOAT */ -#line 2132 "src/Slice/Grammar.y" +#line 2130 "src/Slice/Grammar.y" {} -#line 4141 "src/Slice/Grammar.cpp" +#line 4139 "src/Slice/Grammar.cpp" break; case 193: /* keyword: ICE_DOUBLE */ -#line 2133 "src/Slice/Grammar.y" +#line 2131 "src/Slice/Grammar.y" {} -#line 4147 "src/Slice/Grammar.cpp" +#line 4145 "src/Slice/Grammar.cpp" break; case 194: /* keyword: ICE_STRING */ -#line 2134 "src/Slice/Grammar.y" +#line 2132 "src/Slice/Grammar.y" {} -#line 4153 "src/Slice/Grammar.cpp" +#line 4151 "src/Slice/Grammar.cpp" break; case 195: /* keyword: ICE_OBJECT */ -#line 2135 "src/Slice/Grammar.y" +#line 2133 "src/Slice/Grammar.y" {} -#line 4159 "src/Slice/Grammar.cpp" +#line 4157 "src/Slice/Grammar.cpp" break; case 196: /* keyword: ICE_CONST */ -#line 2136 "src/Slice/Grammar.y" +#line 2134 "src/Slice/Grammar.y" {} -#line 4165 "src/Slice/Grammar.cpp" +#line 4163 "src/Slice/Grammar.cpp" break; case 197: /* keyword: ICE_FALSE */ -#line 2137 "src/Slice/Grammar.y" +#line 2135 "src/Slice/Grammar.y" {} -#line 4171 "src/Slice/Grammar.cpp" +#line 4169 "src/Slice/Grammar.cpp" break; case 198: /* keyword: ICE_TRUE */ -#line 2138 "src/Slice/Grammar.y" +#line 2136 "src/Slice/Grammar.y" {} -#line 4177 "src/Slice/Grammar.cpp" +#line 4175 "src/Slice/Grammar.cpp" break; case 199: /* keyword: ICE_IDEMPOTENT */ -#line 2139 "src/Slice/Grammar.y" +#line 2137 "src/Slice/Grammar.y" {} -#line 4183 "src/Slice/Grammar.cpp" +#line 4181 "src/Slice/Grammar.cpp" break; case 200: /* keyword: ICE_OPTIONAL */ -#line 2140 "src/Slice/Grammar.y" +#line 2138 "src/Slice/Grammar.y" {} -#line 4189 "src/Slice/Grammar.cpp" +#line 4187 "src/Slice/Grammar.cpp" break; case 201: /* keyword: ICE_VALUE */ -#line 2141 "src/Slice/Grammar.y" +#line 2139 "src/Slice/Grammar.y" {} -#line 4195 "src/Slice/Grammar.cpp" +#line 4193 "src/Slice/Grammar.cpp" break; -#line 4199 "src/Slice/Grammar.cpp" +#line 4197 "src/Slice/Grammar.cpp" default: break; } @@ -4391,5 +4391,5 @@ YYLTYPE yylloc = yyloc_default; return yyresult; } -#line 2144 "src/Slice/Grammar.y" +#line 2142 "src/Slice/Grammar.y"