zeroc-ice 3.7.10 → 3.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1216) hide show
  1. checksums.yaml +4 -4
  2. data/dist/IceRuby/Communicator.cpp +575 -0
  3. data/dist/IceRuby/Communicator.h +19 -0
  4. data/dist/IceRuby/Config.h +77 -0
  5. data/dist/IceRuby/Connection.cpp +428 -0
  6. data/dist/IceRuby/Connection.h +20 -0
  7. data/dist/IceRuby/DefaultSliceLoader.cpp +45 -0
  8. data/dist/IceRuby/DefaultSliceLoader.h +25 -0
  9. data/dist/IceRuby/Endpoint.cpp +342 -0
  10. data/dist/IceRuby/Endpoint.h +18 -0
  11. data/dist/IceRuby/ImplicitContext.cpp +143 -0
  12. data/dist/IceRuby/ImplicitContext.h +16 -0
  13. data/dist/IceRuby/Init.cpp +36 -0
  14. data/dist/IceRuby/Logger.cpp +146 -0
  15. data/dist/IceRuby/Logger.h +19 -0
  16. data/dist/IceRuby/Operation.cpp +623 -0
  17. data/dist/IceRuby/Operation.h +28 -0
  18. data/dist/IceRuby/Properties.cpp +413 -0
  19. data/dist/IceRuby/Properties.h +16 -0
  20. data/dist/IceRuby/Proxy.cpp +926 -0
  21. data/dist/IceRuby/Proxy.h +21 -0
  22. data/dist/IceRuby/RubySliceLoader.cpp +39 -0
  23. data/dist/IceRuby/RubySliceLoader.h +27 -0
  24. data/dist/IceRuby/Slice.cpp +199 -0
  25. data/dist/IceRuby/Slice.h +13 -0
  26. data/dist/IceRuby/Types.cpp +3133 -0
  27. data/dist/IceRuby/Types.h +533 -0
  28. data/dist/IceRuby/Util.cpp +553 -0
  29. data/dist/IceRuby/Util.h +485 -0
  30. data/dist/ice/cpp/include/Ice/AsyncResponseHandler.h +85 -0
  31. data/dist/ice/cpp/include/Ice/BatchRequest.h +39 -0
  32. data/dist/ice/cpp/include/Ice/BatchRequestQueueF.h +14 -0
  33. data/dist/ice/cpp/include/Ice/Buffer.h +159 -0
  34. data/dist/ice/cpp/include/Ice/Communicator.h +411 -0
  35. data/dist/ice/cpp/include/Ice/CommunicatorF.h +16 -0
  36. data/dist/ice/cpp/include/Ice/Config.h +60 -0
  37. data/dist/ice/cpp/include/Ice/Connection.h +410 -0
  38. data/dist/ice/cpp/include/Ice/ConnectionF.h +36 -0
  39. data/dist/ice/cpp/include/Ice/ConnectionIF.h +16 -0
  40. data/dist/ice/cpp/include/Ice/CtrlCHandler.h +56 -0
  41. data/dist/ice/cpp/include/Ice/Current.h +60 -0
  42. data/dist/ice/cpp/include/Ice/DefaultSliceLoader.h +160 -0
  43. data/dist/ice/cpp/include/Ice/Demangle.h +17 -0
  44. data/dist/ice/cpp/include/Ice/Endpoint.h +298 -0
  45. data/dist/ice/cpp/include/Ice/EndpointF.h +44 -0
  46. data/dist/ice/cpp/include/Ice/EndpointSelectionType.h +21 -0
  47. data/dist/ice/cpp/include/Ice/Exception.h +56 -0
  48. data/dist/ice/cpp/include/Ice/FacetMap.h +16 -0
  49. data/dist/ice/cpp/include/Ice/Format.h +22 -0
  50. data/dist/ice/cpp/include/Ice/Ice.h +60 -0
  51. data/dist/ice/cpp/include/Ice/IconvStringConverter.h +216 -0
  52. data/dist/ice/cpp/include/Ice/ImplicitContext.h +76 -0
  53. data/dist/ice/cpp/include/Ice/IncomingRequest.h +75 -0
  54. data/dist/ice/cpp/include/Ice/Initialize.h +143 -0
  55. data/dist/ice/cpp/include/Ice/InputStream.h +942 -0
  56. data/dist/ice/cpp/include/Ice/InstanceF.h +14 -0
  57. data/dist/ice/cpp/include/Ice/Instrumentation.h +319 -0
  58. data/dist/ice/cpp/include/Ice/LocalException.h +58 -0
  59. data/dist/ice/cpp/include/Ice/LocalExceptions.h +870 -0
  60. data/dist/ice/cpp/include/Ice/Logger.h +62 -0
  61. data/dist/ice/cpp/include/Ice/LoggerUtil.h +162 -0
  62. data/dist/ice/cpp/include/Ice/MarshaledResult.h +50 -0
  63. data/dist/ice/cpp/include/Ice/NativePropertiesAdmin.h +54 -0
  64. data/dist/ice/cpp/include/Ice/Object.h +168 -0
  65. data/dist/ice/cpp/include/Ice/ObjectAdapter.h +324 -0
  66. data/dist/ice/cpp/include/Ice/ObjectAdapterF.h +16 -0
  67. data/dist/ice/cpp/include/Ice/ObjectF.h +16 -0
  68. data/dist/ice/cpp/include/Ice/ObserverHelper.h +164 -0
  69. data/dist/ice/cpp/include/Ice/OutgoingAsync.h +512 -0
  70. data/dist/ice/cpp/include/Ice/OutgoingResponse.h +129 -0
  71. data/dist/ice/cpp/include/Ice/OutputStream.h +872 -0
  72. data/dist/ice/cpp/include/Ice/Plugin.h +73 -0
  73. data/dist/ice/cpp/include/Ice/PluginFactory.h +77 -0
  74. data/dist/ice/cpp/include/Ice/PopDisableWarnings.h +16 -0
  75. data/dist/ice/cpp/include/Ice/Properties.h +307 -0
  76. data/dist/ice/cpp/include/Ice/PropertiesF.h +19 -0
  77. data/dist/ice/cpp/include/Ice/Proxy.h +742 -0
  78. data/dist/ice/cpp/include/Ice/ProxyF.h +11 -0
  79. data/dist/ice/cpp/include/Ice/ProxyFunctions.h +209 -0
  80. data/dist/ice/cpp/include/Ice/PushDisableWarnings.h +29 -0
  81. data/dist/ice/cpp/include/Ice/ReferenceF.h +14 -0
  82. data/dist/ice/cpp/include/Ice/RequestHandlerF.h +20 -0
  83. data/dist/ice/cpp/include/Ice/SSL/ClientAuthenticationOptions.h +268 -0
  84. data/dist/ice/cpp/include/Ice/SSL/Config.h +54 -0
  85. data/dist/ice/cpp/include/Ice/SSL/ConnectionInfo.h +107 -0
  86. data/dist/ice/cpp/include/Ice/SSL/ConnectionInfoF.h +39 -0
  87. data/dist/ice/cpp/include/Ice/SSL/EndpointInfo.h +40 -0
  88. data/dist/ice/cpp/include/Ice/SSL/SSLException.h +32 -0
  89. data/dist/ice/cpp/include/Ice/SSL/ServerAuthenticationOptions.h +278 -0
  90. data/dist/ice/cpp/include/Ice/ServantLocator.h +51 -0
  91. data/dist/ice/cpp/include/Ice/Service.h +219 -0
  92. data/dist/ice/cpp/include/Ice/SliceLoader.h +67 -0
  93. data/dist/ice/cpp/include/Ice/SlicedData.h +125 -0
  94. data/dist/ice/cpp/include/Ice/SlicedDataF.h +30 -0
  95. data/dist/ice/cpp/include/Ice/StreamHelpers.h +652 -0
  96. data/dist/ice/cpp/include/Ice/StreamableTraits.h +291 -0
  97. data/dist/ice/cpp/include/Ice/StringConverter.h +167 -0
  98. data/dist/ice/cpp/include/Ice/StringUtil.h +114 -0
  99. data/dist/ice/cpp/include/Ice/TimerTask.h +24 -0
  100. data/dist/ice/cpp/include/Ice/TupleCompare.h +103 -0
  101. data/dist/ice/cpp/include/Ice/UUID.h +16 -0
  102. data/dist/ice/cpp/include/Ice/UserException.h +46 -0
  103. data/dist/ice/cpp/include/Ice/UserExceptionFactory.h +15 -0
  104. data/dist/ice/cpp/include/Ice/Value.h +127 -0
  105. data/dist/ice/cpp/include/Ice/ValueF.h +16 -0
  106. data/dist/ice/cpp/include/IceDiscovery/IceDiscovery.h +28 -0
  107. data/dist/ice/cpp/include/IceLocatorDiscovery/IceLocatorDiscovery.h +28 -0
  108. data/dist/ice/cpp/include/generated/Ice/BuiltinSequences.h +70 -0
  109. data/dist/ice/cpp/include/generated/Ice/Context.h +40 -0
  110. data/dist/ice/cpp/include/generated/Ice/EndpointTypes.h +74 -0
  111. data/dist/ice/cpp/include/generated/Ice/Identity.h +108 -0
  112. data/dist/ice/cpp/include/generated/Ice/Locator.h +542 -0
  113. data/dist/ice/cpp/include/generated/Ice/LocatorRegistry.h +443 -0
  114. data/dist/ice/cpp/include/generated/Ice/Metrics.h +1103 -0
  115. data/dist/ice/cpp/include/generated/Ice/OperationMode.h +73 -0
  116. data/dist/ice/cpp/include/generated/Ice/Process.h +245 -0
  117. data/dist/ice/cpp/include/generated/Ice/PropertiesAdmin.h +314 -0
  118. data/dist/ice/cpp/include/generated/Ice/PropertyDict.h +39 -0
  119. data/dist/ice/cpp/include/generated/Ice/RemoteLogger.h +724 -0
  120. data/dist/ice/cpp/include/generated/Ice/ReplyStatus.h +94 -0
  121. data/dist/ice/cpp/include/generated/Ice/Router.h +496 -0
  122. data/dist/ice/cpp/include/generated/Ice/SliceChecksumDict.h +37 -0
  123. data/dist/ice/cpp/include/generated/Ice/Version.h +112 -0
  124. data/dist/ice/cpp/include/generated/IceDiscovery/Lookup.h +498 -0
  125. data/dist/ice/cpp/include/generated/IceLocatorDiscovery/Lookup.h +387 -0
  126. data/dist/ice/cpp/src/Ice/Acceptor.h +41 -0
  127. data/dist/ice/cpp/src/Ice/AcceptorF.h +17 -0
  128. data/dist/ice/cpp/src/Ice/AddDefaultPluginFactories.h +16 -0
  129. data/dist/ice/cpp/src/Ice/AddDefaultPluginFactories_all.cpp +43 -0
  130. data/dist/ice/cpp/src/Ice/AddDefaultPluginFactories_min.cpp +17 -0
  131. data/dist/ice/cpp/src/Ice/ArgVector.cpp +58 -0
  132. data/dist/ice/cpp/src/Ice/ArgVector.h +30 -0
  133. data/dist/ice/cpp/src/Ice/Base64.cpp +263 -0
  134. data/dist/ice/cpp/src/Ice/Base64.h +26 -0
  135. data/dist/ice/cpp/src/Ice/BatchRequestQueue.cpp +199 -0
  136. data/dist/ice/cpp/src/Ice/BatchRequestQueue.h +49 -0
  137. data/dist/ice/cpp/src/Ice/Buffer.cpp +187 -0
  138. data/dist/ice/cpp/src/Ice/CheckIdentity.h +21 -0
  139. data/dist/ice/cpp/src/Ice/CollocatedRequestHandler.cpp +373 -0
  140. data/dist/ice/cpp/src/Ice/CollocatedRequestHandler.h +65 -0
  141. data/dist/ice/cpp/src/Ice/Communicator.cpp +399 -0
  142. data/dist/ice/cpp/src/Ice/CommunicatorFlushBatchAsync.cpp +140 -0
  143. data/dist/ice/cpp/src/Ice/CommunicatorFlushBatchAsync.h +39 -0
  144. data/dist/ice/cpp/src/Ice/ConnectRequestHandler.cpp +227 -0
  145. data/dist/ice/cpp/src/Ice/ConnectRequestHandler.h +51 -0
  146. data/dist/ice/cpp/src/Ice/ConnectRequestHandlerF.h +14 -0
  147. data/dist/ice/cpp/src/Ice/Connection.cpp +44 -0
  148. data/dist/ice/cpp/src/Ice/ConnectionFactory.cpp +1758 -0
  149. data/dist/ice/cpp/src/Ice/ConnectionFactory.h +264 -0
  150. data/dist/ice/cpp/src/Ice/ConnectionFactoryF.h +17 -0
  151. data/dist/ice/cpp/src/Ice/ConnectionI.cpp +3563 -0
  152. data/dist/ice/cpp/src/Ice/ConnectionI.h +429 -0
  153. data/dist/ice/cpp/src/Ice/ConnectionOptions.h +22 -0
  154. data/dist/ice/cpp/src/Ice/Connector.h +38 -0
  155. data/dist/ice/cpp/src/Ice/ConnectorF.h +14 -0
  156. data/dist/ice/cpp/src/Ice/ConsoleUtil.cpp +136 -0
  157. data/dist/ice/cpp/src/Ice/ConsoleUtil.h +79 -0
  158. data/dist/ice/cpp/src/Ice/CtrlCHandler.cpp +189 -0
  159. data/dist/ice/cpp/src/Ice/Current.cpp +29 -0
  160. data/dist/ice/cpp/src/Ice/DLLMain.cpp +40 -0
  161. data/dist/ice/cpp/src/Ice/DefaultSliceLoader.cpp +39 -0
  162. data/dist/ice/cpp/src/Ice/DefaultsAndOverrides.cpp +81 -0
  163. data/dist/ice/cpp/src/Ice/DefaultsAndOverrides.h +38 -0
  164. data/dist/ice/cpp/src/Ice/DefaultsAndOverridesF.h +14 -0
  165. data/dist/ice/cpp/src/Ice/Demangle.cpp +25 -0
  166. data/dist/ice/cpp/src/Ice/DisableWarnings.h +31 -0
  167. data/dist/ice/cpp/src/Ice/DynamicLibrary.cpp +216 -0
  168. data/dist/ice/cpp/src/Ice/DynamicLibrary.h +91 -0
  169. data/dist/ice/cpp/src/Ice/Endian.h +40 -0
  170. data/dist/ice/cpp/src/Ice/EndpointFactory.cpp +165 -0
  171. data/dist/ice/cpp/src/Ice/EndpointFactory.h +96 -0
  172. data/dist/ice/cpp/src/Ice/EndpointFactoryF.h +14 -0
  173. data/dist/ice/cpp/src/Ice/EndpointFactoryManager.cpp +180 -0
  174. data/dist/ice/cpp/src/Ice/EndpointFactoryManager.h +42 -0
  175. data/dist/ice/cpp/src/Ice/EndpointFactoryManagerF.h +14 -0
  176. data/dist/ice/cpp/src/Ice/EndpointI.cpp +128 -0
  177. data/dist/ice/cpp/src/Ice/EndpointI.h +150 -0
  178. data/dist/ice/cpp/src/Ice/EndpointIF.h +21 -0
  179. data/dist/ice/cpp/src/Ice/EventHandler.cpp +9 -0
  180. data/dist/ice/cpp/src/Ice/EventHandler.h +71 -0
  181. data/dist/ice/cpp/src/Ice/EventHandlerF.h +14 -0
  182. data/dist/ice/cpp/src/Ice/Exception.cpp +5 -0
  183. data/dist/ice/cpp/src/Ice/FileUtil.cpp +476 -0
  184. data/dist/ice/cpp/src/Ice/FileUtil.h +152 -0
  185. data/dist/ice/cpp/src/Ice/FixedRequestHandler.cpp +34 -0
  186. data/dist/ice/cpp/src/Ice/FixedRequestHandler.h +29 -0
  187. data/dist/ice/cpp/src/Ice/HashUtil.h +67 -0
  188. data/dist/ice/cpp/src/Ice/HttpParser.cpp +684 -0
  189. data/dist/ice/cpp/src/Ice/HttpParser.h +112 -0
  190. data/dist/ice/cpp/src/Ice/IPEndpointI.cpp +593 -0
  191. data/dist/ice/cpp/src/Ice/IPEndpointI.h +106 -0
  192. data/dist/ice/cpp/src/Ice/IPEndpointIF.h +17 -0
  193. data/dist/ice/cpp/src/Ice/IdleTimeoutTransceiverDecorator.cpp +172 -0
  194. data/dist/ice/cpp/src/Ice/IdleTimeoutTransceiverDecorator.h +89 -0
  195. data/dist/ice/cpp/src/Ice/ImplicitContext.cpp +109 -0
  196. data/dist/ice/cpp/src/Ice/IncomingRequest.cpp +66 -0
  197. data/dist/ice/cpp/src/Ice/Initialize.cpp +160 -0
  198. data/dist/ice/cpp/src/Ice/InputStream.cpp +2206 -0
  199. data/dist/ice/cpp/src/Ice/Instance.cpp +1956 -0
  200. data/dist/ice/cpp/src/Ice/Instance.h +225 -0
  201. data/dist/ice/cpp/src/Ice/InstrumentationI.cpp +959 -0
  202. data/dist/ice/cpp/src/Ice/InstrumentationI.h +235 -0
  203. data/dist/ice/cpp/src/Ice/LocalException.cpp +518 -0
  204. data/dist/ice/cpp/src/Ice/LocalExceptions.cpp +577 -0
  205. data/dist/ice/cpp/src/Ice/LocatorInfo.cpp +851 -0
  206. data/dist/ice/cpp/src/Ice/LocatorInfo.h +176 -0
  207. data/dist/ice/cpp/src/Ice/LocatorInfoF.h +20 -0
  208. data/dist/ice/cpp/src/Ice/LoggerAdminI.cpp +774 -0
  209. data/dist/ice/cpp/src/Ice/LoggerAdminI.h +31 -0
  210. data/dist/ice/cpp/src/Ice/LoggerI.cpp +234 -0
  211. data/dist/ice/cpp/src/Ice/LoggerI.h +47 -0
  212. data/dist/ice/cpp/src/Ice/LoggerMiddleware.cpp +176 -0
  213. data/dist/ice/cpp/src/Ice/LoggerMiddleware.h +42 -0
  214. data/dist/ice/cpp/src/Ice/LoggerUtil.cpp +76 -0
  215. data/dist/ice/cpp/src/Ice/MarshaledResult.cpp +20 -0
  216. data/dist/ice/cpp/src/Ice/MetricsAdminI.cpp +608 -0
  217. data/dist/ice/cpp/src/Ice/MetricsAdminI.h +600 -0
  218. data/dist/ice/cpp/src/Ice/MetricsFunctional.h +92 -0
  219. data/dist/ice/cpp/src/Ice/MetricsObserverI.h +587 -0
  220. data/dist/ice/cpp/src/Ice/NativePropertiesAdmin.cpp +185 -0
  221. data/dist/ice/cpp/src/Ice/Network.cpp +1927 -0
  222. data/dist/ice/cpp/src/Ice/Network.h +265 -0
  223. data/dist/ice/cpp/src/Ice/NetworkF.h +11 -0
  224. data/dist/ice/cpp/src/Ice/NetworkProxy.cpp +306 -0
  225. data/dist/ice/cpp/src/Ice/NetworkProxy.h +67 -0
  226. data/dist/ice/cpp/src/Ice/NetworkProxyF.h +14 -0
  227. data/dist/ice/cpp/src/Ice/OSLogLoggerI.cpp +55 -0
  228. data/dist/ice/cpp/src/Ice/OSLogLoggerI.h +35 -0
  229. data/dist/ice/cpp/src/Ice/Object.cpp +249 -0
  230. data/dist/ice/cpp/src/Ice/ObjectAdapterFactory.cpp +348 -0
  231. data/dist/ice/cpp/src/Ice/ObjectAdapterFactory.h +53 -0
  232. data/dist/ice/cpp/src/Ice/ObjectAdapterFactoryF.h +14 -0
  233. data/dist/ice/cpp/src/Ice/ObjectAdapterI.cpp +1383 -0
  234. data/dist/ice/cpp/src/Ice/ObjectAdapterI.h +163 -0
  235. data/dist/ice/cpp/src/Ice/ObserverHelper.cpp +75 -0
  236. data/dist/ice/cpp/src/Ice/ObserverMiddleware.cpp +96 -0
  237. data/dist/ice/cpp/src/Ice/ObserverMiddleware.h +25 -0
  238. data/dist/ice/cpp/src/Ice/OpaqueEndpointI.cpp +368 -0
  239. data/dist/ice/cpp/src/Ice/OpaqueEndpointI.h +66 -0
  240. data/dist/ice/cpp/src/Ice/Options.cpp +980 -0
  241. data/dist/ice/cpp/src/Ice/Options.h +119 -0
  242. data/dist/ice/cpp/src/Ice/OutgoingAsync.cpp +1106 -0
  243. data/dist/ice/cpp/src/Ice/OutgoingResponse.cpp +276 -0
  244. data/dist/ice/cpp/src/Ice/OutputStream.cpp +1454 -0
  245. data/dist/ice/cpp/src/Ice/OutputUtil.cpp +344 -0
  246. data/dist/ice/cpp/src/Ice/OutputUtil.h +173 -0
  247. data/dist/ice/cpp/src/Ice/PluginManagerI.cpp +344 -0
  248. data/dist/ice/cpp/src/Ice/PluginManagerI.h +54 -0
  249. data/dist/ice/cpp/src/Ice/Properties.cpp +931 -0
  250. data/dist/ice/cpp/src/Ice/PropertyNames.cpp +606 -0
  251. data/dist/ice/cpp/src/Ice/PropertyNames.h +63 -0
  252. data/dist/ice/cpp/src/Ice/PropertyUtil.cpp +103 -0
  253. data/dist/ice/cpp/src/Ice/PropertyUtil.h +31 -0
  254. data/dist/ice/cpp/src/Ice/Protocol.cpp +159 -0
  255. data/dist/ice/cpp/src/Ice/Protocol.h +116 -0
  256. data/dist/ice/cpp/src/Ice/ProtocolInstance.cpp +186 -0
  257. data/dist/ice/cpp/src/Ice/ProtocolInstance.h +74 -0
  258. data/dist/ice/cpp/src/Ice/ProtocolInstanceF.h +14 -0
  259. data/dist/ice/cpp/src/Ice/ProtocolPluginFacade.cpp +29 -0
  260. data/dist/ice/cpp/src/Ice/ProtocolPluginFacade.h +35 -0
  261. data/dist/ice/cpp/src/Ice/Proxy.cpp +541 -0
  262. data/dist/ice/cpp/src/Ice/ProxyAsync.cpp +684 -0
  263. data/dist/ice/cpp/src/Ice/ProxyFunctions.cpp +90 -0
  264. data/dist/ice/cpp/src/Ice/PushDisableDeprecatedWarnings.h +15 -0
  265. data/dist/ice/cpp/src/Ice/Random.cpp +29 -0
  266. data/dist/ice/cpp/src/Ice/Random.h +23 -0
  267. data/dist/ice/cpp/src/Ice/Reference.cpp +1584 -0
  268. data/dist/ice/cpp/src/Ice/Reference.h +339 -0
  269. data/dist/ice/cpp/src/Ice/ReferenceFactory.cpp +830 -0
  270. data/dist/ice/cpp/src/Ice/ReferenceFactory.h +58 -0
  271. data/dist/ice/cpp/src/Ice/ReferenceFactoryF.h +14 -0
  272. data/dist/ice/cpp/src/Ice/RequestHandler.cpp +28 -0
  273. data/dist/ice/cpp/src/Ice/RequestHandler.h +53 -0
  274. data/dist/ice/cpp/src/Ice/RequestHandlerCache.cpp +76 -0
  275. data/dist/ice/cpp/src/Ice/RequestHandlerCache.h +33 -0
  276. data/dist/ice/cpp/src/Ice/ResourceConfig.h +27 -0
  277. data/dist/ice/cpp/src/Ice/RetryQueue.cpp +151 -0
  278. data/dist/ice/cpp/src/Ice/RetryQueue.h +59 -0
  279. data/dist/ice/cpp/src/Ice/RetryQueueF.h +14 -0
  280. data/dist/ice/cpp/src/Ice/RouterInfo.cpp +275 -0
  281. data/dist/ice/cpp/src/Ice/RouterInfo.h +95 -0
  282. data/dist/ice/cpp/src/Ice/RouterInfoF.h +17 -0
  283. data/dist/ice/cpp/src/Ice/SHA1.cpp +195 -0
  284. data/dist/ice/cpp/src/Ice/SHA1.h +35 -0
  285. data/dist/ice/cpp/src/Ice/SSL/DistinguishedName.cpp +89 -0
  286. data/dist/ice/cpp/src/Ice/SSL/DistinguishedName.h +87 -0
  287. data/dist/ice/cpp/src/Ice/SSL/OpenSSLEngine.cpp +513 -0
  288. data/dist/ice/cpp/src/Ice/SSL/OpenSSLEngine.h +40 -0
  289. data/dist/ice/cpp/src/Ice/SSL/OpenSSLEngineF.h +13 -0
  290. data/dist/ice/cpp/src/Ice/SSL/OpenSSLTransceiverI.cpp +635 -0
  291. data/dist/ice/cpp/src/Ice/SSL/OpenSSLTransceiverI.h +80 -0
  292. data/dist/ice/cpp/src/Ice/SSL/RFC2253.cpp +487 -0
  293. data/dist/ice/cpp/src/Ice/SSL/RFC2253.h +58 -0
  294. data/dist/ice/cpp/src/Ice/SSL/SSLAcceptorI.cpp +124 -0
  295. data/dist/ice/cpp/src/Ice/SSL/SSLAcceptorI.h +52 -0
  296. data/dist/ice/cpp/src/Ice/SSL/SSLConnectorI.cpp +92 -0
  297. data/dist/ice/cpp/src/Ice/SSL/SSLConnectorI.h +38 -0
  298. data/dist/ice/cpp/src/Ice/SSL/SSLEndpointI.cpp +377 -0
  299. data/dist/ice/cpp/src/Ice/SSL/SSLEndpointI.h +84 -0
  300. data/dist/ice/cpp/src/Ice/SSL/SSLEngine.cpp +115 -0
  301. data/dist/ice/cpp/src/Ice/SSL/SSLEngine.h +72 -0
  302. data/dist/ice/cpp/src/Ice/SSL/SSLEngineF.h +14 -0
  303. data/dist/ice/cpp/src/Ice/SSL/SSLException.cpp +18 -0
  304. data/dist/ice/cpp/src/Ice/SSL/SSLInstance.cpp +27 -0
  305. data/dist/ice/cpp/src/Ice/SSL/SSLInstance.h +26 -0
  306. data/dist/ice/cpp/src/Ice/SSL/SSLInstanceF.h +19 -0
  307. data/dist/ice/cpp/src/Ice/SSL/SSLUtil.cpp +654 -0
  308. data/dist/ice/cpp/src/Ice/SSL/SSLUtil.h +104 -0
  309. data/dist/ice/cpp/src/Ice/SSL/SchannelEngine.cpp +1437 -0
  310. data/dist/ice/cpp/src/Ice/SSL/SchannelEngine.h +58 -0
  311. data/dist/ice/cpp/src/Ice/SSL/SchannelEngineF.h +18 -0
  312. data/dist/ice/cpp/src/Ice/SSL/SchannelTransceiverI.cpp +1085 -0
  313. data/dist/ice/cpp/src/Ice/SSL/SchannelTransceiverI.h +118 -0
  314. data/dist/ice/cpp/src/Ice/SSL/SecureTransportEngine.cpp +822 -0
  315. data/dist/ice/cpp/src/Ice/SSL/SecureTransportEngine.h +44 -0
  316. data/dist/ice/cpp/src/Ice/SSL/SecureTransportEngineF.h +18 -0
  317. data/dist/ice/cpp/src/Ice/SSL/SecureTransportTransceiverI.cpp +621 -0
  318. data/dist/ice/cpp/src/Ice/SSL/SecureTransportTransceiverI.h +91 -0
  319. data/dist/ice/cpp/src/Ice/SSL/SecureTransportUtil.cpp +1061 -0
  320. data/dist/ice/cpp/src/Ice/SSL/SecureTransportUtil.h +40 -0
  321. data/dist/ice/cpp/src/Ice/SSL/TrustManager.cpp +222 -0
  322. data/dist/ice/cpp/src/Ice/SSL/TrustManager.h +42 -0
  323. data/dist/ice/cpp/src/Ice/SSL/TrustManagerF.h +14 -0
  324. data/dist/ice/cpp/src/Ice/ScannerConfig.h +35 -0
  325. data/dist/ice/cpp/src/Ice/Selector.cpp +1270 -0
  326. data/dist/ice/cpp/src/Ice/Selector.h +235 -0
  327. data/dist/ice/cpp/src/Ice/ServantManager.cpp +547 -0
  328. data/dist/ice/cpp/src/Ice/ServantManager.h +66 -0
  329. data/dist/ice/cpp/src/Ice/ServantManagerF.h +14 -0
  330. data/dist/ice/cpp/src/Ice/Service.cpp +1790 -0
  331. data/dist/ice/cpp/src/Ice/SharedContext.h +33 -0
  332. data/dist/ice/cpp/src/Ice/SliceLoader.cpp +53 -0
  333. data/dist/ice/cpp/src/Ice/SlicedData.cpp +48 -0
  334. data/dist/ice/cpp/src/Ice/StreamSocket.cpp +472 -0
  335. data/dist/ice/cpp/src/Ice/StreamSocket.h +73 -0
  336. data/dist/ice/cpp/src/Ice/StringConverter.cpp +582 -0
  337. data/dist/ice/cpp/src/Ice/StringUtil.cpp +1137 -0
  338. data/dist/ice/cpp/src/Ice/SysLoggerI.cpp +160 -0
  339. data/dist/ice/cpp/src/Ice/SysLoggerI.h +34 -0
  340. data/dist/ice/cpp/src/Ice/SystemdJournalI.cpp +65 -0
  341. data/dist/ice/cpp/src/Ice/SystemdJournalI.h +33 -0
  342. data/dist/ice/cpp/src/Ice/TargetCompare.h +96 -0
  343. data/dist/ice/cpp/src/Ice/TcpAcceptor.cpp +213 -0
  344. data/dist/ice/cpp/src/Ice/TcpAcceptor.h +55 -0
  345. data/dist/ice/cpp/src/Ice/TcpConnector.cpp +128 -0
  346. data/dist/ice/cpp/src/Ice/TcpConnector.h +36 -0
  347. data/dist/ice/cpp/src/Ice/TcpEndpointI.cpp +411 -0
  348. data/dist/ice/cpp/src/Ice/TcpEndpointI.h +86 -0
  349. data/dist/ice/cpp/src/Ice/TcpTransceiver.cpp +147 -0
  350. data/dist/ice/cpp/src/Ice/TcpTransceiver.h +53 -0
  351. data/dist/ice/cpp/src/Ice/ThreadPool.cpp +1110 -0
  352. data/dist/ice/cpp/src/Ice/ThreadPool.h +305 -0
  353. data/dist/ice/cpp/src/Ice/ThreadPoolF.h +14 -0
  354. data/dist/ice/cpp/src/Ice/TimeUtil.cpp +47 -0
  355. data/dist/ice/cpp/src/Ice/TimeUtil.h +21 -0
  356. data/dist/ice/cpp/src/Ice/Timer.cpp +169 -0
  357. data/dist/ice/cpp/src/Ice/Timer.h +212 -0
  358. data/dist/ice/cpp/src/Ice/TraceLevels.cpp +20 -0
  359. data/dist/ice/cpp/src/Ice/TraceLevels.h +39 -0
  360. data/dist/ice/cpp/src/Ice/TraceLevelsF.h +14 -0
  361. data/dist/ice/cpp/src/Ice/TraceUtil.cpp +399 -0
  362. data/dist/ice/cpp/src/Ice/TraceUtil.h +41 -0
  363. data/dist/ice/cpp/src/Ice/Transceiver.cpp +14 -0
  364. data/dist/ice/cpp/src/Ice/Transceiver.h +52 -0
  365. data/dist/ice/cpp/src/Ice/TransceiverF.h +23 -0
  366. data/dist/ice/cpp/src/Ice/UUID.cpp +79 -0
  367. data/dist/ice/cpp/src/Ice/UdpConnector.cpp +131 -0
  368. data/dist/ice/cpp/src/Ice/UdpConnector.h +36 -0
  369. data/dist/ice/cpp/src/Ice/UdpEndpointI.cpp +480 -0
  370. data/dist/ice/cpp/src/Ice/UdpEndpointI.h +92 -0
  371. data/dist/ice/cpp/src/Ice/UdpTransceiver.cpp +786 -0
  372. data/dist/ice/cpp/src/Ice/UdpTransceiver.h +90 -0
  373. data/dist/ice/cpp/src/Ice/UndefSysMacros.h +37 -0
  374. data/dist/ice/cpp/src/Ice/UniqueRef.h +77 -0
  375. data/dist/ice/cpp/src/Ice/UserException.cpp +58 -0
  376. data/dist/ice/cpp/src/Ice/Value.cpp +145 -0
  377. data/dist/ice/cpp/src/Ice/WSAcceptor.cpp +87 -0
  378. data/dist/ice/cpp/src/Ice/WSAcceptor.h +46 -0
  379. data/dist/ice/cpp/src/Ice/WSConnector.cpp +87 -0
  380. data/dist/ice/cpp/src/Ice/WSConnector.h +36 -0
  381. data/dist/ice/cpp/src/Ice/WSEndpoint.cpp +455 -0
  382. data/dist/ice/cpp/src/Ice/WSEndpoint.h +82 -0
  383. data/dist/ice/cpp/src/Ice/WSTransceiver.cpp +1715 -0
  384. data/dist/ice/cpp/src/Ice/WSTransceiver.h +135 -0
  385. data/dist/ice/cpp/src/Ice/generated/BuiltinSequences.cpp +40 -0
  386. data/dist/ice/cpp/src/Ice/generated/Context.cpp +40 -0
  387. data/dist/ice/cpp/src/Ice/generated/EndpointTypes.cpp +40 -0
  388. data/dist/ice/cpp/src/Ice/generated/Identity.cpp +47 -0
  389. data/dist/ice/cpp/src/Ice/generated/Locator.cpp +752 -0
  390. data/dist/ice/cpp/src/Ice/generated/LocatorRegistry.cpp +577 -0
  391. data/dist/ice/cpp/src/Ice/generated/Metrics.cpp +1205 -0
  392. data/dist/ice/cpp/src/Ice/generated/OperationMode.cpp +56 -0
  393. data/dist/ice/cpp/src/Ice/generated/Process.cpp +330 -0
  394. data/dist/ice/cpp/src/Ice/generated/PropertiesAdmin.cpp +443 -0
  395. data/dist/ice/cpp/src/Ice/generated/PropertyDict.cpp +40 -0
  396. data/dist/ice/cpp/src/Ice/generated/RemoteLogger.cpp +851 -0
  397. data/dist/ice/cpp/src/Ice/generated/ReplyStatus.cpp +70 -0
  398. data/dist/ice/cpp/src/Ice/generated/Router.cpp +660 -0
  399. data/dist/ice/cpp/src/Ice/generated/SliceChecksumDict.cpp +39 -0
  400. data/dist/ice/cpp/src/Ice/generated/Version.cpp +54 -0
  401. data/dist/ice/cpp/src/IceDiscovery/LocatorI.cpp +202 -0
  402. data/dist/ice/cpp/src/IceDiscovery/LocatorI.h +68 -0
  403. data/dist/ice/cpp/src/IceDiscovery/LookupI.cpp +494 -0
  404. data/dist/ice/cpp/src/IceDiscovery/LookupI.h +168 -0
  405. data/dist/ice/cpp/src/IceDiscovery/PluginI.cpp +155 -0
  406. data/dist/ice/cpp/src/IceDiscovery/PluginI.h +31 -0
  407. data/dist/ice/cpp/src/IceDiscovery/generated/Lookup.cpp +638 -0
  408. data/dist/ice/cpp/src/IceLocatorDiscovery/Plugin.h +24 -0
  409. data/dist/ice/cpp/src/IceLocatorDiscovery/PluginI.cpp +822 -0
  410. data/dist/ice/cpp/src/IceLocatorDiscovery/generated/Lookup.cpp +468 -0
  411. data/dist/ice/cpp/src/Slice/DeprecationReporter.cpp +172 -0
  412. data/dist/ice/cpp/src/Slice/DeprecationReporter.h +14 -0
  413. data/dist/ice/cpp/src/Slice/DocCommentParser.cpp +736 -0
  414. data/dist/ice/cpp/src/Slice/DocCommentParser.h +61 -0
  415. data/dist/ice/cpp/src/Slice/FileTracker.cpp +96 -0
  416. data/dist/ice/cpp/src/Slice/FileTracker.h +44 -0
  417. data/dist/ice/cpp/src/Slice/Grammar.cpp +4125 -0
  418. data/dist/ice/cpp/src/Slice/Grammar.h +138 -0
  419. data/dist/ice/cpp/src/Slice/GrammarUtil.h +128 -0
  420. data/dist/ice/cpp/src/Slice/MetadataValidation.cpp +473 -0
  421. data/dist/ice/cpp/src/Slice/MetadataValidation.h +106 -0
  422. data/dist/ice/cpp/src/Slice/Parser.cpp +4906 -0
  423. data/dist/ice/cpp/src/Slice/Parser.h +1175 -0
  424. data/dist/ice/cpp/src/Slice/Preprocessor.cpp +295 -0
  425. data/dist/ice/cpp/src/Slice/Preprocessor.h +44 -0
  426. data/dist/ice/cpp/src/Slice/Scanner.cpp +3445 -0
  427. data/dist/ice/cpp/src/Slice/SliceUtil.cpp +790 -0
  428. data/dist/ice/cpp/src/Slice/StringLiteralUtil.cpp +448 -0
  429. data/dist/ice/cpp/src/Slice/Util.h +134 -0
  430. data/dist/ice/cpp/src/slice2rb/Main.cpp +33 -0
  431. data/dist/ice/cpp/src/slice2rb/Ruby.cpp +250 -0
  432. data/dist/ice/cpp/src/slice2rb/RubyUtil.cpp +1197 -0
  433. data/dist/ice/cpp/src/slice2rb/RubyUtil.h +56 -0
  434. data/dist/ice/mcpp/internal.H +530 -0
  435. data/dist/ice/mcpp/system.c +2741 -0
  436. data/dist/ice/slice/Glacier2/Metrics.ice +47 -0
  437. data/dist/ice/slice/Glacier2/PermissionsVerifier.ice +55 -0
  438. data/dist/ice/slice/Glacier2/Router.ice +93 -0
  439. data/dist/ice/slice/Glacier2/SSLInfo.ice +42 -0
  440. data/dist/ice/slice/Glacier2/Session.ice +133 -0
  441. data/dist/ice/slice/Ice/BuiltinSequences.ice +54 -0
  442. data/dist/ice/slice/Ice/Context.ice +24 -0
  443. data/dist/ice/slice/Ice/EndpointTypes.ice +50 -0
  444. data/dist/ice/slice/Ice/Identity.ice +36 -0
  445. data/dist/ice/slice/Ice/Locator.ice +74 -0
  446. data/dist/ice/slice/Ice/LocatorRegistry.ice +77 -0
  447. data/dist/ice/slice/Ice/Metrics.ice +201 -0
  448. data/dist/ice/slice/Ice/OperationMode.ice +38 -0
  449. data/dist/ice/slice/Ice/Process.ice +28 -0
  450. data/dist/ice/slice/Ice/PropertiesAdmin.ice +37 -0
  451. data/dist/ice/slice/Ice/PropertyDict.ice +23 -0
  452. data/dist/ice/slice/Ice/RemoteLogger.ice +126 -0
  453. data/dist/ice/slice/Ice/ReplyStatus.ice +65 -0
  454. data/dist/ice/slice/Ice/Router.ice +54 -0
  455. data/dist/ice/slice/Ice/SliceChecksumDict.ice +18 -0
  456. data/dist/ice/slice/Ice/Version.ice +43 -0
  457. data/dist/ice/slice/IceBox/ServiceManager.ice +79 -0
  458. data/dist/ice/slice/IceGrid/Admin.ice +981 -0
  459. data/dist/ice/slice/IceGrid/Descriptor.ice +519 -0
  460. data/dist/ice/slice/IceGrid/Exception.ice +98 -0
  461. data/dist/ice/slice/IceGrid/FileParser.ice +36 -0
  462. data/dist/ice/slice/IceGrid/Registry.ice +130 -0
  463. data/dist/ice/slice/IceGrid/Session.ice +64 -0
  464. data/dist/ice/slice/IceGrid/UserAccountMapper.ice +34 -0
  465. data/dist/ice/slice/IceStorm/IceStorm.ice +186 -0
  466. data/dist/ice/slice/IceStorm/Metrics.ice +41 -0
  467. data/dist/lib/Glacier2/Metrics.rb +41 -0
  468. data/dist/lib/Glacier2/PermissionsVerifier.rb +61 -0
  469. data/dist/lib/Glacier2/Router.rb +73 -0
  470. data/dist/lib/Glacier2/SSLInfo.rb +64 -0
  471. data/dist/lib/Glacier2/Session.rb +187 -0
  472. data/dist/lib/Glacier2.rb +7 -0
  473. data/dist/lib/Ice/BuiltinSequences.rb +48 -0
  474. data/dist/lib/Ice/CompressBatch.rb +50 -0
  475. data/dist/lib/Ice/Context.rb +12 -0
  476. data/dist/lib/Ice/EndpointSelectionType.rb +49 -0
  477. data/dist/lib/Ice/EndpointTypes.rb +28 -0
  478. data/dist/lib/Ice/Exception.rb +20 -0
  479. data/dist/lib/Ice/Identity.rb +47 -0
  480. data/dist/lib/Ice/IdentitySpaceship.rb +16 -0
  481. data/dist/lib/Ice/InitializationData.rb +12 -0
  482. data/dist/lib/Ice/LocalExceptions.rb +168 -0
  483. data/dist/lib/Ice/Locator.rb +83 -0
  484. data/dist/lib/Ice/LocatorRegistry.rb +73 -0
  485. data/dist/lib/Ice/Metrics.rb +290 -0
  486. data/dist/lib/Ice/OperationMode.rb +58 -0
  487. data/dist/lib/Ice/Process.rb +34 -0
  488. data/dist/lib/Ice/PropertiesAdmin.rb +39 -0
  489. data/dist/lib/Ice/PropertyDict.rb +12 -0
  490. data/dist/lib/Ice/Proxy.rb +85 -0
  491. data/dist/lib/Ice/ProxyFunctions.rb +69 -0
  492. data/dist/lib/Ice/RemoteLogger.rb +176 -0
  493. data/dist/lib/Ice/ReplyStatus.rb +65 -0
  494. data/dist/lib/Ice/Router.rb +59 -0
  495. data/dist/lib/Ice/SliceChecksumDict.rb +12 -0
  496. data/dist/lib/Ice/SliceUtil.rb +41 -0
  497. data/dist/lib/Ice/Struct.rb +11 -0
  498. data/dist/lib/Ice/ToStringMode.rb +50 -0
  499. data/dist/lib/Ice/Value.rb +93 -0
  500. data/dist/lib/Ice/Version.rb +78 -0
  501. data/dist/lib/Ice.rb +37 -0
  502. data/dist/lib/IceBox/ServiceManager.rb +104 -0
  503. data/dist/lib/IceBox.rb +3 -0
  504. data/dist/lib/IceGrid/Admin.rb +1208 -0
  505. data/dist/lib/IceGrid/Descriptor.rb +989 -0
  506. data/dist/lib/IceGrid/Exception.rb +145 -0
  507. data/dist/lib/IceGrid/FileParser.rb +41 -0
  508. data/dist/lib/IceGrid/Registry.rb +168 -0
  509. data/dist/lib/IceGrid/Session.rb +56 -0
  510. data/dist/lib/IceGrid/UserAccountMapper.rb +38 -0
  511. data/dist/lib/IceGrid.rb +9 -0
  512. data/dist/lib/IceStorm/IceStorm.rb +251 -0
  513. data/dist/lib/IceStorm/Metrics.rb +55 -0
  514. data/dist/lib/IceStorm.rb +4 -0
  515. data/extconf.rb +89 -0
  516. data/ice.gemspec +22 -17
  517. data/scripts/slice2rb +10 -0
  518. metadata +536 -712
  519. data/ICE_LICENSE +0 -48
  520. data/LICENSE +0 -340
  521. data/MCPP_LICENSE +0 -29
  522. data/bin/slice2rb +0 -12
  523. data/ext/Communicator.cpp +0 -792
  524. data/ext/Communicator.h +0 -20
  525. data/ext/Config.h +0 -143
  526. data/ext/Connection.cpp +0 -532
  527. data/ext/Connection.h +0 -24
  528. data/ext/Endpoint.cpp +0 -340
  529. data/ext/Endpoint.h +0 -22
  530. data/ext/ImplicitContext.cpp +0 -144
  531. data/ext/ImplicitContext.h +0 -20
  532. data/ext/Init.cpp +0 -49
  533. data/ext/Logger.cpp +0 -147
  534. data/ext/Logger.h +0 -23
  535. data/ext/Operation.cpp +0 -661
  536. data/ext/Operation.h +0 -31
  537. data/ext/Properties.cpp +0 -365
  538. data/ext/Properties.h +0 -20
  539. data/ext/Proxy.cpp +0 -1396
  540. data/ext/Proxy.h +0 -22
  541. data/ext/Slice.cpp +0 -205
  542. data/ext/Slice.h +0 -17
  543. data/ext/Types.cpp +0 -3325
  544. data/ext/Types.h +0 -595
  545. data/ext/Util.cpp +0 -812
  546. data/ext/Util.h +0 -586
  547. data/ext/ValueFactoryManager.cpp +0 -441
  548. data/ext/ValueFactoryManager.h +0 -95
  549. data/ext/extconf.rb +0 -97
  550. data/ext/ice/cpp/include/Ice/Application.h +0 -326
  551. data/ext/ice/cpp/include/Ice/AsyncResult.h +0 -155
  552. data/ext/ice/cpp/include/Ice/AsyncResultF.h +0 -23
  553. data/ext/ice/cpp/include/Ice/BatchRequestInterceptor.h +0 -75
  554. data/ext/ice/cpp/include/Ice/BatchRequestQueueF.h +0 -20
  555. data/ext/ice/cpp/include/Ice/Buffer.h +0 -154
  556. data/ext/ice/cpp/include/Ice/CommunicatorAsync.h +0 -154
  557. data/ext/ice/cpp/include/Ice/Comparable.h +0 -205
  558. data/ext/ice/cpp/include/Ice/Config.h +0 -76
  559. data/ext/ice/cpp/include/Ice/ConnectionAsync.h +0 -302
  560. data/ext/ice/cpp/include/Ice/ConnectionIF.h +0 -38
  561. data/ext/ice/cpp/include/Ice/ConsoleUtil.h +0 -23
  562. data/ext/ice/cpp/include/Ice/DefaultValueFactory.h +0 -57
  563. data/ext/ice/cpp/include/Ice/DispatchInterceptor.h +0 -41
  564. data/ext/ice/cpp/include/Ice/Dispatcher.h +0 -67
  565. data/ext/ice/cpp/include/Ice/DynamicLibrary.h +0 -102
  566. data/ext/ice/cpp/include/Ice/DynamicLibraryF.h +0 -24
  567. data/ext/ice/cpp/include/Ice/Exception.h +0 -161
  568. data/ext/ice/cpp/include/Ice/ExceptionHelpers.h +0 -74
  569. data/ext/ice/cpp/include/Ice/FactoryTable.h +0 -73
  570. data/ext/ice/cpp/include/Ice/FactoryTableInit.h +0 -84
  571. data/ext/ice/cpp/include/Ice/Format.h +0 -38
  572. data/ext/ice/cpp/include/Ice/Functional.h +0 -140
  573. data/ext/ice/cpp/include/Ice/GCObject.h +0 -76
  574. data/ext/ice/cpp/include/Ice/Handle.h +0 -182
  575. data/ext/ice/cpp/include/Ice/Ice.h +0 -55
  576. data/ext/ice/cpp/include/Ice/IconvStringConverter.h +0 -377
  577. data/ext/ice/cpp/include/Ice/Incoming.h +0 -225
  578. data/ext/ice/cpp/include/Ice/IncomingAsync.h +0 -186
  579. data/ext/ice/cpp/include/Ice/IncomingAsyncF.h +0 -36
  580. data/ext/ice/cpp/include/Ice/Initialize.h +0 -957
  581. data/ext/ice/cpp/include/Ice/InputStream.h +0 -1514
  582. data/ext/ice/cpp/include/Ice/InstanceF.h +0 -20
  583. data/ext/ice/cpp/include/Ice/InterfaceByValue.h +0 -57
  584. data/ext/ice/cpp/include/Ice/LocalObject.h +0 -35
  585. data/ext/ice/cpp/include/Ice/LocalObjectF.h +0 -21
  586. data/ext/ice/cpp/include/Ice/LoggerUtil.h +0 -185
  587. data/ext/ice/cpp/include/Ice/MetricsAdminI.h +0 -715
  588. data/ext/ice/cpp/include/Ice/MetricsFunctional.h +0 -159
  589. data/ext/ice/cpp/include/Ice/MetricsObserverI.h +0 -669
  590. data/ext/ice/cpp/include/Ice/NativePropertiesAdmin.h +0 -86
  591. data/ext/ice/cpp/include/Ice/Object.h +0 -507
  592. data/ext/ice/cpp/include/Ice/ObjectF.h +0 -30
  593. data/ext/ice/cpp/include/Ice/ObserverHelper.h +0 -182
  594. data/ext/ice/cpp/include/Ice/Optional.h +0 -1114
  595. data/ext/ice/cpp/include/Ice/OutgoingAsync.h +0 -856
  596. data/ext/ice/cpp/include/Ice/OutgoingAsyncF.h +0 -39
  597. data/ext/ice/cpp/include/Ice/OutputStream.h +0 -1092
  598. data/ext/ice/cpp/include/Ice/Protocol.h +0 -274
  599. data/ext/ice/cpp/include/Ice/Proxy.h +0 -5154
  600. data/ext/ice/cpp/include/Ice/ProxyF.h +0 -53
  601. data/ext/ice/cpp/include/Ice/ProxyFactoryF.h +0 -21
  602. data/ext/ice/cpp/include/Ice/ProxyHandle.h +0 -318
  603. data/ext/ice/cpp/include/Ice/ReferenceF.h +0 -29
  604. data/ext/ice/cpp/include/Ice/RegisterPlugins.h +0 -127
  605. data/ext/ice/cpp/include/Ice/RequestHandlerF.h +0 -30
  606. data/ext/ice/cpp/include/Ice/ResponseHandlerF.h +0 -25
  607. data/ext/ice/cpp/include/Ice/SHA1.h +0 -40
  608. data/ext/ice/cpp/include/Ice/ServantManagerF.h +0 -21
  609. data/ext/ice/cpp/include/Ice/Service.h +0 -379
  610. data/ext/ice/cpp/include/Ice/SliceChecksums.h +0 -33
  611. data/ext/ice/cpp/include/Ice/SlicedData.h +0 -172
  612. data/ext/ice/cpp/include/Ice/SlicedDataF.h +0 -40
  613. data/ext/ice/cpp/include/Ice/StreamHelpers.h +0 -1190
  614. data/ext/ice/cpp/include/Ice/StringConverter.h +0 -78
  615. data/ext/ice/cpp/include/Ice/ThreadPoolF.h +0 -23
  616. data/ext/ice/cpp/include/Ice/UUID.h +0 -19
  617. data/ext/ice/cpp/include/Ice/UniquePtr.h +0 -95
  618. data/ext/ice/cpp/include/Ice/UniqueRef.h +0 -97
  619. data/ext/ice/cpp/include/Ice/UserExceptionFactory.h +0 -88
  620. data/ext/ice/cpp/include/Ice/Value.h +0 -139
  621. data/ext/ice/cpp/include/Ice/ValueF.h +0 -21
  622. data/ext/ice/cpp/include/IceSSL/Config.h +0 -21
  623. data/ext/ice/cpp/include/IceSSL/IceSSL.h +0 -24
  624. data/ext/ice/cpp/include/IceSSL/OpenSSL.h +0 -147
  625. data/ext/ice/cpp/include/IceSSL/Plugin.h +0 -712
  626. data/ext/ice/cpp/include/IceSSL/SChannel.h +0 -72
  627. data/ext/ice/cpp/include/IceSSL/SecureTransport.h +0 -72
  628. data/ext/ice/cpp/include/IceSSL/UWP.h +0 -62
  629. data/ext/ice/cpp/include/IceUtil/Atomic.h +0 -179
  630. data/ext/ice/cpp/include/IceUtil/Cond.h +0 -317
  631. data/ext/ice/cpp/include/IceUtil/Config.h +0 -392
  632. data/ext/ice/cpp/include/IceUtil/ConsoleUtil.h +0 -92
  633. data/ext/ice/cpp/include/IceUtil/CountDownLatch.h +0 -45
  634. data/ext/ice/cpp/include/IceUtil/CtrlCHandler.h +0 -92
  635. data/ext/ice/cpp/include/IceUtil/DisableWarnings.h +0 -44
  636. data/ext/ice/cpp/include/IceUtil/Exception.h +0 -394
  637. data/ext/ice/cpp/include/IceUtil/FileUtil.h +0 -140
  638. data/ext/ice/cpp/include/IceUtil/Functional.h +0 -389
  639. data/ext/ice/cpp/include/IceUtil/Handle.h +0 -261
  640. data/ext/ice/cpp/include/IceUtil/IceUtil.h +0 -40
  641. data/ext/ice/cpp/include/IceUtil/InputUtil.h +0 -42
  642. data/ext/ice/cpp/include/IceUtil/Iterator.h +0 -31
  643. data/ext/ice/cpp/include/IceUtil/Lock.h +0 -128
  644. data/ext/ice/cpp/include/IceUtil/Monitor.h +0 -243
  645. data/ext/ice/cpp/include/IceUtil/Mutex.h +0 -349
  646. data/ext/ice/cpp/include/IceUtil/MutexProtocol.h +0 -23
  647. data/ext/ice/cpp/include/IceUtil/MutexPtrLock.h +0 -78
  648. data/ext/ice/cpp/include/IceUtil/MutexPtrTryLock.h +0 -77
  649. data/ext/ice/cpp/include/IceUtil/Optional.h +0 -433
  650. data/ext/ice/cpp/include/IceUtil/Options.h +0 -135
  651. data/ext/ice/cpp/include/IceUtil/OutputUtil.h +0 -383
  652. data/ext/ice/cpp/include/IceUtil/PopDisableWarnings.h +0 -14
  653. data/ext/ice/cpp/include/IceUtil/PushDisableWarnings.h +0 -33
  654. data/ext/ice/cpp/include/IceUtil/Random.h +0 -55
  655. data/ext/ice/cpp/include/IceUtil/RecMutex.h +0 -107
  656. data/ext/ice/cpp/include/IceUtil/ResourceConfig.h +0 -37
  657. data/ext/ice/cpp/include/IceUtil/ScannerConfig.h +0 -40
  658. data/ext/ice/cpp/include/IceUtil/ScopedArray.h +0 -98
  659. data/ext/ice/cpp/include/IceUtil/Shared.h +0 -127
  660. data/ext/ice/cpp/include/IceUtil/StopWatch.h +0 -49
  661. data/ext/ice/cpp/include/IceUtil/StringConverter.h +0 -195
  662. data/ext/ice/cpp/include/IceUtil/StringUtil.h +0 -97
  663. data/ext/ice/cpp/include/IceUtil/Thread.h +0 -160
  664. data/ext/ice/cpp/include/IceUtil/ThreadException.h +0 -94
  665. data/ext/ice/cpp/include/IceUtil/Time.h +0 -205
  666. data/ext/ice/cpp/include/IceUtil/Timer.h +0 -144
  667. data/ext/ice/cpp/include/IceUtil/UUID.h +0 -21
  668. data/ext/ice/cpp/include/IceUtil/UndefSysMacros.h +0 -37
  669. data/ext/ice/cpp/include/generated/Ice/BuiltinSequences.h +0 -170
  670. data/ext/ice/cpp/include/generated/Ice/Communicator.h +0 -1162
  671. data/ext/ice/cpp/include/generated/Ice/CommunicatorF.h +0 -101
  672. data/ext/ice/cpp/include/generated/Ice/Connection.h +0 -1703
  673. data/ext/ice/cpp/include/generated/Ice/ConnectionF.h +0 -119
  674. data/ext/ice/cpp/include/generated/Ice/Current.h +0 -322
  675. data/ext/ice/cpp/include/generated/Ice/Endpoint.h +0 -979
  676. data/ext/ice/cpp/include/generated/Ice/EndpointF.h +0 -166
  677. data/ext/ice/cpp/include/generated/Ice/EndpointTypes.h +0 -118
  678. data/ext/ice/cpp/include/generated/Ice/FacetMap.h +0 -80
  679. data/ext/ice/cpp/include/generated/Ice/Identity.h +0 -264
  680. data/ext/ice/cpp/include/generated/Ice/ImplicitContext.h +0 -284
  681. data/ext/ice/cpp/include/generated/Ice/ImplicitContextF.h +0 -101
  682. data/ext/ice/cpp/include/generated/Ice/Instrumentation.h +0 -1203
  683. data/ext/ice/cpp/include/generated/Ice/InstrumentationF.h +0 -128
  684. data/ext/ice/cpp/include/generated/Ice/LocalException.h +0 -7437
  685. data/ext/ice/cpp/include/generated/Ice/Locator.h +0 -3898
  686. data/ext/ice/cpp/include/generated/Ice/LocatorF.h +0 -147
  687. data/ext/ice/cpp/include/generated/Ice/Logger.h +0 -237
  688. data/ext/ice/cpp/include/generated/Ice/LoggerF.h +0 -101
  689. data/ext/ice/cpp/include/generated/Ice/Metrics.h +0 -4769
  690. data/ext/ice/cpp/include/generated/Ice/ObjectAdapter.h +0 -1181
  691. data/ext/ice/cpp/include/generated/Ice/ObjectAdapterF.h +0 -101
  692. data/ext/ice/cpp/include/generated/Ice/ObjectFactory.h +0 -203
  693. data/ext/ice/cpp/include/generated/Ice/Plugin.h +0 -318
  694. data/ext/ice/cpp/include/generated/Ice/PluginF.h +0 -110
  695. data/ext/ice/cpp/include/generated/Ice/Process.h +0 -977
  696. data/ext/ice/cpp/include/generated/Ice/ProcessF.h +0 -125
  697. data/ext/ice/cpp/include/generated/Ice/Properties.h +0 -452
  698. data/ext/ice/cpp/include/generated/Ice/PropertiesAdmin.h +0 -1366
  699. data/ext/ice/cpp/include/generated/Ice/PropertiesF.h +0 -134
  700. data/ext/ice/cpp/include/generated/Ice/RemoteLogger.h +0 -2707
  701. data/ext/ice/cpp/include/generated/Ice/Router.h +0 -1850
  702. data/ext/ice/cpp/include/generated/Ice/RouterF.h +0 -125
  703. data/ext/ice/cpp/include/generated/Ice/ServantLocator.h +0 -305
  704. data/ext/ice/cpp/include/generated/Ice/ServantLocatorF.h +0 -101
  705. data/ext/ice/cpp/include/generated/Ice/SliceChecksumDict.h +0 -84
  706. data/ext/ice/cpp/include/generated/Ice/ValueFactory.h +0 -330
  707. data/ext/ice/cpp/include/generated/Ice/Version.h +0 -357
  708. data/ext/ice/cpp/include/generated/IceSSL/ConnectionInfo.h +0 -228
  709. data/ext/ice/cpp/include/generated/IceSSL/ConnectionInfoF.h +0 -101
  710. data/ext/ice/cpp/include/generated/IceSSL/EndpointInfo.h +0 -186
  711. data/ext/ice/cpp/src/Ice/ACM.cpp +0 -380
  712. data/ext/ice/cpp/src/Ice/ACM.h +0 -119
  713. data/ext/ice/cpp/src/Ice/ACMF.h +0 -30
  714. data/ext/ice/cpp/src/Ice/Acceptor.cpp +0 -16
  715. data/ext/ice/cpp/src/Ice/Acceptor.h +0 -37
  716. data/ext/ice/cpp/src/Ice/AcceptorF.h +0 -25
  717. data/ext/ice/cpp/src/Ice/ArgVector.cpp +0 -59
  718. data/ext/ice/cpp/src/Ice/ArgVector.h +0 -36
  719. data/ext/ice/cpp/src/Ice/AsyncResult.cpp +0 -70
  720. data/ext/ice/cpp/src/Ice/Base64.cpp +0 -263
  721. data/ext/ice/cpp/src/Ice/Base64.h +0 -31
  722. data/ext/ice/cpp/src/Ice/BatchRequestQueue.cpp +0 -250
  723. data/ext/ice/cpp/src/Ice/BatchRequestQueue.h +0 -59
  724. data/ext/ice/cpp/src/Ice/Buffer.cpp +0 -155
  725. data/ext/ice/cpp/src/Ice/BuiltinSequences.cpp +0 -49
  726. data/ext/ice/cpp/src/Ice/CollocatedRequestHandler.cpp +0 -407
  727. data/ext/ice/cpp/src/Ice/CollocatedRequestHandler.h +0 -87
  728. data/ext/ice/cpp/src/Ice/Communicator.cpp +0 -79
  729. data/ext/ice/cpp/src/Ice/CommunicatorF.cpp +0 -61
  730. data/ext/ice/cpp/src/Ice/CommunicatorI.cpp +0 -586
  731. data/ext/ice/cpp/src/Ice/CommunicatorI.h +0 -167
  732. data/ext/ice/cpp/src/Ice/Cond.cpp +0 -381
  733. data/ext/ice/cpp/src/Ice/ConnectRequestHandler.cpp +0 -348
  734. data/ext/ice/cpp/src/Ice/ConnectRequestHandler.h +0 -72
  735. data/ext/ice/cpp/src/Ice/ConnectRequestHandlerF.h +0 -24
  736. data/ext/ice/cpp/src/Ice/Connection.cpp +0 -155
  737. data/ext/ice/cpp/src/Ice/ConnectionF.cpp +0 -61
  738. data/ext/ice/cpp/src/Ice/ConnectionFactory.cpp +0 -1972
  739. data/ext/ice/cpp/src/Ice/ConnectionFactory.h +0 -264
  740. data/ext/ice/cpp/src/Ice/ConnectionFactoryF.h +0 -30
  741. data/ext/ice/cpp/src/Ice/ConnectionI.cpp +0 -3670
  742. data/ext/ice/cpp/src/Ice/ConnectionI.h +0 -389
  743. data/ext/ice/cpp/src/Ice/ConnectionRequestHandler.cpp +0 -73
  744. data/ext/ice/cpp/src/Ice/ConnectionRequestHandler.h +0 -41
  745. data/ext/ice/cpp/src/Ice/Connector.cpp +0 -16
  746. data/ext/ice/cpp/src/Ice/Connector.h +0 -32
  747. data/ext/ice/cpp/src/Ice/ConnectorF.h +0 -21
  748. data/ext/ice/cpp/src/Ice/CountDownLatch.cpp +0 -171
  749. data/ext/ice/cpp/src/Ice/Current.cpp +0 -62
  750. data/ext/ice/cpp/src/Ice/DefaultsAndOverrides.cpp +0 -159
  751. data/ext/ice/cpp/src/Ice/DefaultsAndOverrides.h +0 -52
  752. data/ext/ice/cpp/src/Ice/DefaultsAndOverridesF.h +0 -21
  753. data/ext/ice/cpp/src/Ice/DispatchInterceptor.cpp +0 -37
  754. data/ext/ice/cpp/src/Ice/DynamicLibrary.cpp +0 -284
  755. data/ext/ice/cpp/src/Ice/Endpoint.cpp +0 -147
  756. data/ext/ice/cpp/src/Ice/EndpointF.cpp +0 -61
  757. data/ext/ice/cpp/src/Ice/EndpointFactory.cpp +0 -189
  758. data/ext/ice/cpp/src/Ice/EndpointFactory.h +0 -117
  759. data/ext/ice/cpp/src/Ice/EndpointFactoryF.h +0 -21
  760. data/ext/ice/cpp/src/Ice/EndpointFactoryManager.cpp +0 -213
  761. data/ext/ice/cpp/src/Ice/EndpointFactoryManager.h +0 -47
  762. data/ext/ice/cpp/src/Ice/EndpointFactoryManagerF.h +0 -21
  763. data/ext/ice/cpp/src/Ice/EndpointI.cpp +0 -98
  764. data/ext/ice/cpp/src/Ice/EndpointI.h +0 -218
  765. data/ext/ice/cpp/src/Ice/EndpointIF.h +0 -49
  766. data/ext/ice/cpp/src/Ice/EndpointTypes.cpp +0 -51
  767. data/ext/ice/cpp/src/Ice/EventHandler.cpp +0 -32
  768. data/ext/ice/cpp/src/Ice/EventHandler.h +0 -81
  769. data/ext/ice/cpp/src/Ice/EventHandlerF.h +0 -24
  770. data/ext/ice/cpp/src/Ice/Exception.cpp +0 -818
  771. data/ext/ice/cpp/src/Ice/FacetMap.cpp +0 -49
  772. data/ext/ice/cpp/src/Ice/FactoryTable.cpp +0 -162
  773. data/ext/ice/cpp/src/Ice/FactoryTableInit.cpp +0 -88
  774. data/ext/ice/cpp/src/Ice/GCObject.cpp +0 -442
  775. data/ext/ice/cpp/src/Ice/HashUtil.h +0 -53
  776. data/ext/ice/cpp/src/Ice/HttpParser.cpp +0 -684
  777. data/ext/ice/cpp/src/Ice/HttpParser.h +0 -117
  778. data/ext/ice/cpp/src/Ice/IPEndpointI.cpp +0 -710
  779. data/ext/ice/cpp/src/Ice/IPEndpointI.h +0 -152
  780. data/ext/ice/cpp/src/Ice/IPEndpointIF.h +0 -28
  781. data/ext/ice/cpp/src/Ice/IconvStringConverter.cpp +0 -51
  782. data/ext/ice/cpp/src/Ice/Identity.cpp +0 -57
  783. data/ext/ice/cpp/src/Ice/ImplicitContext.cpp +0 -75
  784. data/ext/ice/cpp/src/Ice/ImplicitContextF.cpp +0 -61
  785. data/ext/ice/cpp/src/Ice/ImplicitContextI.cpp +0 -655
  786. data/ext/ice/cpp/src/Ice/ImplicitContextI.h +0 -48
  787. data/ext/ice/cpp/src/Ice/Incoming.cpp +0 -795
  788. data/ext/ice/cpp/src/Ice/IncomingAsync.cpp +0 -230
  789. data/ext/ice/cpp/src/Ice/IncomingRequest.h +0 -33
  790. data/ext/ice/cpp/src/Ice/Initialize.cpp +0 -654
  791. data/ext/ice/cpp/src/Ice/InputStream.cpp +0 -2741
  792. data/ext/ice/cpp/src/Ice/Instance.cpp +0 -1967
  793. data/ext/ice/cpp/src/Ice/Instance.h +0 -235
  794. data/ext/ice/cpp/src/Ice/Instrumentation.cpp +0 -188
  795. data/ext/ice/cpp/src/Ice/InstrumentationF.cpp +0 -66
  796. data/ext/ice/cpp/src/Ice/InstrumentationI.cpp +0 -1094
  797. data/ext/ice/cpp/src/Ice/InstrumentationI.h +0 -256
  798. data/ext/ice/cpp/src/Ice/LocalException.cpp +0 -3262
  799. data/ext/ice/cpp/src/Ice/LocalObject.cpp +0 -23
  800. data/ext/ice/cpp/src/Ice/Locator.cpp +0 -2042
  801. data/ext/ice/cpp/src/Ice/LocatorF.cpp +0 -63
  802. data/ext/ice/cpp/src/Ice/LocatorInfo.cpp +0 -889
  803. data/ext/ice/cpp/src/Ice/LocatorInfo.h +0 -189
  804. data/ext/ice/cpp/src/Ice/LocatorInfoF.h +0 -29
  805. data/ext/ice/cpp/src/Ice/Logger.cpp +0 -73
  806. data/ext/ice/cpp/src/Ice/LoggerAdminI.cpp +0 -956
  807. data/ext/ice/cpp/src/Ice/LoggerAdminI.h +0 -41
  808. data/ext/ice/cpp/src/Ice/LoggerF.cpp +0 -61
  809. data/ext/ice/cpp/src/Ice/LoggerI.cpp +0 -259
  810. data/ext/ice/cpp/src/Ice/LoggerI.h +0 -52
  811. data/ext/ice/cpp/src/Ice/LoggerUtil.cpp +0 -100
  812. data/ext/ice/cpp/src/Ice/Metrics.cpp +0 -2352
  813. data/ext/ice/cpp/src/Ice/MetricsAdminI.cpp +0 -694
  814. data/ext/ice/cpp/src/Ice/MetricsObserverI.cpp +0 -8
  815. data/ext/ice/cpp/src/Ice/Network.cpp +0 -2249
  816. data/ext/ice/cpp/src/Ice/Network.h +0 -289
  817. data/ext/ice/cpp/src/Ice/NetworkF.h +0 -19
  818. data/ext/ice/cpp/src/Ice/NetworkProxy.cpp +0 -311
  819. data/ext/ice/cpp/src/Ice/NetworkProxy.h +0 -72
  820. data/ext/ice/cpp/src/Ice/NetworkProxyF.h +0 -21
  821. data/ext/ice/cpp/src/Ice/OSLogLoggerI.cpp +0 -57
  822. data/ext/ice/cpp/src/Ice/OSLogLoggerI.h +0 -40
  823. data/ext/ice/cpp/src/Ice/Object.cpp +0 -435
  824. data/ext/ice/cpp/src/Ice/ObjectAdapter.cpp +0 -79
  825. data/ext/ice/cpp/src/Ice/ObjectAdapterF.cpp +0 -61
  826. data/ext/ice/cpp/src/Ice/ObjectAdapterFactory.cpp +0 -291
  827. data/ext/ice/cpp/src/Ice/ObjectAdapterFactory.h +0 -53
  828. data/ext/ice/cpp/src/Ice/ObjectAdapterFactoryF.h +0 -25
  829. data/ext/ice/cpp/src/Ice/ObjectAdapterI.cpp +0 -1530
  830. data/ext/ice/cpp/src/Ice/ObjectAdapterI.h +0 -159
  831. data/ext/ice/cpp/src/Ice/ObjectFactory.cpp +0 -75
  832. data/ext/ice/cpp/src/Ice/ObserverHelper.cpp +0 -56
  833. data/ext/ice/cpp/src/Ice/OpaqueEndpointI.cpp +0 -408
  834. data/ext/ice/cpp/src/Ice/OpaqueEndpointI.h +0 -74
  835. data/ext/ice/cpp/src/Ice/OutgoingAsync.cpp +0 -1322
  836. data/ext/ice/cpp/src/Ice/OutputStream.cpp +0 -1367
  837. data/ext/ice/cpp/src/Ice/Plugin.cpp +0 -87
  838. data/ext/ice/cpp/src/Ice/PluginF.cpp +0 -61
  839. data/ext/ice/cpp/src/Ice/PluginManagerI.cpp +0 -503
  840. data/ext/ice/cpp/src/Ice/PluginManagerI.h +0 -61
  841. data/ext/ice/cpp/src/Ice/Process.cpp +0 -471
  842. data/ext/ice/cpp/src/Ice/ProcessF.cpp +0 -63
  843. data/ext/ice/cpp/src/Ice/Properties.cpp +0 -78
  844. data/ext/ice/cpp/src/Ice/PropertiesAdmin.cpp +0 -603
  845. data/ext/ice/cpp/src/Ice/PropertiesAdminI.cpp +0 -265
  846. data/ext/ice/cpp/src/Ice/PropertiesAdminI.h +0 -64
  847. data/ext/ice/cpp/src/Ice/PropertiesF.cpp +0 -63
  848. data/ext/ice/cpp/src/Ice/PropertiesI.cpp +0 -739
  849. data/ext/ice/cpp/src/Ice/PropertiesI.h +0 -70
  850. data/ext/ice/cpp/src/Ice/PropertyNames.cpp +0 -1429
  851. data/ext/ice/cpp/src/Ice/PropertyNames.h +0 -78
  852. data/ext/ice/cpp/src/Ice/Protocol.cpp +0 -124
  853. data/ext/ice/cpp/src/Ice/ProtocolInstance.cpp +0 -131
  854. data/ext/ice/cpp/src/Ice/ProtocolInstance.h +0 -93
  855. data/ext/ice/cpp/src/Ice/ProtocolInstanceF.h +0 -21
  856. data/ext/ice/cpp/src/Ice/ProtocolPluginFacade.cpp +0 -51
  857. data/ext/ice/cpp/src/Ice/ProtocolPluginFacade.h +0 -64
  858. data/ext/ice/cpp/src/Ice/ProtocolPluginFacadeF.h +0 -21
  859. data/ext/ice/cpp/src/Ice/Proxy.cpp +0 -1601
  860. data/ext/ice/cpp/src/Ice/ProxyFactory.cpp +0 -300
  861. data/ext/ice/cpp/src/Ice/ProxyFactory.h +0 -57
  862. data/ext/ice/cpp/src/Ice/Reference.cpp +0 -2046
  863. data/ext/ice/cpp/src/Ice/Reference.h +0 -323
  864. data/ext/ice/cpp/src/Ice/ReferenceFactory.cpp +0 -888
  865. data/ext/ice/cpp/src/Ice/ReferenceFactory.h +0 -76
  866. data/ext/ice/cpp/src/Ice/ReferenceFactoryF.h +0 -19
  867. data/ext/ice/cpp/src/Ice/RegisterPluginsInit.cpp +0 -38
  868. data/ext/ice/cpp/src/Ice/RegisterPluginsInit.h +0 -20
  869. data/ext/ice/cpp/src/Ice/RemoteLogger.cpp +0 -1171
  870. data/ext/ice/cpp/src/Ice/ReplyStatus.h +0 -24
  871. data/ext/ice/cpp/src/Ice/RequestHandler.cpp +0 -37
  872. data/ext/ice/cpp/src/Ice/RequestHandler.h +0 -78
  873. data/ext/ice/cpp/src/Ice/RequestHandlerFactory.cpp +0 -77
  874. data/ext/ice/cpp/src/Ice/RequestHandlerFactory.h +0 -37
  875. data/ext/ice/cpp/src/Ice/ResponseHandler.cpp +0 -12
  876. data/ext/ice/cpp/src/Ice/ResponseHandler.h +0 -43
  877. data/ext/ice/cpp/src/Ice/RetryQueue.cpp +0 -157
  878. data/ext/ice/cpp/src/Ice/RetryQueue.h +0 -66
  879. data/ext/ice/cpp/src/Ice/RetryQueueF.h +0 -19
  880. data/ext/ice/cpp/src/Ice/Router.cpp +0 -977
  881. data/ext/ice/cpp/src/Ice/RouterF.cpp +0 -63
  882. data/ext/ice/cpp/src/Ice/RouterInfo.cpp +0 -379
  883. data/ext/ice/cpp/src/Ice/RouterInfo.h +0 -152
  884. data/ext/ice/cpp/src/Ice/RouterInfoF.h +0 -25
  885. data/ext/ice/cpp/src/Ice/SHA1.cpp +0 -169
  886. data/ext/ice/cpp/src/Ice/Selector.cpp +0 -1525
  887. data/ext/ice/cpp/src/Ice/Selector.h +0 -292
  888. data/ext/ice/cpp/src/Ice/ServantLocator.cpp +0 -75
  889. data/ext/ice/cpp/src/Ice/ServantLocatorF.cpp +0 -61
  890. data/ext/ice/cpp/src/Ice/ServantManager.cpp +0 -480
  891. data/ext/ice/cpp/src/Ice/ServantManager.h +0 -69
  892. data/ext/ice/cpp/src/Ice/SharedContext.h +0 -46
  893. data/ext/ice/cpp/src/Ice/SliceChecksumDict.cpp +0 -49
  894. data/ext/ice/cpp/src/Ice/SliceChecksums.cpp +0 -75
  895. data/ext/ice/cpp/src/Ice/SlicedData.cpp +0 -127
  896. data/ext/ice/cpp/src/Ice/StreamSocket.cpp +0 -519
  897. data/ext/ice/cpp/src/Ice/StreamSocket.h +0 -85
  898. data/ext/ice/cpp/src/Ice/StringConverterPlugin.cpp +0 -192
  899. data/ext/ice/cpp/src/Ice/StringUtil.h +0 -30
  900. data/ext/ice/cpp/src/Ice/SysLoggerI.cpp +0 -166
  901. data/ext/ice/cpp/src/Ice/SysLoggerI.h +0 -37
  902. data/ext/ice/cpp/src/Ice/SystemdJournalI.cpp +0 -66
  903. data/ext/ice/cpp/src/Ice/SystemdJournalI.h +0 -39
  904. data/ext/ice/cpp/src/Ice/TcpAcceptor.cpp +0 -234
  905. data/ext/ice/cpp/src/Ice/TcpAcceptor.h +0 -61
  906. data/ext/ice/cpp/src/Ice/TcpConnector.cpp +0 -127
  907. data/ext/ice/cpp/src/Ice/TcpConnector.h +0 -45
  908. data/ext/ice/cpp/src/Ice/TcpEndpointI.cpp +0 -385
  909. data/ext/ice/cpp/src/Ice/TcpEndpointI.h +0 -90
  910. data/ext/ice/cpp/src/Ice/TcpTransceiver.cpp +0 -135
  911. data/ext/ice/cpp/src/Ice/TcpTransceiver.h +0 -58
  912. data/ext/ice/cpp/src/Ice/Thread.cpp +0 -569
  913. data/ext/ice/cpp/src/Ice/ThreadPool.cpp +0 -1292
  914. data/ext/ice/cpp/src/Ice/ThreadPool.h +0 -393
  915. data/ext/ice/cpp/src/Ice/Timer.cpp +0 -263
  916. data/ext/ice/cpp/src/Ice/TraceLevels.cpp +0 -38
  917. data/ext/ice/cpp/src/Ice/TraceLevels.h +0 -45
  918. data/ext/ice/cpp/src/Ice/TraceLevelsF.h +0 -21
  919. data/ext/ice/cpp/src/Ice/TraceUtil.cpp +0 -478
  920. data/ext/ice/cpp/src/Ice/TraceUtil.h +0 -30
  921. data/ext/ice/cpp/src/Ice/Transceiver.cpp +0 -18
  922. data/ext/ice/cpp/src/Ice/Transceiver.h +0 -49
  923. data/ext/ice/cpp/src/Ice/TransceiverF.h +0 -33
  924. data/ext/ice/cpp/src/Ice/UdpConnector.cpp +0 -131
  925. data/ext/ice/cpp/src/Ice/UdpConnector.h +0 -45
  926. data/ext/ice/cpp/src/Ice/UdpEndpointI.cpp +0 -515
  927. data/ext/ice/cpp/src/Ice/UdpEndpointI.h +0 -95
  928. data/ext/ice/cpp/src/Ice/UdpTransceiver.cpp +0 -806
  929. data/ext/ice/cpp/src/Ice/UdpTransceiver.h +0 -96
  930. data/ext/ice/cpp/src/Ice/Value.cpp +0 -76
  931. data/ext/ice/cpp/src/Ice/ValueFactory.cpp +0 -83
  932. data/ext/ice/cpp/src/Ice/ValueFactoryManagerI.cpp +0 -61
  933. data/ext/ice/cpp/src/Ice/ValueFactoryManagerI.h +0 -37
  934. data/ext/ice/cpp/src/Ice/Version.cpp +0 -57
  935. data/ext/ice/cpp/src/Ice/VirtualShared.h +0 -38
  936. data/ext/ice/cpp/src/Ice/WSAcceptor.cpp +0 -92
  937. data/ext/ice/cpp/src/Ice/WSAcceptor.h +0 -52
  938. data/ext/ice/cpp/src/Ice/WSConnector.cpp +0 -102
  939. data/ext/ice/cpp/src/Ice/WSConnector.h +0 -43
  940. data/ext/ice/cpp/src/Ice/WSEndpoint.cpp +0 -508
  941. data/ext/ice/cpp/src/Ice/WSEndpoint.h +0 -93
  942. data/ext/ice/cpp/src/Ice/WSTransceiver.cpp +0 -1704
  943. data/ext/ice/cpp/src/Ice/WSTransceiver.h +0 -141
  944. data/ext/ice/cpp/src/IceDiscovery/IceDiscovery.cpp +0 -915
  945. data/ext/ice/cpp/src/IceDiscovery/IceDiscovery.h +0 -1889
  946. data/ext/ice/cpp/src/IceDiscovery/LocatorI.cpp +0 -265
  947. data/ext/ice/cpp/src/IceDiscovery/LocatorI.h +0 -109
  948. data/ext/ice/cpp/src/IceDiscovery/LookupI.cpp +0 -608
  949. data/ext/ice/cpp/src/IceDiscovery/LookupI.h +0 -228
  950. data/ext/ice/cpp/src/IceDiscovery/PluginI.cpp +0 -176
  951. data/ext/ice/cpp/src/IceDiscovery/PluginI.h +0 -36
  952. data/ext/ice/cpp/src/IceLocatorDiscovery/IceLocatorDiscovery.cpp +0 -730
  953. data/ext/ice/cpp/src/IceLocatorDiscovery/IceLocatorDiscovery.h +0 -1197
  954. data/ext/ice/cpp/src/IceLocatorDiscovery/Plugin.h +0 -47
  955. data/ext/ice/cpp/src/IceLocatorDiscovery/PluginI.cpp +0 -1048
  956. data/ext/ice/cpp/src/IceSSL/AcceptorI.cpp +0 -105
  957. data/ext/ice/cpp/src/IceSSL/AcceptorI.h +0 -52
  958. data/ext/ice/cpp/src/IceSSL/CertificateI.cpp +0 -301
  959. data/ext/ice/cpp/src/IceSSL/CertificateI.h +0 -64
  960. data/ext/ice/cpp/src/IceSSL/ConnectionInfo.cpp +0 -75
  961. data/ext/ice/cpp/src/IceSSL/ConnectionInfoF.cpp +0 -61
  962. data/ext/ice/cpp/src/IceSSL/ConnectorI.cpp +0 -102
  963. data/ext/ice/cpp/src/IceSSL/ConnectorI.h +0 -44
  964. data/ext/ice/cpp/src/IceSSL/EndpointI.cpp +0 -372
  965. data/ext/ice/cpp/src/IceSSL/EndpointI.h +0 -100
  966. data/ext/ice/cpp/src/IceSSL/EndpointInfo.cpp +0 -75
  967. data/ext/ice/cpp/src/IceSSL/Instance.cpp +0 -28
  968. data/ext/ice/cpp/src/IceSSL/Instance.h +0 -37
  969. data/ext/ice/cpp/src/IceSSL/InstanceF.h +0 -33
  970. data/ext/ice/cpp/src/IceSSL/OpenSSLCertificateI.cpp +0 -688
  971. data/ext/ice/cpp/src/IceSSL/OpenSSLEngine.cpp +0 -1147
  972. data/ext/ice/cpp/src/IceSSL/OpenSSLEngine.h +0 -59
  973. data/ext/ice/cpp/src/IceSSL/OpenSSLEngineF.h +0 -27
  974. data/ext/ice/cpp/src/IceSSL/OpenSSLPluginI.cpp +0 -127
  975. data/ext/ice/cpp/src/IceSSL/OpenSSLTransceiverI.cpp +0 -1092
  976. data/ext/ice/cpp/src/IceSSL/OpenSSLTransceiverI.h +0 -90
  977. data/ext/ice/cpp/src/IceSSL/OpenSSLUtil.cpp +0 -288
  978. data/ext/ice/cpp/src/IceSSL/OpenSSLUtil.h +0 -58
  979. data/ext/ice/cpp/src/IceSSL/PluginI.cpp +0 -246
  980. data/ext/ice/cpp/src/IceSSL/PluginI.h +0 -67
  981. data/ext/ice/cpp/src/IceSSL/RFC2253.cpp +0 -490
  982. data/ext/ice/cpp/src/IceSSL/RFC2253.h +0 -62
  983. data/ext/ice/cpp/src/IceSSL/SChannelCertificateI.cpp +0 -721
  984. data/ext/ice/cpp/src/IceSSL/SChannelEngine.cpp +0 -1283
  985. data/ext/ice/cpp/src/IceSSL/SChannelEngine.h +0 -123
  986. data/ext/ice/cpp/src/IceSSL/SChannelEngineF.h +0 -31
  987. data/ext/ice/cpp/src/IceSSL/SChannelPluginI.cpp +0 -73
  988. data/ext/ice/cpp/src/IceSSL/SChannelTransceiverI.cpp +0 -1174
  989. data/ext/ice/cpp/src/IceSSL/SChannelTransceiverI.h +0 -133
  990. data/ext/ice/cpp/src/IceSSL/SSLEngine.cpp +0 -313
  991. data/ext/ice/cpp/src/IceSSL/SSLEngine.h +0 -100
  992. data/ext/ice/cpp/src/IceSSL/SSLEngineF.h +0 -21
  993. data/ext/ice/cpp/src/IceSSL/SecureTransportCertificateI.cpp +0 -999
  994. data/ext/ice/cpp/src/IceSSL/SecureTransportEngine.cpp +0 -1308
  995. data/ext/ice/cpp/src/IceSSL/SecureTransportEngine.h +0 -59
  996. data/ext/ice/cpp/src/IceSSL/SecureTransportEngineF.h +0 -29
  997. data/ext/ice/cpp/src/IceSSL/SecureTransportPluginI.cpp +0 -75
  998. data/ext/ice/cpp/src/IceSSL/SecureTransportTransceiverI.cpp +0 -719
  999. data/ext/ice/cpp/src/IceSSL/SecureTransportTransceiverI.h +0 -92
  1000. data/ext/ice/cpp/src/IceSSL/SecureTransportUtil.cpp +0 -868
  1001. data/ext/ice/cpp/src/IceSSL/SecureTransportUtil.h +0 -45
  1002. data/ext/ice/cpp/src/IceSSL/TrustManager.cpp +0 -236
  1003. data/ext/ice/cpp/src/IceSSL/TrustManager.h +0 -46
  1004. data/ext/ice/cpp/src/IceSSL/TrustManagerF.h +0 -21
  1005. data/ext/ice/cpp/src/IceSSL/UWPCertificateI.cpp +0 -266
  1006. data/ext/ice/cpp/src/IceSSL/UWPEngine.cpp +0 -338
  1007. data/ext/ice/cpp/src/IceSSL/UWPEngine.h +0 -41
  1008. data/ext/ice/cpp/src/IceSSL/UWPEngineF.h +0 -26
  1009. data/ext/ice/cpp/src/IceSSL/UWPPluginI.cpp +0 -89
  1010. data/ext/ice/cpp/src/IceSSL/UWPTransceiverI.cpp +0 -383
  1011. data/ext/ice/cpp/src/IceSSL/UWPTransceiverI.h +0 -71
  1012. data/ext/ice/cpp/src/IceSSL/Util.cpp +0 -192
  1013. data/ext/ice/cpp/src/IceSSL/Util.h +0 -99
  1014. data/ext/ice/cpp/src/IceUtil/ConsoleUtil.cpp +0 -157
  1015. data/ext/ice/cpp/src/IceUtil/ConvertUTF.cpp +0 -472
  1016. data/ext/ice/cpp/src/IceUtil/ConvertUTF.h +0 -147
  1017. data/ext/ice/cpp/src/IceUtil/CtrlCHandler.cpp +0 -259
  1018. data/ext/ice/cpp/src/IceUtil/FileUtil.cpp +0 -471
  1019. data/ext/ice/cpp/src/IceUtil/InputUtil.cpp +0 -36
  1020. data/ext/ice/cpp/src/IceUtil/MutexProtocol.cpp +0 -19
  1021. data/ext/ice/cpp/src/IceUtil/Options.cpp +0 -1051
  1022. data/ext/ice/cpp/src/IceUtil/OutputUtil.cpp +0 -609
  1023. data/ext/ice/cpp/src/IceUtil/Random.cpp +0 -180
  1024. data/ext/ice/cpp/src/IceUtil/RecMutex.cpp +0 -238
  1025. data/ext/ice/cpp/src/IceUtil/Shared.cpp +0 -71
  1026. data/ext/ice/cpp/src/IceUtil/StringConverter.cpp +0 -690
  1027. data/ext/ice/cpp/src/IceUtil/StringUtil.cpp +0 -1135
  1028. data/ext/ice/cpp/src/IceUtil/ThreadException.cpp +0 -130
  1029. data/ext/ice/cpp/src/IceUtil/Time.cpp +0 -307
  1030. data/ext/ice/cpp/src/IceUtil/UUID.cpp +0 -165
  1031. data/ext/ice/cpp/src/IceUtil/Unicode.cpp +0 -183
  1032. data/ext/ice/cpp/src/IceUtil/Unicode.h +0 -43
  1033. data/ext/ice/cpp/src/IceUtil/UtilException.cpp +0 -839
  1034. data/ext/ice/cpp/src/Slice/CPlusPlusUtil.cpp +0 -1810
  1035. data/ext/ice/cpp/src/Slice/CPlusPlusUtil.h +0 -72
  1036. data/ext/ice/cpp/src/Slice/Checksum.cpp +0 -447
  1037. data/ext/ice/cpp/src/Slice/Checksum.h +0 -21
  1038. data/ext/ice/cpp/src/Slice/FileTracker.cpp +0 -146
  1039. data/ext/ice/cpp/src/Slice/FileTracker.h +0 -66
  1040. data/ext/ice/cpp/src/Slice/Grammar.cpp +0 -4793
  1041. data/ext/ice/cpp/src/Slice/Grammar.h +0 -118
  1042. data/ext/ice/cpp/src/Slice/GrammarUtil.h +0 -228
  1043. data/ext/ice/cpp/src/Slice/JavaUtil.cpp +0 -5176
  1044. data/ext/ice/cpp/src/Slice/JavaUtil.h +0 -407
  1045. data/ext/ice/cpp/src/Slice/MD5.cpp +0 -52
  1046. data/ext/ice/cpp/src/Slice/MD5.h +0 -39
  1047. data/ext/ice/cpp/src/Slice/MD5I.cpp +0 -393
  1048. data/ext/ice/cpp/src/Slice/MD5I.h +0 -91
  1049. data/ext/ice/cpp/src/Slice/PHPUtil.cpp +0 -157
  1050. data/ext/ice/cpp/src/Slice/PHPUtil.h +0 -36
  1051. data/ext/ice/cpp/src/Slice/Parser.cpp +0 -7058
  1052. data/ext/ice/cpp/src/Slice/Parser.h +0 -1174
  1053. data/ext/ice/cpp/src/Slice/Preprocessor.cpp +0 -797
  1054. data/ext/ice/cpp/src/Slice/Preprocessor.h +0 -60
  1055. data/ext/ice/cpp/src/Slice/Python.cpp +0 -830
  1056. data/ext/ice/cpp/src/Slice/PythonUtil.cpp +0 -3439
  1057. data/ext/ice/cpp/src/Slice/PythonUtil.h +0 -70
  1058. data/ext/ice/cpp/src/Slice/Ruby.cpp +0 -350
  1059. data/ext/ice/cpp/src/Slice/RubyUtil.cpp +0 -1571
  1060. data/ext/ice/cpp/src/Slice/RubyUtil.h +0 -49
  1061. data/ext/ice/cpp/src/Slice/Scanner.cpp +0 -2807
  1062. data/ext/ice/cpp/src/Slice/SliceUtil.cpp +0 -424
  1063. data/ext/ice/cpp/src/Slice/StringLiteralUtil.cpp +0 -456
  1064. data/ext/ice/cpp/src/Slice/Util.h +0 -50
  1065. data/ext/ice/mcpp/CMakeLists.txt +0 -80
  1066. data/ext/ice/mcpp/LICENSE +0 -29
  1067. data/ext/ice/mcpp/Makefile +0 -63
  1068. data/ext/ice/mcpp/README.md +0 -32
  1069. data/ext/ice/mcpp/internal.H +0 -530
  1070. data/ext/ice/mcpp/mcpp.gyp +0 -88
  1071. data/ext/ice/mcpp/system.c +0 -2737
  1072. data/lib/Glacier2/Metrics.rb +0 -56
  1073. data/lib/Glacier2/PermissionsVerifier.rb +0 -93
  1074. data/lib/Glacier2/PermissionsVerifierF.rb +0 -30
  1075. data/lib/Glacier2/Router.rb +0 -95
  1076. data/lib/Glacier2/RouterF.rb +0 -25
  1077. data/lib/Glacier2/SSLInfo.rb +0 -72
  1078. data/lib/Glacier2/Session.rb +0 -247
  1079. data/lib/Glacier2.rb +0 -7
  1080. data/lib/Ice/BuiltinSequences.rb +0 -60
  1081. data/lib/Ice/Communicator.rb +0 -87
  1082. data/lib/Ice/CommunicatorF.rb +0 -24
  1083. data/lib/Ice/Connection.rb +0 -413
  1084. data/lib/Ice/ConnectionF.rb +0 -32
  1085. data/lib/Ice/Current.rb +0 -141
  1086. data/lib/Ice/Endpoint.rb +0 -187
  1087. data/lib/Ice/EndpointF.rb +0 -48
  1088. data/lib/Ice/EndpointTypes.rb +0 -69
  1089. data/lib/Ice/FacetMap.rb +0 -24
  1090. data/lib/Ice/Identity.rb +0 -63
  1091. data/lib/Ice/ImplicitContext.rb +0 -26
  1092. data/lib/Ice/ImplicitContextF.rb +0 -24
  1093. data/lib/Ice/Instrumentation.rb +0 -169
  1094. data/lib/Ice/InstrumentationF.rb +0 -31
  1095. data/lib/Ice/LocalException.rb +0 -1031
  1096. data/lib/Ice/Locator.rb +0 -196
  1097. data/lib/Ice/LocatorF.rb +0 -30
  1098. data/lib/Ice/Logger.rb +0 -24
  1099. data/lib/Ice/LoggerF.rb +0 -24
  1100. data/lib/Ice/Metrics.rb +0 -337
  1101. data/lib/Ice/ObjectAdapter.rb +0 -29
  1102. data/lib/Ice/ObjectAdapterF.rb +0 -24
  1103. data/lib/Ice/ObjectFactory.rb +0 -24
  1104. data/lib/Ice/Plugin.rb +0 -30
  1105. data/lib/Ice/PluginF.rb +0 -28
  1106. data/lib/Ice/Process.rb +0 -53
  1107. data/lib/Ice/ProcessF.rb +0 -25
  1108. data/lib/Ice/Properties.rb +0 -25
  1109. data/lib/Ice/PropertiesAdmin.rb +0 -63
  1110. data/lib/Ice/PropertiesF.rb +0 -29
  1111. data/lib/Ice/RemoteLogger.rb +0 -207
  1112. data/lib/Ice/Router.rb +0 -87
  1113. data/lib/Ice/RouterF.rb +0 -25
  1114. data/lib/Ice/ServantLocator.rb +0 -26
  1115. data/lib/Ice/ServantLocatorF.rb +0 -24
  1116. data/lib/Ice/SliceChecksumDict.rb +0 -24
  1117. data/lib/Ice/ValueFactory.rb +0 -28
  1118. data/lib/Ice/Version.rb +0 -90
  1119. data/lib/Ice.rb +0 -673
  1120. data/lib/IceBox/IceBox.rb +0 -164
  1121. data/lib/IceBox.rb +0 -5
  1122. data/lib/IceGrid/Admin.rb +0 -1196
  1123. data/lib/IceGrid/Descriptor.rb +0 -1034
  1124. data/lib/IceGrid/Exception.rb +0 -376
  1125. data/lib/IceGrid/FileParser.rb +0 -65
  1126. data/lib/IceGrid/PluginFacade.rb +0 -35
  1127. data/lib/IceGrid/Registry.rb +0 -209
  1128. data/lib/IceGrid/Session.rb +0 -71
  1129. data/lib/IceGrid/UserAccountMapper.rb +0 -61
  1130. data/lib/IceGrid.rb +0 -9
  1131. data/lib/IcePatch2/FileInfo.rb +0 -115
  1132. data/lib/IcePatch2/FileServer.rb +0 -123
  1133. data/lib/IcePatch2.rb +0 -5
  1134. data/lib/IceStorm/IceStorm.rb +0 -332
  1135. data/lib/IceStorm/Metrics.rb +0 -73
  1136. data/lib/IceStorm.rb +0 -6
  1137. data/slice/Glacier2/Metrics.ice +0 -88
  1138. data/slice/Glacier2/PermissionsVerifier.ice +0 -111
  1139. data/slice/Glacier2/PermissionsVerifierF.ice +0 -30
  1140. data/slice/Glacier2/Router.ice +0 -186
  1141. data/slice/Glacier2/RouterF.ice +0 -29
  1142. data/slice/Glacier2/SSLInfo.ice +0 -59
  1143. data/slice/Glacier2/Session.ice +0 -274
  1144. data/slice/Ice/BuiltinSequences.ice +0 -59
  1145. data/slice/Ice/Communicator.ice +0 -676
  1146. data/slice/Ice/CommunicatorF.ice +0 -31
  1147. data/slice/Ice/Connection.ice +0 -516
  1148. data/slice/Ice/ConnectionF.ice +0 -33
  1149. data/slice/Ice/Current.ice +0 -170
  1150. data/slice/Ice/Endpoint.ice +0 -291
  1151. data/slice/Ice/EndpointF.ice +0 -43
  1152. data/slice/Ice/EndpointTypes.ice +0 -48
  1153. data/slice/Ice/FacetMap.ice +0 -36
  1154. data/slice/Ice/Identity.ice +0 -75
  1155. data/slice/Ice/ImplicitContext.ice +0 -119
  1156. data/slice/Ice/ImplicitContextF.ice +0 -30
  1157. data/slice/Ice/Instrumentation.ice +0 -509
  1158. data/slice/Ice/InstrumentationF.ice +0 -38
  1159. data/slice/Ice/LocalException.ice +0 -1040
  1160. data/slice/Ice/Locator.ice +0 -239
  1161. data/slice/Ice/LocatorF.ice +0 -32
  1162. data/slice/Ice/Logger.ice +0 -99
  1163. data/slice/Ice/LoggerF.ice +0 -31
  1164. data/slice/Ice/Metrics.ice +0 -436
  1165. data/slice/Ice/ObjectAdapter.ice +0 -710
  1166. data/slice/Ice/ObjectAdapterF.ice +0 -31
  1167. data/slice/Ice/ObjectFactory.ice +0 -71
  1168. data/slice/Ice/Plugin.ice +0 -131
  1169. data/slice/Ice/PluginF.ice +0 -36
  1170. data/slice/Ice/Process.ice +0 -64
  1171. data/slice/Ice/ProcessF.ice +0 -31
  1172. data/slice/Ice/Properties.ice +0 -244
  1173. data/slice/Ice/PropertiesAdmin.ice +0 -87
  1174. data/slice/Ice/PropertiesF.ice +0 -32
  1175. data/slice/Ice/RemoteLogger.ice +0 -226
  1176. data/slice/Ice/Router.ice +0 -103
  1177. data/slice/Ice/RouterF.ice +0 -31
  1178. data/slice/Ice/ServantLocator.ice +0 -136
  1179. data/slice/Ice/ServantLocatorF.ice +0 -31
  1180. data/slice/Ice/SliceChecksumDict.ice +0 -36
  1181. data/slice/Ice/ValueFactory.ice +0 -133
  1182. data/slice/Ice/Version.ice +0 -51
  1183. data/slice/IceBT/ConnectionInfo.ice +0 -59
  1184. data/slice/IceBT/EndpointInfo.ice +0 -57
  1185. data/slice/IceBT/Types.ice +0 -45
  1186. data/slice/IceBox/IceBox.ice +0 -216
  1187. data/slice/IceDiscovery/IceDiscovery.ice +0 -98
  1188. data/slice/IceGrid/Admin.ice +0 -1957
  1189. data/slice/IceGrid/Descriptor.ice +0 -1094
  1190. data/slice/IceGrid/Exception.ice +0 -396
  1191. data/slice/IceGrid/FileParser.ice +0 -72
  1192. data/slice/IceGrid/PluginFacade.ice +0 -329
  1193. data/slice/IceGrid/Registry.ice +0 -269
  1194. data/slice/IceGrid/Session.ice +0 -128
  1195. data/slice/IceGrid/UserAccountMapper.ice +0 -69
  1196. data/slice/IceIAP/ConnectionInfo.ice +0 -74
  1197. data/slice/IceIAP/EndpointInfo.ice +0 -68
  1198. data/slice/IceLocatorDiscovery/IceLocatorDiscovery.ice +0 -83
  1199. data/slice/IcePatch2/FileInfo.ice +0 -85
  1200. data/slice/IcePatch2/FileServer.ice +0 -191
  1201. data/slice/IceSSL/ConnectionInfo.ice +0 -54
  1202. data/slice/IceSSL/ConnectionInfoF.ice +0 -31
  1203. data/slice/IceSSL/EndpointInfo.ice +0 -45
  1204. data/slice/IceStorm/IceStorm.ice +0 -414
  1205. data/slice/IceStorm/Metrics.ice +0 -83
  1206. /data/{ext → dist}/ice/mcpp/config.h +0 -0
  1207. /data/{ext → dist}/ice/mcpp/configed.H +0 -0
  1208. /data/{ext → dist}/ice/mcpp/directive.c +0 -0
  1209. /data/{ext → dist}/ice/mcpp/eval.c +0 -0
  1210. /data/{ext → dist}/ice/mcpp/expand.c +0 -0
  1211. /data/{ext → dist}/ice/mcpp/mbchar.c +0 -0
  1212. /data/{ext → dist}/ice/mcpp/mcpp_lib.h +0 -0
  1213. /data/{ext/ice/mcpp/main.c → dist/ice/mcpp/mcpp_main.c} +0 -0
  1214. /data/{ext → dist}/ice/mcpp/mcpp_out.h +0 -0
  1215. /data/{ext → dist}/ice/mcpp/support.c +0 -0
  1216. /data/{ext → dist}/ice/mcpp/system.H +0 -0
@@ -0,0 +1,4125 @@
1
+ /* A Bison parser, made by GNU Bison 3.8.2. */
2
+
3
+ /* Bison implementation for Yacc-like parsers in C
4
+
5
+ Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 Free Software Foundation,
6
+ Inc.
7
+
8
+ This program is free software: you can redistribute it and/or modify
9
+ it under the terms of the GNU General Public License as published by
10
+ the Free Software Foundation, either version 3 of the License, or
11
+ (at your option) any later version.
12
+
13
+ This program is distributed in the hope that it will be useful,
14
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ GNU General Public License for more details.
17
+
18
+ You should have received a copy of the GNU General Public License
19
+ along with this program. If not, see <https://www.gnu.org/licenses/>. */
20
+
21
+ /* As a special exception, you may create a larger work that contains
22
+ part or all of the Bison parser skeleton and distribute that work
23
+ under terms of your choice, so long as that work isn't itself a
24
+ parser generator using the skeleton or a modified version thereof
25
+ as a parser skeleton. Alternatively, if you modify or redistribute
26
+ the parser skeleton itself, you may (at your option) remove this
27
+ special exception, which will cause the skeleton and the resulting
28
+ Bison output files to be licensed under the GNU General Public
29
+ License without this special exception.
30
+
31
+ This special exception was added by the Free Software Foundation in
32
+ version 2.2 of Bison. */
33
+
34
+ /* C LALR(1) parser skeleton written by Richard Stallman, by
35
+ simplifying the original so-called "semantic" parser. */
36
+
37
+ /* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
38
+ especially those whose name start with YY_ or yy_. They are
39
+ private implementation details that can be changed or removed. */
40
+
41
+ /* All symbols defined below should begin with yy or YY, to avoid
42
+ infringing on user name space. This should be done even for local
43
+ variables, as they might otherwise be expanded by user macros.
44
+ There are some unavoidable exceptions within include files to
45
+ define necessary library symbols; they are noted "INFRINGES ON
46
+ USER NAME SPACE" below. */
47
+
48
+ /* Identify Bison output, and Bison version. */
49
+ #define YYBISON 30802
50
+
51
+ /* Bison version string. */
52
+ #define YYBISON_VERSION "3.8.2"
53
+
54
+ /* Skeleton name. */
55
+ #define YYSKELETON_NAME "yacc.c"
56
+
57
+ /* Pure parsers. */
58
+ #define YYPURE 1
59
+
60
+ /* Push parsers. */
61
+ #define YYPUSH 0
62
+
63
+ /* Pull parsers. */
64
+ #define YYPULL 1
65
+
66
+ /* "%code top" blocks. */
67
+ #line 1 "src/Slice/Grammar.y"
68
+
69
+
70
+ // Copyright (c) ZeroC, Inc.
71
+
72
+ // NOLINTBEGIN
73
+
74
+ #line 27 "src/Slice/Grammar.y"
75
+
76
+
77
+ // Defines the rule bison uses to reduce token locations. Bison asks that the macro should
78
+ // be one-line, and treatable as a single statement when followed by a semi-colon.
79
+ // `N` is the number of tokens that are being combined, and (Cur) is their combined location.
80
+ #define YYLLOC_DEFAULT(Cur, Rhs, N) \
81
+ do \
82
+ if (N == 1) \
83
+ { \
84
+ (Cur) = (YYRHSLOC((Rhs), 1)); \
85
+ } \
86
+ else \
87
+ { \
88
+ if (N) \
89
+ { \
90
+ (Cur).firstLine = (YYRHSLOC((Rhs), 1)).firstLine; \
91
+ (Cur).firstColumn = (YYRHSLOC((Rhs), 1)).firstColumn; \
92
+ } \
93
+ else \
94
+ { \
95
+ (Cur).firstLine = (YYRHSLOC((Rhs), 0)).lastLine; \
96
+ (Cur).firstColumn = (YYRHSLOC((Rhs), 0)).lastColumn; \
97
+ } \
98
+ (Cur).filename = (YYRHSLOC((Rhs), N)).filename; \
99
+ (Cur).lastLine = (YYRHSLOC((Rhs), N)).lastLine; \
100
+ (Cur).lastColumn = (YYRHSLOC((Rhs), N)).lastColumn; \
101
+ } \
102
+ while(0)
103
+
104
+
105
+ #line 106 "src/Slice/Grammar.cpp"
106
+
107
+ /* Substitute the variable and function names. */
108
+ #define yyparse slice_parse
109
+ #define yylex slice_lex
110
+ #define yyerror slice_error
111
+ #define yydebug slice_debug
112
+ #define yynerrs slice_nerrs
113
+
114
+ /* First part of user prologue. */
115
+ #line 66 "src/Slice/Grammar.y"
116
+
117
+
118
+ #include "Ice/UUID.h"
119
+ #include "Parser.h"
120
+ #include "GrammarUtil.h"
121
+
122
+ #include <cstring>
123
+ #include <limits>
124
+
125
+ #ifdef _MSC_VER
126
+ // warning C4102: 'yyoverflowlab' : unreferenced label
127
+ # pragma warning(disable:4102)
128
+ // warning C4127: conditional expression is constant
129
+ # pragma warning(disable:4127)
130
+ // warning C4702: unreachable code
131
+ # pragma warning(disable:4702)
132
+ #endif
133
+
134
+ // Avoid old style cast warnings in generated grammar
135
+ #ifdef __GNUC__
136
+ # pragma GCC diagnostic ignored "-Wold-style-cast"
137
+ # pragma GCC diagnostic ignored "-Wunused-label"
138
+
139
+ // See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98753
140
+ # pragma GCC diagnostic ignored "-Wfree-nonheap-object"
141
+ #endif
142
+
143
+ // Avoid clang warnings in generated grammar
144
+ #if defined(__clang__)
145
+ # pragma clang diagnostic ignored "-Wconversion"
146
+ # pragma clang diagnostic ignored "-Wsign-conversion"
147
+ # pragma clang diagnostic ignored "-Wunused-but-set-variable"
148
+ # pragma clang diagnostic ignored "-Wunused-label"
149
+ #endif
150
+
151
+ using namespace std;
152
+ using namespace Slice;
153
+
154
+ void
155
+ slice_error(const char* s)
156
+ {
157
+ // We want 'unit' to emit the error so its error count is incremented.
158
+ currentUnit->error(s);
159
+ }
160
+
161
+ namespace
162
+ {
163
+ /// Resolves a `Type` named `name` from the current scope and returns it.
164
+ /// If no such type could be found, this returns `nullptr` instead.
165
+ /// @param name The (possibly scoped) name to resolve.
166
+ /// @param expectInterfaceType `true` if the type ends with '*' (indicated a proxy), false otherwise.
167
+ /// This function will automatically emit errors for interfaces missing '*', or non-interfaces using '*'.
168
+ [[nodiscard]] TypePtr lookupTypeByName(const string& name, bool expectInterfaceType);
169
+
170
+ /// Resolves an `InterfaceDef` named `name` from the current scope and returns it.
171
+ /// If no such interface could be found, this returns `nullptr` instead.
172
+ /// @param name The (possibly scoped) name to resolve.
173
+ [[nodiscard]] InterfaceDefPtr lookupInterfaceByName(const string& name);
174
+
175
+ /// Checks if the provided integer token's value is within the range ['0' ... 'int32_t::max'] (inclusive).
176
+ /// If it is within this range, this function will return `true`.
177
+ /// Otherwise this will return `false`, and automatically emit an error stating the issue.
178
+ /// @param token An integer token to check the value of.
179
+ /// @param kindString A string describing what the integer is being used for ("tag", "compact id", etc.).
180
+ /// It is only used to emit a more descriptive error message.
181
+ bool checkIntegerBounds(const IntegerTokPtr& token, string_view kindString);
182
+ }
183
+
184
+
185
+ #line 186 "src/Slice/Grammar.cpp"
186
+
187
+ # ifndef YY_CAST
188
+ # ifdef __cplusplus
189
+ # define YY_CAST(Type, Val) static_cast<Type> (Val)
190
+ # define YY_REINTERPRET_CAST(Type, Val) reinterpret_cast<Type> (Val)
191
+ # else
192
+ # define YY_CAST(Type, Val) ((Type) (Val))
193
+ # define YY_REINTERPRET_CAST(Type, Val) ((Type) (Val))
194
+ # endif
195
+ # endif
196
+ # ifndef YY_NULLPTR
197
+ # if defined __cplusplus
198
+ # if 201103L <= __cplusplus
199
+ # define YY_NULLPTR nullptr
200
+ # else
201
+ # define YY_NULLPTR 0
202
+ # endif
203
+ # else
204
+ # define YY_NULLPTR ((void*)0)
205
+ # endif
206
+ # endif
207
+
208
+ #include "Grammar.h"
209
+ /* Symbol kind. */
210
+ enum yysymbol_kind_t
211
+ {
212
+ YYSYMBOL_YYEMPTY = -2,
213
+ YYSYMBOL_YYEOF = 0, /* "end of file" */
214
+ YYSYMBOL_YYerror = 1, /* error */
215
+ YYSYMBOL_YYUNDEF = 2, /* "invalid token" */
216
+ YYSYMBOL_ICE_MODULE = 3, /* "module keyword" */
217
+ YYSYMBOL_ICE_CLASS = 4, /* "class keyword" */
218
+ YYSYMBOL_ICE_INTERFACE = 5, /* "interface keyword" */
219
+ YYSYMBOL_ICE_EXCEPTION = 6, /* "exception keyword" */
220
+ YYSYMBOL_ICE_STRUCT = 7, /* "struct keyword" */
221
+ YYSYMBOL_ICE_SEQUENCE = 8, /* "sequence keyword" */
222
+ YYSYMBOL_ICE_DICTIONARY = 9, /* "dictionary keyword" */
223
+ YYSYMBOL_ICE_ENUM = 10, /* "enum keyword" */
224
+ YYSYMBOL_ICE_OUT = 11, /* "out keyword" */
225
+ YYSYMBOL_ICE_EXTENDS = 12, /* "extends keyword" */
226
+ YYSYMBOL_ICE_THROWS = 13, /* "throws keyword" */
227
+ YYSYMBOL_ICE_VOID = 14, /* "void keyword" */
228
+ YYSYMBOL_ICE_BOOL = 15, /* "bool keyword" */
229
+ YYSYMBOL_ICE_BYTE = 16, /* "byte keyword" */
230
+ YYSYMBOL_ICE_SHORT = 17, /* "short keyword" */
231
+ YYSYMBOL_ICE_INT = 18, /* "int keyword" */
232
+ YYSYMBOL_ICE_LONG = 19, /* "long keyword" */
233
+ YYSYMBOL_ICE_FLOAT = 20, /* "float keyword" */
234
+ YYSYMBOL_ICE_DOUBLE = 21, /* "double keyword" */
235
+ YYSYMBOL_ICE_STRING = 22, /* "string keyword" */
236
+ YYSYMBOL_ICE_OBJECT = 23, /* "Object keyword" */
237
+ YYSYMBOL_ICE_CONST = 24, /* "const keyword" */
238
+ YYSYMBOL_ICE_FALSE = 25, /* "false keyword" */
239
+ YYSYMBOL_ICE_TRUE = 26, /* "true keyword" */
240
+ YYSYMBOL_ICE_IDEMPOTENT = 27, /* "idempotent keyword" */
241
+ YYSYMBOL_ICE_OPTIONAL = 28, /* "optional keyword" */
242
+ YYSYMBOL_ICE_VALUE = 29, /* "Value keyword" */
243
+ YYSYMBOL_ICE_STRING_LITERAL = 30, /* "string literal" */
244
+ YYSYMBOL_ICE_INTEGER_LITERAL = 31, /* "integer literal" */
245
+ YYSYMBOL_ICE_FLOATING_POINT_LITERAL = 32, /* "floating-point literal" */
246
+ YYSYMBOL_ICE_IDENTIFIER = 33, /* "identifier" */
247
+ YYSYMBOL_ICE_SCOPED_IDENTIFIER = 34, /* "scoped identifier" */
248
+ YYSYMBOL_ICE_METADATA_OPEN = 35, /* "[" */
249
+ YYSYMBOL_ICE_METADATA_CLOSE = 36, /* "]" */
250
+ YYSYMBOL_ICE_FILE_METADATA_OPEN = 37, /* "[[" */
251
+ YYSYMBOL_ICE_FILE_METADATA_CLOSE = 38, /* "]]" */
252
+ YYSYMBOL_ICE_IDENT_OPEN = 39, /* "identifier(" */
253
+ YYSYMBOL_ICE_KEYWORD_OPEN = 40, /* "keyword(" */
254
+ YYSYMBOL_ICE_OPTIONAL_OPEN = 41, /* "optional(" */
255
+ YYSYMBOL_BAD_TOKEN = 42, /* "invalid character" */
256
+ YYSYMBOL_EMPTY_PREC = 43, /* EMPTY_PREC */
257
+ YYSYMBOL_44_ = 44, /* ';' */
258
+ YYSYMBOL_45_ = 45, /* '{' */
259
+ YYSYMBOL_46_ = 46, /* '}' */
260
+ YYSYMBOL_47_ = 47, /* ')' */
261
+ YYSYMBOL_48_ = 48, /* ':' */
262
+ YYSYMBOL_49_ = 49, /* '=' */
263
+ YYSYMBOL_50_ = 50, /* ',' */
264
+ YYSYMBOL_51_ = 51, /* '<' */
265
+ YYSYMBOL_52_ = 52, /* '>' */
266
+ YYSYMBOL_53_ = 53, /* '*' */
267
+ YYSYMBOL_YYACCEPT = 54, /* $accept */
268
+ YYSYMBOL_start = 55, /* start */
269
+ YYSYMBOL_opt_semicolon = 56, /* opt_semicolon */
270
+ YYSYMBOL_file_metadata = 57, /* file_metadata */
271
+ YYSYMBOL_local_metadata = 58, /* local_metadata */
272
+ YYSYMBOL_metadata = 59, /* metadata */
273
+ YYSYMBOL_metadata_directives = 60, /* metadata_directives */
274
+ YYSYMBOL_definitions = 61, /* definitions */
275
+ YYSYMBOL_definition = 62, /* definition */
276
+ YYSYMBOL_module_def = 63, /* module_def */
277
+ YYSYMBOL_64_1 = 64, /* @1 */
278
+ YYSYMBOL_65_2 = 65, /* @2 */
279
+ YYSYMBOL_exception_decl = 66, /* exception_decl */
280
+ YYSYMBOL_exception_def = 67, /* exception_def */
281
+ YYSYMBOL_68_3 = 68, /* @3 */
282
+ YYSYMBOL_exception_extends = 69, /* exception_extends */
283
+ YYSYMBOL_type_id = 70, /* type_id */
284
+ YYSYMBOL_optional = 71, /* optional */
285
+ YYSYMBOL_optional_type_id = 72, /* optional_type_id */
286
+ YYSYMBOL_struct_decl = 73, /* struct_decl */
287
+ YYSYMBOL_struct_def = 74, /* struct_def */
288
+ YYSYMBOL_75_4 = 75, /* @4 */
289
+ YYSYMBOL_class_name = 76, /* class_name */
290
+ YYSYMBOL_class_id = 77, /* class_id */
291
+ YYSYMBOL_class_decl = 78, /* class_decl */
292
+ YYSYMBOL_class_def = 79, /* class_def */
293
+ YYSYMBOL_80_5 = 80, /* @5 */
294
+ YYSYMBOL_class_extends = 81, /* class_extends */
295
+ YYSYMBOL_extends = 82, /* extends */
296
+ YYSYMBOL_data_members = 83, /* data_members */
297
+ YYSYMBOL_data_member = 84, /* data_member */
298
+ YYSYMBOL_return_type = 85, /* return_type */
299
+ YYSYMBOL_idempotent_modifier = 86, /* idempotent_modifier */
300
+ YYSYMBOL_operation_preamble = 87, /* operation_preamble */
301
+ YYSYMBOL_operation = 88, /* operation */
302
+ YYSYMBOL_89_6 = 89, /* @6 */
303
+ YYSYMBOL_90_7 = 90, /* @7 */
304
+ YYSYMBOL_interface_id = 91, /* interface_id */
305
+ YYSYMBOL_interface_decl = 92, /* interface_decl */
306
+ YYSYMBOL_interface_def = 93, /* interface_def */
307
+ YYSYMBOL_94_8 = 94, /* @8 */
308
+ YYSYMBOL_interface_list = 95, /* interface_list */
309
+ YYSYMBOL_interface_extends = 96, /* interface_extends */
310
+ YYSYMBOL_operations = 97, /* operations */
311
+ YYSYMBOL_exception_list = 98, /* exception_list */
312
+ YYSYMBOL_exception = 99, /* exception */
313
+ YYSYMBOL_sequence_def = 100, /* sequence_def */
314
+ YYSYMBOL_dictionary_def = 101, /* dictionary_def */
315
+ YYSYMBOL_enum_def = 102, /* enum_def */
316
+ YYSYMBOL_103_9 = 103, /* @9 */
317
+ YYSYMBOL_enumerators = 104, /* enumerators */
318
+ YYSYMBOL_enumerator_list = 105, /* enumerator_list */
319
+ YYSYMBOL_enumerator = 106, /* enumerator */
320
+ YYSYMBOL_parameter = 107, /* parameter */
321
+ YYSYMBOL_parameters = 108, /* parameters */
322
+ YYSYMBOL_parameter_list = 109, /* parameter_list */
323
+ YYSYMBOL_throws = 110, /* throws */
324
+ YYSYMBOL_scoped_name = 111, /* scoped_name */
325
+ YYSYMBOL_builtin = 112, /* builtin */
326
+ YYSYMBOL_type = 113, /* type */
327
+ YYSYMBOL_integer_constant = 114, /* integer_constant */
328
+ YYSYMBOL_string_literal = 115, /* string_literal */
329
+ YYSYMBOL_metadata_list = 116, /* metadata_list */
330
+ YYSYMBOL_const_initializer = 117, /* const_initializer */
331
+ YYSYMBOL_const_def = 118, /* const_def */
332
+ YYSYMBOL_definition_name = 119, /* definition_name */
333
+ YYSYMBOL_definition_name_open = 120, /* definition_name_open */
334
+ YYSYMBOL_keyword = 121 /* keyword */
335
+ };
336
+ typedef enum yysymbol_kind_t yysymbol_kind_t;
337
+
338
+
339
+
340
+ /* Unqualified %code blocks. */
341
+ #line 58 "src/Slice/Grammar.y"
342
+
343
+
344
+ // Forward declaration of the lexing function generated by flex, so bison knows about it.
345
+ // This must match the definition of 'yylex' (or 'slice_lex') in the generated scanner.
346
+ int slice_lex(YYSTYPE* lvalp, YYLTYPE* llocp);
347
+
348
+
349
+ #line 350 "src/Slice/Grammar.cpp"
350
+
351
+ #ifdef short
352
+ # undef short
353
+ #endif
354
+
355
+ /* On compilers that do not define __PTRDIFF_MAX__ etc., make sure
356
+ <limits.h> and (if available) <stdint.h> are included
357
+ so that the code can choose integer types of a good width. */
358
+
359
+ #ifndef __PTRDIFF_MAX__
360
+ # include <limits.h> /* INFRINGES ON USER NAME SPACE */
361
+ # if defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__
362
+ # include <stdint.h> /* INFRINGES ON USER NAME SPACE */
363
+ # define YY_STDINT_H
364
+ # endif
365
+ #endif
366
+
367
+ /* Narrow types that promote to a signed type and that can represent a
368
+ signed or unsigned integer of at least N bits. In tables they can
369
+ save space and decrease cache pressure. Promoting to a signed type
370
+ helps avoid bugs in integer arithmetic. */
371
+
372
+ #ifdef __INT_LEAST8_MAX__
373
+ typedef __INT_LEAST8_TYPE__ yytype_int8;
374
+ #elif defined YY_STDINT_H
375
+ typedef int_least8_t yytype_int8;
376
+ #else
377
+ typedef signed char yytype_int8;
378
+ #endif
379
+
380
+ #ifdef __INT_LEAST16_MAX__
381
+ typedef __INT_LEAST16_TYPE__ yytype_int16;
382
+ #elif defined YY_STDINT_H
383
+ typedef int_least16_t yytype_int16;
384
+ #else
385
+ typedef short yytype_int16;
386
+ #endif
387
+
388
+ /* Work around bug in HP-UX 11.23, which defines these macros
389
+ incorrectly for preprocessor constants. This workaround can likely
390
+ be removed in 2023, as HPE has promised support for HP-UX 11.23
391
+ (aka HP-UX 11i v2) only through the end of 2022; see Table 2 of
392
+ <https://h20195.www2.hpe.com/V2/getpdf.aspx/4AA4-7673ENW.pdf>. */
393
+ #ifdef __hpux
394
+ # undef UINT_LEAST8_MAX
395
+ # undef UINT_LEAST16_MAX
396
+ # define UINT_LEAST8_MAX 255
397
+ # define UINT_LEAST16_MAX 65535
398
+ #endif
399
+
400
+ #if defined __UINT_LEAST8_MAX__ && __UINT_LEAST8_MAX__ <= __INT_MAX__
401
+ typedef __UINT_LEAST8_TYPE__ yytype_uint8;
402
+ #elif (!defined __UINT_LEAST8_MAX__ && defined YY_STDINT_H \
403
+ && UINT_LEAST8_MAX <= INT_MAX)
404
+ typedef uint_least8_t yytype_uint8;
405
+ #elif !defined __UINT_LEAST8_MAX__ && UCHAR_MAX <= INT_MAX
406
+ typedef unsigned char yytype_uint8;
407
+ #else
408
+ typedef short yytype_uint8;
409
+ #endif
410
+
411
+ #if defined __UINT_LEAST16_MAX__ && __UINT_LEAST16_MAX__ <= __INT_MAX__
412
+ typedef __UINT_LEAST16_TYPE__ yytype_uint16;
413
+ #elif (!defined __UINT_LEAST16_MAX__ && defined YY_STDINT_H \
414
+ && UINT_LEAST16_MAX <= INT_MAX)
415
+ typedef uint_least16_t yytype_uint16;
416
+ #elif !defined __UINT_LEAST16_MAX__ && USHRT_MAX <= INT_MAX
417
+ typedef unsigned short yytype_uint16;
418
+ #else
419
+ typedef int yytype_uint16;
420
+ #endif
421
+
422
+ #ifndef YYPTRDIFF_T
423
+ # if defined __PTRDIFF_TYPE__ && defined __PTRDIFF_MAX__
424
+ # define YYPTRDIFF_T __PTRDIFF_TYPE__
425
+ # define YYPTRDIFF_MAXIMUM __PTRDIFF_MAX__
426
+ # elif defined PTRDIFF_MAX
427
+ # ifndef ptrdiff_t
428
+ # include <stddef.h> /* INFRINGES ON USER NAME SPACE */
429
+ # endif
430
+ # define YYPTRDIFF_T ptrdiff_t
431
+ # define YYPTRDIFF_MAXIMUM PTRDIFF_MAX
432
+ # else
433
+ # define YYPTRDIFF_T long
434
+ # define YYPTRDIFF_MAXIMUM LONG_MAX
435
+ # endif
436
+ #endif
437
+
438
+ #ifndef YYSIZE_T
439
+ # ifdef __SIZE_TYPE__
440
+ # define YYSIZE_T __SIZE_TYPE__
441
+ # elif defined size_t
442
+ # define YYSIZE_T size_t
443
+ # elif defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__
444
+ # include <stddef.h> /* INFRINGES ON USER NAME SPACE */
445
+ # define YYSIZE_T size_t
446
+ # else
447
+ # define YYSIZE_T unsigned
448
+ # endif
449
+ #endif
450
+
451
+ #define YYSIZE_MAXIMUM \
452
+ YY_CAST (YYPTRDIFF_T, \
453
+ (YYPTRDIFF_MAXIMUM < YY_CAST (YYSIZE_T, -1) \
454
+ ? YYPTRDIFF_MAXIMUM \
455
+ : YY_CAST (YYSIZE_T, -1)))
456
+
457
+ #define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
458
+
459
+
460
+ /* Stored state numbers (used for stacks). */
461
+ typedef yytype_int16 yy_state_t;
462
+
463
+ /* State numbers in computations. */
464
+ typedef int yy_state_fast_t;
465
+
466
+ #ifndef YY_
467
+ # if defined YYENABLE_NLS && YYENABLE_NLS
468
+ # if ENABLE_NLS
469
+ # include <libintl.h> /* INFRINGES ON USER NAME SPACE */
470
+ # define YY_(Msgid) dgettext ("bison-runtime", Msgid)
471
+ # endif
472
+ # endif
473
+ # ifndef YY_
474
+ # define YY_(Msgid) Msgid
475
+ # endif
476
+ #endif
477
+
478
+
479
+ #ifndef YY_ATTRIBUTE_PURE
480
+ # if defined __GNUC__ && 2 < __GNUC__ + (96 <= __GNUC_MINOR__)
481
+ # define YY_ATTRIBUTE_PURE __attribute__ ((__pure__))
482
+ # else
483
+ # define YY_ATTRIBUTE_PURE
484
+ # endif
485
+ #endif
486
+
487
+ #ifndef YY_ATTRIBUTE_UNUSED
488
+ # if defined __GNUC__ && 2 < __GNUC__ + (7 <= __GNUC_MINOR__)
489
+ # define YY_ATTRIBUTE_UNUSED __attribute__ ((__unused__))
490
+ # else
491
+ # define YY_ATTRIBUTE_UNUSED
492
+ # endif
493
+ #endif
494
+
495
+ /* Suppress unused-variable warnings by "using" E. */
496
+ #if ! defined lint || defined __GNUC__
497
+ # define YY_USE(E) ((void) (E))
498
+ #else
499
+ # define YY_USE(E) /* empty */
500
+ #endif
501
+
502
+ /* Suppress an incorrect diagnostic about yylval being uninitialized. */
503
+ #if defined __GNUC__ && ! defined __ICC && 406 <= __GNUC__ * 100 + __GNUC_MINOR__
504
+ # if __GNUC__ * 100 + __GNUC_MINOR__ < 407
505
+ # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
506
+ _Pragma ("GCC diagnostic push") \
507
+ _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")
508
+ # else
509
+ # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
510
+ _Pragma ("GCC diagnostic push") \
511
+ _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"") \
512
+ _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
513
+ # endif
514
+ # define YY_IGNORE_MAYBE_UNINITIALIZED_END \
515
+ _Pragma ("GCC diagnostic pop")
516
+ #else
517
+ # define YY_INITIAL_VALUE(Value) Value
518
+ #endif
519
+ #ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
520
+ # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
521
+ # define YY_IGNORE_MAYBE_UNINITIALIZED_END
522
+ #endif
523
+ #ifndef YY_INITIAL_VALUE
524
+ # define YY_INITIAL_VALUE(Value) /* Nothing. */
525
+ #endif
526
+
527
+ #if defined __cplusplus && defined __GNUC__ && ! defined __ICC && 6 <= __GNUC__
528
+ # define YY_IGNORE_USELESS_CAST_BEGIN \
529
+ _Pragma ("GCC diagnostic push") \
530
+ _Pragma ("GCC diagnostic ignored \"-Wuseless-cast\"")
531
+ # define YY_IGNORE_USELESS_CAST_END \
532
+ _Pragma ("GCC diagnostic pop")
533
+ #endif
534
+ #ifndef YY_IGNORE_USELESS_CAST_BEGIN
535
+ # define YY_IGNORE_USELESS_CAST_BEGIN
536
+ # define YY_IGNORE_USELESS_CAST_END
537
+ #endif
538
+
539
+
540
+ #define YY_ASSERT(E) ((void) (0 && (E)))
541
+
542
+ #if 1
543
+
544
+ /* The parser invokes alloca or malloc; define the necessary symbols. */
545
+
546
+ # ifdef YYSTACK_USE_ALLOCA
547
+ # if YYSTACK_USE_ALLOCA
548
+ # ifdef __GNUC__
549
+ # define YYSTACK_ALLOC __builtin_alloca
550
+ # elif defined __BUILTIN_VA_ARG_INCR
551
+ # include <alloca.h> /* INFRINGES ON USER NAME SPACE */
552
+ # elif defined _AIX
553
+ # define YYSTACK_ALLOC __alloca
554
+ # elif defined _MSC_VER
555
+ # include <malloc.h> /* INFRINGES ON USER NAME SPACE */
556
+ # define alloca _alloca
557
+ # else
558
+ # define YYSTACK_ALLOC alloca
559
+ # if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS
560
+ # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
561
+ /* Use EXIT_SUCCESS as a witness for stdlib.h. */
562
+ # ifndef EXIT_SUCCESS
563
+ # define EXIT_SUCCESS 0
564
+ # endif
565
+ # endif
566
+ # endif
567
+ # endif
568
+ # endif
569
+
570
+ # ifdef YYSTACK_ALLOC
571
+ /* Pacify GCC's 'empty if-body' warning. */
572
+ # define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
573
+ # ifndef YYSTACK_ALLOC_MAXIMUM
574
+ /* The OS might guarantee only one guard page at the bottom of the stack,
575
+ and a page size can be as small as 4096 bytes. So we cannot safely
576
+ invoke alloca (N) if N exceeds 4096. Use a slightly smaller number
577
+ to allow for a few compiler-allocated temporary stack slots. */
578
+ # define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
579
+ # endif
580
+ # else
581
+ # define YYSTACK_ALLOC YYMALLOC
582
+ # define YYSTACK_FREE YYFREE
583
+ # ifndef YYSTACK_ALLOC_MAXIMUM
584
+ # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
585
+ # endif
586
+ # if (defined __cplusplus && ! defined EXIT_SUCCESS \
587
+ && ! ((defined YYMALLOC || defined malloc) \
588
+ && (defined YYFREE || defined free)))
589
+ # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
590
+ # ifndef EXIT_SUCCESS
591
+ # define EXIT_SUCCESS 0
592
+ # endif
593
+ # endif
594
+ # ifndef YYMALLOC
595
+ # define YYMALLOC malloc
596
+ # if ! defined malloc && ! defined EXIT_SUCCESS
597
+ void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
598
+ # endif
599
+ # endif
600
+ # ifndef YYFREE
601
+ # define YYFREE free
602
+ # if ! defined free && ! defined EXIT_SUCCESS
603
+ void free (void *); /* INFRINGES ON USER NAME SPACE */
604
+ # endif
605
+ # endif
606
+ # endif
607
+ #endif /* 1 */
608
+
609
+ #if (! defined yyoverflow \
610
+ && (! defined __cplusplus \
611
+ || (defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL \
612
+ && defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
613
+
614
+ /* A type that is properly aligned for any stack member. */
615
+ union yyalloc
616
+ {
617
+ yy_state_t yyss_alloc;
618
+ YYSTYPE yyvs_alloc;
619
+ YYLTYPE yyls_alloc;
620
+ };
621
+
622
+ /* The size of the maximum gap between one aligned stack and the next. */
623
+ # define YYSTACK_GAP_MAXIMUM (YYSIZEOF (union yyalloc) - 1)
624
+
625
+ /* The size of an array large to enough to hold all stacks, each with
626
+ N elements. */
627
+ # define YYSTACK_BYTES(N) \
628
+ ((N) * (YYSIZEOF (yy_state_t) + YYSIZEOF (YYSTYPE) \
629
+ + YYSIZEOF (YYLTYPE)) \
630
+ + 2 * YYSTACK_GAP_MAXIMUM)
631
+
632
+ # define YYCOPY_NEEDED 1
633
+
634
+ /* Relocate STACK from its old location to the new one. The
635
+ local variables YYSIZE and YYSTACKSIZE give the old and new number of
636
+ elements in the stack, and YYPTR gives the new location of the
637
+ stack. Advance YYPTR to a properly aligned location for the next
638
+ stack. */
639
+ # define YYSTACK_RELOCATE(Stack_alloc, Stack) \
640
+ do \
641
+ { \
642
+ YYPTRDIFF_T yynewbytes; \
643
+ YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
644
+ Stack = &yyptr->Stack_alloc; \
645
+ yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
646
+ yyptr += yynewbytes / YYSIZEOF (*yyptr); \
647
+ } \
648
+ while (0)
649
+
650
+ #endif
651
+
652
+ #if defined YYCOPY_NEEDED && YYCOPY_NEEDED
653
+ /* Copy COUNT objects from SRC to DST. The source and destination do
654
+ not overlap. */
655
+ # ifndef YYCOPY
656
+ # if defined __GNUC__ && 1 < __GNUC__
657
+ # define YYCOPY(Dst, Src, Count) \
658
+ __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
659
+ # else
660
+ # define YYCOPY(Dst, Src, Count) \
661
+ do \
662
+ { \
663
+ YYPTRDIFF_T yyi; \
664
+ for (yyi = 0; yyi < (Count); yyi++) \
665
+ (Dst)[yyi] = (Src)[yyi]; \
666
+ } \
667
+ while (0)
668
+ # endif
669
+ # endif
670
+ #endif /* !YYCOPY_NEEDED */
671
+
672
+ /* YYFINAL -- State number of the termination state. */
673
+ #define YYFINAL 3
674
+ /* YYLAST -- Last index in YYTABLE. */
675
+ #define YYLAST 536
676
+
677
+ /* YYNTOKENS -- Number of terminals. */
678
+ #define YYNTOKENS 54
679
+ /* YYNNTS -- Number of nonterminals. */
680
+ #define YYNNTS 68
681
+ /* YYNRULES -- Number of rules. */
682
+ #define YYNRULES 177
683
+ /* YYNSTATES -- Number of states. */
684
+ #define YYNSTATES 267
685
+
686
+ /* YYMAXUTOK -- Last valid token kind. */
687
+ #define YYMAXUTOK 298
688
+
689
+
690
+ /* YYTRANSLATE(TOKEN-NUM) -- Symbol number corresponding to TOKEN-NUM
691
+ as returned by yylex, with out-of-bounds checking. */
692
+ #define YYTRANSLATE(YYX) \
693
+ (0 <= (YYX) && (YYX) <= YYMAXUTOK \
694
+ ? YY_CAST (yysymbol_kind_t, yytranslate[YYX]) \
695
+ : YYSYMBOL_YYUNDEF)
696
+
697
+ /* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM
698
+ as returned by yylex. */
699
+ static const yytype_int8 yytranslate[] =
700
+ {
701
+ 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
702
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
703
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
704
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
705
+ 2, 47, 53, 2, 50, 2, 2, 2, 2, 2,
706
+ 2, 2, 2, 2, 2, 2, 2, 2, 48, 44,
707
+ 51, 49, 52, 2, 2, 2, 2, 2, 2, 2,
708
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
709
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
710
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
711
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
712
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
713
+ 2, 2, 2, 45, 2, 46, 2, 2, 2, 2,
714
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
715
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
716
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
717
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
718
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
719
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
720
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
721
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
722
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
723
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
724
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
725
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
726
+ 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
727
+ 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
728
+ 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
729
+ 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
730
+ 35, 36, 37, 38, 39, 40, 41, 42, 43
731
+ };
732
+
733
+ #if YYDEBUG
734
+ /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */
735
+ static const yytype_int16 yyrline[] =
736
+ {
737
+ 0, 211, 211, 219, 222, 230, 234, 238, 248, 252,
738
+ 256, 266, 269, 278, 282, 294, 302, 311, 319, 323,
739
+ 327, 331, 335, 339, 343, 347, 351, 355, 359, 363,
740
+ 367, 371, 381, 380, 398, 397, 462, 473, 472, 493,
741
+ 501, 510, 521, 534, 540, 551, 568, 581, 592, 591,
742
+ 618, 622, 633, 653, 665, 678, 677, 711, 739, 748,
743
+ 751, 759, 768, 771, 775, 783, 811, 845, 860, 866,
744
+ 876, 880, 889, 919, 918, 950, 949, 972, 976, 987,
745
+ 1001, 1000, 1034, 1044, 1054, 1059, 1069, 1073, 1082, 1091,
746
+ 1094, 1098, 1106, 1116, 1131, 1142, 1159, 1172, 1188, 1187,
747
+ 1212, 1213, 1217, 1226, 1238, 1255, 1261, 1277, 1289, 1302,
748
+ 1310, 1324, 1325, 1331, 1332, 1338, 1342, 1351, 1354, 1362,
749
+ 1363, 1364, 1365, 1366, 1367, 1368, 1369, 1370, 1371, 1376,
750
+ 1380, 1385, 1390, 1400, 1404, 1489, 1495, 1503, 1513, 1528,
751
+ 1537, 1546, 1581, 1588, 1595, 1607, 1621, 1626, 1634, 1646,
752
+ 1651, 1664, 1665, 1666, 1667, 1668, 1669, 1670, 1671, 1672,
753
+ 1673, 1674, 1675, 1676, 1677, 1678, 1679, 1680, 1681, 1682,
754
+ 1683, 1684, 1685, 1686, 1687, 1688, 1689, 1690
755
+ };
756
+ #endif
757
+
758
+ /** Accessing symbol of state STATE. */
759
+ #define YY_ACCESSING_SYMBOL(State) YY_CAST (yysymbol_kind_t, yystos[State])
760
+
761
+ #if 1
762
+ /* The user-facing name of the symbol whose (internal) number is
763
+ YYSYMBOL. No bounds checking. */
764
+ static const char *yysymbol_name (yysymbol_kind_t yysymbol) YY_ATTRIBUTE_UNUSED;
765
+
766
+ static const char *
767
+ yysymbol_name (yysymbol_kind_t yysymbol)
768
+ {
769
+ static const char *const yy_sname[] =
770
+ {
771
+ "end of file", "error", "invalid token", "module keyword",
772
+ "class keyword", "interface keyword", "exception keyword",
773
+ "struct keyword", "sequence keyword", "dictionary keyword",
774
+ "enum keyword", "out keyword", "extends keyword", "throws keyword",
775
+ "void keyword", "bool keyword", "byte keyword", "short keyword",
776
+ "int keyword", "long keyword", "float keyword", "double keyword",
777
+ "string keyword", "Object keyword", "const keyword", "false keyword",
778
+ "true keyword", "idempotent keyword", "optional keyword",
779
+ "Value keyword", "string literal", "integer literal",
780
+ "floating-point literal", "identifier", "scoped identifier", "[", "]",
781
+ "[[", "]]", "identifier(", "keyword(", "optional(", "invalid character",
782
+ "EMPTY_PREC", "';'", "'{'", "'}'", "')'", "':'", "'='", "','", "'<'",
783
+ "'>'", "'*'", "$accept", "start", "opt_semicolon", "file_metadata",
784
+ "local_metadata", "metadata", "metadata_directives", "definitions",
785
+ "definition", "module_def", "@1", "@2", "exception_decl",
786
+ "exception_def", "@3", "exception_extends", "type_id", "optional",
787
+ "optional_type_id", "struct_decl", "struct_def", "@4", "class_name",
788
+ "class_id", "class_decl", "class_def", "@5", "class_extends", "extends",
789
+ "data_members", "data_member", "return_type", "idempotent_modifier",
790
+ "operation_preamble", "operation", "@6", "@7", "interface_id",
791
+ "interface_decl", "interface_def", "@8", "interface_list",
792
+ "interface_extends", "operations", "exception_list", "exception",
793
+ "sequence_def", "dictionary_def", "enum_def", "@9", "enumerators",
794
+ "enumerator_list", "enumerator", "parameter", "parameters",
795
+ "parameter_list", "throws", "scoped_name", "builtin", "type",
796
+ "integer_constant", "string_literal", "metadata_list",
797
+ "const_initializer", "const_def", "definition_name",
798
+ "definition_name_open", "keyword", YY_NULLPTR
799
+ };
800
+ return yy_sname[yysymbol];
801
+ }
802
+ #endif
803
+
804
+ #define YYPACT_NINF (-210)
805
+
806
+ #define yypact_value_is_default(Yyn) \
807
+ ((Yyn) == YYPACT_NINF)
808
+
809
+ #define YYTABLE_NINF (-113)
810
+
811
+ #define yytable_value_is_error(Yyn) \
812
+ 0
813
+
814
+ /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
815
+ STATE-NUM. */
816
+ static const yytype_int16 yypact[] =
817
+ {
818
+ -210, 17, 14, -210, 32, 10, -210, -210, 506, 3,
819
+ -1, -11, -210, -210, -18, 6, -210, -16, 20, 321,
820
+ 283, 385, 416, 416, 15, 30, 416, 3, -210, 41,
821
+ 42, 41, 56, 41, 62, 11, 63, 41, 8, 74,
822
+ 41, 75, 77, 41, 80, -210, -210, -210, -210, -11,
823
+ -210, -210, -210, -210, -210, -210, -210, -210, -210, -210,
824
+ -210, -210, -210, -210, -210, -210, -210, -210, -210, -210,
825
+ -210, -210, -210, -210, -210, -210, -210, -210, -210, -210,
826
+ -210, -210, -210, -210, -210, -210, -210, 119, -210, -210,
827
+ -210, 9, 53, 3, 3, -210, 502, -210, -210, -210,
828
+ -210, -210, -210, -210, -210, -210, 27, -210, -210, 115,
829
+ -210, -210, -210, -210, -210, -210, -210, -210, 58, 86,
830
+ -210, -210, -210, -210, 78, -210, 27, 89, 502, 502,
831
+ 91, -210, -210, -210, -210, -210, -210, -210, -210, 90,
832
+ -210, 103, -210, 416, 102, -210, -210, -210, 107, -210,
833
+ 113, -210, -210, -210, 116, -210, 239, 87, 110, 12,
834
+ -210, -210, 125, 239, 27, 202, -7, 105, 239, 118,
835
+ 171, 129, 416, 3, 447, 131, 130, 138, 133, -210,
836
+ 137, 155, 149, -210, -210, 150, 239, -210, 99, -210,
837
+ 502, 134, 140, 416, -210, -210, 502, 148, -210, -210,
838
+ -210, 45, -210, -210, -210, -210, -210, -210, -210, -210,
839
+ 202, -210, 467, 54, 154, -210, -210, -210, -210, 161,
840
+ -210, 138, 239, -210, 157, 119, 447, -210, -210, 502,
841
+ 2, -210, 164, 94, 94, -210, -210, 166, 152, 202,
842
+ -210, -210, -210, 416, -210, -210, -210, -210, -210, -210,
843
+ -210, -210, 94, -210, -210, 201, 201, -210, 353, -210,
844
+ -210, 165, -210, -210, -210, 353, -210
845
+ };
846
+
847
+ /* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM.
848
+ Performed when YYTABLE does not specify something else to do. Zero
849
+ means the default is an error. */
850
+ static const yytype_uint8 yydefact[] =
851
+ {
852
+ 17, 0, 12, 1, 0, 0, 15, 13, 0, 11,
853
+ 0, 136, 10, 138, 0, 0, 7, 0, 0, 148,
854
+ 0, 0, 148, 148, 0, 0, 148, 12, 16, 4,
855
+ 0, 4, 0, 4, 53, 58, 0, 4, 79, 0,
856
+ 4, 0, 0, 4, 0, 14, 9, 135, 8, 0,
857
+ 6, 5, 31, 151, 152, 153, 154, 155, 156, 157,
858
+ 158, 159, 160, 161, 162, 163, 164, 165, 166, 167,
859
+ 168, 169, 170, 171, 172, 173, 174, 175, 176, 177,
860
+ 146, 34, 32, 147, 50, 149, 150, 0, 51, 77,
861
+ 78, 36, 47, 12, 12, 98, 0, 3, 18, 23,
862
+ 24, 25, 26, 59, 60, 55, 0, 19, 20, 0,
863
+ 80, 21, 22, 27, 28, 29, 30, 137, 0, 0,
864
+ 133, 117, 118, 134, 0, 37, 0, 0, 0, 0,
865
+ 0, 119, 120, 121, 122, 123, 124, 125, 126, 127,
866
+ 128, 131, 130, 148, 0, 57, 84, 85, 86, 83,
867
+ 0, 17, 17, 52, 0, 39, 0, 0, 0, 12,
868
+ 129, 132, 0, 0, 0, 0, 12, 12, 0, 0,
869
+ 0, 0, 148, 12, 0, 0, 100, 0, 0, 82,
870
+ 0, 71, 0, 35, 33, 0, 0, 44, 0, 46,
871
+ 0, 65, 63, 148, 49, 96, 0, 105, 104, 107,
872
+ 99, 12, 143, 144, 142, 139, 140, 141, 145, 56,
873
+ 0, 70, 0, 0, 90, 81, 38, 62, 43, 0,
874
+ 45, 0, 0, 41, 0, 0, 0, 89, 69, 0,
875
+ 0, 68, 0, 0, 0, 108, 113, 0, 111, 0,
876
+ 42, 66, 61, 148, 106, 103, 67, 72, 75, 109,
877
+ 110, 73, 0, 88, 97, 116, 116, 114, 0, 76,
878
+ 74, 115, 93, 94, 95, 0, 92
879
+ };
880
+
881
+ /* YYPGOTO[NTERM-NUM]. */
882
+ static const yytype_int16 yypgoto[] =
883
+ {
884
+ -210, -210, 59, -210, -6, 0, -210, -73, -210, -210,
885
+ -210, -210, -210, -210, -210, -210, 43, 22, 71, -210,
886
+ -210, -210, -210, -210, -210, -210, -210, -210, -28, -155,
887
+ -210, -210, -210, -210, -210, -210, -210, -210, -210, -210,
888
+ -210, -210, -210, -194, -210, -33, -210, -210, -210, -210,
889
+ -210, -210, 16, -209, -210, -210, -12, -80, -210, -92,
890
+ -173, 1, 242, 28, -210, -17, 21, -20
891
+ };
892
+
893
+ /* YYDEFGOTO[NTERM-NUM]. */
894
+ static const yytype_int16 yydefgoto[] =
895
+ {
896
+ 0, 1, 98, 6, 7, 170, 9, 2, 28, 29,
897
+ 119, 118, 30, 31, 154, 125, 189, 190, 235, 32,
898
+ 33, 127, 34, 35, 36, 37, 144, 105, 106, 171,
899
+ 192, 230, 212, 213, 214, 256, 255, 38, 39, 40,
900
+ 150, 148, 110, 182, 261, 262, 41, 42, 43, 130,
901
+ 175, 176, 198, 236, 237, 238, 259, 141, 142, 193,
902
+ 124, 13, 14, 208, 44, 82, 87, 83
903
+ };
904
+
905
+ /* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If
906
+ positive, shift that token. If negative, reduce the rule whose
907
+ number is the opposite. If YYTABLE_NINF, syntax error. */
908
+ static const yytype_int16 yytable[] =
909
+ {
910
+ 88, 90, 8, 45, 143, 91, 92, 123, 178, 95,
911
+ 109, 15, 47, 185, -2, 219, 227, 3, 48, 11,
912
+ 103, 103, 51, 103, 249, 250, 145, 96, 4, 149,
913
+ 5, 217, 49, 10, 49, 46, 157, 158, 4, 183,
914
+ 11, 85, 86, 257, 50, 253, 155, 4, 16, 4,
915
+ 117, 5, 244, -87, -40, 232, 104, 104, -102, 104,
916
+ 121, 122, 11, 126, 52, 233, 93, 242, 12, 131,
917
+ 132, 133, 134, 135, 136, 137, 138, 139, 166, 167,
918
+ 4, 94, 187, 140, 179, 97, 99, 121, 122, 4,
919
+ 100, -101, 102, 128, 129, 188, 108, 207, -48, 112,
920
+ 101, -112, 115, 151, 224, 233, -54, 107, 123, 131,
921
+ 132, 133, 134, 135, 136, 137, 138, 139, 111, 113,
922
+ 231, 114, 187, 140, 116, 153, 162, 121, 122, 4,
923
+ 120, 152, 121, 122, 156, 188, 159, 246, 146, 172,
924
+ 4, 207, 5, 160, 147, 123, 218, 163, 121, 122,
925
+ 120, 184, 121, 122, 199, 195, 161, 164, 165, 174,
926
+ 173, 168, 186, 202, 203, 181, 8, 8, 204, 205,
927
+ 206, 121, 122, 196, 177, 194, 223, 200, 263, 209,
928
+ 201, 210, 211, 221, 222, 263, 131, 132, 133, 134,
929
+ 135, 136, 137, 138, 139, 215, 216, 225, 239, 187,
930
+ 140, 226, 252, 180, 121, 122, 199, 234, 240, 243,
931
+ 181, 248, 188, 251, 258, 265, -12, -12, -12, -12,
932
+ -12, -12, -12, -12, -12, -12, 254, 234, 234, -12,
933
+ -12, -12, 266, 220, 229, -12, -12, 4, 264, 181,
934
+ 169, 191, 245, -12, 260, 264, 234, 17, -91, 241,
935
+ 0, 247, 0, 0, -12, -12, -12, -12, -12, -12,
936
+ -12, -12, -12, 0, 0, 0, 0, -12, -12, 0,
937
+ 0, 0, -12, -12, 4, 0, 0, 0, 0, 0,
938
+ -12, 0, 0, 0, 0, -64, 53, 54, 55, 56,
939
+ 57, 58, 59, 60, 61, 62, 63, 64, 65, 66,
940
+ 67, 68, 69, 70, 71, 72, 73, 74, 75, 76,
941
+ 77, 78, 79, 0, 0, 0, 84, 0, 0, 0,
942
+ 0, 0, 85, 86, 53, 54, 55, 56, 57, 58,
943
+ 59, 60, 61, 62, 63, 64, 65, 66, 67, 68,
944
+ 69, 70, 71, 72, 73, 74, 75, 76, 77, 78,
945
+ 79, 0, 0, 0, 80, 81, 53, 54, 55, 56,
946
+ 57, 58, 59, 60, 61, 62, 63, 64, 65, 66,
947
+ 67, 68, 69, 70, 71, 72, 73, 74, 75, 76,
948
+ 77, 78, 79, 0, 0, 0, 121, 122, 53, 54,
949
+ 55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
950
+ 65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
951
+ 75, 76, 77, 78, 79, 0, 0, 0, 89, 53,
952
+ 54, 55, 56, 57, 58, 59, 60, 61, 62, 63,
953
+ 64, 65, 66, 67, 68, 69, 70, 71, 72, 73,
954
+ 74, 75, 76, 77, 78, 79, 0, 0, 0, 80,
955
+ 53, 54, 55, 56, 57, 58, 59, 60, 61, 62,
956
+ 63, 64, 65, 66, 67, 68, 69, 70, 71, 72,
957
+ 73, 74, 75, 76, 77, 78, 79, 0, 0, 0,
958
+ 197, 228, 131, 132, 133, 134, 135, 136, 137, 138,
959
+ 139, 0, 0, 0, 0, 187, 140, 0, 0, 0,
960
+ 121, 122, 0, 0, 0, 0, 0, 18, 188, 19,
961
+ 20, 21, 22, 23, 24, 25, 26, 131, 132, 133,
962
+ 134, 135, 136, 137, 138, 139, 0, 0, 0, 0,
963
+ 27, 140, 0, 0, 0, 121, 122
964
+ };
965
+
966
+ static const yytype_int16 yycheck[] =
967
+ {
968
+ 20, 21, 2, 9, 96, 22, 23, 87, 163, 26,
969
+ 38, 1, 11, 168, 0, 188, 210, 0, 36, 30,
970
+ 12, 12, 38, 12, 233, 234, 106, 27, 35, 109,
971
+ 37, 186, 50, 1, 50, 36, 128, 129, 35, 46,
972
+ 30, 39, 40, 252, 38, 239, 126, 35, 38, 35,
973
+ 49, 37, 225, 45, 45, 1, 48, 48, 46, 48,
974
+ 33, 34, 30, 91, 44, 11, 51, 222, 36, 15,
975
+ 16, 17, 18, 19, 20, 21, 22, 23, 151, 152,
976
+ 35, 51, 28, 29, 164, 44, 44, 33, 34, 35,
977
+ 31, 46, 33, 93, 94, 41, 37, 177, 45, 40,
978
+ 44, 47, 43, 45, 196, 11, 44, 44, 188, 15,
979
+ 16, 17, 18, 19, 20, 21, 22, 23, 44, 44,
980
+ 212, 44, 28, 29, 44, 47, 143, 33, 34, 35,
981
+ 31, 45, 33, 34, 45, 41, 45, 229, 23, 52,
982
+ 35, 221, 37, 53, 29, 225, 47, 45, 33, 34,
983
+ 31, 46, 33, 34, 174, 172, 53, 50, 45, 159,
984
+ 50, 45, 44, 25, 26, 165, 166, 167, 30, 31,
985
+ 32, 33, 34, 173, 49, 46, 193, 46, 258, 46,
986
+ 50, 44, 27, 49, 44, 265, 15, 16, 17, 18,
987
+ 19, 20, 21, 22, 23, 46, 46, 49, 44, 28,
988
+ 29, 201, 50, 1, 33, 34, 226, 213, 47, 52,
989
+ 210, 47, 41, 47, 13, 50, 14, 15, 16, 17,
990
+ 18, 19, 20, 21, 22, 23, 243, 233, 234, 27,
991
+ 28, 29, 265, 190, 212, 33, 34, 35, 258, 239,
992
+ 1, 170, 226, 41, 256, 265, 252, 5, 46, 221,
993
+ -1, 230, -1, -1, 15, 16, 17, 18, 19, 20,
994
+ 21, 22, 23, -1, -1, -1, -1, 28, 29, -1,
995
+ -1, -1, 33, 34, 35, -1, -1, -1, -1, -1,
996
+ 41, -1, -1, -1, -1, 46, 3, 4, 5, 6,
997
+ 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
998
+ 17, 18, 19, 20, 21, 22, 23, 24, 25, 26,
999
+ 27, 28, 29, -1, -1, -1, 33, -1, -1, -1,
1000
+ -1, -1, 39, 40, 3, 4, 5, 6, 7, 8,
1001
+ 9, 10, 11, 12, 13, 14, 15, 16, 17, 18,
1002
+ 19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
1003
+ 29, -1, -1, -1, 33, 34, 3, 4, 5, 6,
1004
+ 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
1005
+ 17, 18, 19, 20, 21, 22, 23, 24, 25, 26,
1006
+ 27, 28, 29, -1, -1, -1, 33, 34, 3, 4,
1007
+ 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
1008
+ 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
1009
+ 25, 26, 27, 28, 29, -1, -1, -1, 33, 3,
1010
+ 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
1011
+ 14, 15, 16, 17, 18, 19, 20, 21, 22, 23,
1012
+ 24, 25, 26, 27, 28, 29, -1, -1, -1, 33,
1013
+ 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
1014
+ 13, 14, 15, 16, 17, 18, 19, 20, 21, 22,
1015
+ 23, 24, 25, 26, 27, 28, 29, -1, -1, -1,
1016
+ 33, 14, 15, 16, 17, 18, 19, 20, 21, 22,
1017
+ 23, -1, -1, -1, -1, 28, 29, -1, -1, -1,
1018
+ 33, 34, -1, -1, -1, -1, -1, 1, 41, 3,
1019
+ 4, 5, 6, 7, 8, 9, 10, 15, 16, 17,
1020
+ 18, 19, 20, 21, 22, 23, -1, -1, -1, -1,
1021
+ 24, 29, -1, -1, -1, 33, 34
1022
+ };
1023
+
1024
+ /* YYSTOS[STATE-NUM] -- The symbol kind of the accessing symbol of
1025
+ state STATE-NUM. */
1026
+ static const yytype_int8 yystos[] =
1027
+ {
1028
+ 0, 55, 61, 0, 35, 37, 57, 58, 59, 60,
1029
+ 1, 30, 36, 115, 116, 1, 38, 116, 1, 3,
1030
+ 4, 5, 6, 7, 8, 9, 10, 24, 62, 63,
1031
+ 66, 67, 73, 74, 76, 77, 78, 79, 91, 92,
1032
+ 93, 100, 101, 102, 118, 58, 36, 115, 36, 50,
1033
+ 38, 38, 44, 3, 4, 5, 6, 7, 8, 9,
1034
+ 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
1035
+ 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
1036
+ 33, 34, 119, 121, 33, 39, 40, 120, 121, 33,
1037
+ 121, 119, 119, 51, 51, 119, 59, 44, 56, 44,
1038
+ 56, 44, 56, 12, 48, 81, 82, 44, 56, 82,
1039
+ 96, 44, 56, 44, 44, 56, 44, 115, 65, 64,
1040
+ 31, 33, 34, 111, 114, 69, 82, 75, 59, 59,
1041
+ 103, 15, 16, 17, 18, 19, 20, 21, 22, 23,
1042
+ 29, 111, 112, 113, 80, 111, 23, 29, 95, 111,
1043
+ 94, 45, 45, 47, 68, 111, 45, 113, 113, 45,
1044
+ 53, 53, 119, 45, 50, 45, 61, 61, 45, 1,
1045
+ 59, 83, 52, 50, 59, 104, 105, 49, 83, 111,
1046
+ 1, 59, 97, 46, 46, 83, 44, 28, 41, 70,
1047
+ 71, 72, 84, 113, 46, 119, 59, 33, 106, 121,
1048
+ 46, 50, 25, 26, 30, 31, 32, 111, 117, 46,
1049
+ 44, 27, 86, 87, 88, 46, 46, 83, 47, 114,
1050
+ 70, 49, 44, 119, 113, 49, 59, 97, 14, 71,
1051
+ 85, 113, 1, 11, 58, 72, 107, 108, 109, 44,
1052
+ 47, 117, 83, 52, 114, 106, 113, 120, 47, 107,
1053
+ 107, 47, 50, 97, 119, 90, 89, 107, 13, 110,
1054
+ 110, 98, 99, 111, 121, 50, 99
1055
+ };
1056
+
1057
+ /* YYR1[RULE-NUM] -- Symbol kind of the left-hand side of rule RULE-NUM. */
1058
+ static const yytype_int8 yyr1[] =
1059
+ {
1060
+ 0, 54, 55, 56, 56, 57, 57, 57, 58, 58,
1061
+ 58, 59, 59, 60, 60, 61, 61, 61, 62, 62,
1062
+ 62, 62, 62, 62, 62, 62, 62, 62, 62, 62,
1063
+ 62, 62, 64, 63, 65, 63, 66, 68, 67, 69,
1064
+ 69, 70, 71, 71, 71, 72, 72, 73, 75, 74,
1065
+ 76, 76, 77, 77, 78, 80, 79, 81, 81, 82,
1066
+ 82, 83, 83, 83, 83, 84, 84, 85, 85, 85,
1067
+ 86, 86, 87, 89, 88, 90, 88, 91, 91, 92,
1068
+ 94, 93, 95, 95, 95, 95, 96, 96, 97, 97,
1069
+ 97, 97, 98, 98, 99, 99, 100, 101, 103, 102,
1070
+ 104, 104, 104, 105, 105, 106, 106, 106, 107, 107,
1071
+ 107, 108, 108, 109, 109, 110, 110, 111, 111, 112,
1072
+ 112, 112, 112, 112, 112, 112, 112, 112, 112, 113,
1073
+ 113, 113, 113, 114, 114, 115, 115, 116, 116, 117,
1074
+ 117, 117, 117, 117, 117, 118, 119, 119, 119, 120,
1075
+ 120, 121, 121, 121, 121, 121, 121, 121, 121, 121,
1076
+ 121, 121, 121, 121, 121, 121, 121, 121, 121, 121,
1077
+ 121, 121, 121, 121, 121, 121, 121, 121
1078
+ };
1079
+
1080
+ /* YYR2[RULE-NUM] -- Number of symbols on the right-hand side of rule RULE-NUM. */
1081
+ static const yytype_int8 yyr2[] =
1082
+ {
1083
+ 0, 2, 1, 1, 0, 3, 3, 2, 3, 3,
1084
+ 2, 1, 0, 1, 2, 2, 3, 0, 2, 2,
1085
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1086
+ 2, 2, 0, 6, 0, 6, 2, 0, 7, 2,
1087
+ 0, 2, 3, 2, 1, 2, 1, 2, 0, 6,
1088
+ 2, 2, 4, 1, 1, 0, 6, 2, 0, 1,
1089
+ 1, 4, 3, 2, 0, 1, 3, 2, 1, 1,
1090
+ 1, 0, 3, 0, 5, 0, 5, 2, 2, 1,
1091
+ 0, 6, 3, 1, 1, 1, 2, 0, 4, 3,
1092
+ 2, 0, 3, 1, 1, 1, 6, 9, 0, 6,
1093
+ 1, 2, 0, 4, 2, 1, 3, 1, 1, 2,
1094
+ 2, 1, 0, 1, 3, 2, 0, 1, 1, 1,
1095
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 2,
1096
+ 1, 1, 2, 1, 1, 2, 1, 3, 1, 1,
1097
+ 1, 1, 1, 1, 1, 6, 1, 1, 0, 1,
1098
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1099
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1100
+ 1, 1, 1, 1, 1, 1, 1, 1
1101
+ };
1102
+
1103
+
1104
+ enum { YYENOMEM = -2 };
1105
+
1106
+ #define yyerrok (yyerrstatus = 0)
1107
+ #define yyclearin (yychar = YYEMPTY)
1108
+
1109
+ #define YYACCEPT goto yyacceptlab
1110
+ #define YYABORT goto yyabortlab
1111
+ #define YYERROR goto yyerrorlab
1112
+ #define YYNOMEM goto yyexhaustedlab
1113
+
1114
+
1115
+ #define YYRECOVERING() (!!yyerrstatus)
1116
+
1117
+ #define YYBACKUP(Token, Value) \
1118
+ do \
1119
+ if (yychar == YYEMPTY) \
1120
+ { \
1121
+ yychar = (Token); \
1122
+ yylval = (Value); \
1123
+ YYPOPSTACK (yylen); \
1124
+ yystate = *yyssp; \
1125
+ goto yybackup; \
1126
+ } \
1127
+ else \
1128
+ { \
1129
+ yyerror (YY_("syntax error: cannot back up")); \
1130
+ YYERROR; \
1131
+ } \
1132
+ while (0)
1133
+
1134
+ /* Backward compatibility with an undocumented macro.
1135
+ Use YYerror or YYUNDEF. */
1136
+ #define YYERRCODE YYUNDEF
1137
+
1138
+ /* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
1139
+ If N is 0, then set CURRENT to the empty location which ends
1140
+ the previous symbol: RHS[0] (always defined). */
1141
+
1142
+ #ifndef YYLLOC_DEFAULT
1143
+ # define YYLLOC_DEFAULT(Current, Rhs, N) \
1144
+ do \
1145
+ if (N) \
1146
+ { \
1147
+ (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
1148
+ (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
1149
+ (Current).last_line = YYRHSLOC (Rhs, N).last_line; \
1150
+ (Current).last_column = YYRHSLOC (Rhs, N).last_column; \
1151
+ } \
1152
+ else \
1153
+ { \
1154
+ (Current).first_line = (Current).last_line = \
1155
+ YYRHSLOC (Rhs, 0).last_line; \
1156
+ (Current).first_column = (Current).last_column = \
1157
+ YYRHSLOC (Rhs, 0).last_column; \
1158
+ } \
1159
+ while (0)
1160
+ #endif
1161
+
1162
+ #define YYRHSLOC(Rhs, K) ((Rhs)[K])
1163
+
1164
+
1165
+ /* Enable debugging if requested. */
1166
+ #if YYDEBUG
1167
+
1168
+ # ifndef YYFPRINTF
1169
+ # include <stdio.h> /* INFRINGES ON USER NAME SPACE */
1170
+ # define YYFPRINTF fprintf
1171
+ # endif
1172
+
1173
+ # define YYDPRINTF(Args) \
1174
+ do { \
1175
+ if (yydebug) \
1176
+ YYFPRINTF Args; \
1177
+ } while (0)
1178
+
1179
+
1180
+ /* YYLOCATION_PRINT -- Print the location on the stream.
1181
+ This macro was not mandated originally: define only if we know
1182
+ we won't break user code: when these are the locations we know. */
1183
+
1184
+ # ifndef YYLOCATION_PRINT
1185
+
1186
+ # if defined YY_LOCATION_PRINT
1187
+
1188
+ /* Temporary convenience wrapper in case some people defined the
1189
+ undocumented and private YY_LOCATION_PRINT macros. */
1190
+ # define YYLOCATION_PRINT(File, Loc) YY_LOCATION_PRINT(File, *(Loc))
1191
+
1192
+ # elif defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL
1193
+
1194
+ /* Print *YYLOCP on YYO. Private, do not rely on its existence. */
1195
+
1196
+ YY_ATTRIBUTE_UNUSED
1197
+ static int
1198
+ yy_location_print_ (FILE *yyo, YYLTYPE const * const yylocp)
1199
+ {
1200
+ int res = 0;
1201
+ int end_col = 0 != yylocp->last_column ? yylocp->last_column - 1 : 0;
1202
+ if (0 <= yylocp->first_line)
1203
+ {
1204
+ res += YYFPRINTF (yyo, "%d", yylocp->first_line);
1205
+ if (0 <= yylocp->first_column)
1206
+ res += YYFPRINTF (yyo, ".%d", yylocp->first_column);
1207
+ }
1208
+ if (0 <= yylocp->last_line)
1209
+ {
1210
+ if (yylocp->first_line < yylocp->last_line)
1211
+ {
1212
+ res += YYFPRINTF (yyo, "-%d", yylocp->last_line);
1213
+ if (0 <= end_col)
1214
+ res += YYFPRINTF (yyo, ".%d", end_col);
1215
+ }
1216
+ else if (0 <= end_col && yylocp->first_column < end_col)
1217
+ res += YYFPRINTF (yyo, "-%d", end_col);
1218
+ }
1219
+ return res;
1220
+ }
1221
+
1222
+ # define YYLOCATION_PRINT yy_location_print_
1223
+
1224
+ /* Temporary convenience wrapper in case some people defined the
1225
+ undocumented and private YY_LOCATION_PRINT macros. */
1226
+ # define YY_LOCATION_PRINT(File, Loc) YYLOCATION_PRINT(File, &(Loc))
1227
+
1228
+ # else
1229
+
1230
+ # define YYLOCATION_PRINT(File, Loc) ((void) 0)
1231
+ /* Temporary convenience wrapper in case some people defined the
1232
+ undocumented and private YY_LOCATION_PRINT macros. */
1233
+ # define YY_LOCATION_PRINT YYLOCATION_PRINT
1234
+
1235
+ # endif
1236
+ # endif /* !defined YYLOCATION_PRINT */
1237
+
1238
+
1239
+ # define YY_SYMBOL_PRINT(Title, Kind, Value, Location) \
1240
+ do { \
1241
+ if (yydebug) \
1242
+ { \
1243
+ YYFPRINTF (stderr, "%s ", Title); \
1244
+ yy_symbol_print (stderr, \
1245
+ Kind, Value, Location); \
1246
+ YYFPRINTF (stderr, "\n"); \
1247
+ } \
1248
+ } while (0)
1249
+
1250
+
1251
+ /*-----------------------------------.
1252
+ | Print this symbol's value on YYO. |
1253
+ `-----------------------------------*/
1254
+
1255
+ static void
1256
+ yy_symbol_value_print (FILE *yyo,
1257
+ yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp)
1258
+ {
1259
+ FILE *yyoutput = yyo;
1260
+ YY_USE (yyoutput);
1261
+ YY_USE (yylocationp);
1262
+ if (!yyvaluep)
1263
+ return;
1264
+ YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
1265
+ YY_USE (yykind);
1266
+ YY_IGNORE_MAYBE_UNINITIALIZED_END
1267
+ }
1268
+
1269
+
1270
+ /*---------------------------.
1271
+ | Print this symbol on YYO. |
1272
+ `---------------------------*/
1273
+
1274
+ static void
1275
+ yy_symbol_print (FILE *yyo,
1276
+ yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp)
1277
+ {
1278
+ YYFPRINTF (yyo, "%s %s (",
1279
+ yykind < YYNTOKENS ? "token" : "nterm", yysymbol_name (yykind));
1280
+
1281
+ YYLOCATION_PRINT (yyo, yylocationp);
1282
+ YYFPRINTF (yyo, ": ");
1283
+ yy_symbol_value_print (yyo, yykind, yyvaluep, yylocationp);
1284
+ YYFPRINTF (yyo, ")");
1285
+ }
1286
+
1287
+ /*------------------------------------------------------------------.
1288
+ | yy_stack_print -- Print the state stack from its BOTTOM up to its |
1289
+ | TOP (included). |
1290
+ `------------------------------------------------------------------*/
1291
+
1292
+ static void
1293
+ yy_stack_print (yy_state_t *yybottom, yy_state_t *yytop)
1294
+ {
1295
+ YYFPRINTF (stderr, "Stack now");
1296
+ for (; yybottom <= yytop; yybottom++)
1297
+ {
1298
+ int yybot = *yybottom;
1299
+ YYFPRINTF (stderr, " %d", yybot);
1300
+ }
1301
+ YYFPRINTF (stderr, "\n");
1302
+ }
1303
+
1304
+ # define YY_STACK_PRINT(Bottom, Top) \
1305
+ do { \
1306
+ if (yydebug) \
1307
+ yy_stack_print ((Bottom), (Top)); \
1308
+ } while (0)
1309
+
1310
+
1311
+ /*------------------------------------------------.
1312
+ | Report that the YYRULE is going to be reduced. |
1313
+ `------------------------------------------------*/
1314
+
1315
+ static void
1316
+ yy_reduce_print (yy_state_t *yyssp, YYSTYPE *yyvsp, YYLTYPE *yylsp,
1317
+ int yyrule)
1318
+ {
1319
+ int yylno = yyrline[yyrule];
1320
+ int yynrhs = yyr2[yyrule];
1321
+ int yyi;
1322
+ YYFPRINTF (stderr, "Reducing stack by rule %d (line %d):\n",
1323
+ yyrule - 1, yylno);
1324
+ /* The symbols being reduced. */
1325
+ for (yyi = 0; yyi < yynrhs; yyi++)
1326
+ {
1327
+ YYFPRINTF (stderr, " $%d = ", yyi + 1);
1328
+ yy_symbol_print (stderr,
1329
+ YY_ACCESSING_SYMBOL (+yyssp[yyi + 1 - yynrhs]),
1330
+ &yyvsp[(yyi + 1) - (yynrhs)],
1331
+ &(yylsp[(yyi + 1) - (yynrhs)]));
1332
+ YYFPRINTF (stderr, "\n");
1333
+ }
1334
+ }
1335
+
1336
+ # define YY_REDUCE_PRINT(Rule) \
1337
+ do { \
1338
+ if (yydebug) \
1339
+ yy_reduce_print (yyssp, yyvsp, yylsp, Rule); \
1340
+ } while (0)
1341
+
1342
+ /* Nonzero means print parse trace. It is left uninitialized so that
1343
+ multiple parsers can coexist. */
1344
+ int yydebug;
1345
+ #else /* !YYDEBUG */
1346
+ # define YYDPRINTF(Args) ((void) 0)
1347
+ # define YY_SYMBOL_PRINT(Title, Kind, Value, Location)
1348
+ # define YY_STACK_PRINT(Bottom, Top)
1349
+ # define YY_REDUCE_PRINT(Rule)
1350
+ #endif /* !YYDEBUG */
1351
+
1352
+
1353
+ /* YYINITDEPTH -- initial size of the parser's stacks. */
1354
+ #ifndef YYINITDEPTH
1355
+ # define YYINITDEPTH 200
1356
+ #endif
1357
+
1358
+ /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
1359
+ if the built-in stack extension method is used).
1360
+
1361
+ Do not make this value too large; the results are undefined if
1362
+ YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
1363
+ evaluated with infinite-precision integer arithmetic. */
1364
+
1365
+ #ifndef YYMAXDEPTH
1366
+ # define YYMAXDEPTH 10000
1367
+ #endif
1368
+
1369
+
1370
+ /* Context of a parse error. */
1371
+ typedef struct
1372
+ {
1373
+ yy_state_t *yyssp;
1374
+ yysymbol_kind_t yytoken;
1375
+ YYLTYPE *yylloc;
1376
+ } yypcontext_t;
1377
+
1378
+ /* Put in YYARG at most YYARGN of the expected tokens given the
1379
+ current YYCTX, and return the number of tokens stored in YYARG. If
1380
+ YYARG is null, return the number of expected tokens (guaranteed to
1381
+ be less than YYNTOKENS). Return YYENOMEM on memory exhaustion.
1382
+ Return 0 if there are more than YYARGN expected tokens, yet fill
1383
+ YYARG up to YYARGN. */
1384
+ static int
1385
+ yypcontext_expected_tokens (const yypcontext_t *yyctx,
1386
+ yysymbol_kind_t yyarg[], int yyargn)
1387
+ {
1388
+ /* Actual size of YYARG. */
1389
+ int yycount = 0;
1390
+ int yyn = yypact[+*yyctx->yyssp];
1391
+ if (!yypact_value_is_default (yyn))
1392
+ {
1393
+ /* Start YYX at -YYN if negative to avoid negative indexes in
1394
+ YYCHECK. In other words, skip the first -YYN actions for
1395
+ this state because they are default actions. */
1396
+ int yyxbegin = yyn < 0 ? -yyn : 0;
1397
+ /* Stay within bounds of both yycheck and yytname. */
1398
+ int yychecklim = YYLAST - yyn + 1;
1399
+ int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
1400
+ int yyx;
1401
+ for (yyx = yyxbegin; yyx < yyxend; ++yyx)
1402
+ if (yycheck[yyx + yyn] == yyx && yyx != YYSYMBOL_YYerror
1403
+ && !yytable_value_is_error (yytable[yyx + yyn]))
1404
+ {
1405
+ if (!yyarg)
1406
+ ++yycount;
1407
+ else if (yycount == yyargn)
1408
+ return 0;
1409
+ else
1410
+ yyarg[yycount++] = YY_CAST (yysymbol_kind_t, yyx);
1411
+ }
1412
+ }
1413
+ if (yyarg && yycount == 0 && 0 < yyargn)
1414
+ yyarg[0] = YYSYMBOL_YYEMPTY;
1415
+ return yycount;
1416
+ }
1417
+
1418
+
1419
+
1420
+
1421
+ #ifndef yystrlen
1422
+ # if defined __GLIBC__ && defined _STRING_H
1423
+ # define yystrlen(S) (YY_CAST (YYPTRDIFF_T, strlen (S)))
1424
+ # else
1425
+ /* Return the length of YYSTR. */
1426
+ static YYPTRDIFF_T
1427
+ yystrlen (const char *yystr)
1428
+ {
1429
+ YYPTRDIFF_T yylen;
1430
+ for (yylen = 0; yystr[yylen]; yylen++)
1431
+ continue;
1432
+ return yylen;
1433
+ }
1434
+ # endif
1435
+ #endif
1436
+
1437
+ #ifndef yystpcpy
1438
+ # if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
1439
+ # define yystpcpy stpcpy
1440
+ # else
1441
+ /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
1442
+ YYDEST. */
1443
+ static char *
1444
+ yystpcpy (char *yydest, const char *yysrc)
1445
+ {
1446
+ char *yyd = yydest;
1447
+ const char *yys = yysrc;
1448
+
1449
+ while ((*yyd++ = *yys++) != '\0')
1450
+ continue;
1451
+
1452
+ return yyd - 1;
1453
+ }
1454
+ # endif
1455
+ #endif
1456
+
1457
+
1458
+
1459
+ static int
1460
+ yy_syntax_error_arguments (const yypcontext_t *yyctx,
1461
+ yysymbol_kind_t yyarg[], int yyargn)
1462
+ {
1463
+ /* Actual size of YYARG. */
1464
+ int yycount = 0;
1465
+ /* There are many possibilities here to consider:
1466
+ - If this state is a consistent state with a default action, then
1467
+ the only way this function was invoked is if the default action
1468
+ is an error action. In that case, don't check for expected
1469
+ tokens because there are none.
1470
+ - The only way there can be no lookahead present (in yychar) is if
1471
+ this state is a consistent state with a default action. Thus,
1472
+ detecting the absence of a lookahead is sufficient to determine
1473
+ that there is no unexpected or expected token to report. In that
1474
+ case, just report a simple "syntax error".
1475
+ - Don't assume there isn't a lookahead just because this state is a
1476
+ consistent state with a default action. There might have been a
1477
+ previous inconsistent state, consistent state with a non-default
1478
+ action, or user semantic action that manipulated yychar.
1479
+ - Of course, the expected token list depends on states to have
1480
+ correct lookahead information, and it depends on the parser not
1481
+ to perform extra reductions after fetching a lookahead from the
1482
+ scanner and before detecting a syntax error. Thus, state merging
1483
+ (from LALR or IELR) and default reductions corrupt the expected
1484
+ token list. However, the list is correct for canonical LR with
1485
+ one exception: it will still contain any token that will not be
1486
+ accepted due to an error action in a later state.
1487
+ */
1488
+ if (yyctx->yytoken != YYSYMBOL_YYEMPTY)
1489
+ {
1490
+ int yyn;
1491
+ if (yyarg)
1492
+ yyarg[yycount] = yyctx->yytoken;
1493
+ ++yycount;
1494
+ yyn = yypcontext_expected_tokens (yyctx,
1495
+ yyarg ? yyarg + 1 : yyarg, yyargn - 1);
1496
+ if (yyn == YYENOMEM)
1497
+ return YYENOMEM;
1498
+ else
1499
+ yycount += yyn;
1500
+ }
1501
+ return yycount;
1502
+ }
1503
+
1504
+ /* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message
1505
+ about the unexpected token YYTOKEN for the state stack whose top is
1506
+ YYSSP.
1507
+
1508
+ Return 0 if *YYMSG was successfully written. Return -1 if *YYMSG is
1509
+ not large enough to hold the message. In that case, also set
1510
+ *YYMSG_ALLOC to the required number of bytes. Return YYENOMEM if the
1511
+ required number of bytes is too large to store. */
1512
+ static int
1513
+ yysyntax_error (YYPTRDIFF_T *yymsg_alloc, char **yymsg,
1514
+ const yypcontext_t *yyctx)
1515
+ {
1516
+ enum { YYARGS_MAX = 5 };
1517
+ /* Internationalized format string. */
1518
+ const char *yyformat = YY_NULLPTR;
1519
+ /* Arguments of yyformat: reported tokens (one for the "unexpected",
1520
+ one per "expected"). */
1521
+ yysymbol_kind_t yyarg[YYARGS_MAX];
1522
+ /* Cumulated lengths of YYARG. */
1523
+ YYPTRDIFF_T yysize = 0;
1524
+
1525
+ /* Actual size of YYARG. */
1526
+ int yycount = yy_syntax_error_arguments (yyctx, yyarg, YYARGS_MAX);
1527
+ if (yycount == YYENOMEM)
1528
+ return YYENOMEM;
1529
+
1530
+ switch (yycount)
1531
+ {
1532
+ #define YYCASE_(N, S) \
1533
+ case N: \
1534
+ yyformat = S; \
1535
+ break
1536
+ default: /* Avoid compiler warnings. */
1537
+ YYCASE_(0, YY_("syntax error"));
1538
+ YYCASE_(1, YY_("syntax error, unexpected %s"));
1539
+ YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s"));
1540
+ YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s"));
1541
+ YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s"));
1542
+ YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"));
1543
+ #undef YYCASE_
1544
+ }
1545
+
1546
+ /* Compute error message size. Don't count the "%s"s, but reserve
1547
+ room for the terminator. */
1548
+ yysize = yystrlen (yyformat) - 2 * yycount + 1;
1549
+ {
1550
+ int yyi;
1551
+ for (yyi = 0; yyi < yycount; ++yyi)
1552
+ {
1553
+ YYPTRDIFF_T yysize1
1554
+ = yysize + yystrlen (yysymbol_name (yyarg[yyi]));
1555
+ if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)
1556
+ yysize = yysize1;
1557
+ else
1558
+ return YYENOMEM;
1559
+ }
1560
+ }
1561
+
1562
+ if (*yymsg_alloc < yysize)
1563
+ {
1564
+ *yymsg_alloc = 2 * yysize;
1565
+ if (! (yysize <= *yymsg_alloc
1566
+ && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM))
1567
+ *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM;
1568
+ return -1;
1569
+ }
1570
+
1571
+ /* Avoid sprintf, as that infringes on the user's name space.
1572
+ Don't have undefined behavior even if the translation
1573
+ produced a string with the wrong number of "%s"s. */
1574
+ {
1575
+ char *yyp = *yymsg;
1576
+ int yyi = 0;
1577
+ while ((*yyp = *yyformat) != '\0')
1578
+ if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount)
1579
+ {
1580
+ yyp = yystpcpy (yyp, yysymbol_name (yyarg[yyi++]));
1581
+ yyformat += 2;
1582
+ }
1583
+ else
1584
+ {
1585
+ ++yyp;
1586
+ ++yyformat;
1587
+ }
1588
+ }
1589
+ return 0;
1590
+ }
1591
+
1592
+
1593
+ /*-----------------------------------------------.
1594
+ | Release the memory associated to this symbol. |
1595
+ `-----------------------------------------------*/
1596
+
1597
+ static void
1598
+ yydestruct (const char *yymsg,
1599
+ yysymbol_kind_t yykind, YYSTYPE *yyvaluep, YYLTYPE *yylocationp)
1600
+ {
1601
+ YY_USE (yyvaluep);
1602
+ YY_USE (yylocationp);
1603
+ if (!yymsg)
1604
+ yymsg = "Deleting";
1605
+ YY_SYMBOL_PRINT (yymsg, yykind, yyvaluep, yylocationp);
1606
+
1607
+ YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
1608
+ YY_USE (yykind);
1609
+ YY_IGNORE_MAYBE_UNINITIALIZED_END
1610
+ }
1611
+
1612
+
1613
+
1614
+
1615
+
1616
+
1617
+ /*----------.
1618
+ | yyparse. |
1619
+ `----------*/
1620
+
1621
+ int
1622
+ yyparse (void)
1623
+ {
1624
+ /* Lookahead token kind. */
1625
+ int yychar;
1626
+
1627
+
1628
+ /* The semantic value of the lookahead symbol. */
1629
+ /* Default value used for initialization, for pacifying older GCCs
1630
+ or non-GCC compilers. */
1631
+ YY_INITIAL_VALUE (static YYSTYPE yyval_default;)
1632
+ YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default);
1633
+
1634
+ /* Location data for the lookahead symbol. */
1635
+ static YYLTYPE yyloc_default
1636
+ # if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL
1637
+ = { 1, 1, 1, 1 }
1638
+ # endif
1639
+ ;
1640
+ YYLTYPE yylloc = yyloc_default;
1641
+
1642
+ /* Number of syntax errors so far. */
1643
+ int yynerrs = 0;
1644
+
1645
+ yy_state_fast_t yystate = 0;
1646
+ /* Number of tokens to shift before error messages enabled. */
1647
+ int yyerrstatus = 0;
1648
+
1649
+ /* Refer to the stacks through separate pointers, to allow yyoverflow
1650
+ to reallocate them elsewhere. */
1651
+
1652
+ /* Their size. */
1653
+ YYPTRDIFF_T yystacksize = YYINITDEPTH;
1654
+
1655
+ /* The state stack: array, bottom, top. */
1656
+ yy_state_t yyssa[YYINITDEPTH];
1657
+ yy_state_t *yyss = yyssa;
1658
+ yy_state_t *yyssp = yyss;
1659
+
1660
+ /* The semantic value stack: array, bottom, top. */
1661
+ YYSTYPE yyvsa[YYINITDEPTH];
1662
+ YYSTYPE *yyvs = yyvsa;
1663
+ YYSTYPE *yyvsp = yyvs;
1664
+
1665
+ /* The location stack: array, bottom, top. */
1666
+ YYLTYPE yylsa[YYINITDEPTH];
1667
+ YYLTYPE *yyls = yylsa;
1668
+ YYLTYPE *yylsp = yyls;
1669
+
1670
+ int yyn;
1671
+ /* The return value of yyparse. */
1672
+ int yyresult;
1673
+ /* Lookahead symbol kind. */
1674
+ yysymbol_kind_t yytoken = YYSYMBOL_YYEMPTY;
1675
+ /* The variables used to return semantic value and location from the
1676
+ action routines. */
1677
+ YYSTYPE yyval;
1678
+ YYLTYPE yyloc;
1679
+
1680
+ /* The locations where the error started and ended. */
1681
+ YYLTYPE yyerror_range[3];
1682
+
1683
+ /* Buffer for error messages, and its allocated size. */
1684
+ char yymsgbuf[128];
1685
+ char *yymsg = yymsgbuf;
1686
+ YYPTRDIFF_T yymsg_alloc = sizeof yymsgbuf;
1687
+
1688
+ #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N), yylsp -= (N))
1689
+
1690
+ /* The number of symbols on the RHS of the reduced rule.
1691
+ Keep to zero when no symbol should be popped. */
1692
+ int yylen = 0;
1693
+
1694
+ YYDPRINTF ((stderr, "Starting parse\n"));
1695
+
1696
+ yychar = YYEMPTY; /* Cause a token to be read. */
1697
+
1698
+ yylsp[0] = yylloc;
1699
+ goto yysetstate;
1700
+
1701
+
1702
+ /*------------------------------------------------------------.
1703
+ | yynewstate -- push a new state, which is found in yystate. |
1704
+ `------------------------------------------------------------*/
1705
+ yynewstate:
1706
+ /* In all cases, when you get here, the value and location stacks
1707
+ have just been pushed. So pushing a state here evens the stacks. */
1708
+ yyssp++;
1709
+
1710
+
1711
+ /*--------------------------------------------------------------------.
1712
+ | yysetstate -- set current state (the top of the stack) to yystate. |
1713
+ `--------------------------------------------------------------------*/
1714
+ yysetstate:
1715
+ YYDPRINTF ((stderr, "Entering state %d\n", yystate));
1716
+ YY_ASSERT (0 <= yystate && yystate < YYNSTATES);
1717
+ YY_IGNORE_USELESS_CAST_BEGIN
1718
+ *yyssp = YY_CAST (yy_state_t, yystate);
1719
+ YY_IGNORE_USELESS_CAST_END
1720
+ YY_STACK_PRINT (yyss, yyssp);
1721
+
1722
+ if (yyss + yystacksize - 1 <= yyssp)
1723
+ #if !defined yyoverflow && !defined YYSTACK_RELOCATE
1724
+ YYNOMEM;
1725
+ #else
1726
+ {
1727
+ /* Get the current used size of the three stacks, in elements. */
1728
+ YYPTRDIFF_T yysize = yyssp - yyss + 1;
1729
+
1730
+ # if defined yyoverflow
1731
+ {
1732
+ /* Give user a chance to reallocate the stack. Use copies of
1733
+ these so that the &'s don't force the real ones into
1734
+ memory. */
1735
+ yy_state_t *yyss1 = yyss;
1736
+ YYSTYPE *yyvs1 = yyvs;
1737
+ YYLTYPE *yyls1 = yyls;
1738
+
1739
+ /* Each stack pointer address is followed by the size of the
1740
+ data in use in that stack, in bytes. This used to be a
1741
+ conditional around just the two extra args, but that might
1742
+ be undefined if yyoverflow is a macro. */
1743
+ yyoverflow (YY_("memory exhausted"),
1744
+ &yyss1, yysize * YYSIZEOF (*yyssp),
1745
+ &yyvs1, yysize * YYSIZEOF (*yyvsp),
1746
+ &yyls1, yysize * YYSIZEOF (*yylsp),
1747
+ &yystacksize);
1748
+ yyss = yyss1;
1749
+ yyvs = yyvs1;
1750
+ yyls = yyls1;
1751
+ }
1752
+ # else /* defined YYSTACK_RELOCATE */
1753
+ /* Extend the stack our own way. */
1754
+ if (YYMAXDEPTH <= yystacksize)
1755
+ YYNOMEM;
1756
+ yystacksize *= 2;
1757
+ if (YYMAXDEPTH < yystacksize)
1758
+ yystacksize = YYMAXDEPTH;
1759
+
1760
+ {
1761
+ yy_state_t *yyss1 = yyss;
1762
+ union yyalloc *yyptr =
1763
+ YY_CAST (union yyalloc *,
1764
+ YYSTACK_ALLOC (YY_CAST (YYSIZE_T, YYSTACK_BYTES (yystacksize))));
1765
+ if (! yyptr)
1766
+ YYNOMEM;
1767
+ YYSTACK_RELOCATE (yyss_alloc, yyss);
1768
+ YYSTACK_RELOCATE (yyvs_alloc, yyvs);
1769
+ YYSTACK_RELOCATE (yyls_alloc, yyls);
1770
+ # undef YYSTACK_RELOCATE
1771
+ if (yyss1 != yyssa)
1772
+ YYSTACK_FREE (yyss1);
1773
+ }
1774
+ # endif
1775
+
1776
+ yyssp = yyss + yysize - 1;
1777
+ yyvsp = yyvs + yysize - 1;
1778
+ yylsp = yyls + yysize - 1;
1779
+
1780
+ YY_IGNORE_USELESS_CAST_BEGIN
1781
+ YYDPRINTF ((stderr, "Stack size increased to %ld\n",
1782
+ YY_CAST (long, yystacksize)));
1783
+ YY_IGNORE_USELESS_CAST_END
1784
+
1785
+ if (yyss + yystacksize - 1 <= yyssp)
1786
+ YYABORT;
1787
+ }
1788
+ #endif /* !defined yyoverflow && !defined YYSTACK_RELOCATE */
1789
+
1790
+
1791
+ if (yystate == YYFINAL)
1792
+ YYACCEPT;
1793
+
1794
+ goto yybackup;
1795
+
1796
+
1797
+ /*-----------.
1798
+ | yybackup. |
1799
+ `-----------*/
1800
+ yybackup:
1801
+ /* Do appropriate processing given the current state. Read a
1802
+ lookahead token if we need one and don't already have one. */
1803
+
1804
+ /* First try to decide what to do without reference to lookahead token. */
1805
+ yyn = yypact[yystate];
1806
+ if (yypact_value_is_default (yyn))
1807
+ goto yydefault;
1808
+
1809
+ /* Not known => get a lookahead token if don't already have one. */
1810
+
1811
+ /* YYCHAR is either empty, or end-of-input, or a valid lookahead. */
1812
+ if (yychar == YYEMPTY)
1813
+ {
1814
+ YYDPRINTF ((stderr, "Reading a token\n"));
1815
+ yychar = yylex (&yylval, &yylloc);
1816
+ }
1817
+
1818
+ if (yychar <= YYEOF)
1819
+ {
1820
+ yychar = YYEOF;
1821
+ yytoken = YYSYMBOL_YYEOF;
1822
+ YYDPRINTF ((stderr, "Now at end of input.\n"));
1823
+ }
1824
+ else if (yychar == YYerror)
1825
+ {
1826
+ /* The scanner already issued an error message, process directly
1827
+ to error recovery. But do not keep the error token as
1828
+ lookahead, it is too special and may lead us to an endless
1829
+ loop in error recovery. */
1830
+ yychar = YYUNDEF;
1831
+ yytoken = YYSYMBOL_YYerror;
1832
+ yyerror_range[1] = yylloc;
1833
+ goto yyerrlab1;
1834
+ }
1835
+ else
1836
+ {
1837
+ yytoken = YYTRANSLATE (yychar);
1838
+ YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
1839
+ }
1840
+
1841
+ /* If the proper action on seeing token YYTOKEN is to reduce or to
1842
+ detect an error, take that action. */
1843
+ yyn += yytoken;
1844
+ if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
1845
+ goto yydefault;
1846
+ yyn = yytable[yyn];
1847
+ if (yyn <= 0)
1848
+ {
1849
+ if (yytable_value_is_error (yyn))
1850
+ goto yyerrlab;
1851
+ yyn = -yyn;
1852
+ goto yyreduce;
1853
+ }
1854
+
1855
+ /* Count tokens shifted since error; after three, turn off error
1856
+ status. */
1857
+ if (yyerrstatus)
1858
+ yyerrstatus--;
1859
+
1860
+ /* Shift the lookahead token. */
1861
+ YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
1862
+ yystate = yyn;
1863
+ YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
1864
+ *++yyvsp = yylval;
1865
+ YY_IGNORE_MAYBE_UNINITIALIZED_END
1866
+ *++yylsp = yylloc;
1867
+
1868
+ /* Discard the shifted token. */
1869
+ yychar = YYEMPTY;
1870
+ goto yynewstate;
1871
+
1872
+
1873
+ /*-----------------------------------------------------------.
1874
+ | yydefault -- do the default action for the current state. |
1875
+ `-----------------------------------------------------------*/
1876
+ yydefault:
1877
+ yyn = yydefact[yystate];
1878
+ if (yyn == 0)
1879
+ goto yyerrlab;
1880
+ goto yyreduce;
1881
+
1882
+
1883
+ /*-----------------------------.
1884
+ | yyreduce -- do a reduction. |
1885
+ `-----------------------------*/
1886
+ yyreduce:
1887
+ /* yyn is the number of a rule to reduce with. */
1888
+ yylen = yyr2[yyn];
1889
+
1890
+ /* If YYLEN is nonzero, implement the default value of the action:
1891
+ '$$ = $1'.
1892
+
1893
+ Otherwise, the following line sets YYVAL to garbage.
1894
+ This behavior is undocumented and Bison
1895
+ users should not rely upon it. Assigning to YYVAL
1896
+ unconditionally makes the parser a bit smaller, and it avoids a
1897
+ GCC warning that YYVAL may be used uninitialized. */
1898
+ yyval = yyvsp[1-yylen];
1899
+
1900
+ /* Default location. */
1901
+ YYLLOC_DEFAULT (yyloc, (yylsp - yylen), yylen);
1902
+ yyerror_range[1] = yyloc;
1903
+ YY_REDUCE_PRINT (yyn);
1904
+ switch (yyn)
1905
+ {
1906
+ case 2: /* start: definitions */
1907
+ #line 212 "src/Slice/Grammar.y"
1908
+ {
1909
+ }
1910
+ #line 1911 "src/Slice/Grammar.cpp"
1911
+ break;
1912
+
1913
+ case 3: /* opt_semicolon: ';' */
1914
+ #line 220 "src/Slice/Grammar.y"
1915
+ {
1916
+ }
1917
+ #line 1918 "src/Slice/Grammar.cpp"
1918
+ break;
1919
+
1920
+ case 4: /* opt_semicolon: %empty */
1921
+ #line 223 "src/Slice/Grammar.y"
1922
+ {
1923
+ }
1924
+ #line 1925 "src/Slice/Grammar.cpp"
1925
+ break;
1926
+
1927
+ case 5: /* file_metadata: "[[" metadata_list "]]" */
1928
+ #line 231 "src/Slice/Grammar.y"
1929
+ {
1930
+ yyval = yyvsp[-1];
1931
+ }
1932
+ #line 1933 "src/Slice/Grammar.cpp"
1933
+ break;
1934
+
1935
+ case 6: /* file_metadata: "[[" error "]]" */
1936
+ #line 235 "src/Slice/Grammar.y"
1937
+ {
1938
+ yyval = make_shared<MetadataListTok>();
1939
+ }
1940
+ #line 1941 "src/Slice/Grammar.cpp"
1941
+ break;
1942
+
1943
+ case 7: /* file_metadata: "[[" "]]" */
1944
+ #line 239 "src/Slice/Grammar.y"
1945
+ {
1946
+ currentUnit->warning(WarningCategory::All, "No directives were provided in metadata list");
1947
+ yyval = make_shared<MetadataListTok>();
1948
+ }
1949
+ #line 1950 "src/Slice/Grammar.cpp"
1950
+ break;
1951
+
1952
+ case 8: /* local_metadata: "[" metadata_list "]" */
1953
+ #line 249 "src/Slice/Grammar.y"
1954
+ {
1955
+ yyval = yyvsp[-1];
1956
+ }
1957
+ #line 1958 "src/Slice/Grammar.cpp"
1958
+ break;
1959
+
1960
+ case 9: /* local_metadata: "[" error "]" */
1961
+ #line 253 "src/Slice/Grammar.y"
1962
+ {
1963
+ yyval = make_shared<MetadataListTok>();
1964
+ }
1965
+ #line 1966 "src/Slice/Grammar.cpp"
1966
+ break;
1967
+
1968
+ case 10: /* local_metadata: "[" "]" */
1969
+ #line 257 "src/Slice/Grammar.y"
1970
+ {
1971
+ currentUnit->warning(WarningCategory::All, "No directives were provided in metadata list");
1972
+ yyval = make_shared<MetadataListTok>();
1973
+ }
1974
+ #line 1975 "src/Slice/Grammar.cpp"
1975
+ break;
1976
+
1977
+ case 11: /* metadata: metadata_directives */
1978
+ #line 267 "src/Slice/Grammar.y"
1979
+ {
1980
+ }
1981
+ #line 1982 "src/Slice/Grammar.cpp"
1982
+ break;
1983
+
1984
+ case 12: /* metadata: %empty */
1985
+ #line 270 "src/Slice/Grammar.y"
1986
+ {
1987
+ yyval = make_shared<MetadataListTok>();
1988
+ }
1989
+ #line 1990 "src/Slice/Grammar.cpp"
1990
+ break;
1991
+
1992
+ case 13: /* metadata_directives: local_metadata */
1993
+ #line 279 "src/Slice/Grammar.y"
1994
+ {
1995
+ yyval = yyvsp[0];
1996
+ }
1997
+ #line 1998 "src/Slice/Grammar.cpp"
1998
+ break;
1999
+
2000
+ case 14: /* metadata_directives: metadata_directives local_metadata */
2001
+ #line 283 "src/Slice/Grammar.y"
2002
+ {
2003
+ auto metadata1 = dynamic_pointer_cast<MetadataListTok>(yyvsp[-1]);
2004
+ auto metadata2 = dynamic_pointer_cast<MetadataListTok>(yyvsp[0]);
2005
+ metadata1->v.splice(metadata1->v.end(), std::move(metadata2->v));
2006
+ yyval = metadata1;
2007
+ }
2008
+ #line 2009 "src/Slice/Grammar.cpp"
2009
+ break;
2010
+
2011
+ case 15: /* definitions: definitions file_metadata */
2012
+ #line 295 "src/Slice/Grammar.y"
2013
+ {
2014
+ auto metadata = dynamic_pointer_cast<MetadataListTok>(yyvsp[0]);
2015
+ if (!metadata->v.empty())
2016
+ {
2017
+ currentUnit->addFileMetadata(std::move(metadata->v));
2018
+ }
2019
+ }
2020
+ #line 2021 "src/Slice/Grammar.cpp"
2021
+ break;
2022
+
2023
+ case 16: /* definitions: definitions metadata definition */
2024
+ #line 303 "src/Slice/Grammar.y"
2025
+ {
2026
+ auto metadata = dynamic_pointer_cast<MetadataListTok>(yyvsp[-1]);
2027
+ auto contained = dynamic_pointer_cast<Contained>(yyvsp[0]);
2028
+ if (contained && !metadata->v.empty())
2029
+ {
2030
+ contained->appendMetadata(std::move(metadata->v));
2031
+ }
2032
+ }
2033
+ #line 2034 "src/Slice/Grammar.cpp"
2034
+ break;
2035
+
2036
+ case 17: /* definitions: %empty */
2037
+ #line 312 "src/Slice/Grammar.y"
2038
+ {
2039
+ }
2040
+ #line 2041 "src/Slice/Grammar.cpp"
2041
+ break;
2042
+
2043
+ case 18: /* definition: module_def opt_semicolon */
2044
+ #line 320 "src/Slice/Grammar.y"
2045
+ {
2046
+ assert(dynamic_pointer_cast<Module>(yyvsp[-1]));
2047
+ }
2048
+ #line 2049 "src/Slice/Grammar.cpp"
2049
+ break;
2050
+
2051
+ case 19: /* definition: class_decl ';' */
2052
+ #line 324 "src/Slice/Grammar.y"
2053
+ {
2054
+ assert(yyvsp[-1] == nullptr || dynamic_pointer_cast<ClassDecl>(yyvsp[-1]));
2055
+ }
2056
+ #line 2057 "src/Slice/Grammar.cpp"
2057
+ break;
2058
+
2059
+ case 20: /* definition: class_def opt_semicolon */
2060
+ #line 328 "src/Slice/Grammar.y"
2061
+ {
2062
+ assert(yyvsp[-1] == nullptr || dynamic_pointer_cast<ClassDef>(yyvsp[-1]));
2063
+ }
2064
+ #line 2065 "src/Slice/Grammar.cpp"
2065
+ break;
2066
+
2067
+ case 21: /* definition: interface_decl ';' */
2068
+ #line 332 "src/Slice/Grammar.y"
2069
+ {
2070
+ assert(yyvsp[-1] == nullptr || dynamic_pointer_cast<InterfaceDecl>(yyvsp[-1]));
2071
+ }
2072
+ #line 2073 "src/Slice/Grammar.cpp"
2073
+ break;
2074
+
2075
+ case 22: /* definition: interface_def opt_semicolon */
2076
+ #line 336 "src/Slice/Grammar.y"
2077
+ {
2078
+ assert(yyvsp[-1] == nullptr || dynamic_pointer_cast<InterfaceDef>(yyvsp[-1]));
2079
+ }
2080
+ #line 2081 "src/Slice/Grammar.cpp"
2081
+ break;
2082
+
2083
+ case 23: /* definition: exception_decl ';' */
2084
+ #line 340 "src/Slice/Grammar.y"
2085
+ {
2086
+ assert(yyvsp[-1] == nullptr);
2087
+ }
2088
+ #line 2089 "src/Slice/Grammar.cpp"
2089
+ break;
2090
+
2091
+ case 24: /* definition: exception_def opt_semicolon */
2092
+ #line 344 "src/Slice/Grammar.y"
2093
+ {
2094
+ assert(dynamic_pointer_cast<Exception>(yyvsp[-1]));
2095
+ }
2096
+ #line 2097 "src/Slice/Grammar.cpp"
2097
+ break;
2098
+
2099
+ case 25: /* definition: struct_decl ';' */
2100
+ #line 348 "src/Slice/Grammar.y"
2101
+ {
2102
+ assert(yyvsp[-1] == nullptr);
2103
+ }
2104
+ #line 2105 "src/Slice/Grammar.cpp"
2105
+ break;
2106
+
2107
+ case 26: /* definition: struct_def opt_semicolon */
2108
+ #line 352 "src/Slice/Grammar.y"
2109
+ {
2110
+ assert(dynamic_pointer_cast<Struct>(yyvsp[-1]));
2111
+ }
2112
+ #line 2113 "src/Slice/Grammar.cpp"
2113
+ break;
2114
+
2115
+ case 27: /* definition: sequence_def ';' */
2116
+ #line 356 "src/Slice/Grammar.y"
2117
+ {
2118
+ assert(dynamic_pointer_cast<Sequence>(yyvsp[-1]));
2119
+ }
2120
+ #line 2121 "src/Slice/Grammar.cpp"
2121
+ break;
2122
+
2123
+ case 28: /* definition: dictionary_def ';' */
2124
+ #line 360 "src/Slice/Grammar.y"
2125
+ {
2126
+ assert(dynamic_pointer_cast<Dictionary>(yyvsp[-1]));
2127
+ }
2128
+ #line 2129 "src/Slice/Grammar.cpp"
2129
+ break;
2130
+
2131
+ case 29: /* definition: enum_def opt_semicolon */
2132
+ #line 364 "src/Slice/Grammar.y"
2133
+ {
2134
+ assert(dynamic_pointer_cast<Enum>(yyvsp[-1]));
2135
+ }
2136
+ #line 2137 "src/Slice/Grammar.cpp"
2137
+ break;
2138
+
2139
+ case 30: /* definition: const_def ';' */
2140
+ #line 368 "src/Slice/Grammar.y"
2141
+ {
2142
+ assert(dynamic_pointer_cast<Const>(yyvsp[-1]));
2143
+ }
2144
+ #line 2145 "src/Slice/Grammar.cpp"
2145
+ break;
2146
+
2147
+ case 31: /* definition: error ';' */
2148
+ #line 372 "src/Slice/Grammar.y"
2149
+ {
2150
+ yyerrok;
2151
+ }
2152
+ #line 2153 "src/Slice/Grammar.cpp"
2153
+ break;
2154
+
2155
+ case 32: /* @1: %empty */
2156
+ #line 381 "src/Slice/Grammar.y"
2157
+ {
2158
+ currentUnit->setSeenDefinition();
2159
+
2160
+ auto ident = dynamic_pointer_cast<StringTok>(yyvsp[0]);
2161
+ ContainerPtr cont = currentUnit->currentContainer();
2162
+ ModulePtr module = cont->createModule(ident->v, false);
2163
+
2164
+ cont->checkHasChangedMeaning(ident->v, module);
2165
+ currentUnit->pushContainer(module);
2166
+ yyval = module;
2167
+ }
2168
+ #line 2169 "src/Slice/Grammar.cpp"
2169
+ break;
2170
+
2171
+ case 33: /* module_def: "module keyword" definition_name @1 '{' definitions '}' */
2172
+ #line 393 "src/Slice/Grammar.y"
2173
+ {
2174
+ currentUnit->popContainer();
2175
+ yyval = yyvsp[-3];
2176
+ }
2177
+ #line 2178 "src/Slice/Grammar.cpp"
2178
+ break;
2179
+
2180
+ case 34: /* @2: %empty */
2181
+ #line 398 "src/Slice/Grammar.y"
2182
+ {
2183
+ currentUnit->setSeenDefinition();
2184
+
2185
+ auto ident = dynamic_pointer_cast<StringTok>(yyvsp[0]);
2186
+
2187
+ // Reject scoped identifiers starting with "::". This generally indicates global scope, but is invalid here.
2188
+ size_t startPos = 0;
2189
+ if (ident->v.find("::") == 0)
2190
+ {
2191
+ currentUnit->error("illegal identifier: module identifiers cannot start with '::' prefix");
2192
+ startPos += 2; // Skip the leading "::".
2193
+ }
2194
+
2195
+ // Split the scoped-identifier token into separate module names.
2196
+ size_t endPos;
2197
+ vector<string> modules;
2198
+ while ((endPos = ident->v.find("::", startPos)) != string::npos)
2199
+ {
2200
+ modules.push_back(ident->v.substr(startPos, (endPos - startPos)));
2201
+ startPos = endPos + 2; // Skip the "::" separator.
2202
+ }
2203
+ modules.push_back(ident->v.substr(startPos));
2204
+
2205
+ // Create the nested modules.
2206
+ ContainerPtr cont = currentUnit->currentContainer();
2207
+ for (size_t i = 0; i < modules.size(); i++)
2208
+ {
2209
+ const auto currentModuleName = modules[i];
2210
+ ModulePtr module = cont->createModule(currentModuleName, true);
2211
+
2212
+ cont->checkHasChangedMeaning(currentModuleName, module);
2213
+ currentUnit->pushContainer(module);
2214
+ yyval = cont = module;
2215
+ }
2216
+ }
2217
+ #line 2218 "src/Slice/Grammar.cpp"
2218
+ break;
2219
+
2220
+ case 35: /* module_def: "module keyword" "scoped identifier" @2 '{' definitions '}' */
2221
+ #line 434 "src/Slice/Grammar.y"
2222
+ {
2223
+ // We need to pop '(N+1)' modules off the container stack, to navigate out of the nested module.
2224
+ // Where `N` is the number of scope separators ("::").
2225
+ size_t startPos = 0;
2226
+ auto ident = dynamic_pointer_cast<StringTok>(yyvsp[-4]);
2227
+
2228
+ // Skip over any leading "::". This is invalid syntax of course, but the parser still needs to properly handle it.
2229
+ if (ident->v.find("::") == 0)
2230
+ {
2231
+ startPos += 2; // Skip the leading "::".
2232
+ }
2233
+
2234
+ while ((startPos = ident->v.find("::", startPos)) != string::npos)
2235
+ {
2236
+ currentUnit->popContainer();
2237
+ startPos += 2; // Skip the "::" separator.
2238
+ }
2239
+
2240
+ // Set the 'return value' to the outer-most module, before we pop it off the stack.
2241
+ // Whichever module we return, is the one that metadata will be applied to.
2242
+ yyval = currentUnit->currentContainer();
2243
+ currentUnit->popContainer();
2244
+ }
2245
+ #line 2246 "src/Slice/Grammar.cpp"
2246
+ break;
2247
+
2248
+ case 36: /* exception_decl: "exception keyword" definition_name */
2249
+ #line 463 "src/Slice/Grammar.y"
2250
+ {
2251
+ currentUnit->error("exceptions cannot be forward declared");
2252
+ yyval = nullptr;
2253
+ }
2254
+ #line 2255 "src/Slice/Grammar.cpp"
2255
+ break;
2256
+
2257
+ case 37: /* @3: %empty */
2258
+ #line 473 "src/Slice/Grammar.y"
2259
+ {
2260
+ auto ident = dynamic_pointer_cast<StringTok>(yyvsp[-1]);
2261
+ auto base = dynamic_pointer_cast<Exception>(yyvsp[0]);
2262
+ ContainerPtr cont = currentUnit->currentContainer();
2263
+ ExceptionPtr ex = cont->createException(ident->v, base);
2264
+
2265
+ cont->checkHasChangedMeaning(ident->v, ex);
2266
+ currentUnit->pushContainer(ex);
2267
+ yyval = ex;
2268
+ }
2269
+ #line 2270 "src/Slice/Grammar.cpp"
2270
+ break;
2271
+
2272
+ case 38: /* exception_def: "exception keyword" definition_name exception_extends @3 '{' data_members '}' */
2273
+ #line 484 "src/Slice/Grammar.y"
2274
+ {
2275
+ currentUnit->popContainer();
2276
+ yyval = yyvsp[-3];
2277
+ }
2278
+ #line 2279 "src/Slice/Grammar.cpp"
2279
+ break;
2280
+
2281
+ case 39: /* exception_extends: extends scoped_name */
2282
+ #line 494 "src/Slice/Grammar.y"
2283
+ {
2284
+ auto scoped = dynamic_pointer_cast<StringTok>(yyvsp[0]);
2285
+ ContainerPtr cont = currentUnit->currentContainer();
2286
+ ContainedPtr contained = cont->lookupException(scoped->v, true);
2287
+ cont->checkHasChangedMeaning(scoped->v);
2288
+ yyval = contained;
2289
+ }
2290
+ #line 2291 "src/Slice/Grammar.cpp"
2291
+ break;
2292
+
2293
+ case 40: /* exception_extends: %empty */
2294
+ #line 502 "src/Slice/Grammar.y"
2295
+ {
2296
+ yyval = nullptr;
2297
+ }
2298
+ #line 2299 "src/Slice/Grammar.cpp"
2299
+ break;
2300
+
2301
+ case 41: /* type_id: type definition_name */
2302
+ #line 511 "src/Slice/Grammar.y"
2303
+ {
2304
+ auto type = dynamic_pointer_cast<Type>(yyvsp[-1]);
2305
+ auto ident = dynamic_pointer_cast<StringTok>(yyvsp[0]);
2306
+ yyval = make_shared<TypeStringTok>(type, ident->v);
2307
+ }
2308
+ #line 2309 "src/Slice/Grammar.cpp"
2309
+ break;
2310
+
2311
+ case 42: /* optional: "optional(" integer_constant ')' */
2312
+ #line 522 "src/Slice/Grammar.y"
2313
+ {
2314
+ auto integer = dynamic_pointer_cast<IntegerTok>(yyvsp[-1]);
2315
+ int32_t tag = -1;
2316
+
2317
+ if (integer && checkIntegerBounds(integer, "tag"))
2318
+ {
2319
+ tag = static_cast<int32_t>(integer->v);
2320
+ }
2321
+
2322
+ auto m = make_shared<OptionalDefTok>(tag);
2323
+ yyval = m;
2324
+ }
2325
+ #line 2326 "src/Slice/Grammar.cpp"
2326
+ break;
2327
+
2328
+ case 43: /* optional: "optional(" ')' */
2329
+ #line 535 "src/Slice/Grammar.y"
2330
+ {
2331
+ currentUnit->error("missing tag");
2332
+ auto m = make_shared<OptionalDefTok>(-1); // Dummy
2333
+ yyval = m;
2334
+ }
2335
+ #line 2336 "src/Slice/Grammar.cpp"
2336
+ break;
2337
+
2338
+ case 44: /* optional: "optional keyword" */
2339
+ #line 541 "src/Slice/Grammar.y"
2340
+ {
2341
+ currentUnit->error("missing tag");
2342
+ auto m = make_shared<OptionalDefTok>(-1); // Dummy
2343
+ yyval = m;
2344
+ }
2345
+ #line 2346 "src/Slice/Grammar.cpp"
2346
+ break;
2347
+
2348
+ case 45: /* optional_type_id: optional type_id */
2349
+ #line 552 "src/Slice/Grammar.y"
2350
+ {
2351
+ auto m = dynamic_pointer_cast<OptionalDefTok>(yyvsp[-1]);
2352
+ auto ts = dynamic_pointer_cast<TypeStringTok>(yyvsp[0]);
2353
+ m->type = ts->type;
2354
+ m->name = ts->name;
2355
+
2356
+ // It's safe to perform this check in the parser, since we already have enough information to know whether a type
2357
+ // can be optional. This is because the only types that can be forward declared (classes/interfaces) have constant
2358
+ // values for `usesClasses` (true/false respectively).
2359
+ if (m->type && m->type->usesClasses())
2360
+ {
2361
+ currentUnit->error("types that use classes cannot be marked with 'optional'");
2362
+ }
2363
+
2364
+ yyval = m;
2365
+ }
2366
+ #line 2367 "src/Slice/Grammar.cpp"
2367
+ break;
2368
+
2369
+ case 46: /* optional_type_id: type_id */
2370
+ #line 569 "src/Slice/Grammar.y"
2371
+ {
2372
+ auto ts = dynamic_pointer_cast<TypeStringTok>(yyvsp[0]);
2373
+ auto m = make_shared<OptionalDefTok>(-1);
2374
+ m->type = ts->type;
2375
+ m->name = ts->name;
2376
+ yyval = m;
2377
+ }
2378
+ #line 2379 "src/Slice/Grammar.cpp"
2379
+ break;
2380
+
2381
+ case 47: /* struct_decl: "struct keyword" definition_name */
2382
+ #line 582 "src/Slice/Grammar.y"
2383
+ {
2384
+ currentUnit->error("structs cannot be forward declared");
2385
+ yyval = nullptr; // Dummy
2386
+ }
2387
+ #line 2388 "src/Slice/Grammar.cpp"
2388
+ break;
2389
+
2390
+ case 48: /* @4: %empty */
2391
+ #line 592 "src/Slice/Grammar.y"
2392
+ {
2393
+ auto ident = dynamic_pointer_cast<StringTok>(yyvsp[0]);
2394
+ ContainerPtr cont = currentUnit->currentContainer();
2395
+ StructPtr st = cont->createStruct(ident->v);
2396
+
2397
+ cont->checkHasChangedMeaning(ident->v, st);
2398
+ currentUnit->pushContainer(st);
2399
+ yyval = st;
2400
+ }
2401
+ #line 2402 "src/Slice/Grammar.cpp"
2402
+ break;
2403
+
2404
+ case 49: /* struct_def: "struct keyword" definition_name @4 '{' data_members '}' */
2405
+ #line 602 "src/Slice/Grammar.y"
2406
+ {
2407
+ currentUnit->popContainer();
2408
+
2409
+ // Empty structures are not allowed
2410
+ auto st = dynamic_pointer_cast<Struct>(yyvsp[-3]);
2411
+ if (st->dataMembers().empty())
2412
+ {
2413
+ currentUnit->error("struct '" + st->name() + "' must have at least one member");
2414
+ }
2415
+ yyval = st;
2416
+ }
2417
+ #line 2418 "src/Slice/Grammar.cpp"
2418
+ break;
2419
+
2420
+ case 50: /* class_name: "class keyword" "identifier" */
2421
+ #line 619 "src/Slice/Grammar.y"
2422
+ {
2423
+ yyval = yyvsp[0];
2424
+ }
2425
+ #line 2426 "src/Slice/Grammar.cpp"
2426
+ break;
2427
+
2428
+ case 51: /* class_name: "class keyword" keyword */
2429
+ #line 623 "src/Slice/Grammar.y"
2430
+ {
2431
+ auto ident = dynamic_pointer_cast<StringTok>(yyvsp[0]);
2432
+ currentUnit->error("keyword '" + ident->v + "' cannot be used as class name");
2433
+ yyval = yyvsp[0]; // Dummy
2434
+ }
2435
+ #line 2436 "src/Slice/Grammar.cpp"
2436
+ break;
2437
+
2438
+ case 52: /* class_id: "class keyword" definition_name_open integer_constant ')' */
2439
+ #line 634 "src/Slice/Grammar.y"
2440
+ {
2441
+ auto integer = dynamic_pointer_cast<IntegerTok>(yyvsp[-1]);
2442
+ int32_t id = -1;
2443
+
2444
+ if (integer && checkIntegerBounds(integer, "compact id"))
2445
+ {
2446
+ id = static_cast<int32_t>(integer->v);
2447
+ string typeId = currentUnit->getTypeId(id);
2448
+ if (!typeId.empty())
2449
+ {
2450
+ currentUnit->error("invalid compact id for class: already assigned to class '" + typeId + "'");
2451
+ }
2452
+ }
2453
+
2454
+ auto classId = make_shared<ClassIdTok>();
2455
+ classId->v = dynamic_pointer_cast<StringTok>(yyvsp[-2])->v;
2456
+ classId->t = id;
2457
+ yyval = classId;
2458
+ }
2459
+ #line 2460 "src/Slice/Grammar.cpp"
2460
+ break;
2461
+
2462
+ case 53: /* class_id: class_name */
2463
+ #line 654 "src/Slice/Grammar.y"
2464
+ {
2465
+ auto classId = make_shared<ClassIdTok>();
2466
+ classId->v = dynamic_pointer_cast<StringTok>(yyvsp[0])->v;
2467
+ classId->t = -1;
2468
+ yyval = classId;
2469
+ }
2470
+ #line 2471 "src/Slice/Grammar.cpp"
2471
+ break;
2472
+
2473
+ case 54: /* class_decl: class_name */
2474
+ #line 666 "src/Slice/Grammar.y"
2475
+ {
2476
+ auto ident = dynamic_pointer_cast<StringTok>(yyvsp[0]);
2477
+ ContainerPtr cont = currentUnit->currentContainer();
2478
+ ClassDeclPtr cl = cont->createClassDecl(ident->v);
2479
+ yyval = cl;
2480
+ }
2481
+ #line 2482 "src/Slice/Grammar.cpp"
2482
+ break;
2483
+
2484
+ case 55: /* @5: %empty */
2485
+ #line 678 "src/Slice/Grammar.y"
2486
+ {
2487
+ auto ident = dynamic_pointer_cast<ClassIdTok>(yyvsp[-1]);
2488
+ ContainerPtr cont = currentUnit->currentContainer();
2489
+ auto base = dynamic_pointer_cast<ClassDef>(yyvsp[0]);
2490
+ ClassDefPtr cl = cont->createClassDef(ident->v, ident->t, base);
2491
+ if (cl)
2492
+ {
2493
+ cont->checkHasChangedMeaning(ident->v, cl);
2494
+ currentUnit->pushContainer(cl);
2495
+ yyval = cl;
2496
+ }
2497
+ else
2498
+ {
2499
+ yyval = nullptr;
2500
+ }
2501
+ }
2502
+ #line 2503 "src/Slice/Grammar.cpp"
2503
+ break;
2504
+
2505
+ case 56: /* class_def: class_id class_extends @5 '{' data_members '}' */
2506
+ #line 695 "src/Slice/Grammar.y"
2507
+ {
2508
+ if (yyvsp[-3])
2509
+ {
2510
+ currentUnit->popContainer();
2511
+ yyval = yyvsp[-3];
2512
+ }
2513
+ else
2514
+ {
2515
+ yyval = nullptr;
2516
+ }
2517
+ }
2518
+ #line 2519 "src/Slice/Grammar.cpp"
2519
+ break;
2520
+
2521
+ case 57: /* class_extends: extends scoped_name */
2522
+ #line 712 "src/Slice/Grammar.y"
2523
+ {
2524
+ auto scoped = dynamic_pointer_cast<StringTok>(yyvsp[0]);
2525
+ ContainerPtr cont = currentUnit->currentContainer();
2526
+ TypeList types = cont->lookupType(scoped->v);
2527
+ yyval = nullptr;
2528
+ if (!types.empty())
2529
+ {
2530
+ auto cl = dynamic_pointer_cast<ClassDecl>(types.front());
2531
+ if (!cl)
2532
+ {
2533
+ currentUnit->error("'" + scoped->v + "' is not a class");
2534
+ }
2535
+ else
2536
+ {
2537
+ ClassDefPtr def = cl->definition();
2538
+ if (!def)
2539
+ {
2540
+ currentUnit->error("'" + scoped->v + "' has been declared but not defined");
2541
+ }
2542
+ else
2543
+ {
2544
+ cont->checkHasChangedMeaning(scoped->v);
2545
+ yyval = def;
2546
+ }
2547
+ }
2548
+ }
2549
+ }
2550
+ #line 2551 "src/Slice/Grammar.cpp"
2551
+ break;
2552
+
2553
+ case 58: /* class_extends: %empty */
2554
+ #line 740 "src/Slice/Grammar.y"
2555
+ {
2556
+ yyval = nullptr;
2557
+ }
2558
+ #line 2559 "src/Slice/Grammar.cpp"
2559
+ break;
2560
+
2561
+ case 59: /* extends: "extends keyword" */
2562
+ #line 749 "src/Slice/Grammar.y"
2563
+ {
2564
+ }
2565
+ #line 2566 "src/Slice/Grammar.cpp"
2566
+ break;
2567
+
2568
+ case 60: /* extends: ':' */
2569
+ #line 752 "src/Slice/Grammar.y"
2570
+ {
2571
+ }
2572
+ #line 2573 "src/Slice/Grammar.cpp"
2573
+ break;
2574
+
2575
+ case 61: /* data_members: metadata data_member ';' data_members */
2576
+ #line 760 "src/Slice/Grammar.y"
2577
+ {
2578
+ auto metadata = dynamic_pointer_cast<MetadataListTok>(yyvsp[-3]);
2579
+ auto contained = dynamic_pointer_cast<Contained>(yyvsp[-2]);
2580
+ if (contained && !metadata->v.empty())
2581
+ {
2582
+ contained->appendMetadata(std::move(metadata->v));
2583
+ }
2584
+ }
2585
+ #line 2586 "src/Slice/Grammar.cpp"
2586
+ break;
2587
+
2588
+ case 62: /* data_members: error ';' data_members */
2589
+ #line 769 "src/Slice/Grammar.y"
2590
+ {
2591
+ }
2592
+ #line 2593 "src/Slice/Grammar.cpp"
2593
+ break;
2594
+
2595
+ case 63: /* data_members: metadata data_member */
2596
+ #line 772 "src/Slice/Grammar.y"
2597
+ {
2598
+ currentUnit->error("';' missing after definition");
2599
+ }
2600
+ #line 2601 "src/Slice/Grammar.cpp"
2601
+ break;
2602
+
2603
+ case 64: /* data_members: %empty */
2604
+ #line 776 "src/Slice/Grammar.y"
2605
+ {
2606
+ }
2607
+ #line 2608 "src/Slice/Grammar.cpp"
2608
+ break;
2609
+
2610
+ case 65: /* data_member: optional_type_id */
2611
+ #line 784 "src/Slice/Grammar.y"
2612
+ {
2613
+ auto def = dynamic_pointer_cast<OptionalDefTok>(yyvsp[0]);
2614
+ DataMemberPtr dm;
2615
+
2616
+ if (auto cl = dynamic_pointer_cast<ClassDef>(currentUnit->currentContainer()))
2617
+ {
2618
+ dm = cl->createDataMember(def->name, def->type, def->isOptional, def->tag, nullptr, std::nullopt);
2619
+ }
2620
+ else if (auto st = dynamic_pointer_cast<Struct>(currentUnit->currentContainer()))
2621
+ {
2622
+ if (def->isOptional)
2623
+ {
2624
+ currentUnit->error("optional data members are not supported in structs");
2625
+ }
2626
+ dm = st->createDataMember(def->name, def->type, nullptr, std::nullopt);
2627
+ }
2628
+ else if (auto ex = dynamic_pointer_cast<Exception>(currentUnit->currentContainer()))
2629
+ {
2630
+ dm = ex->createDataMember(def->name, def->type, def->isOptional, def->tag, nullptr, std::nullopt);
2631
+ }
2632
+
2633
+ if (dm)
2634
+ {
2635
+ currentUnit->currentContainer()->checkHasChangedMeaning(def->name, dm);
2636
+ }
2637
+ yyval = dm;
2638
+ }
2639
+ #line 2640 "src/Slice/Grammar.cpp"
2640
+ break;
2641
+
2642
+ case 66: /* data_member: optional_type_id '=' const_initializer */
2643
+ #line 812 "src/Slice/Grammar.y"
2644
+ {
2645
+ auto def = dynamic_pointer_cast<OptionalDefTok>(yyvsp[-2]);
2646
+ auto value = dynamic_pointer_cast<ConstDefTok>(yyvsp[0]);
2647
+ DataMemberPtr dm;
2648
+
2649
+ if (auto cl = dynamic_pointer_cast<ClassDef>(currentUnit->currentContainer()))
2650
+ {
2651
+ dm = cl->createDataMember(def->name, def->type, def->isOptional, def->tag, value->v, value->valueAsString);
2652
+ }
2653
+ else if (auto st = dynamic_pointer_cast<Struct>(currentUnit->currentContainer()))
2654
+ {
2655
+ if (def->isOptional)
2656
+ {
2657
+ currentUnit->error("optional data members are not supported in structs");
2658
+ }
2659
+ dm = st->createDataMember(def->name, def->type, value->v, value->valueAsString);
2660
+ }
2661
+ else if (auto ex = dynamic_pointer_cast<Exception>(currentUnit->currentContainer()))
2662
+ {
2663
+ dm = ex->createDataMember(def->name, def->type, def->isOptional, def->tag, value->v, value->valueAsString);
2664
+ }
2665
+
2666
+ if (dm)
2667
+ {
2668
+ currentUnit->currentContainer()->checkHasChangedMeaning(def->name, dm);
2669
+ }
2670
+ yyval = dm;
2671
+ }
2672
+ #line 2673 "src/Slice/Grammar.cpp"
2673
+ break;
2674
+
2675
+ case 67: /* return_type: optional type */
2676
+ #line 846 "src/Slice/Grammar.y"
2677
+ {
2678
+ auto m = dynamic_pointer_cast<OptionalDefTok>(yyvsp[-1]);
2679
+ m->type = dynamic_pointer_cast<Type>(yyvsp[0]);
2680
+
2681
+ // It's safe to perform this check in the parser, since we already have enough information to know whether a type
2682
+ // can be optional. This is because the only types that can be forward declared (classes/interfaces) have constant
2683
+ // values for `usesClasses` (true/false respectively).
2684
+ if (m->type && m->type->usesClasses())
2685
+ {
2686
+ currentUnit->error("types that use classes cannot be marked with 'optional'");
2687
+ }
2688
+
2689
+ yyval = m;
2690
+ }
2691
+ #line 2692 "src/Slice/Grammar.cpp"
2692
+ break;
2693
+
2694
+ case 68: /* return_type: type */
2695
+ #line 861 "src/Slice/Grammar.y"
2696
+ {
2697
+ auto m = make_shared<OptionalDefTok>(-1);
2698
+ m->type = dynamic_pointer_cast<Type>(yyvsp[0]);
2699
+ yyval = m;
2700
+ }
2701
+ #line 2702 "src/Slice/Grammar.cpp"
2702
+ break;
2703
+
2704
+ case 69: /* return_type: "void keyword" */
2705
+ #line 867 "src/Slice/Grammar.y"
2706
+ {
2707
+ auto m = make_shared<OptionalDefTok>(-1);
2708
+ yyval = m;
2709
+ }
2710
+ #line 2711 "src/Slice/Grammar.cpp"
2711
+ break;
2712
+
2713
+ case 70: /* idempotent_modifier: "idempotent keyword" */
2714
+ #line 877 "src/Slice/Grammar.y"
2715
+ {
2716
+ yyval = make_shared<BoolTok>(true);
2717
+ }
2718
+ #line 2719 "src/Slice/Grammar.cpp"
2719
+ break;
2720
+
2721
+ case 71: /* idempotent_modifier: %empty */
2722
+ #line 881 "src/Slice/Grammar.y"
2723
+ {
2724
+ yyval = make_shared<BoolTok>(false);
2725
+ }
2726
+ #line 2727 "src/Slice/Grammar.cpp"
2727
+ break;
2728
+
2729
+ case 72: /* operation_preamble: idempotent_modifier return_type definition_name_open */
2730
+ #line 890 "src/Slice/Grammar.y"
2731
+ {
2732
+ bool isIdempotent = dynamic_pointer_cast<BoolTok>(yyvsp[-2])->v;
2733
+ auto returnType = dynamic_pointer_cast<OptionalDefTok>(yyvsp[-1]);
2734
+ string name = dynamic_pointer_cast<StringTok>(yyvsp[0])->v;
2735
+ auto interface = dynamic_pointer_cast<InterfaceDef>(currentUnit->currentContainer());
2736
+ if (interface)
2737
+ {
2738
+ OperationPtr op = interface->createOperation(
2739
+ name,
2740
+ returnType->type,
2741
+ returnType->isOptional,
2742
+ returnType->tag,
2743
+ isIdempotent ? Operation::Idempotent : Operation::Normal);
2744
+
2745
+ interface->checkHasChangedMeaning(name, op);
2746
+ currentUnit->pushContainer(op);
2747
+ yyval = op;
2748
+ }
2749
+ else
2750
+ {
2751
+ yyval = nullptr;
2752
+ }
2753
+ }
2754
+ #line 2755 "src/Slice/Grammar.cpp"
2755
+ break;
2756
+
2757
+ case 73: /* @6: %empty */
2758
+ #line 919 "src/Slice/Grammar.y"
2759
+ {
2760
+ if (yyvsp[-2])
2761
+ {
2762
+ // Check that all out parameters come before all in parameters.
2763
+ auto op = dynamic_pointer_cast<Operation>(yyvsp[-2]);
2764
+ bool seenOutParam = false;
2765
+ for (const auto& param : op->parameters())
2766
+ {
2767
+ const bool isOutParam = param->isOutParam();
2768
+ if (!isOutParam && seenOutParam)
2769
+ {
2770
+ currentUnit->error("parameter '" + param->name() + "': in-parameters cannot come after out-parameters");
2771
+ }
2772
+ seenOutParam |= isOutParam;
2773
+ }
2774
+
2775
+ currentUnit->popContainer();
2776
+ }
2777
+ yyval = yyvsp[-2];
2778
+ }
2779
+ #line 2780 "src/Slice/Grammar.cpp"
2780
+ break;
2781
+
2782
+ case 74: /* operation: operation_preamble parameters ')' @6 throws */
2783
+ #line 940 "src/Slice/Grammar.y"
2784
+ {
2785
+ auto op = dynamic_pointer_cast<Operation>(yyvsp[-1]);
2786
+ auto el = dynamic_pointer_cast<ExceptionListTok>(yyvsp[0]);
2787
+ assert(el);
2788
+ if (op)
2789
+ {
2790
+ op->setExceptionList(el->v);
2791
+ }
2792
+ }
2793
+ #line 2794 "src/Slice/Grammar.cpp"
2794
+ break;
2795
+
2796
+ case 75: /* @7: %empty */
2797
+ #line 950 "src/Slice/Grammar.y"
2798
+ {
2799
+ if (yyvsp[-2])
2800
+ {
2801
+ currentUnit->popContainer();
2802
+ }
2803
+ yyerrok;
2804
+ }
2805
+ #line 2806 "src/Slice/Grammar.cpp"
2806
+ break;
2807
+
2808
+ case 76: /* operation: operation_preamble error ')' @7 throws */
2809
+ #line 958 "src/Slice/Grammar.y"
2810
+ {
2811
+ auto op = dynamic_pointer_cast<Operation>(yyvsp[-1]);
2812
+ auto el = dynamic_pointer_cast<ExceptionListTok>(yyvsp[0]);
2813
+ assert(el);
2814
+ if (op)
2815
+ {
2816
+ op->setExceptionList(el->v); // Dummy
2817
+ }
2818
+ }
2819
+ #line 2820 "src/Slice/Grammar.cpp"
2820
+ break;
2821
+
2822
+ case 77: /* interface_id: "interface keyword" "identifier" */
2823
+ #line 973 "src/Slice/Grammar.y"
2824
+ {
2825
+ yyval = yyvsp[0];
2826
+ }
2827
+ #line 2828 "src/Slice/Grammar.cpp"
2828
+ break;
2829
+
2830
+ case 78: /* interface_id: "interface keyword" keyword */
2831
+ #line 977 "src/Slice/Grammar.y"
2832
+ {
2833
+ auto ident = dynamic_pointer_cast<StringTok>(yyvsp[0]);
2834
+ currentUnit->error("keyword '" + ident->v + "' cannot be used as interface name");
2835
+ yyval = yyvsp[0]; // Dummy
2836
+ }
2837
+ #line 2838 "src/Slice/Grammar.cpp"
2838
+ break;
2839
+
2840
+ case 79: /* interface_decl: interface_id */
2841
+ #line 988 "src/Slice/Grammar.y"
2842
+ {
2843
+ auto ident = dynamic_pointer_cast<StringTok>(yyvsp[0]);
2844
+ auto cont = currentUnit->currentContainer();
2845
+ InterfaceDeclPtr cl = cont->createInterfaceDecl(ident->v);
2846
+ cont->checkHasChangedMeaning(ident->v, cl);
2847
+ yyval = cl;
2848
+ }
2849
+ #line 2850 "src/Slice/Grammar.cpp"
2850
+ break;
2851
+
2852
+ case 80: /* @8: %empty */
2853
+ #line 1001 "src/Slice/Grammar.y"
2854
+ {
2855
+ auto ident = dynamic_pointer_cast<StringTok>(yyvsp[-1]);
2856
+ ContainerPtr cont = currentUnit->currentContainer();
2857
+ auto bases = dynamic_pointer_cast<InterfaceListTok>(yyvsp[0]);
2858
+ InterfaceDefPtr interface = cont->createInterfaceDef(ident->v, bases->v);
2859
+ if (interface)
2860
+ {
2861
+ cont->checkHasChangedMeaning(ident->v, interface);
2862
+ currentUnit->pushContainer(interface);
2863
+ yyval = interface;
2864
+ }
2865
+ else
2866
+ {
2867
+ yyval = nullptr;
2868
+ }
2869
+ }
2870
+ #line 2871 "src/Slice/Grammar.cpp"
2871
+ break;
2872
+
2873
+ case 81: /* interface_def: interface_id interface_extends @8 '{' operations '}' */
2874
+ #line 1018 "src/Slice/Grammar.y"
2875
+ {
2876
+ if (yyvsp[-3])
2877
+ {
2878
+ currentUnit->popContainer();
2879
+ yyval = yyvsp[-3];
2880
+ }
2881
+ else
2882
+ {
2883
+ yyval = nullptr;
2884
+ }
2885
+ }
2886
+ #line 2887 "src/Slice/Grammar.cpp"
2887
+ break;
2888
+
2889
+ case 82: /* interface_list: interface_list ',' scoped_name */
2890
+ #line 1035 "src/Slice/Grammar.y"
2891
+ {
2892
+ auto interfaces = dynamic_pointer_cast<InterfaceListTok>(yyvsp[-2]);
2893
+ auto scoped = dynamic_pointer_cast<StringTok>(yyvsp[0]);
2894
+ if (auto interfaceDef = lookupInterfaceByName(scoped->v))
2895
+ {
2896
+ interfaces->v.push_back(interfaceDef);
2897
+ }
2898
+ yyval = interfaces;
2899
+ }
2900
+ #line 2901 "src/Slice/Grammar.cpp"
2901
+ break;
2902
+
2903
+ case 83: /* interface_list: scoped_name */
2904
+ #line 1045 "src/Slice/Grammar.y"
2905
+ {
2906
+ auto interfaces = make_shared<InterfaceListTok>();
2907
+ auto scoped = dynamic_pointer_cast<StringTok>(yyvsp[0]);
2908
+ if (auto interfaceDef = lookupInterfaceByName(scoped->v))
2909
+ {
2910
+ interfaces->v.push_back(interfaceDef);
2911
+ }
2912
+ yyval = interfaces;
2913
+ }
2914
+ #line 2915 "src/Slice/Grammar.cpp"
2915
+ break;
2916
+
2917
+ case 84: /* interface_list: "Object keyword" */
2918
+ #line 1055 "src/Slice/Grammar.y"
2919
+ {
2920
+ currentUnit->error("illegal inheritance from type Object");
2921
+ yyval = make_shared<InterfaceListTok>(); // Dummy
2922
+ }
2923
+ #line 2924 "src/Slice/Grammar.cpp"
2924
+ break;
2925
+
2926
+ case 85: /* interface_list: "Value keyword" */
2927
+ #line 1060 "src/Slice/Grammar.y"
2928
+ {
2929
+ currentUnit->error("illegal inheritance from type Value");
2930
+ yyval = make_shared<InterfaceListTok>(); // Dummy
2931
+ }
2932
+ #line 2933 "src/Slice/Grammar.cpp"
2933
+ break;
2934
+
2935
+ case 86: /* interface_extends: extends interface_list */
2936
+ #line 1070 "src/Slice/Grammar.y"
2937
+ {
2938
+ yyval = yyvsp[0];
2939
+ }
2940
+ #line 2941 "src/Slice/Grammar.cpp"
2941
+ break;
2942
+
2943
+ case 87: /* interface_extends: %empty */
2944
+ #line 1074 "src/Slice/Grammar.y"
2945
+ {
2946
+ yyval = make_shared<InterfaceListTok>();
2947
+ }
2948
+ #line 2949 "src/Slice/Grammar.cpp"
2949
+ break;
2950
+
2951
+ case 88: /* operations: metadata operation ';' operations */
2952
+ #line 1083 "src/Slice/Grammar.y"
2953
+ {
2954
+ auto metadata = dynamic_pointer_cast<MetadataListTok>(yyvsp[-3]);
2955
+ auto contained = dynamic_pointer_cast<Contained>(yyvsp[-2]);
2956
+ if (contained && !metadata->v.empty())
2957
+ {
2958
+ contained->appendMetadata(std::move(metadata->v));
2959
+ }
2960
+ }
2961
+ #line 2962 "src/Slice/Grammar.cpp"
2962
+ break;
2963
+
2964
+ case 89: /* operations: error ';' operations */
2965
+ #line 1092 "src/Slice/Grammar.y"
2966
+ {
2967
+ }
2968
+ #line 2969 "src/Slice/Grammar.cpp"
2969
+ break;
2970
+
2971
+ case 90: /* operations: metadata operation */
2972
+ #line 1095 "src/Slice/Grammar.y"
2973
+ {
2974
+ currentUnit->error("';' missing after definition");
2975
+ }
2976
+ #line 2977 "src/Slice/Grammar.cpp"
2977
+ break;
2978
+
2979
+ case 91: /* operations: %empty */
2980
+ #line 1099 "src/Slice/Grammar.y"
2981
+ {
2982
+ }
2983
+ #line 2984 "src/Slice/Grammar.cpp"
2984
+ break;
2985
+
2986
+ case 92: /* exception_list: exception_list ',' exception */
2987
+ #line 1107 "src/Slice/Grammar.y"
2988
+ {
2989
+ auto exceptionList = dynamic_pointer_cast<ExceptionListTok>(yyvsp[-2]);
2990
+ auto exception = dynamic_pointer_cast<Exception>(yyvsp[0]);
2991
+ if (exception)
2992
+ {
2993
+ exceptionList->v.push_back(exception);
2994
+ }
2995
+ yyval = exceptionList;
2996
+ }
2997
+ #line 2998 "src/Slice/Grammar.cpp"
2998
+ break;
2999
+
3000
+ case 93: /* exception_list: exception */
3001
+ #line 1117 "src/Slice/Grammar.y"
3002
+ {
3003
+ auto exceptionList = make_shared<ExceptionListTok>();
3004
+ auto exception = dynamic_pointer_cast<Exception>(yyvsp[0]);
3005
+ if (exception)
3006
+ {
3007
+ exceptionList->v.push_back(exception);
3008
+ }
3009
+ yyval = exceptionList;
3010
+ }
3011
+ #line 3012 "src/Slice/Grammar.cpp"
3012
+ break;
3013
+
3014
+ case 94: /* exception: scoped_name */
3015
+ #line 1132 "src/Slice/Grammar.y"
3016
+ {
3017
+ auto scoped = dynamic_pointer_cast<StringTok>(yyvsp[0]);
3018
+ ContainerPtr cont = currentUnit->currentContainer();
3019
+ ExceptionPtr exception = cont->lookupException(scoped->v, true);
3020
+ if (exception)
3021
+ {
3022
+ cont->checkHasChangedMeaning(scoped->v, exception);
3023
+ }
3024
+ yyval = exception;
3025
+ }
3026
+ #line 3027 "src/Slice/Grammar.cpp"
3027
+ break;
3028
+
3029
+ case 95: /* exception: keyword */
3030
+ #line 1143 "src/Slice/Grammar.y"
3031
+ {
3032
+ auto ident = dynamic_pointer_cast<StringTok>(yyvsp[0]);
3033
+ currentUnit->error("keyword '" + ident->v + "' cannot be used as a name");
3034
+ ContainerPtr cont = currentUnit->currentContainer();
3035
+ ExceptionPtr exception = cont->lookupException(ident->v, false);
3036
+ if (exception)
3037
+ {
3038
+ cont->checkHasChangedMeaning(ident->v, exception);
3039
+ }
3040
+ yyval = exception;
3041
+ }
3042
+ #line 3043 "src/Slice/Grammar.cpp"
3043
+ break;
3044
+
3045
+ case 96: /* sequence_def: "sequence keyword" '<' metadata type '>' definition_name */
3046
+ #line 1160 "src/Slice/Grammar.y"
3047
+ {
3048
+ auto ident = dynamic_pointer_cast<StringTok>(yyvsp[0]);
3049
+ auto metadata = dynamic_pointer_cast<MetadataListTok>(yyvsp[-3]);
3050
+ auto type = dynamic_pointer_cast<Type>(yyvsp[-2]);
3051
+ ContainerPtr cont = currentUnit->currentContainer();
3052
+ yyval = cont->createSequence(ident->v, type, std::move(metadata->v));
3053
+ }
3054
+ #line 3055 "src/Slice/Grammar.cpp"
3055
+ break;
3056
+
3057
+ case 97: /* dictionary_def: "dictionary keyword" '<' metadata type ',' metadata type '>' definition_name */
3058
+ #line 1173 "src/Slice/Grammar.y"
3059
+ {
3060
+ auto ident = dynamic_pointer_cast<StringTok>(yyvsp[0]);
3061
+ auto keyMetadata = dynamic_pointer_cast<MetadataListTok>(yyvsp[-6]);
3062
+ auto keyType = dynamic_pointer_cast<Type>(yyvsp[-5]);
3063
+ auto valueMetadata = dynamic_pointer_cast<MetadataListTok>(yyvsp[-3]);
3064
+ auto valueType = dynamic_pointer_cast<Type>(yyvsp[-2]);
3065
+ ContainerPtr cont = currentUnit->currentContainer();
3066
+ yyval = cont->createDictionary(ident->v, keyType, std::move(keyMetadata->v), valueType, std::move(valueMetadata->v));
3067
+ }
3068
+ #line 3069 "src/Slice/Grammar.cpp"
3069
+ break;
3070
+
3071
+ case 98: /* @9: %empty */
3072
+ #line 1188 "src/Slice/Grammar.y"
3073
+ {
3074
+ auto ident = dynamic_pointer_cast<StringTok>(yyvsp[0]);
3075
+ ContainerPtr cont = currentUnit->currentContainer();
3076
+ EnumPtr en = cont->createEnum(ident->v);
3077
+ cont->checkHasChangedMeaning(ident->v, en);
3078
+ currentUnit->pushContainer(en);
3079
+ yyval = en;
3080
+ }
3081
+ #line 3082 "src/Slice/Grammar.cpp"
3082
+ break;
3083
+
3084
+ case 99: /* enum_def: "enum keyword" definition_name @9 '{' enumerators '}' */
3085
+ #line 1197 "src/Slice/Grammar.y"
3086
+ {
3087
+ auto en = dynamic_pointer_cast<Enum>(yyvsp[-3]);
3088
+ auto enumerators = dynamic_pointer_cast<EnumeratorListTok>(yyvsp[-1]);
3089
+ if (enumerators->v.empty())
3090
+ {
3091
+ currentUnit->error("enum '" + en->name() + "' must have at least one enumerator");
3092
+ }
3093
+ currentUnit->popContainer();
3094
+ yyval = en;
3095
+ }
3096
+ #line 3097 "src/Slice/Grammar.cpp"
3097
+ break;
3098
+
3099
+ case 101: /* enumerators: enumerator_list ',' */
3100
+ #line 1214 "src/Slice/Grammar.y"
3101
+ {
3102
+ yyval = yyvsp[-1];
3103
+ }
3104
+ #line 3105 "src/Slice/Grammar.cpp"
3105
+ break;
3106
+
3107
+ case 102: /* enumerators: %empty */
3108
+ #line 1218 "src/Slice/Grammar.y"
3109
+ {
3110
+ yyval = make_shared<EnumeratorListTok>(); // Empty list
3111
+ }
3112
+ #line 3113 "src/Slice/Grammar.cpp"
3113
+ break;
3114
+
3115
+ case 103: /* enumerator_list: enumerator_list ',' metadata enumerator */
3116
+ #line 1227 "src/Slice/Grammar.y"
3117
+ {
3118
+ auto enumeratorList = dynamic_pointer_cast<EnumeratorListTok>(yyvsp[-3]);
3119
+ auto metadata = dynamic_pointer_cast<MetadataListTok>(yyvsp[-1]);
3120
+ auto enumerator = dynamic_pointer_cast<Enumerator>(yyvsp[0]);
3121
+ if (enumerator && !metadata->v.empty())
3122
+ {
3123
+ enumerator->appendMetadata(std::move(metadata->v));
3124
+ }
3125
+ enumeratorList->v.push_back(enumerator);
3126
+ yyval = enumeratorList;
3127
+ }
3128
+ #line 3129 "src/Slice/Grammar.cpp"
3129
+ break;
3130
+
3131
+ case 104: /* enumerator_list: metadata enumerator */
3132
+ #line 1239 "src/Slice/Grammar.y"
3133
+ {
3134
+ auto enumeratorList = make_shared<EnumeratorListTok>();
3135
+ auto metadata = dynamic_pointer_cast<MetadataListTok>(yyvsp[-1]);
3136
+ auto enumerator = dynamic_pointer_cast<Enumerator>(yyvsp[0]);
3137
+ if (enumerator && !metadata->v.empty())
3138
+ {
3139
+ enumerator->appendMetadata(std::move(metadata->v));
3140
+ }
3141
+ enumeratorList->v.push_back(enumerator);
3142
+ yyval = enumeratorList;
3143
+ }
3144
+ #line 3145 "src/Slice/Grammar.cpp"
3145
+ break;
3146
+
3147
+ case 105: /* enumerator: "identifier" */
3148
+ #line 1256 "src/Slice/Grammar.y"
3149
+ {
3150
+ auto ident = dynamic_pointer_cast<StringTok>(yyvsp[0]);
3151
+ EnumPtr cont = dynamic_pointer_cast<Enum>(currentUnit->currentContainer());
3152
+ yyval = cont->createEnumerator(ident->v, nullopt);
3153
+ }
3154
+ #line 3155 "src/Slice/Grammar.cpp"
3155
+ break;
3156
+
3157
+ case 106: /* enumerator: "identifier" '=' integer_constant */
3158
+ #line 1262 "src/Slice/Grammar.y"
3159
+ {
3160
+ auto ident = dynamic_pointer_cast<StringTok>(yyvsp[-2]);
3161
+ EnumPtr cont = dynamic_pointer_cast<Enum>(currentUnit->currentContainer());
3162
+ auto intVal = dynamic_pointer_cast<IntegerTok>(yyvsp[0]);
3163
+ if (intVal)
3164
+ {
3165
+ // We report numbers that are out of range, but always create the enumerator no matter what.
3166
+ checkIntegerBounds(intVal, "enumerator value");
3167
+ yyval = cont->createEnumerator(ident->v, static_cast<int32_t>(intVal->v));
3168
+ }
3169
+ else
3170
+ {
3171
+ yyval = cont->createEnumerator(ident->v, nullopt); // Dummy
3172
+ }
3173
+ }
3174
+ #line 3175 "src/Slice/Grammar.cpp"
3175
+ break;
3176
+
3177
+ case 107: /* enumerator: keyword */
3178
+ #line 1278 "src/Slice/Grammar.y"
3179
+ {
3180
+ auto ident = dynamic_pointer_cast<StringTok>(yyvsp[0]);
3181
+ EnumPtr cont = dynamic_pointer_cast<Enum>(currentUnit->currentContainer());
3182
+ currentUnit->error("keyword '" + ident->v + "' cannot be used as enumerator");
3183
+ yyval = cont->createEnumerator(ident->v, nullopt); // Dummy
3184
+ }
3185
+ #line 3186 "src/Slice/Grammar.cpp"
3186
+ break;
3187
+
3188
+ case 108: /* parameter: optional_type_id */
3189
+ #line 1290 "src/Slice/Grammar.y"
3190
+ {
3191
+ auto tsp = dynamic_pointer_cast<OptionalDefTok>(yyvsp[0]);
3192
+ ParameterPtr param;
3193
+
3194
+ auto op = dynamic_pointer_cast<Operation>(currentUnit->currentContainer());
3195
+ if (op)
3196
+ {
3197
+ param = op->createParameter(tsp->name, tsp->type, tsp->isOptional, tsp->tag);
3198
+ currentUnit->currentContainer()->checkHasChangedMeaning(tsp->name, param);
3199
+ }
3200
+ yyval = param;
3201
+ }
3202
+ #line 3203 "src/Slice/Grammar.cpp"
3203
+ break;
3204
+
3205
+ case 109: /* parameter: "out keyword" parameter */
3206
+ #line 1303 "src/Slice/Grammar.y"
3207
+ {
3208
+ if (auto param = dynamic_pointer_cast<Parameter>(yyvsp[0]))
3209
+ {
3210
+ param->setIsOutParam();
3211
+ }
3212
+ yyval = yyvsp[0];
3213
+ }
3214
+ #line 3215 "src/Slice/Grammar.cpp"
3215
+ break;
3216
+
3217
+ case 110: /* parameter: local_metadata parameter */
3218
+ #line 1311 "src/Slice/Grammar.y"
3219
+ {
3220
+ if (auto param = dynamic_pointer_cast<Parameter>(yyvsp[0]))
3221
+ {
3222
+ auto metadata = dynamic_pointer_cast<MetadataListTok>(yyvsp[-1]);
3223
+ param->appendMetadata(std::move(metadata->v));
3224
+ }
3225
+ yyval = yyvsp[0];
3226
+ }
3227
+ #line 3228 "src/Slice/Grammar.cpp"
3228
+ break;
3229
+
3230
+ case 115: /* throws: "throws keyword" exception_list */
3231
+ #line 1339 "src/Slice/Grammar.y"
3232
+ {
3233
+ yyval = yyvsp[0];
3234
+ }
3235
+ #line 3236 "src/Slice/Grammar.cpp"
3236
+ break;
3237
+
3238
+ case 116: /* throws: %empty */
3239
+ #line 1343 "src/Slice/Grammar.y"
3240
+ {
3241
+ yyval = make_shared<ExceptionListTok>();
3242
+ }
3243
+ #line 3244 "src/Slice/Grammar.cpp"
3244
+ break;
3245
+
3246
+ case 117: /* scoped_name: "identifier" */
3247
+ #line 1352 "src/Slice/Grammar.y"
3248
+ {
3249
+ }
3250
+ #line 3251 "src/Slice/Grammar.cpp"
3251
+ break;
3252
+
3253
+ case 118: /* scoped_name: "scoped identifier" */
3254
+ #line 1355 "src/Slice/Grammar.y"
3255
+ {
3256
+ }
3257
+ #line 3258 "src/Slice/Grammar.cpp"
3258
+ break;
3259
+
3260
+ case 119: /* builtin: "bool keyword" */
3261
+ #line 1362 "src/Slice/Grammar.y"
3262
+ {}
3263
+ #line 3264 "src/Slice/Grammar.cpp"
3264
+ break;
3265
+
3266
+ case 120: /* builtin: "byte keyword" */
3267
+ #line 1363 "src/Slice/Grammar.y"
3268
+ {}
3269
+ #line 3270 "src/Slice/Grammar.cpp"
3270
+ break;
3271
+
3272
+ case 121: /* builtin: "short keyword" */
3273
+ #line 1364 "src/Slice/Grammar.y"
3274
+ {}
3275
+ #line 3276 "src/Slice/Grammar.cpp"
3276
+ break;
3277
+
3278
+ case 122: /* builtin: "int keyword" */
3279
+ #line 1365 "src/Slice/Grammar.y"
3280
+ {}
3281
+ #line 3282 "src/Slice/Grammar.cpp"
3282
+ break;
3283
+
3284
+ case 123: /* builtin: "long keyword" */
3285
+ #line 1366 "src/Slice/Grammar.y"
3286
+ {}
3287
+ #line 3288 "src/Slice/Grammar.cpp"
3288
+ break;
3289
+
3290
+ case 124: /* builtin: "float keyword" */
3291
+ #line 1367 "src/Slice/Grammar.y"
3292
+ {}
3293
+ #line 3294 "src/Slice/Grammar.cpp"
3294
+ break;
3295
+
3296
+ case 125: /* builtin: "double keyword" */
3297
+ #line 1368 "src/Slice/Grammar.y"
3298
+ {}
3299
+ #line 3300 "src/Slice/Grammar.cpp"
3300
+ break;
3301
+
3302
+ case 126: /* builtin: "string keyword" */
3303
+ #line 1369 "src/Slice/Grammar.y"
3304
+ {}
3305
+ #line 3306 "src/Slice/Grammar.cpp"
3306
+ break;
3307
+
3308
+ case 127: /* builtin: "Object keyword" */
3309
+ #line 1370 "src/Slice/Grammar.y"
3310
+ {}
3311
+ #line 3312 "src/Slice/Grammar.cpp"
3312
+ break;
3313
+
3314
+ case 128: /* builtin: "Value keyword" */
3315
+ #line 1371 "src/Slice/Grammar.y"
3316
+ {}
3317
+ #line 3318 "src/Slice/Grammar.cpp"
3318
+ break;
3319
+
3320
+ case 129: /* type: "Object keyword" '*' */
3321
+ #line 1377 "src/Slice/Grammar.y"
3322
+ {
3323
+ yyval = currentUnit->createBuiltin(Builtin::KindObjectProxy);
3324
+ }
3325
+ #line 3326 "src/Slice/Grammar.cpp"
3326
+ break;
3327
+
3328
+ case 130: /* type: builtin */
3329
+ #line 1381 "src/Slice/Grammar.y"
3330
+ {
3331
+ auto typeName = dynamic_pointer_cast<StringTok>(yyvsp[0]);
3332
+ yyval = currentUnit->createBuiltin(Builtin::kindFromString(typeName->v).value());
3333
+ }
3334
+ #line 3335 "src/Slice/Grammar.cpp"
3335
+ break;
3336
+
3337
+ case 131: /* type: scoped_name */
3338
+ #line 1386 "src/Slice/Grammar.y"
3339
+ {
3340
+ auto scoped = dynamic_pointer_cast<StringTok>(yyvsp[0]);
3341
+ yyval = lookupTypeByName(scoped->v, false);
3342
+ }
3343
+ #line 3344 "src/Slice/Grammar.cpp"
3344
+ break;
3345
+
3346
+ case 132: /* type: scoped_name '*' */
3347
+ #line 1391 "src/Slice/Grammar.y"
3348
+ {
3349
+ auto scoped = dynamic_pointer_cast<StringTok>(yyvsp[-1]);
3350
+ yyval = lookupTypeByName(scoped->v, true);
3351
+ }
3352
+ #line 3353 "src/Slice/Grammar.cpp"
3353
+ break;
3354
+
3355
+ case 133: /* integer_constant: "integer literal" */
3356
+ #line 1401 "src/Slice/Grammar.y"
3357
+ {
3358
+ yyval = yyvsp[0];
3359
+ }
3360
+ #line 3361 "src/Slice/Grammar.cpp"
3361
+ break;
3362
+
3363
+ case 134: /* integer_constant: scoped_name */
3364
+ #line 1405 "src/Slice/Grammar.y"
3365
+ {
3366
+ auto scoped = dynamic_pointer_cast<StringTok>(yyvsp[0]);
3367
+ ContainerPtr cont = currentUnit->currentContainer();
3368
+ ContainedList cl = cont->lookupContained(scoped->v, false);
3369
+
3370
+ if (cl.empty())
3371
+ {
3372
+ EnumeratorList enumerators = cont->enumerators(scoped->v);
3373
+ if (enumerators.size() == 1)
3374
+ {
3375
+ // We found the enumerator the user must of been referencing.
3376
+ cl.push_back(enumerators.front());
3377
+ scoped->v = enumerators.front()->scoped();
3378
+ }
3379
+ else if (enumerators.size() > 1)
3380
+ {
3381
+ // There are multiple enumerators and it's ambiguous which to use.
3382
+ bool first = true;
3383
+ ostringstream os;
3384
+ os << "enumerator '" << scoped->v << "' could designate";
3385
+ for (const auto& p : enumerators)
3386
+ {
3387
+ if (!first)
3388
+ {
3389
+ os << " or";
3390
+ }
3391
+ first = false;
3392
+
3393
+ os << " '" << p->scoped() << "'";
3394
+ }
3395
+ currentUnit->error(os.str());
3396
+
3397
+ // Use the first enumerator we found, so parsing can continue.
3398
+ cl.push_back(enumerators.front());
3399
+ }
3400
+ }
3401
+
3402
+ optional<int64_t> integerValue;
3403
+ if (cl.empty())
3404
+ {
3405
+ // If we couldn't find any Slice types matching the provided name, report an error.
3406
+ currentUnit->error("'" + scoped->v + "' is not defined");
3407
+ }
3408
+ else
3409
+ {
3410
+ cont->checkHasChangedMeaning(scoped->v);
3411
+ if (auto constant = dynamic_pointer_cast<Const>(cl.front()))
3412
+ {
3413
+ auto b = dynamic_pointer_cast<Builtin>(constant->type());
3414
+ if (b && b->isIntegralType())
3415
+ {
3416
+ integerValue = std::stoll(constant->value(), nullptr, 0);
3417
+ }
3418
+ }
3419
+ else if (auto enumerator = dynamic_pointer_cast<Enumerator>(cl.front()))
3420
+ {
3421
+ integerValue = enumerator->value();
3422
+ }
3423
+
3424
+ // If the provided name resolved to a non-integer-constant Slice type, report an error.
3425
+ if (!integerValue)
3426
+ {
3427
+ currentUnit->error(cl.front()->kindOf() + " '" + scoped->v + "' cannot be used as an integer constant");
3428
+ }
3429
+ }
3430
+
3431
+ if (integerValue)
3432
+ {
3433
+ // Return the value that we resolved.
3434
+ auto tok = make_shared<IntegerTok>();
3435
+ tok->v = *integerValue;
3436
+ tok->literal = scoped->v;
3437
+ yyval = tok;
3438
+ }
3439
+ else
3440
+ {
3441
+ yyval = nullptr;
3442
+ }
3443
+ }
3444
+ #line 3445 "src/Slice/Grammar.cpp"
3445
+ break;
3446
+
3447
+ case 135: /* string_literal: "string literal" string_literal */
3448
+ #line 1490 "src/Slice/Grammar.y"
3449
+ {
3450
+ auto str1 = dynamic_pointer_cast<StringTok>(yyvsp[-1]);
3451
+ auto str2 = dynamic_pointer_cast<StringTok>(yyvsp[0]);
3452
+ str1->v += str2->v;
3453
+ }
3454
+ #line 3455 "src/Slice/Grammar.cpp"
3455
+ break;
3456
+
3457
+ case 136: /* string_literal: "string literal" */
3458
+ #line 1496 "src/Slice/Grammar.y"
3459
+ {
3460
+ }
3461
+ #line 3462 "src/Slice/Grammar.cpp"
3462
+ break;
3463
+
3464
+ case 137: /* metadata_list: metadata_list ',' string_literal */
3465
+ #line 1504 "src/Slice/Grammar.y"
3466
+ {
3467
+ auto str = dynamic_pointer_cast<StringTok>(yyvsp[0]);
3468
+ auto metadataList = dynamic_pointer_cast<MetadataListTok>(yyvsp[-2]);
3469
+
3470
+ auto metadata = make_shared<Metadata>(str->v, currentUnit->currentFile(), currentUnit->currentLine());
3471
+ metadataList->v.push_back(metadata);
3472
+
3473
+ yyval = metadataList;
3474
+ }
3475
+ #line 3476 "src/Slice/Grammar.cpp"
3476
+ break;
3477
+
3478
+ case 138: /* metadata_list: string_literal */
3479
+ #line 1514 "src/Slice/Grammar.y"
3480
+ {
3481
+ auto str = dynamic_pointer_cast<StringTok>(yyvsp[0]);
3482
+ auto metadataList = make_shared<MetadataListTok>();
3483
+
3484
+ auto metadata = make_shared<Metadata>(str->v, currentUnit->currentFile(), currentUnit->currentLine());
3485
+ metadataList->v.push_back(metadata);
3486
+
3487
+ yyval = metadataList;
3488
+ }
3489
+ #line 3490 "src/Slice/Grammar.cpp"
3490
+ break;
3491
+
3492
+ case 139: /* const_initializer: "integer literal" */
3493
+ #line 1529 "src/Slice/Grammar.y"
3494
+ {
3495
+ BuiltinPtr type = currentUnit->createBuiltin(Builtin::KindLong);
3496
+ auto intVal = dynamic_pointer_cast<IntegerTok>(yyvsp[0]);
3497
+ ostringstream sstr;
3498
+ sstr << intVal->v;
3499
+ auto def = make_shared<ConstDefTok>(type, sstr.str());
3500
+ yyval = def;
3501
+ }
3502
+ #line 3503 "src/Slice/Grammar.cpp"
3503
+ break;
3504
+
3505
+ case 140: /* const_initializer: "floating-point literal" */
3506
+ #line 1538 "src/Slice/Grammar.y"
3507
+ {
3508
+ BuiltinPtr type = currentUnit->createBuiltin(Builtin::KindDouble);
3509
+ auto floatVal = dynamic_pointer_cast<FloatingTok>(yyvsp[0]);
3510
+ ostringstream sstr;
3511
+ sstr << floatVal->v;
3512
+ auto def = make_shared<ConstDefTok>(type, sstr.str());
3513
+ yyval = def;
3514
+ }
3515
+ #line 3516 "src/Slice/Grammar.cpp"
3516
+ break;
3517
+
3518
+ case 141: /* const_initializer: scoped_name */
3519
+ #line 1547 "src/Slice/Grammar.y"
3520
+ {
3521
+ auto scoped = dynamic_pointer_cast<StringTok>(yyvsp[0]);
3522
+ ConstDefTokPtr def;
3523
+ ContainedList cl = currentUnit->currentContainer()->lookupContained(scoped->v, false);
3524
+ if (cl.empty())
3525
+ {
3526
+ // Could be an enumerator
3527
+ def = make_shared<ConstDefTok>(nullptr, scoped->v);
3528
+ }
3529
+ else
3530
+ {
3531
+ auto enumerator = dynamic_pointer_cast<Enumerator>(cl.front());
3532
+ auto constant = dynamic_pointer_cast<Const>(cl.front());
3533
+ if (enumerator)
3534
+ {
3535
+ currentUnit->currentContainer()->checkHasChangedMeaning(scoped->v, enumerator);
3536
+ def = make_shared<ConstDefTok>(enumerator, scoped->v);
3537
+ }
3538
+ else if (constant)
3539
+ {
3540
+ currentUnit->currentContainer()->checkHasChangedMeaning(scoped->v, constant);
3541
+ def = make_shared<ConstDefTok>(constant, constant->value());
3542
+ }
3543
+ else
3544
+ {
3545
+ def = make_shared<ConstDefTok>();
3546
+ string msg = "illegal initializer: '" + scoped->v + "' is ";
3547
+ string kindOf = cl.front()->kindOf();
3548
+ msg += getArticleFor(kindOf) + " " + kindOf;
3549
+ currentUnit->error(msg); // $$ is dummy
3550
+ }
3551
+ }
3552
+ yyval = def;
3553
+ }
3554
+ #line 3555 "src/Slice/Grammar.cpp"
3555
+ break;
3556
+
3557
+ case 142: /* const_initializer: "string literal" */
3558
+ #line 1582 "src/Slice/Grammar.y"
3559
+ {
3560
+ BuiltinPtr type = currentUnit->createBuiltin(Builtin::KindString);
3561
+ auto literal = dynamic_pointer_cast<StringTok>(yyvsp[0]);
3562
+ auto def = make_shared<ConstDefTok>(type, literal->v);
3563
+ yyval = def;
3564
+ }
3565
+ #line 3566 "src/Slice/Grammar.cpp"
3566
+ break;
3567
+
3568
+ case 143: /* const_initializer: "false keyword" */
3569
+ #line 1589 "src/Slice/Grammar.y"
3570
+ {
3571
+ BuiltinPtr type = currentUnit->createBuiltin(Builtin::KindBool);
3572
+ auto literal = dynamic_pointer_cast<StringTok>(yyvsp[0]);
3573
+ auto def = make_shared<ConstDefTok>(type, "false");
3574
+ yyval = def;
3575
+ }
3576
+ #line 3577 "src/Slice/Grammar.cpp"
3577
+ break;
3578
+
3579
+ case 144: /* const_initializer: "true keyword" */
3580
+ #line 1596 "src/Slice/Grammar.y"
3581
+ {
3582
+ BuiltinPtr type = currentUnit->createBuiltin(Builtin::KindBool);
3583
+ auto literal = dynamic_pointer_cast<StringTok>(yyvsp[0]);
3584
+ auto def = make_shared<ConstDefTok>(type, "true");
3585
+ yyval = def;
3586
+ }
3587
+ #line 3588 "src/Slice/Grammar.cpp"
3588
+ break;
3589
+
3590
+ case 145: /* const_def: "const keyword" metadata type definition_name '=' const_initializer */
3591
+ #line 1608 "src/Slice/Grammar.y"
3592
+ {
3593
+ auto metadata = dynamic_pointer_cast<MetadataListTok>(yyvsp[-4]);
3594
+ auto const_type = dynamic_pointer_cast<Type>(yyvsp[-3]);
3595
+ auto ident = dynamic_pointer_cast<StringTok>(yyvsp[-2]);
3596
+ auto value = dynamic_pointer_cast<ConstDefTok>(yyvsp[0]);
3597
+ yyval = currentUnit->currentContainer()->createConst(ident->v, const_type, std::move(metadata->v), value->v,
3598
+ value->valueAsString);
3599
+ }
3600
+ #line 3601 "src/Slice/Grammar.cpp"
3601
+ break;
3602
+
3603
+ case 146: /* definition_name: "identifier" */
3604
+ #line 1622 "src/Slice/Grammar.y"
3605
+ {
3606
+ // All good, this is a valid identifier.
3607
+ yyval = yyvsp[0];
3608
+ }
3609
+ #line 3610 "src/Slice/Grammar.cpp"
3610
+ break;
3611
+
3612
+ case 147: /* definition_name: keyword */
3613
+ #line 1627 "src/Slice/Grammar.y"
3614
+ {
3615
+ // If an un-escaped keyword was used as an identifier, we emit an error,
3616
+ // but continue along, pretending like the user escaped the keyword.
3617
+ auto ident = dynamic_pointer_cast<StringTok>(yyvsp[0]);
3618
+ currentUnit->error("keyword '" + ident->v + "' cannot be used as a name");
3619
+ yyval = ident;
3620
+ }
3621
+ #line 3622 "src/Slice/Grammar.cpp"
3622
+ break;
3623
+
3624
+ case 148: /* definition_name: %empty */
3625
+ #line 1635 "src/Slice/Grammar.y"
3626
+ {
3627
+ // If the user forgot to give a name to a Slice definition, we emit an error,
3628
+ // but continue along, returning an empty string instead of an identifier.
3629
+ currentUnit->error("missing name");
3630
+ yyval = make_shared<StringTok>();
3631
+ }
3632
+ #line 3633 "src/Slice/Grammar.cpp"
3633
+ break;
3634
+
3635
+ case 149: /* definition_name_open: "identifier(" */
3636
+ #line 1647 "src/Slice/Grammar.y"
3637
+ {
3638
+ // All good, this is a valid identifier.
3639
+ yyval = yyvsp[0];
3640
+ }
3641
+ #line 3642 "src/Slice/Grammar.cpp"
3642
+ break;
3643
+
3644
+ case 150: /* definition_name_open: "keyword(" */
3645
+ #line 1652 "src/Slice/Grammar.y"
3646
+ {
3647
+ // If an un-escaped keyword was used as an identifier, we emit an error,
3648
+ // but continue along, pretending like the user escaped the keyword.
3649
+ auto ident = dynamic_pointer_cast<StringTok>(yyvsp[0]);
3650
+ currentUnit->error("keyword '" + ident->v + "' cannot be used as a name");
3651
+ yyval = ident;
3652
+ }
3653
+ #line 3654 "src/Slice/Grammar.cpp"
3654
+ break;
3655
+
3656
+ case 151: /* keyword: "module keyword" */
3657
+ #line 1664 "src/Slice/Grammar.y"
3658
+ {}
3659
+ #line 3660 "src/Slice/Grammar.cpp"
3660
+ break;
3661
+
3662
+ case 152: /* keyword: "class keyword" */
3663
+ #line 1665 "src/Slice/Grammar.y"
3664
+ {}
3665
+ #line 3666 "src/Slice/Grammar.cpp"
3666
+ break;
3667
+
3668
+ case 153: /* keyword: "interface keyword" */
3669
+ #line 1666 "src/Slice/Grammar.y"
3670
+ {}
3671
+ #line 3672 "src/Slice/Grammar.cpp"
3672
+ break;
3673
+
3674
+ case 154: /* keyword: "exception keyword" */
3675
+ #line 1667 "src/Slice/Grammar.y"
3676
+ {}
3677
+ #line 3678 "src/Slice/Grammar.cpp"
3678
+ break;
3679
+
3680
+ case 155: /* keyword: "struct keyword" */
3681
+ #line 1668 "src/Slice/Grammar.y"
3682
+ {}
3683
+ #line 3684 "src/Slice/Grammar.cpp"
3684
+ break;
3685
+
3686
+ case 156: /* keyword: "sequence keyword" */
3687
+ #line 1669 "src/Slice/Grammar.y"
3688
+ {}
3689
+ #line 3690 "src/Slice/Grammar.cpp"
3690
+ break;
3691
+
3692
+ case 157: /* keyword: "dictionary keyword" */
3693
+ #line 1670 "src/Slice/Grammar.y"
3694
+ {}
3695
+ #line 3696 "src/Slice/Grammar.cpp"
3696
+ break;
3697
+
3698
+ case 158: /* keyword: "enum keyword" */
3699
+ #line 1671 "src/Slice/Grammar.y"
3700
+ {}
3701
+ #line 3702 "src/Slice/Grammar.cpp"
3702
+ break;
3703
+
3704
+ case 159: /* keyword: "out keyword" */
3705
+ #line 1672 "src/Slice/Grammar.y"
3706
+ {}
3707
+ #line 3708 "src/Slice/Grammar.cpp"
3708
+ break;
3709
+
3710
+ case 160: /* keyword: "extends keyword" */
3711
+ #line 1673 "src/Slice/Grammar.y"
3712
+ {}
3713
+ #line 3714 "src/Slice/Grammar.cpp"
3714
+ break;
3715
+
3716
+ case 161: /* keyword: "throws keyword" */
3717
+ #line 1674 "src/Slice/Grammar.y"
3718
+ {}
3719
+ #line 3720 "src/Slice/Grammar.cpp"
3720
+ break;
3721
+
3722
+ case 162: /* keyword: "void keyword" */
3723
+ #line 1675 "src/Slice/Grammar.y"
3724
+ {}
3725
+ #line 3726 "src/Slice/Grammar.cpp"
3726
+ break;
3727
+
3728
+ case 163: /* keyword: "bool keyword" */
3729
+ #line 1676 "src/Slice/Grammar.y"
3730
+ {}
3731
+ #line 3732 "src/Slice/Grammar.cpp"
3732
+ break;
3733
+
3734
+ case 164: /* keyword: "byte keyword" */
3735
+ #line 1677 "src/Slice/Grammar.y"
3736
+ {}
3737
+ #line 3738 "src/Slice/Grammar.cpp"
3738
+ break;
3739
+
3740
+ case 165: /* keyword: "short keyword" */
3741
+ #line 1678 "src/Slice/Grammar.y"
3742
+ {}
3743
+ #line 3744 "src/Slice/Grammar.cpp"
3744
+ break;
3745
+
3746
+ case 166: /* keyword: "int keyword" */
3747
+ #line 1679 "src/Slice/Grammar.y"
3748
+ {}
3749
+ #line 3750 "src/Slice/Grammar.cpp"
3750
+ break;
3751
+
3752
+ case 167: /* keyword: "long keyword" */
3753
+ #line 1680 "src/Slice/Grammar.y"
3754
+ {}
3755
+ #line 3756 "src/Slice/Grammar.cpp"
3756
+ break;
3757
+
3758
+ case 168: /* keyword: "float keyword" */
3759
+ #line 1681 "src/Slice/Grammar.y"
3760
+ {}
3761
+ #line 3762 "src/Slice/Grammar.cpp"
3762
+ break;
3763
+
3764
+ case 169: /* keyword: "double keyword" */
3765
+ #line 1682 "src/Slice/Grammar.y"
3766
+ {}
3767
+ #line 3768 "src/Slice/Grammar.cpp"
3768
+ break;
3769
+
3770
+ case 170: /* keyword: "string keyword" */
3771
+ #line 1683 "src/Slice/Grammar.y"
3772
+ {}
3773
+ #line 3774 "src/Slice/Grammar.cpp"
3774
+ break;
3775
+
3776
+ case 171: /* keyword: "Object keyword" */
3777
+ #line 1684 "src/Slice/Grammar.y"
3778
+ {}
3779
+ #line 3780 "src/Slice/Grammar.cpp"
3780
+ break;
3781
+
3782
+ case 172: /* keyword: "const keyword" */
3783
+ #line 1685 "src/Slice/Grammar.y"
3784
+ {}
3785
+ #line 3786 "src/Slice/Grammar.cpp"
3786
+ break;
3787
+
3788
+ case 173: /* keyword: "false keyword" */
3789
+ #line 1686 "src/Slice/Grammar.y"
3790
+ {}
3791
+ #line 3792 "src/Slice/Grammar.cpp"
3792
+ break;
3793
+
3794
+ case 174: /* keyword: "true keyword" */
3795
+ #line 1687 "src/Slice/Grammar.y"
3796
+ {}
3797
+ #line 3798 "src/Slice/Grammar.cpp"
3798
+ break;
3799
+
3800
+ case 175: /* keyword: "idempotent keyword" */
3801
+ #line 1688 "src/Slice/Grammar.y"
3802
+ {}
3803
+ #line 3804 "src/Slice/Grammar.cpp"
3804
+ break;
3805
+
3806
+ case 176: /* keyword: "optional keyword" */
3807
+ #line 1689 "src/Slice/Grammar.y"
3808
+ {}
3809
+ #line 3810 "src/Slice/Grammar.cpp"
3810
+ break;
3811
+
3812
+ case 177: /* keyword: "Value keyword" */
3813
+ #line 1690 "src/Slice/Grammar.y"
3814
+ {}
3815
+ #line 3816 "src/Slice/Grammar.cpp"
3816
+ break;
3817
+
3818
+
3819
+ #line 3820 "src/Slice/Grammar.cpp"
3820
+
3821
+ default: break;
3822
+ }
3823
+ /* User semantic actions sometimes alter yychar, and that requires
3824
+ that yytoken be updated with the new translation. We take the
3825
+ approach of translating immediately before every use of yytoken.
3826
+ One alternative is translating here after every semantic action,
3827
+ but that translation would be missed if the semantic action invokes
3828
+ YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or
3829
+ if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an
3830
+ incorrect destructor might then be invoked immediately. In the
3831
+ case of YYERROR or YYBACKUP, subsequent parser actions might lead
3832
+ to an incorrect destructor call or verbose syntax error message
3833
+ before the lookahead is translated. */
3834
+ YY_SYMBOL_PRINT ("-> $$ =", YY_CAST (yysymbol_kind_t, yyr1[yyn]), &yyval, &yyloc);
3835
+
3836
+ YYPOPSTACK (yylen);
3837
+ yylen = 0;
3838
+
3839
+ *++yyvsp = yyval;
3840
+ *++yylsp = yyloc;
3841
+
3842
+ /* Now 'shift' the result of the reduction. Determine what state
3843
+ that goes to, based on the state we popped back to and the rule
3844
+ number reduced by. */
3845
+ {
3846
+ const int yylhs = yyr1[yyn] - YYNTOKENS;
3847
+ const int yyi = yypgoto[yylhs] + *yyssp;
3848
+ yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp
3849
+ ? yytable[yyi]
3850
+ : yydefgoto[yylhs]);
3851
+ }
3852
+
3853
+ goto yynewstate;
3854
+
3855
+
3856
+ /*--------------------------------------.
3857
+ | yyerrlab -- here on detecting error. |
3858
+ `--------------------------------------*/
3859
+ yyerrlab:
3860
+ /* Make sure we have latest lookahead translation. See comments at
3861
+ user semantic actions for why this is necessary. */
3862
+ yytoken = yychar == YYEMPTY ? YYSYMBOL_YYEMPTY : YYTRANSLATE (yychar);
3863
+ /* If not already recovering from an error, report this error. */
3864
+ if (!yyerrstatus)
3865
+ {
3866
+ ++yynerrs;
3867
+ {
3868
+ yypcontext_t yyctx
3869
+ = {yyssp, yytoken, &yylloc};
3870
+ char const *yymsgp = YY_("syntax error");
3871
+ int yysyntax_error_status;
3872
+ yysyntax_error_status = yysyntax_error (&yymsg_alloc, &yymsg, &yyctx);
3873
+ if (yysyntax_error_status == 0)
3874
+ yymsgp = yymsg;
3875
+ else if (yysyntax_error_status == -1)
3876
+ {
3877
+ if (yymsg != yymsgbuf)
3878
+ YYSTACK_FREE (yymsg);
3879
+ yymsg = YY_CAST (char *,
3880
+ YYSTACK_ALLOC (YY_CAST (YYSIZE_T, yymsg_alloc)));
3881
+ if (yymsg)
3882
+ {
3883
+ yysyntax_error_status
3884
+ = yysyntax_error (&yymsg_alloc, &yymsg, &yyctx);
3885
+ yymsgp = yymsg;
3886
+ }
3887
+ else
3888
+ {
3889
+ yymsg = yymsgbuf;
3890
+ yymsg_alloc = sizeof yymsgbuf;
3891
+ yysyntax_error_status = YYENOMEM;
3892
+ }
3893
+ }
3894
+ yyerror (yymsgp);
3895
+ if (yysyntax_error_status == YYENOMEM)
3896
+ YYNOMEM;
3897
+ }
3898
+ }
3899
+
3900
+ yyerror_range[1] = yylloc;
3901
+ if (yyerrstatus == 3)
3902
+ {
3903
+ /* If just tried and failed to reuse lookahead token after an
3904
+ error, discard it. */
3905
+
3906
+ if (yychar <= YYEOF)
3907
+ {
3908
+ /* Return failure if at end of input. */
3909
+ if (yychar == YYEOF)
3910
+ YYABORT;
3911
+ }
3912
+ else
3913
+ {
3914
+ yydestruct ("Error: discarding",
3915
+ yytoken, &yylval, &yylloc);
3916
+ yychar = YYEMPTY;
3917
+ }
3918
+ }
3919
+
3920
+ /* Else will try to reuse lookahead token after shifting the error
3921
+ token. */
3922
+ goto yyerrlab1;
3923
+
3924
+
3925
+ /*---------------------------------------------------.
3926
+ | yyerrorlab -- error raised explicitly by YYERROR. |
3927
+ `---------------------------------------------------*/
3928
+ yyerrorlab:
3929
+ /* Pacify compilers when the user code never invokes YYERROR and the
3930
+ label yyerrorlab therefore never appears in user code. */
3931
+ if (0)
3932
+ YYERROR;
3933
+ ++yynerrs;
3934
+
3935
+ /* Do not reclaim the symbols of the rule whose action triggered
3936
+ this YYERROR. */
3937
+ YYPOPSTACK (yylen);
3938
+ yylen = 0;
3939
+ YY_STACK_PRINT (yyss, yyssp);
3940
+ yystate = *yyssp;
3941
+ goto yyerrlab1;
3942
+
3943
+
3944
+ /*-------------------------------------------------------------.
3945
+ | yyerrlab1 -- common code for both syntax error and YYERROR. |
3946
+ `-------------------------------------------------------------*/
3947
+ yyerrlab1:
3948
+ yyerrstatus = 3; /* Each real token shifted decrements this. */
3949
+
3950
+ /* Pop stack until we find a state that shifts the error token. */
3951
+ for (;;)
3952
+ {
3953
+ yyn = yypact[yystate];
3954
+ if (!yypact_value_is_default (yyn))
3955
+ {
3956
+ yyn += YYSYMBOL_YYerror;
3957
+ if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror)
3958
+ {
3959
+ yyn = yytable[yyn];
3960
+ if (0 < yyn)
3961
+ break;
3962
+ }
3963
+ }
3964
+
3965
+ /* Pop the current state because it cannot handle the error token. */
3966
+ if (yyssp == yyss)
3967
+ YYABORT;
3968
+
3969
+ yyerror_range[1] = *yylsp;
3970
+ yydestruct ("Error: popping",
3971
+ YY_ACCESSING_SYMBOL (yystate), yyvsp, yylsp);
3972
+ YYPOPSTACK (1);
3973
+ yystate = *yyssp;
3974
+ YY_STACK_PRINT (yyss, yyssp);
3975
+ }
3976
+
3977
+ YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
3978
+ *++yyvsp = yylval;
3979
+ YY_IGNORE_MAYBE_UNINITIALIZED_END
3980
+
3981
+ yyerror_range[2] = yylloc;
3982
+ ++yylsp;
3983
+ YYLLOC_DEFAULT (*yylsp, yyerror_range, 2);
3984
+
3985
+ /* Shift the error token. */
3986
+ YY_SYMBOL_PRINT ("Shifting", YY_ACCESSING_SYMBOL (yyn), yyvsp, yylsp);
3987
+
3988
+ yystate = yyn;
3989
+ goto yynewstate;
3990
+
3991
+
3992
+ /*-------------------------------------.
3993
+ | yyacceptlab -- YYACCEPT comes here. |
3994
+ `-------------------------------------*/
3995
+ yyacceptlab:
3996
+ yyresult = 0;
3997
+ goto yyreturnlab;
3998
+
3999
+
4000
+ /*-----------------------------------.
4001
+ | yyabortlab -- YYABORT comes here. |
4002
+ `-----------------------------------*/
4003
+ yyabortlab:
4004
+ yyresult = 1;
4005
+ goto yyreturnlab;
4006
+
4007
+
4008
+ /*-----------------------------------------------------------.
4009
+ | yyexhaustedlab -- YYNOMEM (memory exhaustion) comes here. |
4010
+ `-----------------------------------------------------------*/
4011
+ yyexhaustedlab:
4012
+ yyerror (YY_("memory exhausted"));
4013
+ yyresult = 2;
4014
+ goto yyreturnlab;
4015
+
4016
+
4017
+ /*----------------------------------------------------------.
4018
+ | yyreturnlab -- parsing is finished, clean up and return. |
4019
+ `----------------------------------------------------------*/
4020
+ yyreturnlab:
4021
+ if (yychar != YYEMPTY)
4022
+ {
4023
+ /* Make sure we have latest lookahead translation. See comments at
4024
+ user semantic actions for why this is necessary. */
4025
+ yytoken = YYTRANSLATE (yychar);
4026
+ yydestruct ("Cleanup: discarding lookahead",
4027
+ yytoken, &yylval, &yylloc);
4028
+ }
4029
+ /* Do not reclaim the symbols of the rule whose action triggered
4030
+ this YYABORT or YYACCEPT. */
4031
+ YYPOPSTACK (yylen);
4032
+ YY_STACK_PRINT (yyss, yyssp);
4033
+ while (yyssp != yyss)
4034
+ {
4035
+ yydestruct ("Cleanup: popping",
4036
+ YY_ACCESSING_SYMBOL (+*yyssp), yyvsp, yylsp);
4037
+ YYPOPSTACK (1);
4038
+ }
4039
+ #ifndef yyoverflow
4040
+ if (yyss != yyssa)
4041
+ YYSTACK_FREE (yyss);
4042
+ #endif
4043
+ if (yymsg != yymsgbuf)
4044
+ YYSTACK_FREE (yymsg);
4045
+ return yyresult;
4046
+ }
4047
+
4048
+ #line 1693 "src/Slice/Grammar.y"
4049
+
4050
+
4051
+ // NOLINTEND
4052
+
4053
+ namespace
4054
+ {
4055
+ TypePtr lookupTypeByName(const string& name, bool expectInterfaceType)
4056
+ {
4057
+ ContainerPtr cont = currentUnit->currentContainer();
4058
+ TypeList types = cont->lookupType(name);
4059
+ if (types.empty())
4060
+ {
4061
+ return nullptr;
4062
+ }
4063
+
4064
+ TypePtr firstType = types.front();
4065
+ auto interface = dynamic_pointer_cast<InterfaceDecl>(firstType);
4066
+ if (interface && !expectInterfaceType)
4067
+ {
4068
+ string msg = "add a '*' after the interface name to specify its proxy type: '" + name + "*'";
4069
+ currentUnit->error(msg);
4070
+ }
4071
+ if (!interface && expectInterfaceType)
4072
+ {
4073
+ string msg = "'" + name + "' must be an interface";
4074
+ currentUnit->error(msg);
4075
+ }
4076
+
4077
+ cont->checkHasChangedMeaning(name);
4078
+ return firstType;
4079
+ }
4080
+
4081
+ InterfaceDefPtr lookupInterfaceByName(const string& name)
4082
+ {
4083
+ ContainerPtr cont = currentUnit->currentContainer();
4084
+ InterfaceDefPtr interfaceDef = cont->lookupInterfaceDef(name, true);
4085
+ if (interfaceDef)
4086
+ {
4087
+ cont->checkHasChangedMeaning(name);
4088
+ }
4089
+ return interfaceDef;
4090
+ }
4091
+
4092
+ bool checkIntegerBounds(const IntegerTokPtr& token, string_view kindString)
4093
+ {
4094
+ const int32_t max_value = std::numeric_limits<int32_t>::max();
4095
+ optional<string> errorReason;
4096
+
4097
+ // Check if the integer is between the allowed bounds.
4098
+ if (token->v < 0)
4099
+ {
4100
+ errorReason = "cannot be negative";
4101
+ }
4102
+ else if (token->v > max_value)
4103
+ {
4104
+ errorReason = "must be less than or equal to '" + std::to_string(max_value) + "'";
4105
+ }
4106
+
4107
+ // Report an error if the integer wasn't within bounds.
4108
+ if (errorReason)
4109
+ {
4110
+ ostringstream msg;
4111
+ msg << "invalid " << kindString << " '" << token->literal << "'";
4112
+ if (isalpha(token->literal[0]))
4113
+ {
4114
+ msg << " (" << token->v << ")";
4115
+ }
4116
+ msg << ": " << kindString << "s " << *errorReason;
4117
+ currentUnit->error(msg.str());
4118
+ return false;
4119
+ }
4120
+ else
4121
+ {
4122
+ return true;
4123
+ }
4124
+ }
4125
+ }