diff options
Diffstat (limited to 'TAO/TAO_IDL/fe/y.tab.cpp')
-rw-r--r-- | TAO/TAO_IDL/fe/y.tab.cpp | 3691 |
1 files changed, 0 insertions, 3691 deletions
diff --git a/TAO/TAO_IDL/fe/y.tab.cpp b/TAO/TAO_IDL/fe/y.tab.cpp deleted file mode 100644 index 490deb3bb16..00000000000 --- a/TAO/TAO_IDL/fe/y.tab.cpp +++ /dev/null @@ -1,3691 +0,0 @@ -// $Id$ -#ifndef lint -char tao_yysccsid[] = "@(#)yaccpar 1.4 (Berkeley) 02/25/90 \n\ - Modified 5/2/90 by J. Roskind to support graphic debugging modes"; -#endif -#line 74 "fe/idl.tao_yy" -#include "idl.h" -#include "idl_extern.h" -#include "fe_private.h" -#include <stdio.h> - -#if (defined(apollo) || defined(hpux)) && defined(__cplusplus) -extern "C" int tao_yywrap(); -#endif /* (defined(apollo) || defined(hpux)) && defined(__cplusplus)*/ - -void tao_yyerror (const char *); -int tao_yylex (void); -extern "C" int tao_yywrap (void); -extern char tao_yytext[]; -extern int tao_yyleng; -#define TAO_YYDEBUG_LEXER_TEXT (tao_yytext[tao_yyleng] = '\0', tao_yytext) -/* Force the pretty debugging code to compile.*/ -#define TAO_YYDEBUG 1 -#line 97 "fe/idl.tao_yy" -typedef union { - AST_Decl *dcval; /* Decl value */ - UTL_StrList *slval; /* String list */ - UTL_NameList *nlval; /* Name list */ - UTL_ExprList *elval; /* Expression list */ - UTL_LabelList *llval; /* Label list */ - UTL_DeclList *dlval; /* Declaration list */ - FE_InterfaceHeader *ihval; /* Interface header */ - FE_obv_header *vhval; /* Valuetype header */ - AST_Expression *exval; /* Expression value */ - AST_UnionLabel *ulval; /* Union label */ - AST_Field *ffval; /* Field value */ - AST_Field::Visibility vival; /* N/A, pub or priv */ - AST_Expression::ExprType etval; /* Expression type */ - AST_Argument::Direction dival; /* Argument direction */ - AST_Operation::Flags ofval; /* Operation flags */ - FE_Declarator *deval; /* Declarator value */ - idl_bool bval; /* Boolean value */ - long ival; /* Long value */ - unsigned long uival; /* Unsigned long value */ - double dval; /* Double value */ - float fval; /* Float value */ - char cval; /* Char value */ - - UTL_String *sval; /* String value */ - char *strval; /* char * value */ - Identifier *idval; /* Identifier */ - UTL_IdList *idlist; /* Identifier list */ -} TAO_YYSTYPE; -#line 54 "y.tab.cpp" -#define IDENTIFIER 257 -#define IDL_CONST 258 -#define IDL_MODULE 259 -#define IDL_INTERFACE 260 -#define IDL_TYPEDEF 261 -#define IDL_LONG 262 -#define IDL_SHORT 263 -#define IDL_UNSIGNED 264 -#define IDL_DOUBLE 265 -#define IDL_FLOAT 266 -#define IDL_CHAR 267 -#define IDL_WCHAR 268 -#define IDL_OCTET 269 -#define IDL_BOOLEAN 270 -#define IDL_ANY 271 -#define IDL_STRUCT 272 -#define IDL_UNION 273 -#define IDL_SWITCH 274 -#define IDL_ENUM 275 -#define IDL_SEQUENCE 276 -#define IDL_STRING 277 -#define IDL_WSTRING 278 -#define IDL_EXCEPTION 279 -#define IDL_CASE 280 -#define IDL_DEFAULT 281 -#define IDL_READONLY 282 -#define IDL_ATTRIBUTE 283 -#define IDL_ONEWAY 284 -#define IDL_IDEMPOTENT 285 -#define IDL_VOID 286 -#define IDL_IN 287 -#define IDL_OUT 288 -#define IDL_INOUT 289 -#define IDL_RAISES 290 -#define IDL_CONTEXT 291 -#define IDL_NATIVE 292 -#define IDL_ABSTRACT 293 -#define IDL_CUSTOM 294 -#define IDL_INIT 295 -#define IDL_PRIVATE 296 -#define IDL_PUBLIC 297 -#define IDL_SUPPORTS 298 -#define IDL_TRUNCATABLE 299 -#define IDL_VALUETYPE 300 -#define IDL_INTEGER_LITERAL 301 -#define IDL_UINTEGER_LITERAL 302 -#define IDL_STRING_LITERAL 303 -#define IDL_CHARACTER_LITERAL 304 -#define IDL_FLOATING_PT_LITERAL 305 -#define IDL_TRUETOK 306 -#define IDL_FALSETOK 307 -#define IDL_SCOPE_DELIMITOR 308 -#define IDL_LEFT_SHIFT 309 -#define IDL_RIGHT_SHIFT 310 -#define TAO_YYERRCODE 256 -short tao_yylhs[] = { -1, - 0, 71, 71, 73, 72, 75, 72, 77, 72, 79, - 72, 81, 72, 83, 72, 84, 72, 85, 86, 87, - 88, 80, 78, 78, 91, 93, 94, 89, 95, 67, - 33, 96, 22, 22, 82, 82, 82, 82, 97, 97, - 102, 104, 105, 101, 106, 107, 108, 98, 34, 109, - 68, 66, 66, 24, 24, 99, 99, 100, 103, 103, - 110, 110, 110, 115, 111, 116, 111, 92, 92, 117, - 112, 118, 112, 119, 112, 121, 112, 123, 112, 124, - 112, 20, 125, 21, 21, 16, 126, 16, 127, 16, - 69, 90, 128, 129, 130, 131, 74, 50, 50, 50, - 50, 50, 50, 50, 50, 35, 36, 37, 37, 38, - 38, 39, 39, 40, 40, 40, 41, 41, 41, 42, - 42, 42, 42, 43, 43, 43, 43, 44, 44, 44, - 45, 45, 45, 45, 45, 45, 45, 46, 133, 70, - 70, 70, 70, 70, 134, 132, 1, 1, 2, 2, - 2, 58, 58, 58, 58, 58, 58, 4, 4, 4, - 3, 3, 3, 29, 135, 30, 30, 62, 62, 31, - 136, 32, 32, 63, 64, 51, 51, 56, 56, 56, - 57, 57, 57, 54, 54, 54, 52, 52, 59, 53, - 55, 137, 138, 140, 141, 7, 139, 143, 143, 144, - 142, 145, 146, 114, 147, 114, 148, 149, 150, 151, - 152, 153, 155, 156, 10, 9, 9, 9, 9, 9, - 9, 154, 158, 158, 159, 160, 157, 161, 157, 27, - 28, 28, 162, 48, 163, 164, 48, 165, 49, 166, - 167, 169, 170, 8, 168, 173, 172, 172, 171, 174, - 175, 5, 5, 176, 177, 13, 179, 180, 6, 6, - 178, 182, 183, 14, 14, 181, 184, 11, 25, 26, - 26, 185, 186, 47, 187, 188, 120, 65, 65, 189, - 190, 191, 192, 76, 193, 195, 196, 197, 122, 61, - 61, 61, 12, 12, 113, 198, 194, 200, 194, 199, - 203, 202, 202, 204, 205, 201, 15, 15, 15, 60, - 60, 60, 206, 207, 23, 23, 208, 209, 17, 17, - 18, 210, 19, 19, -}; -short tao_yylen[] = { 2, - 1, 2, 0, 0, 3, 0, 3, 0, 3, 0, - 3, 0, 3, 0, 3, 0, 3, 0, 0, 0, - 0, 9, 1, 1, 0, 0, 0, 7, 0, 3, - 2, 0, 3, 0, 1, 1, 1, 1, 2, 1, - 0, 0, 0, 7, 0, 0, 0, 8, 4, 0, - 3, 1, 0, 2, 0, 2, 1, 2, 2, 0, - 1, 1, 1, 0, 3, 0, 3, 2, 0, 0, - 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, - 3, 2, 0, 4, 0, 1, 0, 3, 0, 4, - 1, 1, 0, 0, 0, 0, 9, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, - 3, 1, 3, 1, 3, 3, 1, 3, 3, 1, - 3, 3, 3, 1, 2, 2, 2, 1, 1, 3, - 1, 1, 1, 1, 1, 1, 1, 1, 0, 3, - 1, 1, 1, 2, 0, 3, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 2, 0, 4, 0, 1, 1, 2, - 0, 4, 0, 1, 1, 1, 1, 1, 2, 1, - 2, 3, 2, 1, 1, 2, 1, 1, 1, 1, - 1, 0, 0, 0, 0, 9, 2, 2, 0, 0, - 2, 0, 0, 5, 0, 3, 0, 0, 0, 0, - 0, 0, 0, 0, 17, 1, 1, 1, 1, 1, - 1, 2, 2, 0, 0, 0, 5, 0, 3, 2, - 2, 0, 0, 3, 0, 0, 5, 0, 3, 0, - 0, 0, 0, 9, 2, 0, 4, 0, 1, 0, - 0, 6, 2, 0, 0, 5, 0, 0, 6, 1, - 1, 0, 0, 6, 1, 1, 0, 3, 2, 2, - 0, 0, 0, 5, 0, 0, 6, 1, 0, 0, - 0, 0, 0, 9, 0, 0, 0, 0, 10, 1, - 1, 0, 1, 1, 1, 0, 3, 0, 4, 2, - 0, 4, 0, 0, 0, 5, 1, 1, 1, 1, - 1, 1, 0, 0, 6, 0, 0, 0, 6, 0, - 2, 0, 4, 0, -}; -short tao_yydefred[] = { 0, - 16, 93, 18, 29, 139, 192, 207, 240, 280, 0, - 0, 0, 50, 0, 141, 143, 142, 25, 41, 0, - 0, 4, 1, 0, 6, 8, 10, 12, 14, 23, - 24, 35, 36, 37, 38, 40, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 91, 144, 174, 45, 0, - 0, 39, 0, 0, 0, 32, 31, 0, 180, 0, - 184, 185, 187, 188, 189, 190, 191, 254, 261, 266, - 52, 87, 58, 147, 148, 150, 158, 159, 161, 163, - 162, 0, 160, 0, 152, 154, 155, 153, 157, 176, - 177, 149, 156, 0, 86, 0, 0, 0, 2, 0, - 0, 0, 0, 0, 17, 103, 104, 0, 94, 98, - 99, 101, 102, 100, 19, 30, 145, 140, 193, 208, - 241, 281, 0, 51, 26, 42, 0, 179, 186, 0, - 183, 0, 0, 250, 253, 89, 0, 257, 262, 5, - 7, 9, 11, 13, 15, 0, 0, 0, 0, 0, - 0, 0, 46, 69, 60, 0, 33, 182, 255, 88, - 0, 0, 0, 49, 0, 0, 95, 20, 175, 146, - 167, 168, 169, 0, 194, 209, 242, 282, 69, 0, - 0, 0, 0, 131, 132, 133, 134, 135, 136, 137, - 0, 0, 0, 0, 0, 138, 0, 0, 0, 0, - 0, 0, 120, 124, 129, 251, 90, 0, 258, 263, - 0, 0, 0, 0, 200, 0, 0, 199, 0, 80, - 278, 290, 291, 0, 0, 70, 72, 74, 0, 68, - 76, 78, 295, 66, 64, 0, 59, 61, 62, 63, - 83, 256, 125, 126, 127, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 96, - 21, 165, 272, 268, 271, 195, 199, 0, 210, 249, - 243, 248, 0, 0, 0, 294, 308, 285, 293, 0, - 307, 275, 0, 0, 0, 28, 0, 0, 0, 0, - 44, 0, 130, 0, 0, 0, 0, 0, 0, 0, - 121, 122, 123, 252, 259, 264, 0, 0, 0, 0, - 0, 0, 0, 205, 202, 201, 0, 0, 0, 198, - 0, 48, 81, 0, 0, 71, 73, 75, 77, 79, - 67, 65, 0, 97, 106, 22, 166, 273, 270, 196, - 0, 0, 0, 220, 211, 0, 216, 217, 219, 218, - 244, 246, 284, 286, 276, 0, 206, 203, 0, 0, - 0, 0, 274, 0, 212, 247, 0, 287, 277, 173, - 204, 0, 0, 0, 0, 0, 213, 297, 310, 311, - 312, 304, 0, 303, 313, 288, 171, 0, 0, 299, - 0, 0, 0, 0, 228, 235, 233, 225, 232, 214, - 224, 305, 301, 314, 317, 289, 172, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 229, 236, - 234, 238, 226, 231, 215, 223, 306, 302, 0, 318, - 0, 0, 0, 315, 0, 237, 239, 227, 324, 0, - 0, 319, 322, 0, 323, -}; -short tao_yydgoto[] = { 14, - 315, 74, 75, 76, 77, 78, 15, 16, 345, 17, - 169, 278, 82, 83, 279, 195, 406, 440, 441, 157, - 182, 57, 386, 164, 264, 311, 398, 412, 170, 213, - 369, 376, 18, 19, 334, 196, 197, 198, 199, 200, - 201, 202, 203, 204, 205, 206, 265, 399, 423, 109, - 85, 86, 87, 88, 89, 90, 91, 92, 93, 382, - 224, 171, 172, 173, 225, 94, 20, 21, 95, 22, - 23, 24, 98, 25, 100, 26, 101, 27, 102, 28, - 103, 29, 104, 37, 39, 147, 212, 308, 30, 31, - 54, 180, 154, 229, 40, 127, 32, 33, 34, 35, - 36, 55, 181, 155, 236, 123, 179, 274, 53, 237, - 238, 230, 240, 316, 290, 289, 283, 284, 285, 231, - 287, 232, 288, 275, 292, 133, 162, 38, 146, 211, - 307, 118, 41, 148, 309, 394, 42, 149, 266, 215, - 312, 320, 273, 268, 342, 364, 341, 43, 150, 216, - 317, 359, 372, 400, 388, 413, 401, 414, 411, 433, - 408, 410, 409, 431, 432, 44, 151, 271, 217, 318, - 272, 319, 360, 161, 257, 132, 183, 96, 165, 258, - 97, 166, 259, 214, 310, 356, 325, 362, 45, 152, - 218, 321, 324, 368, 361, 375, 393, 373, 383, 374, - 384, 391, 416, 389, 415, 392, 417, 418, 435, 444, -}; -short tao_yysindex[] = { 526, - 0, 0, 0, 0, 0, 0, 0, 0, 0, -234, - -269, -269, 0, 0, 0, 0, 0, 0, 0, 41, - 359, 0, 0, 526, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 43, 489, -143, -234, - 376, -234, -234, -234, -234, 0, 0, 0, 0, -183, - -183, 0, -234, -1, 14, 0, 0, -223, 0, -203, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 20, 0, -174, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 41, 0, 85, 117, 121, 0, 128, - 130, 142, 146, 147, 0, 0, 0, -174, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 86, 0, 0, 0, -228, 0, 0, -42, - 0, 155, -234, 0, 0, 0, -77, 0, 0, 0, - 0, 0, 0, 0, 0, -234, 106, -234, 116, -48, - 119, 120, 0, 0, 0, -174, 0, 0, 0, 0, - 72, -234, -228, 0, 72, 72, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 580, - 550, 186, 440, 0, 0, 0, 0, 0, 0, 0, - 35, 35, 35, 72, -174, 0, 133, 160, 220, -238, - 12, 209, 0, 0, 0, 0, 0, -174, 0, 0, - 201, 526, 231, 173, 0, 239, 23, 0, 580, 0, - 0, 0, 0, 457, 4, 0, 0, 0, 171, 0, - 0, 0, 0, 0, 0, 175, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 250, 72, 72, 72, 72, - 72, 72, 72, 72, 72, 72, 241, 242, 244, 0, - 0, 0, 0, 0, 0, 0, 0, 342, 0, 0, - 0, 0, 0, 189, 259, 0, 0, 0, 0, -174, - 0, 0, 266, 271, 272, 0, 274, 288, 342, 342, - 0, -228, 0, 160, 220, -238, 12, 12, 209, 209, - 0, 0, 0, 0, 0, 0, 72, 202, -234, 72, - 173, 223, 0, 0, 0, 0, 407, 224, 309, 0, - 229, 0, 0, 99, 506, 0, 0, 0, 0, 0, - 0, 0, -174, 0, 0, 0, 0, 0, 0, 0, - 299, -234, 97, 0, 0, -174, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 267, 0, 0, 320, 23, - 322, -234, 0, 304, 0, 0, 0, 0, 0, 0, - 0, 243, 324, -197, 77, 338, 0, 0, 0, 0, - 0, 0, 327, 0, 0, 0, 0, -155, 506, 0, - 341, 346, 105, -234, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 329, 72, 332, - 376, -195, 269, -155, -234, -197, -228, 360, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 358, 0, - 343, -234, 344, 0, 101, 0, 0, 0, 0, 361, - 363, 0, 0, 108, 0, -}; -short tao_yyrindex[] = { 408, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, -12, - 9, 0, 0, 17, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 30, - -45, 0, 0, 0, 0, 0, 0, 107, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 113, 0, 0, 0, 0, 0, 0, - 0, 0, 0, -108, 0, 126, 132, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 153, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 69, - 0, 0, 0, 0, 0, 0, 286, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, -30, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 191, 0, 0, 0, 0, 0, 219, - 268, 10, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 3, 0, 152, 154, 166, 257, - 25, 11, 0, 0, 0, 0, 0, 291, 0, 0, - 0, 290, 357, 0, 0, 0, 0, 0, 295, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 169, 0, 0, 0, 0, 0, 0, 164, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 178, 462, 453, 62, 109, 36, 103, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 190, 0, 192, 0, 0, 0, 0, 0, 292, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, -17, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 382, 0, 0, 383, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, -22, 0, 0, 0, - 0, 0, 0, 0, -47, 368, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 387, 0, 370, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 423, 0, 305, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 402, 0, 0, 0, 0, -}; -short tao_yygindex[] = { 0, - -19, 270, 0, 0, 0, -32, -13, -16, 0, -5, - 0, 0, 0, 412, -249, -20, 0, 0, 0, 34, - 0, 372, 0, 0, 0, 0, 0, 0, 110, 0, - 0, 0, 0, 460, 0, -168, 0, 225, 226, 230, - -142, -94, 55, 131, 0, -128, 167, 61, 0, 0, - -34, -31, -29, 437, 0, 0, 0, -171, -28, 0, - 0, -251, -7, 0, 0, 0, 0, 162, -10, -2, - -4, 0, 0, 19, 0, 42, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 301, 0, 0, 0, 0, 0, 0, 0, 0, - 480, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 312, 0, -106, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 280, 232, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 83, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 138, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 88, 0, 0, 0, 0, 0, 0, 0, 0, 0, -}; -#define TAO_YYTABLESIZE 872 -short tao_yytable[] = { 48, - 84, 73, 47, 110, 80, 106, 111, 79, 112, 114, - 85, 316, 53, 85, 34, 81, 3, 108, 296, 99, - 84, 117, 46, 84, 80, 246, 84, 79, 46, 116, - 13, 119, 120, 121, 122, 81, 209, 210, 128, 128, - 128, 129, 124, 128, 128, 128, 92, 128, 117, 128, - 82, 117, 281, 117, 252, 117, 253, 337, 130, 131, - 128, 128, 114, 134, 128, 114, 53, 57, 117, 117, - 250, 251, 117, 118, 194, 355, 118, 53, 118, 72, - 118, 135, 114, 114, 396, 397, 114, 53, 56, 379, - 380, 381, 85, 118, 118, 128, 128, 118, 56, 115, - 395, 105, 115, 117, 117, 84, 156, 297, 298, 181, - 34, 194, 181, 115, 191, 71, 192, 114, 114, 115, - 115, 125, 160, 115, 396, 397, 128, 181, 118, 118, - 181, 53, 82, 136, 117, 167, 126, 174, 335, 402, - 119, 3, 208, 119, 138, 119, 116, 119, 114, 116, - 178, 207, 53, 281, 115, 115, 151, 299, 300, 118, - 119, 119, 84, 427, 119, 178, 116, 116, 178, 260, - 116, 151, 50, 51, 151, 265, 139, 226, 226, 140, - 437, 338, 331, 332, 260, 115, 141, 260, 142, 34, - 265, 277, 107, 265, 108, 119, 119, 193, 227, 227, - 143, 116, 116, 280, 144, 145, 110, 261, 153, 107, - 107, 108, 108, 107, 159, 108, 226, 281, 109, 158, - 163, 228, 228, 110, 110, 176, 119, 110, 168, 241, - 269, 174, 116, 269, 174, 109, 109, 227, 175, 109, - 420, 177, 178, 316, 107, 256, 108, 84, 269, 174, - 254, 80, 53, 248, 79, 255, 247, 249, 110, 110, - 228, 260, 81, 263, 298, 298, 298, 85, 84, 84, - 109, 333, 80, 80, 262, 79, 79, 108, 269, 270, - 84, 267, 347, 81, 81, 348, 282, 349, 350, 110, - 293, 46, 277, 283, 112, 286, 346, 112, 174, 291, - 344, 109, 304, 305, 280, 306, 53, 82, 301, 302, - 303, 128, 128, 322, 112, 112, 197, 323, 112, 117, - 117, 243, 244, 245, 326, 181, 336, 53, 46, 327, - 328, 174, 329, 114, 114, 184, 185, 186, 187, 188, - 189, 190, 72, 27, 118, 118, 330, 340, 351, 112, - 112, 48, 352, 353, 370, 354, 277, 357, 128, 363, - 365, 367, 371, 178, 378, 377, 385, 390, 280, 151, - 115, 115, 184, 185, 186, 187, 188, 189, 190, 72, - 112, 387, 260, 48, 403, 404, 407, 419, 265, 421, - 84, 422, 43, 425, 80, 405, 156, 79, 434, 430, - 436, 442, 438, 439, 174, 81, 443, 3, 55, 105, - 445, 119, 119, 54, 3, 164, 245, 116, 116, 47, - 309, 174, 178, 221, 200, 200, 170, 300, 320, 222, - 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, - 200, 200, 321, 200, 200, 200, 200, 200, 200, 107, - 429, 358, 242, 200, 200, 200, 200, 200, 200, 200, - 200, 200, 200, 200, 200, 137, 200, 200, 200, 200, - 49, 294, 424, 295, 113, 292, 200, 339, 296, 219, - 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, - 113, 52, 239, 113, 267, 292, 426, 366, 313, 200, - 0, 279, 111, 428, 292, 0, 0, 0, 0, 0, - 113, 113, 0, 0, 113, 0, 0, 0, 0, 111, - 111, 0, 0, 111, 292, 0, 292, 0, 0, 292, - 292, 292, 292, 292, 292, 292, 292, 292, 292, 0, - 0, 0, 0, 0, 292, 113, 113, 0, 0, 0, - 279, 292, 0, 292, 111, 111, 292, 292, 292, 292, - 292, 292, 292, 292, 292, 292, 0, 0, 0, 0, - 0, 292, 0, 0, 0, 292, 113, 279, 0, 0, - 292, 0, 0, 0, 0, 111, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 314, 46, 0, - 0, 0, 292, 58, 59, 60, 61, 62, 63, 64, - 65, 66, 67, 6, 7, 46, 8, 68, 69, 70, - 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, - 6, 7, 46, 8, 68, 69, 70, 58, 59, 60, - 61, 62, 63, 64, 65, 66, 67, 6, 7, 72, - 8, 68, 69, 70, 0, 0, 0, 71, 0, 0, - 0, 0, 0, 46, 0, 0, 72, 0, 343, 59, - 60, 0, 0, 63, 64, 65, 66, 0, 0, 230, - 0, 8, 0, 72, 230, 230, 230, 230, 230, 230, - 230, 230, 230, 230, 230, 230, 46, 230, 230, 230, - 230, 58, 59, 60, 61, 62, 63, 64, 65, 66, - 67, 0, 0, 46, 72, 68, 69, 70, 58, 59, - 60, 61, 62, 63, 64, 65, 66, 67, 0, 0, - 230, 0, 0, 69, 0, 0, 0, 0, 0, 0, - 0, 0, 276, 0, 0, 46, 0, 72, 0, 0, - 58, 59, 60, 61, 62, 63, 64, 65, 66, 0, - 0, 0, 46, 0, 72, 69, 70, 58, 59, 60, - 61, 62, 63, 64, 65, 66, 67, 0, 0, 0, - 0, 1, 69, 2, 3, 4, 5, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 72, 6, 7, 0, - 8, 0, 0, 0, 9, 220, 0, 2, 0, 0, - 5, 0, 0, 72, 0, 0, 0, 10, 11, 12, - 0, 6, 7, 0, 8, 13, 0, 0, 9, 0, - 0, 221, 0, 222, 223, 220, 0, 2, 0, 0, - 5, 10, 0, 0, 233, 234, 235, 0, 0, 0, - 0, 6, 7, 0, 8, 0, 0, 0, 9, 0, - 0, 221, 0, 222, 223, 0, 0, 0, 0, 0, - 0, 10, -}; -short tao_yycheck[] = { 10, - 21, 21, 10, 38, 21, 38, 38, 21, 38, 38, - 41, 59, 58, 44, 123, 21, 0, 38, 41, 24, - 41, 41, 257, 41, 41, 194, 44, 41, 257, 40, - 300, 42, 43, 44, 45, 41, 165, 166, 262, 37, - 38, 265, 53, 41, 42, 43, 59, 45, 38, 47, - 41, 41, 224, 43, 43, 45, 45, 309, 262, 263, - 58, 59, 38, 44, 62, 41, 58, 59, 58, 59, - 309, 310, 62, 38, 40, 325, 41, 123, 43, 308, - 45, 62, 58, 59, 280, 281, 62, 58, 59, 287, - 288, 289, 123, 58, 59, 93, 94, 62, 58, 38, - 256, 59, 41, 93, 94, 123, 127, 250, 251, 41, - 123, 40, 44, 257, 43, 299, 45, 93, 94, 58, - 59, 123, 133, 62, 280, 281, 124, 59, 93, 94, - 62, 123, 123, 308, 124, 146, 123, 148, 307, 389, - 38, 125, 163, 41, 60, 43, 38, 45, 124, 41, - 44, 162, 123, 325, 93, 94, 44, 252, 253, 124, - 58, 59, 183, 415, 62, 59, 58, 59, 62, 44, - 62, 59, 11, 12, 62, 44, 60, 180, 181, 59, - 432, 310, 289, 290, 59, 124, 59, 62, 59, 298, - 59, 224, 41, 62, 41, 93, 94, 126, 180, 181, - 59, 93, 94, 224, 59, 59, 41, 212, 123, 58, - 59, 58, 59, 62, 60, 62, 219, 389, 41, 262, - 298, 180, 181, 58, 59, 274, 124, 62, 123, 44, - 41, 41, 124, 44, 44, 58, 59, 219, 123, 62, - 409, 123, 123, 291, 93, 37, 93, 268, 59, 59, - 42, 268, 298, 94, 268, 47, 124, 38, 93, 94, - 219, 61, 268, 91, 287, 288, 289, 298, 289, 290, - 93, 292, 289, 290, 44, 289, 290, 124, 40, 257, - 298, 91, 317, 289, 290, 317, 283, 317, 317, 124, - 41, 257, 325, 125, 38, 125, 317, 41, 309, 125, - 317, 124, 62, 62, 325, 62, 298, 298, 254, 255, - 256, 309, 310, 125, 58, 59, 125, 59, 62, 309, - 310, 191, 192, 193, 59, 257, 125, 298, 257, 59, - 59, 342, 59, 309, 310, 301, 302, 303, 304, 305, - 306, 307, 308, 125, 309, 310, 59, 125, 125, 93, - 94, 362, 44, 125, 362, 257, 389, 59, 262, 93, - 41, 40, 59, 257, 41, 123, 290, 41, 389, 257, - 309, 310, 301, 302, 303, 304, 305, 306, 307, 308, - 124, 44, 257, 394, 44, 40, 394, 59, 257, 58, - 411, 411, 125, 125, 411, 291, 417, 411, 41, 40, - 58, 41, 59, 303, 415, 411, 44, 0, 123, 257, - 303, 309, 310, 123, 125, 59, 125, 309, 310, 125, - 257, 432, 41, 41, 256, 257, 59, 41, 59, 125, - 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, - 272, 273, 41, 275, 276, 277, 278, 256, 257, 38, - 417, 342, 183, 262, 263, 264, 265, 266, 267, 268, - 269, 270, 271, 272, 273, 94, 275, 276, 277, 278, - 11, 247, 412, 248, 38, 257, 308, 311, 249, 179, - 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, - 38, 12, 181, 41, 215, 277, 414, 360, 267, 308, - -1, 283, 41, 416, 286, -1, -1, -1, -1, -1, - 58, 59, -1, -1, 62, -1, -1, -1, -1, 58, - 59, -1, -1, 62, 257, -1, 308, -1, -1, 262, - 263, 264, 265, 266, 267, 268, 269, 270, 271, -1, - -1, -1, -1, -1, 277, 93, 94, -1, -1, -1, - 283, 257, -1, 286, 93, 94, 262, 263, 264, 265, - 266, 267, 268, 269, 270, 271, -1, -1, -1, -1, - -1, 277, -1, -1, -1, 308, 124, 283, -1, -1, - 286, -1, -1, -1, -1, 124, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 256, 257, -1, - -1, -1, 308, 262, 263, 264, 265, 266, 267, 268, - 269, 270, 271, 272, 273, 257, 275, 276, 277, 278, - 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, - 272, 273, 257, 275, 276, 277, 278, 262, 263, 264, - 265, 266, 267, 268, 269, 270, 271, 272, 273, 308, - 275, 276, 277, 278, -1, -1, -1, 299, -1, -1, - -1, -1, -1, 257, -1, -1, 308, -1, 262, 263, - 264, -1, -1, 267, 268, 269, 270, -1, -1, 257, - -1, 275, -1, 308, 262, 263, 264, 265, 266, 267, - 268, 269, 270, 271, 272, 273, 257, 275, 276, 277, - 278, 262, 263, 264, 265, 266, 267, 268, 269, 270, - 271, -1, -1, 257, 308, 276, 277, 278, 262, 263, - 264, 265, 266, 267, 268, 269, 270, 271, -1, -1, - 308, -1, -1, 277, -1, -1, -1, -1, -1, -1, - -1, -1, 286, -1, -1, 257, -1, 308, -1, -1, - 262, 263, 264, 265, 266, 267, 268, 269, 270, -1, - -1, -1, 257, -1, 308, 277, 278, 262, 263, 264, - 265, 266, 267, 268, 269, 270, 271, -1, -1, -1, - -1, 256, 277, 258, 259, 260, 261, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 308, 272, 273, -1, - 275, -1, -1, -1, 279, 256, -1, 258, -1, -1, - 261, -1, -1, 308, -1, -1, -1, 292, 293, 294, - -1, 272, 273, -1, 275, 300, -1, -1, 279, -1, - -1, 282, -1, 284, 285, 256, -1, 258, -1, -1, - 261, 292, -1, -1, 295, 296, 297, -1, -1, -1, - -1, 272, 273, -1, 275, -1, -1, -1, 279, -1, - -1, 282, -1, 284, 285, -1, -1, -1, -1, -1, - -1, 292, -}; -#define TAO_YYFINAL 14 -#ifndef TAO_YYDEBUG -#define TAO_YYDEBUG 0 -#endif -#define TAO_YYMAXTOKEN 310 -#if TAO_YYDEBUG -const char *tao_yyname[] = { -"end-of-file",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, -0,0,0,"'%'","'&'",0,"'('","')'","'*'","'+'","','","'-'",0,"'/'",0,0,0,0,0,0,0,0, -0,0,"':'","';'","'<'","'='","'>'",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, -0,0,0,0,0,"'['",0,"']'","'^'",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, -0,0,0,"'{'","'|'","'}'","'~'",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, -0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, -0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, -0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"IDENTIFIER","IDL_CONST", -"IDL_MODULE","IDL_INTERFACE","IDL_TYPEDEF","IDL_LONG","IDL_SHORT", -"IDL_UNSIGNED","IDL_DOUBLE","IDL_FLOAT","IDL_CHAR","IDL_WCHAR","IDL_OCTET", -"IDL_BOOLEAN","IDL_ANY","IDL_STRUCT","IDL_UNION","IDL_SWITCH","IDL_ENUM", -"IDL_SEQUENCE","IDL_STRING","IDL_WSTRING","IDL_EXCEPTION","IDL_CASE", -"IDL_DEFAULT","IDL_READONLY","IDL_ATTRIBUTE","IDL_ONEWAY","IDL_IDEMPOTENT", -"IDL_VOID","IDL_IN","IDL_OUT","IDL_INOUT","IDL_RAISES","IDL_CONTEXT", -"IDL_NATIVE","IDL_ABSTRACT","IDL_CUSTOM","IDL_INIT","IDL_PRIVATE","IDL_PUBLIC", -"IDL_SUPPORTS","IDL_TRUNCATABLE","IDL_VALUETYPE","IDL_INTEGER_LITERAL", -"IDL_UINTEGER_LITERAL","IDL_STRING_LITERAL","IDL_CHARACTER_LITERAL", -"IDL_FLOATING_PT_LITERAL","IDL_TRUETOK","IDL_FALSETOK","IDL_SCOPE_DELIMITOR", -"IDL_LEFT_SHIFT","IDL_RIGHT_SHIFT", -}; -const char *tao_yyrule[] = { -"$accept : start", -"start : definitions", -"definitions : definition definitions", -"definitions :", -"$$1 :", -"definition : type_dcl $$1 ';'", -"$$2 :", -"definition : const_dcl $$2 ';'", -"$$3 :", -"definition : exception $$3 ';'", -"$$4 :", -"definition : interface_def $$4 ';'", -"$$5 :", -"definition : module $$5 ';'", -"$$6 :", -"definition : value_def $$6 ';'", -"$$7 :", -"definition : error $$7 ';'", -"$$8 :", -"$$9 :", -"$$10 :", -"$$11 :", -"module : IDL_MODULE $$8 IDENTIFIER $$9 '{' $$10 definitions $$11 '}'", -"interface_def : interface", -"interface_def : forward", -"$$12 :", -"$$13 :", -"$$14 :", -"interface : interface_header $$12 '{' $$13 exports $$14 '}'", -"$$15 :", -"interface_decl : IDL_INTERFACE $$15 id", -"interface_header : interface_decl inheritance_spec", -"$$16 :", -"inheritance_spec : ':' $$16 at_least_one_scoped_name", -"inheritance_spec :", -"value_def : valuetype", -"value_def : value_abs_decl", -"value_def : value_forward_decl", -"value_def : value_box_decl", -"valuetype : IDL_CUSTOM value_concrete_decl", -"valuetype : value_concrete_decl", -"$$17 :", -"$$18 :", -"$$19 :", -"value_concrete_decl : value_header $$17 '{' $$18 value_elements $$19 '}'", -"$$20 :", -"$$21 :", -"$$22 :", -"value_abs_decl : IDL_ABSTRACT value_header $$20 '{' $$21 exports $$22 '}'", -"value_header : value_decl opt_truncatable inheritance_spec supports_spec", -"$$23 :", -"value_decl : IDL_VALUETYPE $$23 id", -"opt_truncatable : IDL_TRUNCATABLE", -"opt_truncatable :", -"supports_spec : IDL_SUPPORTS scoped_name", -"supports_spec :", -"value_forward_decl : IDL_ABSTRACT value_decl", -"value_forward_decl : value_decl", -"value_box_decl : value_decl type_spec", -"value_elements : value_elements value_element", -"value_elements :", -"value_element : state_member", -"value_element : export", -"value_element : init_decl", -"$$24 :", -"state_member : IDL_PUBLIC $$24 member_i", -"$$25 :", -"state_member : IDL_PRIVATE $$25 member_i", -"exports : exports export", -"exports :", -"$$26 :", -"export : type_dcl $$26 ';'", -"$$27 :", -"export : const_dcl $$27 ';'", -"$$28 :", -"export : exception $$28 ';'", -"$$29 :", -"export : attribute $$29 ';'", -"$$30 :", -"export : operation $$30 ';'", -"$$31 :", -"export : error $$31 ';'", -"at_least_one_scoped_name : scoped_name scoped_names", -"$$32 :", -"scoped_names : scoped_names ',' $$32 scoped_name", -"scoped_names :", -"scoped_name : id", -"$$33 :", -"scoped_name : IDL_SCOPE_DELIMITOR $$33 id", -"$$34 :", -"scoped_name : scoped_name IDL_SCOPE_DELIMITOR $$34 id", -"id : IDENTIFIER", -"forward : interface_decl", -"$$35 :", -"$$36 :", -"$$37 :", -"$$38 :", -"const_dcl : IDL_CONST $$35 const_type $$36 id $$37 '=' $$38 expression", -"const_type : integer_type", -"const_type : char_type", -"const_type : octet_type", -"const_type : boolean_type", -"const_type : floating_pt_type", -"const_type : string_type_spec", -"const_type : wstring_type_spec", -"const_type : scoped_name", -"expression : const_expr", -"const_expr : or_expr", -"or_expr : xor_expr", -"or_expr : or_expr '|' xor_expr", -"xor_expr : and_expr", -"xor_expr : xor_expr '^' and_expr", -"and_expr : shift_expr", -"and_expr : and_expr '&' shift_expr", -"shift_expr : add_expr", -"shift_expr : shift_expr IDL_LEFT_SHIFT add_expr", -"shift_expr : shift_expr IDL_RIGHT_SHIFT add_expr", -"add_expr : mult_expr", -"add_expr : add_expr '+' mult_expr", -"add_expr : add_expr '-' mult_expr", -"mult_expr : unary_expr", -"mult_expr : mult_expr '*' unary_expr", -"mult_expr : mult_expr '/' unary_expr", -"mult_expr : mult_expr '%' unary_expr", -"unary_expr : primary_expr", -"unary_expr : '+' primary_expr", -"unary_expr : '-' primary_expr", -"unary_expr : '~' primary_expr", -"primary_expr : scoped_name", -"primary_expr : literal", -"primary_expr : '(' const_expr ')'", -"literal : IDL_INTEGER_LITERAL", -"literal : IDL_UINTEGER_LITERAL", -"literal : IDL_STRING_LITERAL", -"literal : IDL_CHARACTER_LITERAL", -"literal : IDL_FLOATING_PT_LITERAL", -"literal : IDL_TRUETOK", -"literal : IDL_FALSETOK", -"positive_int_expr : const_expr", -"$$39 :", -"type_dcl : IDL_TYPEDEF $$39 type_declarator", -"type_dcl : struct_type", -"type_dcl : union_type", -"type_dcl : enum_type", -"type_dcl : IDL_NATIVE simple_declarator", -"$$40 :", -"type_declarator : type_spec $$40 at_least_one_declarator", -"type_spec : simple_type_spec", -"type_spec : constructed_type_spec", -"simple_type_spec : base_type_spec", -"simple_type_spec : template_type_spec", -"simple_type_spec : scoped_name", -"base_type_spec : integer_type", -"base_type_spec : floating_pt_type", -"base_type_spec : char_type", -"base_type_spec : boolean_type", -"base_type_spec : octet_type", -"base_type_spec : any_type", -"template_type_spec : sequence_type_spec", -"template_type_spec : string_type_spec", -"template_type_spec : wstring_type_spec", -"constructed_type_spec : struct_type", -"constructed_type_spec : union_type", -"constructed_type_spec : enum_type", -"at_least_one_declarator : declarator declarators", -"$$41 :", -"declarators : declarators ',' $$41 declarator", -"declarators :", -"declarator : simple_declarator", -"declarator : complex_declarator", -"at_least_one_simple_declarator : simple_declarator simple_declarators", -"$$42 :", -"simple_declarators : simple_declarators ',' $$42 simple_declarator", -"simple_declarators :", -"simple_declarator : id", -"complex_declarator : array_declarator", -"integer_type : signed_int", -"integer_type : unsigned_int", -"signed_int : IDL_LONG", -"signed_int : IDL_LONG IDL_LONG", -"signed_int : IDL_SHORT", -"unsigned_int : IDL_UNSIGNED IDL_LONG", -"unsigned_int : IDL_UNSIGNED IDL_LONG IDL_LONG", -"unsigned_int : IDL_UNSIGNED IDL_SHORT", -"floating_pt_type : IDL_DOUBLE", -"floating_pt_type : IDL_FLOAT", -"floating_pt_type : IDL_LONG IDL_DOUBLE", -"char_type : IDL_CHAR", -"char_type : IDL_WCHAR", -"octet_type : IDL_OCTET", -"boolean_type : IDL_BOOLEAN", -"any_type : IDL_ANY", -"$$43 :", -"$$44 :", -"$$45 :", -"$$46 :", -"struct_type : IDL_STRUCT $$43 id $$44 '{' $$45 at_least_one_member $$46 '}'", -"at_least_one_member : member members", -"members : members member", -"members :", -"$$47 :", -"member : $$47 member_i", -"$$48 :", -"$$49 :", -"member_i : type_spec $$48 at_least_one_declarator $$49 ';'", -"$$50 :", -"member_i : error $$50 ';'", -"$$51 :", -"$$52 :", -"$$53 :", -"$$54 :", -"$$55 :", -"$$56 :", -"$$57 :", -"$$58 :", -"union_type : IDL_UNION $$51 id $$52 IDL_SWITCH $$53 '(' $$54 switch_type_spec $$55 ')' $$56 '{' $$57 at_least_one_case_branch $$58 '}'", -"switch_type_spec : integer_type", -"switch_type_spec : char_type", -"switch_type_spec : octet_type", -"switch_type_spec : boolean_type", -"switch_type_spec : enum_type", -"switch_type_spec : scoped_name", -"at_least_one_case_branch : case_branch case_branches", -"case_branches : case_branches case_branch", -"case_branches :", -"$$59 :", -"$$60 :", -"case_branch : at_least_one_case_label $$59 element_spec $$60 ';'", -"$$61 :", -"case_branch : error $$61 ';'", -"at_least_one_case_label : case_label case_labels", -"case_labels : case_labels case_label", -"case_labels :", -"$$62 :", -"case_label : IDL_DEFAULT $$62 ':'", -"$$63 :", -"$$64 :", -"case_label : IDL_CASE $$63 const_expr $$64 ':'", -"$$65 :", -"element_spec : type_spec $$65 declarator", -"$$66 :", -"$$67 :", -"$$68 :", -"$$69 :", -"enum_type : IDL_ENUM $$66 id $$67 '{' $$68 at_least_one_enumerator $$69 '}'", -"at_least_one_enumerator : enumerator enumerators", -"$$70 :", -"enumerators : enumerators ',' $$70 enumerator", -"enumerators :", -"enumerator : IDENTIFIER", -"$$71 :", -"$$72 :", -"sequence_type_spec : seq_head ',' $$71 positive_int_expr $$72 '>'", -"sequence_type_spec : seq_head '>'", -"$$73 :", -"$$74 :", -"seq_head : IDL_SEQUENCE $$73 '<' $$74 simple_type_spec", -"$$75 :", -"$$76 :", -"string_type_spec : string_head '<' $$75 positive_int_expr $$76 '>'", -"string_type_spec : string_head", -"string_head : IDL_STRING", -"$$77 :", -"$$78 :", -"wstring_type_spec : wstring_head '<' $$77 positive_int_expr $$78 '>'", -"wstring_type_spec : wstring_head", -"wstring_head : IDL_WSTRING", -"$$79 :", -"array_declarator : id $$79 at_least_one_array_dim", -"at_least_one_array_dim : array_dim array_dims", -"array_dims : array_dims array_dim", -"array_dims :", -"$$80 :", -"$$81 :", -"array_dim : '[' $$80 positive_int_expr $$81 ']'", -"$$82 :", -"$$83 :", -"attribute : opt_readonly IDL_ATTRIBUTE $$82 param_type_spec $$83 at_least_one_simple_declarator", -"opt_readonly : IDL_READONLY", -"opt_readonly :", -"$$84 :", -"$$85 :", -"$$86 :", -"$$87 :", -"exception : IDL_EXCEPTION $$84 id $$85 '{' $$86 members $$87 '}'", -"$$88 :", -"$$89 :", -"$$90 :", -"$$91 :", -"operation : opt_op_attribute op_type_spec $$88 IDENTIFIER $$89 parameter_list $$90 opt_raises $$91 opt_context", -"opt_op_attribute : IDL_ONEWAY", -"opt_op_attribute : IDL_IDEMPOTENT", -"opt_op_attribute :", -"op_type_spec : param_type_spec", -"op_type_spec : IDL_VOID", -"init_decl : IDL_INIT", -"$$92 :", -"parameter_list : '(' $$92 ')'", -"$$93 :", -"parameter_list : '(' $$93 at_least_one_parameter ')'", -"at_least_one_parameter : parameter parameters", -"$$94 :", -"parameters : parameters ',' $$94 parameter", -"parameters :", -"$$95 :", -"$$96 :", -"parameter : direction $$95 param_type_spec $$96 declarator", -"param_type_spec : base_type_spec", -"param_type_spec : string_type_spec", -"param_type_spec : scoped_name", -"direction : IDL_IN", -"direction : IDL_OUT", -"direction : IDL_INOUT", -"$$97 :", -"$$98 :", -"opt_raises : IDL_RAISES $$97 '(' $$98 at_least_one_scoped_name ')'", -"opt_raises :", -"$$99 :", -"$$100 :", -"opt_context : IDL_CONTEXT $$99 '(' $$100 at_least_one_string_literal ')'", -"opt_context :", -"at_least_one_string_literal : IDL_STRING_LITERAL string_literals", -"$$101 :", -"string_literals : string_literals ',' $$101 IDL_STRING_LITERAL", -"string_literals :", -}; -#endif -#define tao_yyclearin (tao_yychar=(-1)) -#define tao_yyerrok (tao_yyerrflag=0) -#ifndef TAO_YYSTACKSIZE -#ifdef TAO_YYMAXDEPTH -#define TAO_YYSTACKSIZE TAO_YYMAXDEPTH -#else -#define TAO_YYSTACKSIZE 300 -#endif -#endif -int tao_yydebug; -int tao_yynerrs; -int tao_yyerrflag; -int tao_yychar; -short *tao_yyssp; -TAO_YYSTYPE *tao_yyvsp; -TAO_YYSTYPE tao_yyval; -TAO_YYSTYPE tao_yylval; -#define tao_yystacksize TAO_YYSTACKSIZE -short tao_yyss[TAO_YYSTACKSIZE]; -TAO_YYSTYPE tao_yyvs[TAO_YYSTACKSIZE]; -#line 2523 "fe/idl.tao_yy" -/* programs */ - -/* - * ??? - */ -int -tao_yywrap() -{ - return 1; -} - -/* - * Report an error situation discovered in a production - * - * This does not do anything since we report all error situations through - * idl_global->err() operations - */ -void -tao_yyerror(const char *) -{ -} -#line 945 "y.tab.cpp" -#define TAO_YYABORT goto tao_yyabort -#define TAO_YYACCEPT goto tao_yyaccept -#define TAO_YYERROR goto tao_yyerrlab -#ifdef TAO_YYDEBUG -#ifndef TAO_YYDEBUG_LEXER_TEXT /* pointer to the text isolated by the lexer*/ -#define TAO_YYDEBUG_LEXER_TEXT "TAO_YYDEBUG_LEXER_TEXT not defined" -#endif -#ifndef TAO_YYDEBUG_INDENT_STRING -#define TAO_YYDEBUG_INDENT_STRING "| " -#endif -#ifndef TAO_YYDEBUG_REDUCE_STRING -#define TAO_YYDEBUG_REDUCE_STRING "+-------" -#endif -#ifndef TAO_YYDEBUG_INDENT -#ifdef __cplusplus -void TAO_YYDEBUG_INDENT(int tao_yyindent) -#else -TAO_YYDEBUG_INDENT(tao_yyindent) -int tao_yyindent; -#endif -{ - while(tao_yyindent-- > 0) - printf("%s", TAO_YYDEBUG_INDENT_STRING); -} -#endif /* TAO_YYDEBUG_INDENT */ -#ifndef TAO_YYDEBUG_REDUCE -#ifdef __cplusplus -void TAO_YYDEBUG_REDUCE(int, int, const char *tao_yyrule_string, int tao_yynew_indent, int tao_yyrhs_count) -#else -TAO_YYDEBUG_REDUCE(tao_yynew_state, tao_yyrule_num, tao_yyrule_string, tao_yynew_indent, tao_yyrhs_count) -int tao_yynew_state; -int tao_yyrule_num; -char * tao_yyrule_string; -int tao_yynew_indent; -int tao_yyrhs_count; -#endif -{ - if (1 < tao_yyrhs_count) - { /* draw the graphics for the reduction */ - TAO_YYDEBUG_INDENT(tao_yynew_indent); - while(1 < tao_yyrhs_count--) - printf("%s", TAO_YYDEBUG_REDUCE_STRING); - putchar('+'); /* left rotated L would look nice */ - putchar('\n'); - TAO_YYDEBUG_INDENT(tao_yynew_indent); - putchar('|'); /* down arrow would look nice */ - putchar('\n'); - } - TAO_YYDEBUG_INDENT(tao_yynew_indent); - /* Only print the resulting token name */ - while (*tao_yyrule_string) - putchar(*tao_yyrule_string++); - putchar('\n'); -} -#endif /* TAO_YYDEBUG_REDUCE */ -#ifndef TAO_YYDEBUG_SHIFT_LEXEME -#ifdef __cplusplus -void TAO_YYDEBUG_SHIFT_LEXEME(int, int, const char *tao_yytoken_string, int tao_yynew_indent) -#else -TAO_YYDEBUG_SHIFT_LEXEME(tao_yyold_state, tao_yynew_state, tao_yytoken_string, tao_yynew_indent) -int tao_yyold_state; -int tao_yynew_state; -char * tao_yytoken_string; -int tao_yynew_indent; -#endif -{ - TAO_YYDEBUG_INDENT(tao_yynew_indent); - printf("%s <-- `%s'\n", tao_yytoken_string, TAO_YYDEBUG_LEXER_TEXT); -} -#endif /* TAO_YYDEBUG_SHIFT_LEXEME */ -#ifndef TAO_YYDEBUG_LOOK_AHEAD -#ifdef __cplusplus -void TAO_YYDEBUG_LOOK_AHEAD(int, int tao_yytoken_num, const char *tao_yytoken_string, int tao_yyindent) -#else -TAO_YYDEBUG_LOOK_AHEAD(tao_yynew_state, tao_yytoken_num, tao_yytoken_string, tao_yyindent) -int tao_yynew_state; -int tao_yytoken_num; -char * tao_yytoken_string; -int tao_yyindent; -#endif -{ - TAO_YYDEBUG_INDENT(tao_yyindent); - printf(" .... look ahead at %s `%s'\n", - tao_yytoken_string, - (0 == tao_yytoken_num)? "\0": TAO_YYDEBUG_LEXER_TEXT); -} -#endif /* TAO_YYDEBUG_LOOK_AHEAD */ -#ifndef TAO_YYDEBUG_DISCARD_STATE -#ifdef __cplusplus -void TAO_YYDEBUG_DISCARD_STATE(int, int tao_yyindent) -#else -TAO_YYDEBUG_DISCARD_STATE(tao_yynew_state, tao_yyindent) -int tao_yynew_state; -int tao_yyindent; -#endif -{ - if (0 < tao_yyindent) - { /* draw the graphics for the reduction */ - TAO_YYDEBUG_INDENT(tao_yyindent-1); - printf("%s", TAO_YYDEBUG_REDUCE_STRING); - putchar('+'); /* left rotated L would look nice */ - printf(" discarding state\n"); - TAO_YYDEBUG_INDENT(tao_yyindent-1); - putchar('|'); /* down arrow would look nice */ - putchar('\n'); - } - else - { - if (0 == tao_yyindent) - printf("discarding state\n"); - else - printf("no more states to discard: parser will abort\n"); - } -} -#endif /* TAO_YYDEBUG_DISCARD_STATE */ -#ifndef TAO_YYDEBUG_DISCARD_TOKEN -#ifdef __cplusplus -void TAO_YYDEBUG_DISCARD_TOKEN(int, int, const char *tao_yytoken_string, int tao_yyindent) -#else -TAO_YYDEBUG_DISCARD_TOKEN(tao_yynew_state, tao_yytoken_num, tao_yytoken_string, tao_yyindent) -int tao_yynew_state; -int tao_yytoken_num; -char * tao_yytoken_string; -int tao_yyindent; -#endif -{ - TAO_YYDEBUG_INDENT(tao_yyindent); - printf("discarding token %s\n", tao_yytoken_string); -} -#endif /* TAO_YYDEBUG_DISCARD_TOKEN */ -#ifndef TAO_YYDEBUG_SHIFT_ERROR_LEXEME -#ifdef __cplusplus -void TAO_YYDEBUG_SHIFT_ERROR_LEXEME(int, int, int tao_yyindent) -#else -TAO_YYDEBUG_SHIFT_ERROR_LEXEME(tao_yyold_state, tao_yynew_state, tao_yyindent) -int tao_yyold_state; -int tao_yynew_state; -int tao_yyindent; -#endif -{ - TAO_YYDEBUG_INDENT(tao_yyindent); - printf("error\n"); -} -#endif /* TAO_YYDEBUG_SHIFT_ERROR_LEXEME */ -#endif /* TAO_YYDEBUG */ -#ifdef __cplusplus -extern "C" { extern char *ace_foo(const char *); } -#endif -int -tao_yyparse() -{ - register int tao_yym, tao_yyn, tao_yystate; -#if TAO_YYDEBUG - register const char *tao_yys; -#ifndef __cplusplus - extern char *ace_foo(); -#endif - - if ((tao_yys = ACE_OS::getenv("TAO_YYDEBUG"))) - { - tao_yyn = *tao_yys; - if (tao_yyn >= '0' && tao_yyn <= '9') - tao_yydebug = tao_yyn - '0'; - } -#endif - - tao_yynerrs = 0; - tao_yyerrflag = 0; - tao_yychar = (-1); - - tao_yyssp = tao_yyss; - tao_yyvsp = tao_yyvs; - *tao_yyssp = tao_yystate = 0; - -tao_yyloop: - if ((tao_yyn = tao_yydefred[tao_yystate])) goto tao_yyreduce; - if (tao_yychar < 0) - { - if ((tao_yychar = tao_yylex()) < 0) tao_yychar = 0; -#if TAO_YYDEBUG - if (tao_yydebug) - { - tao_yys = 0; - if (tao_yychar <= TAO_YYMAXTOKEN) tao_yys = tao_yyname[tao_yychar]; - if (!tao_yys) tao_yys = "illegal-symbol"; - if (5 < tao_yydebug) - printf("tao_yydebug: state %d, reading %d (%s)\n", tao_yystate, - tao_yychar, tao_yys); - else - TAO_YYDEBUG_LOOK_AHEAD(tao_yystate, tao_yychar, tao_yys, tao_yyssp-tao_yyss); - } -#endif - } - if ((tao_yyn = tao_yysindex[tao_yystate]) && (tao_yyn += tao_yychar) >= 0 && - tao_yyn <= TAO_YYTABLESIZE && tao_yycheck[tao_yyn] == tao_yychar) - { -#if TAO_YYDEBUG - if (tao_yydebug) - if (5 < tao_yydebug) - printf("tao_yydebug: state %d, shifting to state %d\n", - tao_yystate, tao_yytable[tao_yyn]); - else - TAO_YYDEBUG_SHIFT_LEXEME(tao_yystate, tao_yytable[tao_yyn], tao_yys, tao_yyssp-tao_yyss); -#endif - if (tao_yyssp >= tao_yyss + tao_yystacksize - 1) - { - goto tao_yyoverflow; - } - *++tao_yyssp = tao_yystate = tao_yytable[tao_yyn]; - *++tao_yyvsp = tao_yylval; - tao_yychar = (-1); - if (tao_yyerrflag > 0) --tao_yyerrflag; - goto tao_yyloop; - } - if ((tao_yyn = tao_yyrindex[tao_yystate]) && (tao_yyn += tao_yychar) >= 0 && - tao_yyn <= TAO_YYTABLESIZE && tao_yycheck[tao_yyn] == tao_yychar) - { - tao_yyn = tao_yytable[tao_yyn]; - goto tao_yyreduce; - } - if (tao_yyerrflag) goto tao_yyinrecovery; -#ifdef lint - goto tao_yynewerror; -#endif - - tao_yyerror("syntax error"); -#ifdef lint - goto tao_yyerrlab; -#endif - ++tao_yynerrs; -tao_yyinrecovery: - if (tao_yyerrflag < 3) - { - tao_yyerrflag = 3; - for (;;) - { - if ((tao_yyn = tao_yysindex[*tao_yyssp]) && (tao_yyn += TAO_YYERRCODE) >= 0 && - tao_yyn <= TAO_YYTABLESIZE && tao_yycheck[tao_yyn] == TAO_YYERRCODE) - { -#if TAO_YYDEBUG - if (tao_yydebug) - if (5 < tao_yydebug) - printf("tao_yydebug: state %d, error recovery shifting\ - to state %d\n", *tao_yyssp, tao_yytable[tao_yyn]); - else - TAO_YYDEBUG_SHIFT_ERROR_LEXEME(*tao_yyssp, tao_yytable[tao_yyn], tao_yyssp-tao_yyss); -#endif - if (tao_yyssp >= tao_yyss + tao_yystacksize - 1) - { - goto tao_yyoverflow; - } - *++tao_yyssp = tao_yystate = tao_yytable[tao_yyn]; - *++tao_yyvsp = tao_yylval; - goto tao_yyloop; - } - else - { -#if TAO_YYDEBUG - if (tao_yydebug) - if (5 < tao_yydebug) - printf("tao_yydebug: error recovery discarding state %d\ -", - *tao_yyssp); - else - TAO_YYDEBUG_DISCARD_STATE(*tao_yyssp, tao_yyssp-tao_yyss-1); -#endif - if (tao_yyssp <= tao_yyss) goto tao_yyabort; - --tao_yyssp; - --tao_yyvsp; - } - } - } - else - { - if (tao_yychar == 0) goto tao_yyabort; -#if TAO_YYDEBUG - if (tao_yydebug) - { - tao_yys = 0; - if (tao_yychar <= TAO_YYMAXTOKEN) tao_yys = tao_yyname[tao_yychar]; - if (!tao_yys) tao_yys = "illegal-symbol"; - if (5 < tao_yydebug) - printf("tao_yydebug: state %d, error recovery discards token %d (%s)\n", - tao_yystate, tao_yychar, tao_yys); - else - TAO_YYDEBUG_DISCARD_TOKEN(tao_yystate, tao_yychar, tao_yys, tao_yyssp-tao_yyss); - } -#endif - tao_yychar = (-1); - goto tao_yyloop; - } -tao_yyreduce: - tao_yym = tao_yylen[tao_yyn]; - tao_yyval = tao_yyvsp[1-tao_yym]; -#if TAO_YYDEBUG - if (tao_yydebug) - if (5 < tao_yydebug) - printf("tao_yydebug: state %d, reducing by rule %d (%s)\n", - tao_yystate, tao_yyn, tao_yyrule[tao_yyn]); - else - TAO_YYDEBUG_REDUCE(tao_yystate, tao_yyn, tao_yyrule[tao_yyn], tao_yyssp-tao_yyss-tao_yym, tao_yym); -#endif - switch (tao_yyn) - { -case 4: -#line 255 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_TypeDeclSeen); - } -break; -case 5: -#line 259 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } -break; -case 6: -#line 263 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ConstDeclSeen); - } -break; -case 7: -#line 267 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } -break; -case 8: -#line 271 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ExceptDeclSeen); - } -break; -case 9: -#line 275 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } -break; -case 10: -#line 279 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_InterfaceDeclSeen); - } -break; -case 11: -#line 283 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } -break; -case 12: -#line 287 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ModuleDeclSeen); - } -break; -case 13: -#line 291 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } -break; -case 14: -#line 295 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ValuetypeDeclSeen); - } -break; -case 15: -#line 299 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } -break; -case 16: -#line 303 "fe/idl.tao_yy" -{ - idl_global->err()->syntax_error(idl_global->parse_state()); - } -break; -case 17: -#line 307 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - tao_yyerrok; - } -break; -case 18: -#line 314 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ModuleSeen); - } -break; -case 19: -#line 318 "fe/idl.tao_yy" -{ - UTL_ScopedName *n = - new UTL_ScopedName(new Identifier(tao_yyvsp[0].strval, 1, 0, I_FALSE), NULL); - AST_Module *m = NULL; - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_StrList *p = idl_global->pragmas(); - - idl_global->set_parse_state(IDL_GlobalData::PS_ModuleIDSeen); - /* - * Make a new module and add it to the enclosing scope - */ - if (s != NULL) { - m = idl_global->gen()->create_module(n, p); - (void) s->fe_add_module(m); - } - /* - * Push it on the stack - */ - idl_global->scopes()->push(m); - } -break; -case 20: -#line 339 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ModuleSqSeen); - } -break; -case 21: -#line 343 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ModuleBodySeen); - } -break; -case 22: -#line 347 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ModuleQsSeen); - /* - * Finished with this module - pop it from the scope stack - */ - UTL_Scope* s = idl_global->scopes()->top(); - AST_Module* m = AST_Module::narrow_from_scope (s); - UTL_StrList *p = m->pragmas (); - if (p != 0) - p = (UTL_StrList*)p->copy (); - idl_global->set_pragmas (p); - idl_global->scopes()->pop(); - } -break; -case 25: -#line 369 "fe/idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Interface *i = NULL; - AST_Decl *v = NULL; - UTL_StrList *p = idl_global->pragmas(); - ACE_UNUSED_ARG (v); - - /* - * Make a new interface node and add it to its enclosing scope - */ - if (s != NULL && tao_yyvsp[0].ihval != NULL) { - i = idl_global->gen()->create_interface(tao_yyvsp[0].ihval->interface_name(), - tao_yyvsp[0].ihval->inherits(), - tao_yyvsp[0].ihval->n_inherits(), - p); - AST_Interface::fwd_redefinition_helper (i,s,p); - /* - * Add the interface to its definition scope - */ - (void) s->fe_add_interface(i); - } - /* - * Push it on the scope stack - */ - idl_global->scopes()->push(i); - } -break; -case 26: -#line 396 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_InterfaceSqSeen); - } -break; -case 27: -#line 400 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_InterfaceBodySeen); - } -break; -case 28: -#line 404 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_InterfaceQsSeen); - /* - * Done with this interface - pop it off the scopes stack - */ - UTL_Scope* s = idl_global->scopes()->top(); - AST_Interface* m = AST_Interface::narrow_from_scope (s); - UTL_StrList *p = m->pragmas (); - if (p != 0) - p = (UTL_StrList*)p->copy (); - idl_global->set_pragmas (p); - idl_global->scopes()->pop(); - } -break; -case 29: -#line 421 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_InterfaceSeen); - } -break; -case 30: -#line 425 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_InterfaceIDSeen); - tao_yyval.idval = tao_yyvsp[0].idval; - } -break; -case 31: -#line 433 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_InheritSpecSeen); - /* - * Create an AST representation of the information in the header - * part of an interface - this representation contains a computed - * list of all interfaces which this interface inherits from, - * recursively - */ - tao_yyval.ihval = new FE_InterfaceHeader(new UTL_ScopedName(tao_yyvsp[-1].idval, NULL), tao_yyvsp[0].nlval); - } -break; -case 32: -#line 447 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_InheritColonSeen); - } -break; -case 33: -#line 451 "fe/idl.tao_yy" -{ - tao_yyval.nlval = tao_yyvsp[0].nlval; - } -break; -case 34: -#line 455 "fe/idl.tao_yy" -{ - tao_yyval.nlval = NULL; - } -break; -case 39: -#line 469 "fe/idl.tao_yy" -{ - cerr << "error in " << idl_global->filename()->get_string() - << " line " << idl_global->lineno() << ":\n" ; - cerr << "Sorry, I (TAO_IDL) can't handle custom yet\n"; - /* set custom (if not truncatable) */ - } -break; -case 41: -#line 480 "fe/idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Interface *i = NULL; - UTL_StrList *p = idl_global->pragmas(); - - if (s != NULL && tao_yyvsp[0].vhval != NULL) { - i = idl_global->gen()->create_valuetype(tao_yyvsp[0].vhval->interface_name(), - tao_yyvsp[0].vhval->inherits(), - tao_yyvsp[0].vhval->n_inherits(), - p); - AST_Interface::fwd_redefinition_helper (i,s,p); - /* - * Add the valuetype to its definition scope - */ - (void) s->fe_add_interface(i); - } - /* - * Push it on the scope stack - */ - idl_global->scopes()->push(i); - } -break; -case 42: -#line 502 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_InterfaceSqSeen); - } -break; -case 43: -#line 506 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_InterfaceBodySeen); - } -break; -case 44: -#line 510 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_InterfaceQsSeen); - /* - * Done with this interface - pop it off the scopes stack - */ - UTL_Scope* s = idl_global->scopes()->top(); - AST_Interface* m = AST_Interface::narrow_from_scope (s); - UTL_StrList *p = m->pragmas (); - if (p != 0) p = (UTL_StrList*)p->copy (); - idl_global->set_pragmas (p); - idl_global->scopes()->pop(); - } -break; -case 45: -#line 527 "fe/idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Interface *i = NULL; - UTL_StrList *p = idl_global->pragmas(); - - if (s != NULL && tao_yyvsp[0].vhval != NULL) { - - if (tao_yyvsp[0].vhval->n_concrete() > 0) { - idl_global->err()->abstract_inheritance_error (tao_yyvsp[0].vhval->interface_name ()); - } - - i = idl_global->gen()->create_valuetype(tao_yyvsp[0].vhval->interface_name(), - tao_yyvsp[0].vhval->inherits(), - tao_yyvsp[0].vhval->n_inherits(), - p); - i->set_abstract_valuetype (); - AST_Interface::fwd_redefinition_helper (i,s,p); - /* - * Add the valuetype to its definition scope - */ - (void) s->fe_add_interface(i); - } - /* - * Push it on the scope stack - */ - idl_global->scopes()->push(i); - } -break; -case 46: -#line 555 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_InterfaceSqSeen); - } -break; -case 47: -#line 559 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_InterfaceBodySeen); - } -break; -case 48: -#line 563 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_InterfaceQsSeen); - /* - * Done with this interface - pop it off the scopes stack - */ - UTL_Scope* s = idl_global->scopes()->top(); - AST_Interface* m = AST_Interface::narrow_from_scope (s); - UTL_StrList *p = m->pragmas (); - if (p != 0) p = (UTL_StrList*)p->copy (); - idl_global->set_pragmas (p); - idl_global->scopes()->pop(); - } -break; -case 49: -#line 583 "fe/idl.tao_yy" -{ - tao_yyval.vhval = new FE_obv_header (new UTL_ScopedName (tao_yyvsp[-3].idval, NULL), tao_yyvsp[-1].nlval, tao_yyvsp[0].nlval); - } -break; -case 50: -#line 590 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ValuetypeSeen); - } -break; -case 51: -#line 594 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ValuetypeIDSeen); - tao_yyval.idval = tao_yyvsp[0].idval; - } -break; -case 52: -#line 602 "fe/idl.tao_yy" -{ - cerr << "warning in " << idl_global->filename()->get_string() - << " line " << idl_global->lineno() << ":\n" ; - cerr << "truncatable modifier not supported and is ignored\n"; - tao_yyval.bval = I_FALSE; - /* $$ = I_TRUE; */ - } -break; -case 53: -#line 610 "fe/idl.tao_yy" -{ - tao_yyval.bval = I_FALSE; - } -break; -case 54: -#line 618 "fe/idl.tao_yy" -{ - tao_yyval.nlval = new UTL_NameList(tao_yyvsp[0].idlist, NULL); - } -break; -case 55: -#line 622 "fe/idl.tao_yy" -{ - tao_yyval.nlval = NULL; - } -break; -case 56: -#line 630 "fe/idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_ScopedName *n = new UTL_ScopedName(tao_yyvsp[0].idval, NULL); - AST_InterfaceFwd *f = NULL; - UTL_StrList *p = idl_global->pragmas(); - - idl_global->set_parse_state(IDL_GlobalData::PS_ForwardDeclSeen); - /* - * Create a node representing a forward declaration of an - * valuetype. Store it in the enclosing scope - */ - if (s != NULL) { - f = idl_global->gen()->create_valuetype_fwd(n, p); - /* if ($1)*/ - f->set_abstract_valuetype (); - (void) s->fe_add_interface_fwd(f); - } - } -break; -case 57: -#line 650 "fe/idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_ScopedName *n = new UTL_ScopedName(tao_yyvsp[0].idval, NULL); - AST_InterfaceFwd *f = NULL; - UTL_StrList *p = idl_global->pragmas(); - - idl_global->set_parse_state(IDL_GlobalData::PS_ForwardDeclSeen); - /* - * Create a node representing a forward declaration of an - * valuetype. Store it in the enclosing scope - */ - if (s != NULL) { - f = idl_global->gen()->create_valuetype_fwd(n, p); - (void) s->fe_add_interface_fwd(f); - } - } -break; -case 58: -#line 671 "fe/idl.tao_yy" -{ - cerr << "error in " << idl_global->filename()->get_string() - << " line " << idl_global->lineno() << ":\n" ; - cerr << "Sorry, I (TAO_IDL) can't handle boxes yet\n"; - } -break; -case 64: -#line 691 "fe/idl.tao_yy" -{ - /* is $0 to member_i */ - tao_yyval.vival = AST_Field::vis_PUBLIC; - } -break; -case 66: -#line 697 "fe/idl.tao_yy" -{ - /* is $0 to member_i */ - tao_yyval.vival = AST_Field::vis_PRIVATE; - } -break; -case 70: -#line 711 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_TypeDeclSeen); - } -break; -case 71: -#line 715 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } -break; -case 72: -#line 719 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ConstDeclSeen); - } -break; -case 73: -#line 723 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } -break; -case 74: -#line 727 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ExceptDeclSeen); - } -break; -case 75: -#line 731 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } -break; -case 76: -#line 735 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_AttrDeclSeen); - } -break; -case 77: -#line 739 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } -break; -case 78: -#line 743 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpDeclSeen); - } -break; -case 79: -#line 747 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - } -break; -case 80: -#line 751 "fe/idl.tao_yy" -{ - idl_global->err()->syntax_error(idl_global->parse_state()); - } -break; -case 81: -#line 755 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - tao_yyerrok; - } -break; -case 82: -#line 763 "fe/idl.tao_yy" -{ - tao_yyval.nlval = new UTL_NameList(tao_yyvsp[-1].idlist, tao_yyvsp[0].nlval); - } -break; -case 83: -#line 771 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_SNListCommaSeen); - } -break; -case 84: -#line 775 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ScopedNameSeen); - - if (tao_yyvsp[-3].nlval == NULL) - tao_yyval.nlval = new UTL_NameList(tao_yyvsp[0].idlist, NULL); - else { - tao_yyvsp[-3].nlval->nconc(new UTL_NameList(tao_yyvsp[0].idlist, NULL)); - tao_yyval.nlval = tao_yyvsp[-3].nlval; - } - } -break; -case 85: -#line 786 "fe/idl.tao_yy" -{ - tao_yyval.nlval = NULL; - } -break; -case 86: -#line 793 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_SN_IDSeen); - - tao_yyval.idlist = new UTL_IdList(tao_yyvsp[0].idval, NULL); - } -break; -case 87: -#line 799 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ScopeDelimSeen); - } -break; -case 88: -#line 803 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_SN_IDSeen); - - tao_yyval.idlist = new UTL_IdList(new Identifier(tao_yyvsp[-2].strval, 1, 0, I_FALSE), - new UTL_IdList(tao_yyvsp[0].idval, NULL)); - } -break; -case 89: -#line 811 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ScopeDelimSeen); - } -break; -case 90: -#line 815 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_SN_IDSeen); - - tao_yyvsp[-3].idlist->nconc(new UTL_IdList(tao_yyvsp[0].idval, NULL)); - tao_yyval.idlist = tao_yyvsp[-3].idlist; - } -break; -case 91: -#line 824 "fe/idl.tao_yy" -{ - tao_yyval.idval = new Identifier(tao_yyvsp[0].strval, 1, 0, I_FALSE); - } -break; -case 92: -#line 831 "fe/idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_ScopedName *n = new UTL_ScopedName(tao_yyvsp[0].idval, NULL); - AST_InterfaceFwd *f = NULL; - UTL_StrList *p = idl_global->pragmas(); - - idl_global->set_parse_state(IDL_GlobalData::PS_ForwardDeclSeen); - /* - * Create a node representing a forward declaration of an - * interface. Store it in the enclosing scope - */ - if (s != NULL) { - f = idl_global->gen()->create_interface_fwd(n, p); - (void) s->fe_add_interface_fwd(f); - } - } -break; -case 93: -#line 851 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ConstSeen); - } -break; -case 94: -#line 855 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ConstTypeSeen); - } -break; -case 95: -#line 859 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ConstIDSeen); - } -break; -case 96: -#line 863 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ConstAssignSeen); - } -break; -case 97: -#line 867 "fe/idl.tao_yy" -{ - UTL_ScopedName *n = new UTL_ScopedName(tao_yyvsp[-4].idval, NULL); - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Constant *c = NULL; - UTL_StrList *p = idl_global->pragmas(); - AST_Decl *v = NULL; - - ACE_UNUSED_ARG (v); - - idl_global->set_parse_state(IDL_GlobalData::PS_ConstExprSeen); - /* - * Create a node representing a constant declaration. Store - * it in the enclosing scope - */ - if (tao_yyvsp[0].exval != NULL && s != NULL) { - if (tao_yyvsp[0].exval->coerce(tao_yyvsp[-6].etval) == NULL) - idl_global->err()->coercion_error(tao_yyvsp[0].exval, tao_yyvsp[-6].etval); - else { - c = - idl_global->gen()->create_constant(tao_yyvsp[-6].etval, tao_yyvsp[0].exval, n, p); - (void) s->fe_add_constant(c); - } - } - } -break; -case 103: -#line 900 "fe/idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_string; - } -break; -case 104: -#line 904 "fe/idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_wstring; - } -break; -case 105: -#line 908 "fe/idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Decl *d = NULL; - AST_PredefinedType *c = NULL; - AST_Typedef *t = NULL; - - /* - * If the constant's type is a scoped name, it must resolve - * to a scalar constant type - */ - if (s != NULL && (d = s->lookup_by_name(tao_yyvsp[0].idlist, I_TRUE)) != NULL) { - /* - * Look through typedefs - */ - while (d->node_type() == AST_Decl::NT_typedef) { - t = AST_Typedef::narrow_from_decl(d); - if (t == NULL) - break; - d = t->base_type(); - } - if (d == NULL) - tao_yyval.etval = AST_Expression::EV_any; - else if (d->node_type() == AST_Decl::NT_pre_defined) { - c = AST_PredefinedType::narrow_from_decl(d); - if (c != NULL) { - tao_yyval.etval = idl_global->PredefinedTypeToExprType(c->pt()); - } else { - tao_yyval.etval = AST_Expression::EV_any; - } - } else if (d->node_type () == AST_Decl::NT_string) { - tao_yyval.etval = AST_Expression::EV_string; - /* @ASG@ we will need a similar one for wstring after it - is implemented */ - } else - tao_yyval.etval = AST_Expression::EV_any; - } else - tao_yyval.etval = AST_Expression::EV_any; - } -break; -case 109: -#line 954 "fe/idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(AST_Expression::EC_or, tao_yyvsp[-2].exval, tao_yyvsp[0].exval); - } -break; -case 111: -#line 962 "fe/idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(AST_Expression::EC_xor, tao_yyvsp[-2].exval, tao_yyvsp[0].exval); - } -break; -case 113: -#line 970 "fe/idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(AST_Expression::EC_and, tao_yyvsp[-2].exval, tao_yyvsp[0].exval); - } -break; -case 115: -#line 978 "fe/idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(AST_Expression::EC_right,tao_yyvsp[-2].exval,tao_yyvsp[0].exval); - } -break; -case 116: -#line 982 "fe/idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(AST_Expression::EC_left,tao_yyvsp[-2].exval,tao_yyvsp[0].exval); - } -break; -case 118: -#line 990 "fe/idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(AST_Expression::EC_add, tao_yyvsp[-2].exval, tao_yyvsp[0].exval); - } -break; -case 119: -#line 994 "fe/idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(AST_Expression::EC_minus,tao_yyvsp[-2].exval,tao_yyvsp[0].exval); - } -break; -case 121: -#line 1002 "fe/idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(AST_Expression::EC_mul, tao_yyvsp[-2].exval, tao_yyvsp[0].exval); - } -break; -case 122: -#line 1006 "fe/idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(AST_Expression::EC_div, tao_yyvsp[-2].exval, tao_yyvsp[0].exval); - } -break; -case 123: -#line 1010 "fe/idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(AST_Expression::EC_mod, tao_yyvsp[-2].exval, tao_yyvsp[0].exval); - } -break; -case 125: -#line 1018 "fe/idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(AST_Expression::EC_u_plus, - tao_yyvsp[0].exval, - NULL); - } -break; -case 126: -#line 1024 "fe/idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(AST_Expression::EC_u_minus, - tao_yyvsp[0].exval, - NULL); - } -break; -case 127: -#line 1030 "fe/idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(AST_Expression::EC_bit_neg, - tao_yyvsp[0].exval, - NULL); - } -break; -case 128: -#line 1039 "fe/idl.tao_yy" -{ - /* - * An expression which is a scoped name is not resolved now, - * but only when it is evaluated (such as when it is assigned - * as a constant value) - */ - tao_yyval.exval = idl_global->gen()->create_expr(tao_yyvsp[0].idlist); - } -break; -case 130: -#line 1049 "fe/idl.tao_yy" -{ - tao_yyval.exval = tao_yyvsp[-1].exval; - } -break; -case 131: -#line 1056 "fe/idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(tao_yyvsp[0].ival); - } -break; -case 132: -#line 1060 "fe/idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(tao_yyvsp[0].uival); - } -break; -case 133: -#line 1064 "fe/idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(tao_yyvsp[0].sval); - } -break; -case 134: -#line 1068 "fe/idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(tao_yyvsp[0].cval); - } -break; -case 135: -#line 1072 "fe/idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr(tao_yyvsp[0].dval); - } -break; -case 136: -#line 1076 "fe/idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr((idl_bool) I_TRUE, - AST_Expression::EV_bool); - } -break; -case 137: -#line 1081 "fe/idl.tao_yy" -{ - tao_yyval.exval = idl_global->gen()->create_expr((idl_bool) I_FALSE, - AST_Expression::EV_bool); - } -break; -case 138: -#line 1089 "fe/idl.tao_yy" -{ - tao_yyvsp[0].exval->evaluate(AST_Expression::EK_const); - tao_yyval.exval = idl_global->gen()->create_expr(tao_yyvsp[0].exval, AST_Expression::EV_ulong); - } -break; -case 139: -#line 1097 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_TypedefSeen); - } -break; -case 140: -#line 1100 "fe/idl.tao_yy" -{tao_yyval.ival = 0;} -break; -case 141: -#line 1101 "fe/idl.tao_yy" -{ tao_yyval.ival = 0;} -break; -case 142: -#line 1102 "fe/idl.tao_yy" -{ tao_yyval.ival = 0;} -break; -case 143: -#line 1103 "fe/idl.tao_yy" -{ tao_yyval.ival = 0;} -break; -case 144: -#line 1105 "fe/idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Native *node = NULL; - AST_Decl *v = NULL; - UTL_StrList *p = idl_global->pragmas(); - - ACE_UNUSED_ARG (v); - - idl_global->set_parse_state(IDL_GlobalData::PS_NativeSeen); - /* - * Create a node representing a Native and add it to its - * enclosing scope - */ - if (s != NULL) { - node = idl_global->gen()->create_native (tao_yyvsp[0].deval->name (), p); - /* - * Add it to its defining scope - */ - (void) s->fe_add_native (node); - } - } -break; -case 145: -#line 1130 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_TypeSpecSeen); - } -break; -case 146: -#line 1134 "fe/idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_DecllistActiveIterator *l; - FE_Declarator *d = NULL; - AST_Typedef *t = NULL; - AST_Decl *v = NULL; - UTL_StrList *p = idl_global->pragmas(); - - ACE_UNUSED_ARG (v); - - idl_global->set_parse_state(IDL_GlobalData::PS_DeclaratorsSeen); - /* - * Create a list of type renamings. Add them to the - * enclosing scope - */ - if (s != NULL && tao_yyvsp[-2].dcval != NULL && tao_yyvsp[0].dlval != NULL) { - l = new UTL_DecllistActiveIterator(tao_yyvsp[0].dlval); - for (;!(l->is_done()); l->next()) { - d = l->item(); - if (d == NULL) - continue; - AST_Type * tp = d->compose(tao_yyvsp[-2].dcval); - if (tp == NULL) - continue; - t = idl_global->gen()->create_typedef(tp, d->name(), p); - (void) s->fe_add_typedef(t); - } - delete l; - } - } -break; -case 149: -#line 1173 "fe/idl.tao_yy" -{ - tao_yyval.dcval = idl_global->scopes()->bottom()->lookup_primitive_type(tao_yyvsp[0].etval); - } -break; -case 151: -#line 1178 "fe/idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Decl *d = NULL; - - if (s != NULL) - d = s->lookup_by_name(tao_yyvsp[0].idlist, I_TRUE); - if (d == NULL) - idl_global->err()->lookup_error(tao_yyvsp[0].idlist); - tao_yyval.dcval = d; - } -break; -case 164: -#line 1213 "fe/idl.tao_yy" -{ - tao_yyval.dlval = new UTL_DeclList(tao_yyvsp[-1].deval, tao_yyvsp[0].dlval); - } -break; -case 165: -#line 1221 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_DeclsCommaSeen); - } -break; -case 166: -#line 1225 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_DeclsDeclSeen); - - if (tao_yyvsp[-3].dlval == NULL) - tao_yyval.dlval = new UTL_DeclList(tao_yyvsp[0].deval, NULL); - else { - tao_yyvsp[-3].dlval->nconc(new UTL_DeclList(tao_yyvsp[0].deval, NULL)); - tao_yyval.dlval = tao_yyvsp[-3].dlval; - } - } -break; -case 167: -#line 1236 "fe/idl.tao_yy" -{ - tao_yyval.dlval = NULL; - } -break; -case 170: -#line 1248 "fe/idl.tao_yy" -{ - tao_yyval.dlval = new UTL_DeclList(tao_yyvsp[-1].deval, tao_yyvsp[0].dlval); - } -break; -case 171: -#line 1256 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_DeclsCommaSeen); - } -break; -case 172: -#line 1260 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_DeclsDeclSeen); - - if (tao_yyvsp[-3].dlval == NULL) - tao_yyval.dlval = new UTL_DeclList(tao_yyvsp[0].deval, NULL); - else { - tao_yyvsp[-3].dlval->nconc(new UTL_DeclList(tao_yyvsp[0].deval, NULL)); - tao_yyval.dlval = tao_yyvsp[-3].dlval; - } - } -break; -case 173: -#line 1271 "fe/idl.tao_yy" -{ - tao_yyval.dlval = NULL; - } -break; -case 174: -#line 1278 "fe/idl.tao_yy" -{ - tao_yyval.deval = new FE_Declarator(new UTL_ScopedName(tao_yyvsp[0].idval, NULL), - FE_Declarator::FD_simple, NULL); - } -break; -case 175: -#line 1286 "fe/idl.tao_yy" -{ - tao_yyval.deval = new FE_Declarator(new UTL_ScopedName(tao_yyvsp[0].dcval->local_name(), NULL), - FE_Declarator::FD_complex, - tao_yyvsp[0].dcval); - } -break; -case 178: -#line 1300 "fe/idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_long; - } -break; -case 179: -#line 1304 "fe/idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_longlong; - } -break; -case 180: -#line 1308 "fe/idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_short; - } -break; -case 181: -#line 1315 "fe/idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_ulong; - } -break; -case 182: -#line 1319 "fe/idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_ulonglong; - } -break; -case 183: -#line 1323 "fe/idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_ushort; - } -break; -case 184: -#line 1330 "fe/idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_double; - } -break; -case 185: -#line 1334 "fe/idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_float; - } -break; -case 186: -#line 1338 "fe/idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_longdouble; - } -break; -case 187: -#line 1345 "fe/idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_char; - } -break; -case 188: -#line 1349 "fe/idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_wchar; - } -break; -case 189: -#line 1356 "fe/idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_octet; - } -break; -case 190: -#line 1363 "fe/idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_bool; - } -break; -case 191: -#line 1370 "fe/idl.tao_yy" -{ - tao_yyval.etval = AST_Expression::EV_any; - } -break; -case 192: -#line 1377 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_StructSeen); - } -break; -case 193: -#line 1381 "fe/idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_ScopedName *n = new UTL_ScopedName(tao_yyvsp[0].idval, NULL); - AST_Structure *d = NULL; - UTL_StrList *p = idl_global->pragmas(); - AST_Decl *v = NULL; - - ACE_UNUSED_ARG (v); - - idl_global->set_parse_state(IDL_GlobalData::PS_StructIDSeen); - /* - * Create a node representing a struct declaration. Add it - * to the enclosing scope - */ - if (s != NULL) { - d = idl_global->gen()->create_structure(n, p); - (void) s->fe_add_structure(d); - } - /* - * Push the scope of the struct on the scopes stack - */ - idl_global->scopes()->push(d); - } -break; -case 194: -#line 1405 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_StructSqSeen); - } -break; -case 195: -#line 1409 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_StructBodySeen); - } -break; -case 196: -#line 1413 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_StructQsSeen); - /* - * Done with this struct. Pop its scope off the scopes stack - */ - tao_yyval.dcval = - AST_Structure::narrow_from_scope( - idl_global->scopes()->top_non_null()); - UTL_StrList *p = tao_yyval.dcval->pragmas (); - if (p != 0) - p = (UTL_StrList*)p->copy (); - idl_global->set_pragmas (p); - idl_global->scopes()->pop(); - } -break; -case 200: -#line 1437 "fe/idl.tao_yy" -{ - /* is $0 to member_i */ - tao_yyval.vival = AST_Field::vis_NA; - } -break; -case 202: -#line 1446 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_MemberTypeSeen); - } -break; -case 203: -#line 1450 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_MemberDeclsSeen); - } -break; -case 204: -#line 1454 "fe/idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_DecllistActiveIterator *l = NULL; - FE_Declarator *d = NULL; - AST_Field *f = NULL; - UTL_StrList *p = idl_global->pragmas(); - - idl_global->set_parse_state(IDL_GlobalData::PS_MemberDeclsCompleted); - /* - * Check for illegal recursive use of type - */ - if (tao_yyvsp[-4].dcval != NULL && AST_illegal_recursive_type(tao_yyvsp[-4].dcval)) - idl_global->err()->error1(UTL_Error::EIDL_RECURSIVE_TYPE, tao_yyvsp[-4].dcval); - /* - * Create a node representing a struct or exception member - * Add it to the enclosing scope - */ - else if (s != NULL && tao_yyvsp[-4].dcval != NULL && tao_yyvsp[-2].dlval != NULL) { - l = new UTL_DecllistActiveIterator(tao_yyvsp[-2].dlval); - for (;!(l->is_done()); l->next()) { - d = l->item(); - if (d == NULL) - continue; - AST_Type *tp = d->compose(tao_yyvsp[-4].dcval); - if (tp == NULL) - continue; - /* $0 denotes Visibility, must be on yacc reduction stack */ - f = idl_global->gen()->create_field(tp, d->name(), p, tao_yyvsp[-5].vival); - (void) s->fe_add_field(f); - } - delete l; - } - } -break; -case 205: -#line 1488 "fe/idl.tao_yy" -{ - idl_global->err()->syntax_error(idl_global->parse_state()); - } -break; -case 206: -#line 1492 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - tao_yyerrok; - } -break; -case 207: -#line 1500 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_UnionSeen); - } -break; -case 208: -#line 1504 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_UnionIDSeen); - } -break; -case 209: -#line 1508 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_SwitchSeen); - } -break; -case 210: -#line 1512 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_SwitchOpenParSeen); - } -break; -case 211: -#line 1516 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_SwitchTypeSeen); - } -break; -case 212: -#line 1520 "fe/idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_ScopedName *n = new UTL_ScopedName(tao_yyvsp[-8].idval, NULL); - AST_Union *u = NULL; - AST_Decl *v = NULL; - UTL_StrList *p = idl_global->pragmas(); - - ACE_UNUSED_ARG (v); - - idl_global->set_parse_state(IDL_GlobalData::PS_SwitchCloseParSeen); - /* - * Create a node representing a union. Add it to its enclosing - * scope - */ - if (tao_yyvsp[-2].dcval != NULL && s != NULL) { - AST_ConcreteType *tp = AST_ConcreteType::narrow_from_decl(tao_yyvsp[-2].dcval); - if (tp == NULL) { - idl_global->err()->not_a_type(tao_yyvsp[-2].dcval); - } else { - u = idl_global->gen()->create_union(tp, n, p); - (void) s->fe_add_union(u); - } - } - /* - * Push the scope of the union on the scopes stack - */ - idl_global->scopes()->push(u); - } -break; -case 213: -#line 1549 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_UnionSqSeen); - } -break; -case 214: -#line 1553 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_UnionBodySeen); - } -break; -case 215: -#line 1557 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_UnionQsSeen); - /* - * Done with this union. Pop its scope from the scopes stack - */ - tao_yyval.dcval = - AST_Union::narrow_from_scope( - idl_global->scopes()->top_non_null()); - UTL_StrList *p = tao_yyval.dcval->pragmas (); - if (p != 0) - p = (UTL_StrList*)p->copy (); - idl_global->set_pragmas (p); - idl_global->scopes()->pop(); - } -break; -case 216: -#line 1575 "fe/idl.tao_yy" -{ - tao_yyval.dcval = idl_global->scopes()->bottom()->lookup_primitive_type(tao_yyvsp[0].etval); - } -break; -case 217: -#line 1579 "fe/idl.tao_yy" -{ - tao_yyval.dcval = idl_global->scopes()->bottom()->lookup_primitive_type(tao_yyvsp[0].etval); - } -break; -case 218: -#line 1583 "fe/idl.tao_yy" -{ - /* octets are not allowed*/ - idl_global->err ()->error0 (UTL_Error::EIDL_DISC_TYPE); - } -break; -case 219: -#line 1588 "fe/idl.tao_yy" -{ - tao_yyval.dcval = idl_global->scopes()->bottom()->lookup_primitive_type(tao_yyvsp[0].etval); - } -break; -case 221: -#line 1593 "fe/idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Decl *d = NULL; - AST_PredefinedType *p = NULL; - AST_Typedef *t = NULL; - long found = I_FALSE; - - /* - * The discriminator is a scoped name. Try to resolve to - * one of the scalar types or to an enum. Thread through - * typedef's to arrive at the base type at the end of the - * chain - */ - if (s != NULL && (d = s->lookup_by_name(tao_yyvsp[0].idlist, I_TRUE)) != NULL) { - while (!found) { - switch (d->node_type()) { - case AST_Decl::NT_enum: - tao_yyval.dcval = d; - found = I_TRUE; - break; - case AST_Decl::NT_pre_defined: - p = AST_PredefinedType::narrow_from_decl(d); - if (p != NULL) { - switch (p->pt()) { - case AST_PredefinedType::PT_long: - case AST_PredefinedType::PT_ulong: - case AST_PredefinedType::PT_longlong: - case AST_PredefinedType::PT_ulonglong: - case AST_PredefinedType::PT_short: - case AST_PredefinedType::PT_char: - case AST_PredefinedType::PT_wchar: - case AST_PredefinedType::PT_boolean: - tao_yyval.dcval = p; - found = I_TRUE; - break; - case AST_PredefinedType::PT_octet: - /* octets are not allowed*/ - idl_global->err ()->error0 (UTL_Error::EIDL_DISC_TYPE); - tao_yyval.dcval = NULL; - found = I_TRUE; - break; - default: - tao_yyval.dcval = NULL; - found = I_TRUE; - break; - } - } else - { - tao_yyval.dcval = NULL; - found = I_TRUE; - } - break; - case AST_Decl::NT_typedef: - t = AST_Typedef::narrow_from_decl(d); - if (t != NULL) d = t->base_type(); - break; - default: - tao_yyval.dcval = NULL; - found = I_TRUE; - break; - } - } - } else - tao_yyval.dcval = NULL; - - if (tao_yyval.dcval == NULL) - idl_global->err()->lookup_error(tao_yyvsp[0].idlist); - } -break; -case 225: -#line 1672 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_UnionLabelSeen); - } -break; -case 226: -#line 1676 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_UnionElemSeen); - } -break; -case 227: -#line 1680 "fe/idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_LabellistActiveIterator *l = NULL; - AST_UnionLabel *d = NULL; - AST_UnionBranch *b = NULL; - AST_Field *f = tao_yyvsp[-2].ffval; - - ACE_UNUSED_ARG (l); - ACE_UNUSED_ARG (d); - - idl_global->set_parse_state(IDL_GlobalData::PS_UnionElemCompleted); - /* - * Create several nodes representing branches of a union. - * Add them to the enclosing scope (the union scope) - */ - if (s != NULL && tao_yyvsp[-4].llval != NULL && tao_yyvsp[-2].ffval != NULL) { - b = idl_global->gen()->create_union_branch(tao_yyvsp[-4].llval, - f->field_type(), - f->name(), - f->pragmas()); - (void) s->fe_add_union_branch(b); - } - } -break; -case 228: -#line 1704 "fe/idl.tao_yy" -{ - idl_global->err()->syntax_error(idl_global->parse_state()); - } -break; -case 229: -#line 1709 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_NoState); - tao_yyerrok; - } -break; -case 230: -#line 1717 "fe/idl.tao_yy" -{ - tao_yyval.llval = new UTL_LabelList(tao_yyvsp[-1].ulval, tao_yyvsp[0].llval); - } -break; -case 231: -#line 1724 "fe/idl.tao_yy" -{ - if (tao_yyvsp[-1].llval == NULL) - tao_yyval.llval = new UTL_LabelList(tao_yyvsp[0].ulval, NULL); - else { - tao_yyvsp[-1].llval->nconc(new UTL_LabelList(tao_yyvsp[0].ulval, NULL)); - tao_yyval.llval = tao_yyvsp[-1].llval; - } - } -break; -case 232: -#line 1733 "fe/idl.tao_yy" -{ - tao_yyval.llval = NULL; - } -break; -case 233: -#line 1740 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_DefaultSeen); - } -break; -case 234: -#line 1744 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_LabelColonSeen); - - tao_yyval.ulval = idl_global->gen()-> - create_union_label(AST_UnionLabel::UL_default, - NULL); - } -break; -case 235: -#line 1752 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_CaseSeen); - } -break; -case 236: -#line 1756 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_LabelExprSeen); - } -break; -case 237: -#line 1760 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_LabelColonSeen); - - tao_yyval.ulval = idl_global->gen()->create_union_label(AST_UnionLabel::UL_label, - tao_yyvsp[-2].exval); - } -break; -case 238: -#line 1770 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_UnionElemTypeSeen); - } -break; -case 239: -#line 1774 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_UnionElemDeclSeen); - /* - * Check for illegal recursive use of type - */ - if (tao_yyvsp[-2].dcval != NULL && AST_illegal_recursive_type(tao_yyvsp[-2].dcval)) - idl_global->err()->error1(UTL_Error::EIDL_RECURSIVE_TYPE, tao_yyvsp[-2].dcval); - /* - * Create a field in a union branch - */ - else if (tao_yyvsp[-2].dcval == NULL || tao_yyvsp[0].deval == NULL) - tao_yyval.ffval = NULL; - else { - AST_Type *tp = tao_yyvsp[0].deval->compose(tao_yyvsp[-2].dcval); - if (tp == NULL) - tao_yyval.ffval = NULL; - else - tao_yyval.ffval = idl_global->gen()->create_field(tp, - tao_yyvsp[0].deval->name(), - idl_global->pragmas()); - } - } -break; -case 240: -#line 1800 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_EnumSeen); - } -break; -case 241: -#line 1804 "fe/idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_ScopedName *n = new UTL_ScopedName(tao_yyvsp[0].idval, NULL); - AST_Enum *e = NULL; - AST_Decl *v = NULL; - UTL_StrList *p = idl_global->pragmas(); - - ACE_UNUSED_ARG (v); - - idl_global->set_parse_state(IDL_GlobalData::PS_EnumIDSeen); - /* - * Create a node representing an enum and add it to its - * enclosing scope - */ - if (s != NULL) { - e = idl_global->gen()->create_enum(n, p); - /* - * Add it to its defining scope - */ - (void) s->fe_add_enum(e); - } - /* - * Push the enum scope on the scopes stack - */ - idl_global->scopes()->push(e); - } -break; -case 242: -#line 1831 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_EnumSqSeen); - } -break; -case 243: -#line 1835 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_EnumBodySeen); - } -break; -case 244: -#line 1839 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_EnumQsSeen); - /* - * Done with this enum. Pop its scope from the scopes stack - */ - if (idl_global->scopes()->top() == NULL) - tao_yyval.dcval = NULL; - else { - tao_yyval.dcval = AST_Enum::narrow_from_scope(idl_global->scopes()->top_non_null()); - idl_global->scopes()->pop(); - } - } -break; -case 246: -#line 1858 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_EnumCommaSeen); - } -break; -case 249: -#line 1867 "fe/idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_ScopedName *n = - new UTL_ScopedName(new Identifier(tao_yyvsp[0].strval, 1, 0, I_FALSE), NULL); - AST_EnumVal *e = NULL; - AST_Enum *c = NULL; - UTL_StrList *p = idl_global->pragmas(); - - /* - * Create a node representing one enumerator in an enum - * Add it to the enclosing scope (the enum scope) - */ - if (s != NULL && s->scope_node_type() == AST_Decl::NT_enum) { - c = AST_Enum::narrow_from_scope(s); - if (c != NULL) - e = idl_global->gen()->create_enum_val(c->next_enum_val(), n, p); - (void) s->fe_add_enum_val(e); - } - } -break; -case 250: -#line 1891 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_SequenceCommaSeen); - } -break; -case 251: -#line 1895 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_SequenceExprSeen); - } -break; -case 252: -#line 1899 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_SequenceQsSeen); - /* - * Remove sequence marker from scopes stack - */ - if (idl_global->scopes()->top() == NULL) - idl_global->scopes()->pop(); - /* - * Create a node representing a sequence - */ - if (tao_yyvsp[-2].exval == NULL || tao_yyvsp[-2].exval->coerce(AST_Expression::EV_ulong) == NULL) { - idl_global->err()->coercion_error(tao_yyvsp[-2].exval, AST_Expression::EV_ulong); - tao_yyval.dcval = NULL; - } else if (tao_yyvsp[-5].dcval == NULL) { - tao_yyval.dcval = NULL; - } else { - AST_Type *tp = AST_Type::narrow_from_decl(tao_yyvsp[-5].dcval); - if (tp == NULL) - tao_yyval.dcval = NULL; - else { - tao_yyval.dcval = idl_global->gen()->create_sequence(tao_yyvsp[-2].exval, tp); - /* - * Add this AST_Sequence to the types defined in the global scope - */ - (void) idl_global->root() - ->fe_add_sequence(AST_Sequence::narrow_from_decl(tao_yyval.dcval)); - } - } - } -break; -case 253: -#line 1930 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_SequenceQsSeen); - /* - * Remove sequence marker from scopes stack - */ - if (idl_global->scopes()->top() == NULL) - idl_global->scopes()->pop(); - /* - * Create a node representing a sequence - */ - if (tao_yyvsp[-1].dcval == NULL) - tao_yyval.dcval = NULL; - else { - AST_Type *tp = AST_Type::narrow_from_decl(tao_yyvsp[-1].dcval); - if (tp == NULL) - tao_yyval.dcval = NULL; - else { - tao_yyval.dcval = - idl_global->gen()->create_sequence( - idl_global->gen()->create_expr((unsigned long) 0), - tp); - /* - * Add this AST_Sequence to the types defined in the global scope - */ - (void) idl_global->root() - ->fe_add_sequence(AST_Sequence::narrow_from_decl(tao_yyval.dcval)); - } - } - } -break; -case 254: -#line 1963 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_SequenceSeen); - /* - * Push a sequence marker on scopes stack - */ - idl_global->scopes()->push(NULL); - } -break; -case 255: -#line 1971 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_SequenceSqSeen); - } -break; -case 256: -#line 1975 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_SequenceTypeSeen); - tao_yyval.dcval = tao_yyvsp[0].dcval; - } -break; -case 257: -#line 1984 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_StringSqSeen); - } -break; -case 258: -#line 1988 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_StringExprSeen); - } -break; -case 259: -#line 1992 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_StringQsSeen); - /* - * Create a node representing a string - */ - if (tao_yyvsp[-2].exval == NULL || tao_yyvsp[-2].exval->coerce(AST_Expression::EV_ulong) == NULL) { - idl_global->err()->coercion_error(tao_yyvsp[-2].exval, AST_Expression::EV_ulong); - tao_yyval.dcval = NULL; - } else { - tao_yyval.dcval = idl_global->gen()->create_string(tao_yyvsp[-2].exval); - /* - * Add this AST_String to the types defined in the global scope - */ - (void) idl_global->root() - ->fe_add_string(AST_String::narrow_from_decl(tao_yyval.dcval)); - } - } -break; -case 260: -#line 2010 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_StringCompleted); - /* - * Create a node representing a string - */ - tao_yyval.dcval = - idl_global->gen()->create_string( - idl_global->gen()->create_expr((unsigned long) 0)); - /* - * Add this AST_String to the types defined in the global scope - */ - (void) idl_global->root() - ->fe_add_string(AST_String::narrow_from_decl(tao_yyval.dcval)); - } -break; -case 261: -#line 2028 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_StringSeen); - } -break; -case 262: -#line 2036 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_StringSqSeen); - } -break; -case 263: -#line 2040 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_StringExprSeen); - } -break; -case 264: -#line 2044 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_StringQsSeen); - /* - * Create a node representing a string - */ - if (tao_yyvsp[-2].exval == NULL || tao_yyvsp[-2].exval->coerce(AST_Expression::EV_ulong) == NULL) { - idl_global->err()->coercion_error(tao_yyvsp[-2].exval, AST_Expression::EV_ulong); - tao_yyval.dcval = NULL; - } else { - tao_yyval.dcval = idl_global->gen()->create_wstring(tao_yyvsp[-2].exval); - /* - * Add this AST_String to the types defined in the global scope - */ - (void) idl_global->root() - ->fe_add_string(AST_String::narrow_from_decl(tao_yyval.dcval)); - } - } -break; -case 265: -#line 2062 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_StringCompleted); - /* - * Create a node representing a string - */ - tao_yyval.dcval = - idl_global->gen()->create_wstring( - idl_global->gen()->create_expr((unsigned long) 0)); - /* - * Add this AST_String to the types defined in the global scope - */ - (void) idl_global->root() - ->fe_add_string(AST_String::narrow_from_decl(tao_yyval.dcval)); - } -break; -case 266: -#line 2080 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_StringSeen); - } -break; -case 267: -#line 2087 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ArrayIDSeen); - } -break; -case 268: -#line 2091 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ArrayCompleted); - /* - * Create a node representing an array - */ - if (tao_yyvsp[0].elval != NULL) { - tao_yyval.dcval = idl_global->gen()->create_array(new UTL_ScopedName(tao_yyvsp[-2].idval, NULL), - tao_yyvsp[0].elval->length(), tao_yyvsp[0].elval); - } - } -break; -case 269: -#line 2105 "fe/idl.tao_yy" -{ - tao_yyval.elval = new UTL_ExprList(tao_yyvsp[-1].exval, tao_yyvsp[0].elval); - } -break; -case 270: -#line 2112 "fe/idl.tao_yy" -{ - if (tao_yyvsp[-1].elval == NULL) - tao_yyval.elval = new UTL_ExprList(tao_yyvsp[0].exval, NULL); - else { - tao_yyvsp[-1].elval->nconc(new UTL_ExprList(tao_yyvsp[0].exval, NULL)); - tao_yyval.elval = tao_yyvsp[-1].elval; - } - } -break; -case 271: -#line 2121 "fe/idl.tao_yy" -{ - tao_yyval.elval = NULL; - } -break; -case 272: -#line 2128 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_DimSqSeen); - } -break; -case 273: -#line 2132 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_DimExprSeen); - } -break; -case 274: -#line 2136 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_DimQsSeen); - /* - * Array dimensions are expressions which must be coerced to - * positive integers - */ - if (tao_yyvsp[-2].exval == NULL || tao_yyvsp[-2].exval->coerce(AST_Expression::EV_ulong) == NULL) { - idl_global->err()->coercion_error(tao_yyvsp[-2].exval, AST_Expression::EV_ulong); - tao_yyval.exval = NULL; - } else - tao_yyval.exval = tao_yyvsp[-2].exval; - } -break; -case 275: -#line 2153 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_AttrSeen); - } -break; -case 276: -#line 2157 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_AttrTypeSeen); - } -break; -case 277: -#line 2161 "fe/idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_DecllistActiveIterator *l = NULL; - AST_Attribute *a = NULL; - FE_Declarator *d = NULL; - UTL_StrList *p = idl_global->pragmas(); - - idl_global->set_parse_state(IDL_GlobalData::PS_AttrCompleted); - /* - * Create nodes representing attributes and add them to the - * enclosing scope - */ - if (s != NULL && tao_yyvsp[-2].dcval != NULL && tao_yyvsp[0].dlval != NULL) { - l = new UTL_DecllistActiveIterator(tao_yyvsp[0].dlval); - for (;!(l->is_done()); l->next()) { - d = l->item(); - if (d == NULL) - continue; - AST_Type *tp = d->compose(tao_yyvsp[-2].dcval); - if (tp == NULL) - continue; - a = idl_global->gen()->create_attribute(tao_yyvsp[-5].bval, tp, d->name(), p); - /* - * Add one attribute to the enclosing scope - */ - (void) s->fe_add_attribute(a); - } - delete l; - } - } -break; -case 278: -#line 2195 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_AttrROSeen); - tao_yyval.bval = I_TRUE; - } -break; -case 279: -#line 2200 "fe/idl.tao_yy" -{ - tao_yyval.bval = I_FALSE; - } -break; -case 280: -#line 2207 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ExceptSeen); - } -break; -case 281: -#line 2211 "fe/idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_ScopedName *n = new UTL_ScopedName(tao_yyvsp[0].idval, NULL); - AST_Exception *e = NULL; - UTL_StrList *p = idl_global->pragmas(); - AST_Decl *v = NULL; - - ACE_UNUSED_ARG (v); - - idl_global->set_parse_state(IDL_GlobalData::PS_ExceptIDSeen); - /* - * Create a node representing an exception and add it to - * the enclosing scope - */ - if (s != NULL) { - e = idl_global->gen()->create_exception(n, p); - (void) s->fe_add_exception(e); - } - /* - * Push the exception scope on the scope stack - */ - idl_global->scopes()->push(e); - } -break; -case 282: -#line 2235 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ExceptSqSeen); - } -break; -case 283: -#line 2239 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ExceptBodySeen); - } -break; -case 284: -#line 2243 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_ExceptQsSeen); - /* - * Done with this exception. Pop its scope from the scope stack - */ - idl_global->scopes()->pop(); - } -break; -case 285: -#line 2255 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpTypeSeen); - } -break; -case 286: -#line 2259 "fe/idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - UTL_ScopedName *n = - new UTL_ScopedName(new Identifier(tao_yyvsp[0].strval, 1, 0, I_FALSE), NULL); - AST_Operation *o = NULL; - UTL_StrList *p = idl_global->pragmas(); - - idl_global->set_parse_state(IDL_GlobalData::PS_OpIDSeen); - /* - * Create a node representing an operation on an interface - * and add it to its enclosing scope - */ - if (s != NULL && tao_yyvsp[-2].dcval != NULL) { - AST_Type *tp = AST_Type::narrow_from_decl(tao_yyvsp[-2].dcval); - if (tp == NULL) { - idl_global->err()->not_a_type(tao_yyvsp[-2].dcval); - } else if (tp->node_type() == AST_Decl::NT_except) { - idl_global->err()->not_a_type(tao_yyvsp[-2].dcval); - } else { - o = idl_global->gen()->create_operation(tp, tao_yyvsp[-3].ofval, n, p); - (void) s->fe_add_operation(o); - } - } - /* - * Push the operation scope onto the scopes stack - */ - idl_global->scopes()->push(o); - } -break; -case 287: -#line 2288 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpParsCompleted); - } -break; -case 288: -#line 2292 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpRaiseCompleted); - } -break; -case 289: -#line 2296 "fe/idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Operation *o = NULL; - - idl_global->set_parse_state(IDL_GlobalData::PS_OpCompleted); - /* - * Add exceptions and context to the operation - */ - if (s != NULL && s->scope_node_type() == AST_Decl::NT_op) { - o = AST_Operation::narrow_from_scope(s); - - if (tao_yyvsp[-2].nlval != NULL && o != NULL) - (void) o->fe_add_exceptions(tao_yyvsp[-2].nlval); - if (tao_yyvsp[0].slval != NULL) - (void) o->fe_add_context(tao_yyvsp[0].slval); - } - /* - * Done with this operation. Pop its scope from the scopes stack - */ - idl_global->scopes()->pop(); - } -break; -case 290: -#line 2321 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpAttrSeen); - tao_yyval.ofval = AST_Operation::OP_oneway; - } -break; -case 291: -#line 2326 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpAttrSeen); - tao_yyval.ofval = AST_Operation::OP_idempotent; - } -break; -case 292: -#line 2331 "fe/idl.tao_yy" -{ - tao_yyval.ofval = AST_Operation::OP_noflags; - } -break; -case 294: -#line 2339 "fe/idl.tao_yy" -{ - tao_yyval.dcval = - idl_global->scopes()->bottom() - ->lookup_primitive_type(AST_Expression::EV_void); - } -break; -case 295: -#line 2348 "fe/idl.tao_yy" -{ - cerr << "error in " << idl_global->filename()->get_string() - << " line " << idl_global->lineno() << ":\n" ; - cerr << "Sorry, I (TAO_IDL) can't handle init yet\n"; - } -break; -case 296: -#line 2358 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpSqSeen); - } -break; -case 297: -#line 2362 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpQsSeen); - } -break; -case 298: -#line 2366 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpSqSeen); - } -break; -case 299: -#line 2371 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpQsSeen); - } -break; -case 301: -#line 2381 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpParCommaSeen); - } -break; -case 304: -#line 2390 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpParDirSeen); - } -break; -case 305: -#line 2394 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpParTypeSeen); - } -break; -case 306: -#line 2398 "fe/idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Argument *a = NULL; - UTL_StrList *p = idl_global->pragmas(); - - idl_global->set_parse_state(IDL_GlobalData::PS_OpParDeclSeen); - /* - * Create a node representing an argument to an operation - * Add it to the enclosing scope (the operation scope) - */ - if (tao_yyvsp[-2].dcval != NULL && tao_yyvsp[0].deval != NULL && s != NULL) { - AST_Type *tp = tao_yyvsp[0].deval->compose(tao_yyvsp[-2].dcval); - if (tp != NULL) { - a = idl_global->gen()->create_argument(tao_yyvsp[-4].dival, tp, tao_yyvsp[0].deval->name(), p); - (void) s->fe_add_argument(a); - } - } - } -break; -case 307: -#line 2420 "fe/idl.tao_yy" -{ - tao_yyval.dcval = idl_global->scopes()->bottom()->lookup_primitive_type(tao_yyvsp[0].etval); - } -break; -case 309: -#line 2425 "fe/idl.tao_yy" -{ - UTL_Scope *s = idl_global->scopes()->top_non_null(); - AST_Decl *d = NULL; - - if (s != NULL) - d = s->lookup_by_name(tao_yyvsp[0].idlist, I_TRUE); - if (d == NULL) - idl_global->err()->lookup_error(tao_yyvsp[0].idlist); - tao_yyval.dcval = d; - } -break; -case 310: -#line 2439 "fe/idl.tao_yy" -{ - tao_yyval.dival = AST_Argument::dir_IN; - } -break; -case 311: -#line 2443 "fe/idl.tao_yy" -{ - tao_yyval.dival = AST_Argument::dir_OUT; - } -break; -case 312: -#line 2447 "fe/idl.tao_yy" -{ - tao_yyval.dival = AST_Argument::dir_INOUT; - } -break; -case 313: -#line 2454 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpRaiseSeen); - } -break; -case 314: -#line 2458 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpRaiseSqSeen); - } -break; -case 315: -#line 2463 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpRaiseQsSeen); - tao_yyval.nlval = tao_yyvsp[-1].nlval; - } -break; -case 316: -#line 2468 "fe/idl.tao_yy" -{ - tao_yyval.nlval = NULL; - } -break; -case 317: -#line 2475 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpContextSeen); - } -break; -case 318: -#line 2479 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpContextSqSeen); - } -break; -case 319: -#line 2484 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpContextQsSeen); - tao_yyval.slval = tao_yyvsp[-1].slval; - } -break; -case 320: -#line 2489 "fe/idl.tao_yy" -{ - tao_yyval.slval = NULL; - } -break; -case 321: -#line 2496 "fe/idl.tao_yy" -{ - tao_yyval.slval = new UTL_StrList(tao_yyvsp[-1].sval, tao_yyvsp[0].slval); - } -break; -case 322: -#line 2504 "fe/idl.tao_yy" -{ - idl_global->set_parse_state(IDL_GlobalData::PS_OpContextCommaSeen); - } -break; -case 323: -#line 2508 "fe/idl.tao_yy" -{ - if (tao_yyvsp[-3].slval == NULL) - tao_yyval.slval = new UTL_StrList(tao_yyvsp[0].sval, NULL); - else { - tao_yyvsp[-3].slval->nconc(new UTL_StrList(tao_yyvsp[0].sval, NULL)); - tao_yyval.slval = tao_yyvsp[-3].slval; - } - } -break; -case 324: -#line 2517 "fe/idl.tao_yy" -{ - tao_yyval.slval = NULL; - } -break; -#line 3632 "y.tab.cpp" - } - tao_yyssp -= tao_yym; - tao_yystate = *tao_yyssp; - tao_yyvsp -= tao_yym; - tao_yym = tao_yylhs[tao_yyn]; - if (tao_yystate == 0 && tao_yym == 0) - { -#ifdef TAO_YYDEBUG - if (5 < tao_yydebug) - printf("tao_yydebug: after reduction, shifting from state 0 to\ - state %d\n", TAO_YYFINAL); -#endif - tao_yystate = TAO_YYFINAL; - *++tao_yyssp = TAO_YYFINAL; - *++tao_yyvsp = tao_yyval; - if (tao_yychar < 0) - { - if ((tao_yychar = tao_yylex()) < 0) tao_yychar = 0; -#if TAO_YYDEBUG - if (tao_yydebug) - { - tao_yys = 0; - if (tao_yychar <= TAO_YYMAXTOKEN) tao_yys = tao_yyname[tao_yychar]; - if (!tao_yys) tao_yys = "illegal-symbol"; - if (5 < tao_yydebug) - printf("tao_yydebug: state %d, reading %d (%s)\n", - TAO_YYFINAL, tao_yychar, tao_yys); - else - TAO_YYDEBUG_LOOK_AHEAD(TAO_YYFINAL, tao_yychar, tao_yys, tao_yyssp-tao_yyss); - } -#endif - } - if (tao_yychar == 0) goto tao_yyaccept; - goto tao_yyloop; - } - if ((tao_yyn = tao_yygindex[tao_yym]) && (tao_yyn += tao_yystate) >= 0 && - tao_yyn <= TAO_YYTABLESIZE && tao_yycheck[tao_yyn] == tao_yystate) - tao_yystate = tao_yytable[tao_yyn]; - else - tao_yystate = tao_yydgoto[tao_yym]; -#ifdef TAO_YYDEBUG - if (5 < tao_yydebug) - printf("tao_yydebug: after reduction, shifting from state %d \ -to state %d\n", *tao_yyssp, tao_yystate); -#endif - if (tao_yyssp >= tao_yyss + tao_yystacksize - 1) - { - goto tao_yyoverflow; - } - *++tao_yyssp = tao_yystate; - *++tao_yyvsp = tao_yyval; - goto tao_yyloop; -tao_yyoverflow: - tao_yyerror("yacc stack overflow"); -tao_yyabort: - return (1); -tao_yyaccept: - return (0); -} |