diff --git a/tools/tarsgrammar/tars.tab.cpp b/tools/tarsgrammar/tars.tab.cpp index ea2659e4..eb0aca62 100644 --- a/tools/tarsgrammar/tars.tab.cpp +++ b/tools/tarsgrammar/tars.tab.cpp @@ -67,7 +67,7 @@ /* First part of user prologue. */ -#line 17 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 17 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" #include #include @@ -1384,14 +1384,14 @@ yyparse (void) switch (yyn) { case 3: /* $@1: %empty */ -#line 75 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 75 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 1391 "tars.tab.cpp" break; case 5: /* $@2: %empty */ -#line 79 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 79 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { yyerrok; } @@ -1399,7 +1399,7 @@ yyparse (void) break; case 7: /* definitions: definition */ -#line 84 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 84 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { g_parse->error("`;' missing after definition"); } @@ -1407,14 +1407,14 @@ yyparse (void) break; case 8: /* definitions: %empty */ -#line 88 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 88 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 1414 "tars.tab.cpp" break; case 9: /* definition: namespace_def */ -#line 96 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 96 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { assert(yyvsp[0] == 0 || NamespacePtr::dynamicCast(yyvsp[0])); } @@ -1422,7 +1422,7 @@ yyparse (void) break; case 10: /* definition: interface_def */ -#line 100 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 100 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { assert(yyvsp[0] == 0 || InterfacePtr::dynamicCast(yyvsp[0])); } @@ -1430,7 +1430,7 @@ yyparse (void) break; case 11: /* definition: struct_def */ -#line 104 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 104 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { assert(yyvsp[0] == 0 || StructPtr::dynamicCast(yyvsp[0])); } @@ -1438,14 +1438,14 @@ yyparse (void) break; case 12: /* definition: key_def */ -#line 108 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 108 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 1445 "tars.tab.cpp" break; case 13: /* definition: enum_def */ -#line 111 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 111 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { assert(yyvsp[0] == 0 || EnumPtr::dynamicCast(yyvsp[0])); } @@ -1453,7 +1453,7 @@ yyparse (void) break; case 14: /* definition: const_def */ -#line 115 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 115 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { assert(yyvsp[0] == 0 || ConstPtr::dynamicCast(yyvsp[0])); } @@ -1461,7 +1461,7 @@ yyparse (void) break; case 15: /* @3: %empty */ -#line 124 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 124 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { yyval = yyvsp[0]; } @@ -1469,7 +1469,7 @@ yyparse (void) break; case 16: /* enum_def: enum_id @3 '{' enumerator_list '}' */ -#line 128 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 128 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { if(yyvsp[-2]) { @@ -1487,7 +1487,7 @@ yyparse (void) break; case 17: /* enum_id: TARS_ENUM TARS_IDENTIFIER */ -#line 147 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 147 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { NamespacePtr c = NamespacePtr::dynamicCast(g_parse->currentContainer()); if(!c) @@ -1504,7 +1504,7 @@ yyparse (void) break; case 18: /* enum_id: TARS_ENUM keyword */ -#line 160 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 160 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { StringGrammarPtr ident = StringGrammarPtr::dynamicCast(yyvsp[0]); g_parse->error("keyword `" + ident->v + "' cannot be used as enumeration name"); @@ -1514,7 +1514,7 @@ yyparse (void) break; case 19: /* enumerator_list: enumerator ',' enumerator_list */ -#line 171 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 171 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { yyval = yyvsp[-1]; } @@ -1522,14 +1522,14 @@ yyparse (void) break; case 20: /* enumerator_list: enumerator */ -#line 175 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 175 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 1529 "tars.tab.cpp" break; case 21: /* enumerator: TARS_IDENTIFIER */ -#line 183 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 183 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { TypePtr type = TypePtr::dynamicCast(g_parse->createBuiltin(Builtin::KindLong)); StringGrammarPtr ident = StringGrammarPtr::dynamicCast(yyvsp[0]); @@ -1544,7 +1544,7 @@ yyparse (void) break; case 22: /* enumerator: keyword */ -#line 194 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 194 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { StringGrammarPtr ident = StringGrammarPtr::dynamicCast(yyvsp[0]); g_parse->error("keyword `" + ident->v + "' cannot be used as enumerator"); @@ -1553,7 +1553,7 @@ yyparse (void) break; case 23: /* enumerator: TARS_IDENTIFIER '=' const_initializer */ -#line 199 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 199 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { TypePtr type = TypePtr::dynamicCast(g_parse->createBuiltin(Builtin::KindLong)); StringGrammarPtr ident = StringGrammarPtr::dynamicCast(yyvsp[-2]); @@ -1570,14 +1570,14 @@ yyparse (void) break; case 24: /* enumerator: %empty */ -#line 212 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 212 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 1577 "tars.tab.cpp" break; case 25: /* @4: %empty */ -#line 220 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 220 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { StringGrammarPtr ident = StringGrammarPtr::dynamicCast(yyvsp[0]); ContainerPtr c = g_parse->currentContainer(); @@ -1596,7 +1596,7 @@ yyparse (void) break; case 26: /* namespace_def: TARS_NAMESPACE TARS_IDENTIFIER @4 '{' definitions '}' */ -#line 235 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 235 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { if(yyvsp[-3]) { @@ -1612,7 +1612,7 @@ yyparse (void) break; case 27: /* $@5: %empty */ -#line 253 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 253 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { StringGrammarPtr ident = StringGrammarPtr::dynamicCast(yyvsp[-1]); StructPtr sp = StructPtr::dynamicCast(g_parse->findUserType(ident->v)); @@ -1627,14 +1627,14 @@ yyparse (void) break; case 28: /* key_def: TARS_KEY '[' scoped_name ',' $@5 key_members ']' */ -#line 264 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 264 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 1634 "tars.tab.cpp" break; case 29: /* key_members: TARS_IDENTIFIER */ -#line 272 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 272 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { StringGrammarPtr ident = StringGrammarPtr::dynamicCast(yyvsp[0]); StructPtr np = g_parse->getKeyStruct(); @@ -1651,7 +1651,7 @@ yyparse (void) break; case 30: /* key_members: key_members ',' TARS_IDENTIFIER */ -#line 285 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 285 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { StringGrammarPtr ident = StringGrammarPtr::dynamicCast(yyvsp[0]); StructPtr np = g_parse->getKeyStruct(); @@ -1668,7 +1668,7 @@ yyparse (void) break; case 31: /* @6: %empty */ -#line 304 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 304 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { StringGrammarPtr ident = StringGrammarPtr::dynamicCast(yyvsp[0]); @@ -1689,7 +1689,7 @@ yyparse (void) break; case 32: /* interface_def: interface_id @6 '{' interface_exports '}' */ -#line 321 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 321 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { if(yyvsp[-3]) { @@ -1705,7 +1705,7 @@ yyparse (void) break; case 33: /* interface_id: TARS_INTERFACE TARS_IDENTIFIER */ -#line 338 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 338 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { yyval = yyvsp[0]; } @@ -1713,7 +1713,7 @@ yyparse (void) break; case 34: /* interface_id: TARS_INTERFACE keyword */ -#line 342 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 342 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { StringGrammarPtr ident = StringGrammarPtr::dynamicCast(yyvsp[0]); g_parse->error("keyword `" + ident->v + "' cannot be used as interface name"); @@ -1723,21 +1723,21 @@ yyparse (void) break; case 35: /* interface_exports: interface_export ';' interface_exports */ -#line 353 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 353 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 1730 "tars.tab.cpp" break; case 36: /* interface_exports: error ';' interface_exports */ -#line 356 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 356 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 1737 "tars.tab.cpp" break; case 37: /* interface_exports: interface_export */ -#line 359 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 359 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { g_parse->error("`;' missing after definition"); } @@ -1745,14 +1745,14 @@ yyparse (void) break; case 38: /* interface_exports: %empty */ -#line 363 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 363 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 1752 "tars.tab.cpp" break; case 40: /* operation: operation_preamble parameters ')' */ -#line 377 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 377 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { if(yyvsp[-2]) { @@ -1768,7 +1768,7 @@ yyparse (void) break; case 41: /* operation_preamble: return_type TARS_OP */ -#line 394 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 394 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { TypePtr returnType = TypePtr::dynamicCast(yyvsp[-1]); StringGrammarPtr ident = StringGrammarPtr::dynamicCast(yyvsp[0]); @@ -1796,7 +1796,7 @@ yyparse (void) break; case 43: /* return_type: TARS_VOID */ -#line 424 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 424 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { yyval = 0; } @@ -1804,14 +1804,14 @@ yyparse (void) break; case 44: /* parameters: %empty */ -#line 434 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 434 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 1811 "tars.tab.cpp" break; case 45: /* parameters: type_id */ -#line 437 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 437 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { TypeIdPtr tsp = TypeIdPtr::dynamicCast(yyvsp[0]); @@ -1826,7 +1826,7 @@ yyparse (void) break; case 46: /* parameters: parameters ',' type_id */ -#line 448 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 448 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { TypeIdPtr tsp = TypeIdPtr::dynamicCast(yyvsp[0]); @@ -1841,7 +1841,7 @@ yyparse (void) break; case 47: /* parameters: out_qualifier type_id */ -#line 459 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 459 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { BoolGrammarPtr isOutParam = BoolGrammarPtr::dynamicCast(yyvsp[-1]); TypeIdPtr tsp = TypeIdPtr::dynamicCast(yyvsp[0]); @@ -1857,7 +1857,7 @@ yyparse (void) break; case 48: /* parameters: parameters ',' out_qualifier type_id */ -#line 471 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 471 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { BoolGrammarPtr isOutParam = BoolGrammarPtr::dynamicCast(yyvsp[-1]); TypeIdPtr tsp = TypeIdPtr::dynamicCast(yyvsp[0]); @@ -1873,7 +1873,7 @@ yyparse (void) break; case 49: /* parameters: routekey_qualifier type_id */ -#line 483 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 483 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { BoolGrammarPtr isRouteKeyParam = BoolGrammarPtr::dynamicCast(yyvsp[-1]); TypeIdPtr tsp = TypeIdPtr::dynamicCast(yyvsp[0]); @@ -1889,7 +1889,7 @@ yyparse (void) break; case 50: /* parameters: parameters ',' routekey_qualifier type_id */ -#line 495 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 495 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { BoolGrammarPtr isRouteKeyParam = BoolGrammarPtr::dynamicCast(yyvsp[-1]); TypeIdPtr tsp = TypeIdPtr::dynamicCast(yyvsp[0]); @@ -1905,7 +1905,7 @@ yyparse (void) break; case 51: /* parameters: out_qualifier */ -#line 507 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 507 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { g_parse->error("'out' must be defined with a type"); } @@ -1913,7 +1913,7 @@ yyparse (void) break; case 52: /* parameters: routekey_qualifier */ -#line 511 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 511 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { g_parse->error("'routekey' must be defined with a type"); } @@ -1921,7 +1921,7 @@ yyparse (void) break; case 53: /* routekey_qualifier: TARS_ROUTE_KEY */ -#line 520 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 520 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { BoolGrammarPtr routekey = new BoolGrammar; routekey->v = true; @@ -1931,7 +1931,7 @@ yyparse (void) break; case 54: /* out_qualifier: TARS_OUT */ -#line 531 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 531 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { BoolGrammarPtr out = new BoolGrammar; out->v = true; @@ -1941,7 +1941,7 @@ yyparse (void) break; case 55: /* @7: %empty */ -#line 542 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 542 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { StringGrammarPtr ident = StringGrammarPtr::dynamicCast(yyvsp[0]); NamespacePtr np = NamespacePtr::dynamicCast(g_parse->currentContainer()); @@ -1967,7 +1967,7 @@ yyparse (void) break; case 56: /* struct_def: struct_id @7 '{' struct_exports '}' */ -#line 564 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 564 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { if(yyvsp[-3]) { @@ -1986,7 +1986,7 @@ yyparse (void) break; case 57: /* struct_id: TARS_STRUCT TARS_IDENTIFIER */ -#line 584 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 584 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { yyval = yyvsp[0]; } @@ -1994,7 +1994,7 @@ yyparse (void) break; case 58: /* struct_id: TARS_STRUCT keyword */ -#line 588 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 588 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { StringGrammarPtr ident = StringGrammarPtr::dynamicCast(yyvsp[0]); @@ -2004,7 +2004,7 @@ yyparse (void) break; case 59: /* struct_id: TARS_STRUCT error */ -#line 594 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 594 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { g_parse->error("abstract declarator '' used as declaration"); } @@ -2012,7 +2012,7 @@ yyparse (void) break; case 60: /* struct_exports: data_member ';' struct_exports */ -#line 603 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 603 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } @@ -2020,7 +2020,7 @@ yyparse (void) break; case 61: /* struct_exports: data_member */ -#line 607 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 607 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { g_parse->error("';' missing after definition"); } @@ -2028,14 +2028,14 @@ yyparse (void) break; case 62: /* struct_exports: %empty */ -#line 611 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 611 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2035 "tars.tab.cpp" break; case 63: /* data_member: struct_type_id */ -#line 621 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 621 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { yyval = GrammarBasePtr::dynamicCast(yyvsp[0]); } @@ -2043,7 +2043,7 @@ yyparse (void) break; case 64: /* struct_type_id: TARS_CONST_INTEGER TARS_REQUIRE type_id */ -#line 630 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 630 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { StructPtr np = StructPtr::dynamicCast(g_parse->currentContainer()); if(np) @@ -2065,7 +2065,7 @@ yyparse (void) break; case 65: /* struct_type_id: TARS_CONST_INTEGER TARS_REQUIRE type_id '=' const_initializer */ -#line 648 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 648 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { StructPtr np = StructPtr::dynamicCast(g_parse->currentContainer()); if(np) @@ -2091,7 +2091,7 @@ yyparse (void) break; case 66: /* struct_type_id: TARS_CONST_INTEGER TARS_OPTIONAL type_id '=' const_initializer */ -#line 670 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 670 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { StructPtr np = StructPtr::dynamicCast(g_parse->currentContainer()); if(np) @@ -2117,7 +2117,7 @@ yyparse (void) break; case 67: /* struct_type_id: TARS_CONST_INTEGER TARS_OPTIONAL type_id */ -#line 692 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 692 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { StructPtr np = StructPtr::dynamicCast(g_parse->currentContainer()); if(np) @@ -2138,7 +2138,7 @@ yyparse (void) break; case 68: /* struct_type_id: TARS_REQUIRE type_id */ -#line 709 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 709 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { g_parse->error("struct member need 'tag'"); } @@ -2146,7 +2146,7 @@ yyparse (void) break; case 69: /* struct_type_id: TARS_OPTIONAL type_id */ -#line 713 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 713 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { g_parse->error("struct member need 'tag'"); } @@ -2154,7 +2154,7 @@ yyparse (void) break; case 70: /* struct_type_id: TARS_CONST_INTEGER type_id */ -#line 717 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 717 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { g_parse->error("struct member need 'require' or 'optional'"); } @@ -2162,7 +2162,7 @@ yyparse (void) break; case 71: /* struct_type_id: type_id */ -#line 721 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 721 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { g_parse->error("struct member need 'tag' or 'require' or 'optional'"); } @@ -2170,7 +2170,7 @@ yyparse (void) break; case 72: /* const_initializer: TARS_CONST_INTEGER */ -#line 730 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 730 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { IntergerGrammarPtr intVal = IntergerGrammarPtr::dynamicCast(yyvsp[0]); ostringstream sstr; @@ -2184,7 +2184,7 @@ yyparse (void) break; case 73: /* const_initializer: TARS_CONST_FLOAT */ -#line 740 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 740 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { FloatGrammarPtr floatVal = FloatGrammarPtr::dynamicCast(yyvsp[0]); ostringstream sstr; @@ -2198,7 +2198,7 @@ yyparse (void) break; case 74: /* const_initializer: TARS_STRING_LITERAL */ -#line 750 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 750 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { StringGrammarPtr ident = StringGrammarPtr::dynamicCast(yyvsp[0]); ConstGrammarPtr c = new ConstGrammar(); @@ -2210,7 +2210,7 @@ yyparse (void) break; case 75: /* const_initializer: TARS_FALSE */ -#line 758 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 758 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { StringGrammarPtr ident = StringGrammarPtr::dynamicCast(yyvsp[0]); ConstGrammarPtr c = new ConstGrammar(); @@ -2222,7 +2222,7 @@ yyparse (void) break; case 76: /* const_initializer: TARS_TRUE */ -#line 766 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 766 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { StringGrammarPtr ident = StringGrammarPtr::dynamicCast(yyvsp[0]); ConstGrammarPtr c = new ConstGrammar(); @@ -2234,7 +2234,7 @@ yyparse (void) break; case 77: /* const_initializer: TARS_IDENTIFIER */ -#line 774 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 774 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { StringGrammarPtr ident = StringGrammarPtr::dynamicCast(yyvsp[0]); @@ -2251,7 +2251,7 @@ yyparse (void) break; case 78: /* const_initializer: scoped_name TARS_SCOPE_DELIMITER TARS_IDENTIFIER */ -#line 787 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 787 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { StringGrammarPtr scoped = StringGrammarPtr::dynamicCast(yyvsp[-2]); @@ -2270,7 +2270,7 @@ yyparse (void) break; case 79: /* const_def: TARS_CONST type_id '=' const_initializer */ -#line 807 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 807 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { NamespacePtr np = NamespacePtr::dynamicCast(g_parse->currentContainer()); if(!np) @@ -2287,7 +2287,7 @@ yyparse (void) break; case 80: /* type_id: type TARS_IDENTIFIER */ -#line 825 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 825 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { TypePtr type = TypePtr::dynamicCast(yyvsp[-1]); StringGrammarPtr ident = StringGrammarPtr::dynamicCast(yyvsp[0]); @@ -2300,7 +2300,7 @@ yyparse (void) break; case 81: /* type_id: type TARS_IDENTIFIER '[' TARS_CONST_INTEGER ']' */ -#line 834 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 834 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { TypePtr type = g_parse->createVector(TypePtr::dynamicCast(yyvsp[-4])); IntergerGrammarPtr iPtrSize = IntergerGrammarPtr::dynamicCast(yyvsp[-1]); @@ -2314,7 +2314,7 @@ yyparse (void) break; case 82: /* type_id: type '*' TARS_IDENTIFIER */ -#line 844 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 844 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { TypePtr type = g_parse->createVector(TypePtr::dynamicCast(yyvsp[-2])); //IntergerGrammarPtr iPtrSize = IntergerGrammarPtr::dynamicCast($4); @@ -2328,7 +2328,7 @@ yyparse (void) break; case 83: /* type_id: type TARS_IDENTIFIER ':' TARS_CONST_INTEGER */ -#line 854 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 854 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { TypePtr type = TypePtr::dynamicCast(yyvsp[-3]); StringGrammarPtr ident = StringGrammarPtr::dynamicCast(yyvsp[-2]); @@ -2341,7 +2341,7 @@ yyparse (void) break; case 84: /* type_id: type keyword */ -#line 863 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 863 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { StringGrammarPtr ident = StringGrammarPtr::dynamicCast(yyvsp[0]); g_parse->error("keyword `" + ident->v + "' cannot be used as data member name"); @@ -2350,7 +2350,7 @@ yyparse (void) break; case 85: /* type_id: type */ -#line 868 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 868 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { g_parse->error("missing data member name"); } @@ -2358,7 +2358,7 @@ yyparse (void) break; case 86: /* type_id: error */ -#line 872 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 872 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { g_parse->error("unkown type"); } @@ -2366,7 +2366,7 @@ yyparse (void) break; case 87: /* type: type_no ':' TARS_CONST_INTEGER */ -#line 881 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 881 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { TypePtr type = TypePtr::dynamicCast(yyvsp[-2]); @@ -2379,7 +2379,7 @@ yyparse (void) break; case 88: /* type: type_no */ -#line 890 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 890 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { yyval = yyvsp[0]; } @@ -2387,7 +2387,7 @@ yyparse (void) break; case 89: /* type: type_no ':' error */ -#line 894 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 894 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { g_parse->error("array missing size"); } @@ -2395,7 +2395,7 @@ yyparse (void) break; case 90: /* type_no: TARS_BOOL */ -#line 903 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 903 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { yyval = g_parse->createBuiltin(Builtin::KindBool); } @@ -2403,7 +2403,7 @@ yyparse (void) break; case 91: /* type_no: TARS_BYTE */ -#line 907 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 907 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { yyval = g_parse->createBuiltin(Builtin::KindByte); } @@ -2411,7 +2411,7 @@ yyparse (void) break; case 92: /* type_no: TARS_UNSIGNED TARS_BYTE */ -#line 911 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 911 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { yyval = g_parse->createBuiltin(Builtin::KindShort,true); } @@ -2419,7 +2419,7 @@ yyparse (void) break; case 93: /* type_no: TARS_SHORT */ -#line 915 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 915 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { yyval = g_parse->createBuiltin(Builtin::KindShort); } @@ -2427,7 +2427,7 @@ yyparse (void) break; case 94: /* type_no: TARS_UNSIGNED TARS_SHORT */ -#line 919 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 919 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { yyval = g_parse->createBuiltin(Builtin::KindInt,true); } @@ -2435,7 +2435,7 @@ yyparse (void) break; case 95: /* type_no: TARS_INT */ -#line 923 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 923 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { yyval = g_parse->createBuiltin(Builtin::KindInt); } @@ -2443,7 +2443,7 @@ yyparse (void) break; case 96: /* type_no: TARS_UNSIGNED TARS_INT */ -#line 927 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 927 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { yyval = g_parse->createBuiltin(Builtin::KindLong,true); } @@ -2451,7 +2451,7 @@ yyparse (void) break; case 97: /* type_no: TARS_LONG */ -#line 931 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 931 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { yyval = g_parse->createBuiltin(Builtin::KindLong); } @@ -2459,7 +2459,7 @@ yyparse (void) break; case 98: /* type_no: TARS_FLOAT */ -#line 935 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 935 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { yyval = g_parse->createBuiltin(Builtin::KindFloat); } @@ -2467,7 +2467,7 @@ yyparse (void) break; case 99: /* type_no: TARS_DOUBLE */ -#line 939 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 939 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { yyval = g_parse->createBuiltin(Builtin::KindDouble); } @@ -2475,7 +2475,7 @@ yyparse (void) break; case 100: /* type_no: TARS_STRING */ -#line 943 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 943 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { yyval = g_parse->createBuiltin(Builtin::KindString); } @@ -2483,7 +2483,7 @@ yyparse (void) break; case 101: /* type_no: vector */ -#line 947 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 947 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { yyval = GrammarBasePtr::dynamicCast(yyvsp[0]); } @@ -2491,7 +2491,7 @@ yyparse (void) break; case 102: /* type_no: map */ -#line 951 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 951 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { yyval = GrammarBasePtr::dynamicCast(yyvsp[0]); } @@ -2499,7 +2499,7 @@ yyparse (void) break; case 103: /* type_no: scoped_name */ -#line 955 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 955 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { StringGrammarPtr ident = StringGrammarPtr::dynamicCast(yyvsp[0]); TypePtr sp = g_parse->findUserType(ident->v); @@ -2516,7 +2516,7 @@ yyparse (void) break; case 104: /* vector: TARS_VECTOR '<' type '>' */ -#line 973 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 973 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { yyval = GrammarBasePtr::dynamicCast(g_parse->createVector(TypePtr::dynamicCast(yyvsp[-1]))); } @@ -2524,7 +2524,7 @@ yyparse (void) break; case 105: /* vector: TARS_VECTOR '<' error */ -#line 977 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 977 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { g_parse->error("vector error"); } @@ -2532,7 +2532,7 @@ yyparse (void) break; case 106: /* vector: TARS_VECTOR '<' type error */ -#line 981 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 981 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { g_parse->error("vector missing '>'"); } @@ -2540,7 +2540,7 @@ yyparse (void) break; case 107: /* vector: TARS_VECTOR error */ -#line 985 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 985 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { g_parse->error("vector missing type"); } @@ -2548,7 +2548,7 @@ yyparse (void) break; case 108: /* map: TARS_MAP '<' type ',' type '>' */ -#line 994 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 994 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { yyval = GrammarBasePtr::dynamicCast(g_parse->createMap(TypePtr::dynamicCast(yyvsp[-3]), TypePtr::dynamicCast(yyvsp[-1]))); } @@ -2556,7 +2556,7 @@ yyparse (void) break; case 109: /* map: TARS_MAP '<' error */ -#line 998 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 998 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { g_parse->error("map error"); } @@ -2564,14 +2564,14 @@ yyparse (void) break; case 110: /* scoped_name: TARS_IDENTIFIER */ -#line 1007 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1007 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2571 "tars.tab.cpp" break; case 111: /* scoped_name: TARS_SCOPE_DELIMITER TARS_IDENTIFIER */ -#line 1010 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1010 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { StringGrammarPtr ident = StringGrammarPtr::dynamicCast(yyvsp[0]); ident->v = "::" + ident->v; @@ -2581,7 +2581,7 @@ yyparse (void) break; case 112: /* scoped_name: scoped_name TARS_SCOPE_DELIMITER TARS_IDENTIFIER */ -#line 1016 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1016 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { StringGrammarPtr scoped = StringGrammarPtr::dynamicCast(yyvsp[-2]); StringGrammarPtr ident = StringGrammarPtr::dynamicCast(yyvsp[0]); @@ -2593,175 +2593,175 @@ yyparse (void) break; case 113: /* keyword: TARS_STRUCT */ -#line 1029 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1029 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2600 "tars.tab.cpp" break; case 114: /* keyword: TARS_VOID */ -#line 1032 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1032 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2607 "tars.tab.cpp" break; case 115: /* keyword: TARS_BOOL */ -#line 1035 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1035 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2614 "tars.tab.cpp" break; case 116: /* keyword: TARS_BYTE */ -#line 1038 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1038 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2621 "tars.tab.cpp" break; case 117: /* keyword: TARS_SHORT */ -#line 1041 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1041 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2628 "tars.tab.cpp" break; case 118: /* keyword: TARS_INT */ -#line 1044 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1044 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2635 "tars.tab.cpp" break; case 119: /* keyword: TARS_FLOAT */ -#line 1047 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1047 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2642 "tars.tab.cpp" break; case 120: /* keyword: TARS_DOUBLE */ -#line 1050 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1050 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2649 "tars.tab.cpp" break; case 121: /* keyword: TARS_STRING */ -#line 1053 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1053 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2656 "tars.tab.cpp" break; case 122: /* keyword: TARS_VECTOR */ -#line 1056 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1056 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2663 "tars.tab.cpp" break; case 123: /* keyword: TARS_KEY */ -#line 1059 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1059 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2670 "tars.tab.cpp" break; case 124: /* keyword: TARS_MAP */ -#line 1062 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1062 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2677 "tars.tab.cpp" break; case 125: /* keyword: TARS_NAMESPACE */ -#line 1065 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1065 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2684 "tars.tab.cpp" break; case 126: /* keyword: TARS_INTERFACE */ -#line 1068 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1068 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2691 "tars.tab.cpp" break; case 127: /* keyword: TARS_OUT */ -#line 1071 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1071 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2698 "tars.tab.cpp" break; case 128: /* keyword: TARS_REQUIRE */ -#line 1074 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1074 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2705 "tars.tab.cpp" break; case 129: /* keyword: TARS_OPTIONAL */ -#line 1077 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1077 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2712 "tars.tab.cpp" break; case 130: /* keyword: TARS_CONST_INTEGER */ -#line 1080 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1080 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2719 "tars.tab.cpp" break; case 131: /* keyword: TARS_CONST_FLOAT */ -#line 1083 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1083 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2726 "tars.tab.cpp" break; case 132: /* keyword: TARS_FALSE */ -#line 1086 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1086 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2733 "tars.tab.cpp" break; case 133: /* keyword: TARS_TRUE */ -#line 1089 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1089 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2740 "tars.tab.cpp" break; case 134: /* keyword: TARS_STRING_LITERAL */ -#line 1092 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1092 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2747 "tars.tab.cpp" break; case 135: /* keyword: TARS_CONST */ -#line 1095 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1095 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2754 "tars.tab.cpp" break; case 136: /* keyword: TARS_ENUM */ -#line 1098 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1098 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2761 "tars.tab.cpp" break; case 137: /* keyword: TARS_UNSIGNED */ -#line 1101 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1101 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2768 "tars.tab.cpp" @@ -2962,7 +2962,7 @@ yyparse (void) return yyresult; } -#line 1105 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1105 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" diff --git a/tools/tarsparse/tars.lex.cpp b/tools/tarsparse/tars.lex.cpp index bbba0ba7..b624b1ba 100644 --- a/tools/tarsparse/tars.lex.cpp +++ b/tools/tarsparse/tars.lex.cpp @@ -511,7 +511,7 @@ int yy_flex_debug = 0; #define YY_MORE_ADJ 0 #define YY_RESTORE_YY_MORE_OFFSET char *yytext; -#line 1 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.l" +#line 1 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.l" /** * Tencent is pleased to support the open source community by making Tars available. * @@ -527,7 +527,7 @@ char *yytext; * CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. */ -#line 20 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.l" +#line 20 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.l" #include #include #include @@ -776,7 +776,7 @@ YY_DECL } { -#line 67 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.l" +#line 67 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.l" #line 782 "tars.lex.cpp" @@ -848,12 +848,12 @@ YY_DECL case 1: YY_RULE_SETUP -#line 69 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.l" +#line 69 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.l" { BEGIN(INCL); } YY_BREAK case 2: YY_RULE_SETUP -#line 71 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.l" +#line 71 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.l" { if ( include_file_stack_ptr >= MAX_INCLUDE_DEPTH ) { @@ -886,7 +886,7 @@ YY_RULE_SETUP YY_BREAK case YY_STATE_EOF(INITIAL): case YY_STATE_EOF(INCL): -#line 101 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.l" +#line 101 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.l" { --include_file_stack_ptr; if ( include_file_stack_ptr < 0 ) @@ -905,14 +905,14 @@ case YY_STATE_EOF(INCL): YY_BREAK case 3: YY_RULE_SETUP -#line 117 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.l" +#line 117 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.l" { return TARS_SCOPE_DELIMITER; } YY_BREAK case 4: YY_RULE_SETUP -#line 121 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.l" +#line 121 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.l" { // C++ comment bool e = false; @@ -933,7 +933,7 @@ YY_RULE_SETUP YY_BREAK case 5: YY_RULE_SETUP -#line 139 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.l" +#line 139 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.l" { // C comment bool e = false; @@ -984,7 +984,7 @@ YY_RULE_SETUP YY_BREAK case 6: YY_RULE_SETUP -#line 187 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.l" +#line 187 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.l" { StringGrammarPtr ident = new StringGrammar; ident->v = yytext; @@ -995,7 +995,7 @@ YY_RULE_SETUP case 7: /* rule 7 can match eol */ YY_RULE_SETUP -#line 194 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.l" +#line 194 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.l" { StringGrammarPtr ident = new StringGrammar; ident->v = yytext; @@ -1008,7 +1008,7 @@ YY_RULE_SETUP YY_BREAK case 8: YY_RULE_SETUP -#line 204 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.l" +#line 204 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.l" { StringGrammarPtr str = new StringGrammar; bool e = false; @@ -1123,7 +1123,7 @@ YY_RULE_SETUP YY_BREAK case 9: YY_RULE_SETUP -#line 316 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.l" +#line 316 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.l" { errno = 0; IntergerGrammarPtr ptr = new IntergerGrammar; @@ -1148,7 +1148,7 @@ YY_RULE_SETUP YY_BREAK case 10: YY_RULE_SETUP -#line 338 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.l" +#line 338 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.l" { errno = 0; FloatGrammarPtr ptr = new FloatGrammar; @@ -1183,7 +1183,7 @@ YY_RULE_SETUP case 11: /* rule 11 can match eol */ YY_RULE_SETUP -#line 369 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.l" +#line 369 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.l" { if(yytext[0] == '\n') { @@ -1193,7 +1193,7 @@ YY_RULE_SETUP YY_BREAK case 12: YY_RULE_SETUP -#line 376 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.l" +#line 376 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.l" { if(yytext[0] < 32 || yytext[0] > 126) { @@ -1212,7 +1212,7 @@ YY_RULE_SETUP YY_BREAK case 13: YY_RULE_SETUP -#line 392 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.l" +#line 392 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.l" ECHO; YY_BREAK #line 1218 "tars.lex.cpp" @@ -2230,7 +2230,7 @@ void yyfree (void * ptr ) #define YYTABLES_NAME "yytables" -#line 392 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.l" +#line 392 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.l" diff --git a/tools/tarsparse/tars.tab.cpp b/tools/tarsparse/tars.tab.cpp index ea2659e4..eb0aca62 100644 --- a/tools/tarsparse/tars.tab.cpp +++ b/tools/tarsparse/tars.tab.cpp @@ -67,7 +67,7 @@ /* First part of user prologue. */ -#line 17 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 17 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" #include #include @@ -1384,14 +1384,14 @@ yyparse (void) switch (yyn) { case 3: /* $@1: %empty */ -#line 75 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 75 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 1391 "tars.tab.cpp" break; case 5: /* $@2: %empty */ -#line 79 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 79 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { yyerrok; } @@ -1399,7 +1399,7 @@ yyparse (void) break; case 7: /* definitions: definition */ -#line 84 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 84 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { g_parse->error("`;' missing after definition"); } @@ -1407,14 +1407,14 @@ yyparse (void) break; case 8: /* definitions: %empty */ -#line 88 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 88 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 1414 "tars.tab.cpp" break; case 9: /* definition: namespace_def */ -#line 96 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 96 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { assert(yyvsp[0] == 0 || NamespacePtr::dynamicCast(yyvsp[0])); } @@ -1422,7 +1422,7 @@ yyparse (void) break; case 10: /* definition: interface_def */ -#line 100 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 100 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { assert(yyvsp[0] == 0 || InterfacePtr::dynamicCast(yyvsp[0])); } @@ -1430,7 +1430,7 @@ yyparse (void) break; case 11: /* definition: struct_def */ -#line 104 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 104 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { assert(yyvsp[0] == 0 || StructPtr::dynamicCast(yyvsp[0])); } @@ -1438,14 +1438,14 @@ yyparse (void) break; case 12: /* definition: key_def */ -#line 108 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 108 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 1445 "tars.tab.cpp" break; case 13: /* definition: enum_def */ -#line 111 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 111 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { assert(yyvsp[0] == 0 || EnumPtr::dynamicCast(yyvsp[0])); } @@ -1453,7 +1453,7 @@ yyparse (void) break; case 14: /* definition: const_def */ -#line 115 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 115 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { assert(yyvsp[0] == 0 || ConstPtr::dynamicCast(yyvsp[0])); } @@ -1461,7 +1461,7 @@ yyparse (void) break; case 15: /* @3: %empty */ -#line 124 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 124 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { yyval = yyvsp[0]; } @@ -1469,7 +1469,7 @@ yyparse (void) break; case 16: /* enum_def: enum_id @3 '{' enumerator_list '}' */ -#line 128 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 128 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { if(yyvsp[-2]) { @@ -1487,7 +1487,7 @@ yyparse (void) break; case 17: /* enum_id: TARS_ENUM TARS_IDENTIFIER */ -#line 147 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 147 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { NamespacePtr c = NamespacePtr::dynamicCast(g_parse->currentContainer()); if(!c) @@ -1504,7 +1504,7 @@ yyparse (void) break; case 18: /* enum_id: TARS_ENUM keyword */ -#line 160 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 160 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { StringGrammarPtr ident = StringGrammarPtr::dynamicCast(yyvsp[0]); g_parse->error("keyword `" + ident->v + "' cannot be used as enumeration name"); @@ -1514,7 +1514,7 @@ yyparse (void) break; case 19: /* enumerator_list: enumerator ',' enumerator_list */ -#line 171 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 171 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { yyval = yyvsp[-1]; } @@ -1522,14 +1522,14 @@ yyparse (void) break; case 20: /* enumerator_list: enumerator */ -#line 175 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 175 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 1529 "tars.tab.cpp" break; case 21: /* enumerator: TARS_IDENTIFIER */ -#line 183 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 183 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { TypePtr type = TypePtr::dynamicCast(g_parse->createBuiltin(Builtin::KindLong)); StringGrammarPtr ident = StringGrammarPtr::dynamicCast(yyvsp[0]); @@ -1544,7 +1544,7 @@ yyparse (void) break; case 22: /* enumerator: keyword */ -#line 194 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 194 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { StringGrammarPtr ident = StringGrammarPtr::dynamicCast(yyvsp[0]); g_parse->error("keyword `" + ident->v + "' cannot be used as enumerator"); @@ -1553,7 +1553,7 @@ yyparse (void) break; case 23: /* enumerator: TARS_IDENTIFIER '=' const_initializer */ -#line 199 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 199 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { TypePtr type = TypePtr::dynamicCast(g_parse->createBuiltin(Builtin::KindLong)); StringGrammarPtr ident = StringGrammarPtr::dynamicCast(yyvsp[-2]); @@ -1570,14 +1570,14 @@ yyparse (void) break; case 24: /* enumerator: %empty */ -#line 212 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 212 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 1577 "tars.tab.cpp" break; case 25: /* @4: %empty */ -#line 220 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 220 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { StringGrammarPtr ident = StringGrammarPtr::dynamicCast(yyvsp[0]); ContainerPtr c = g_parse->currentContainer(); @@ -1596,7 +1596,7 @@ yyparse (void) break; case 26: /* namespace_def: TARS_NAMESPACE TARS_IDENTIFIER @4 '{' definitions '}' */ -#line 235 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 235 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { if(yyvsp[-3]) { @@ -1612,7 +1612,7 @@ yyparse (void) break; case 27: /* $@5: %empty */ -#line 253 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 253 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { StringGrammarPtr ident = StringGrammarPtr::dynamicCast(yyvsp[-1]); StructPtr sp = StructPtr::dynamicCast(g_parse->findUserType(ident->v)); @@ -1627,14 +1627,14 @@ yyparse (void) break; case 28: /* key_def: TARS_KEY '[' scoped_name ',' $@5 key_members ']' */ -#line 264 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 264 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 1634 "tars.tab.cpp" break; case 29: /* key_members: TARS_IDENTIFIER */ -#line 272 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 272 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { StringGrammarPtr ident = StringGrammarPtr::dynamicCast(yyvsp[0]); StructPtr np = g_parse->getKeyStruct(); @@ -1651,7 +1651,7 @@ yyparse (void) break; case 30: /* key_members: key_members ',' TARS_IDENTIFIER */ -#line 285 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 285 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { StringGrammarPtr ident = StringGrammarPtr::dynamicCast(yyvsp[0]); StructPtr np = g_parse->getKeyStruct(); @@ -1668,7 +1668,7 @@ yyparse (void) break; case 31: /* @6: %empty */ -#line 304 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 304 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { StringGrammarPtr ident = StringGrammarPtr::dynamicCast(yyvsp[0]); @@ -1689,7 +1689,7 @@ yyparse (void) break; case 32: /* interface_def: interface_id @6 '{' interface_exports '}' */ -#line 321 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 321 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { if(yyvsp[-3]) { @@ -1705,7 +1705,7 @@ yyparse (void) break; case 33: /* interface_id: TARS_INTERFACE TARS_IDENTIFIER */ -#line 338 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 338 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { yyval = yyvsp[0]; } @@ -1713,7 +1713,7 @@ yyparse (void) break; case 34: /* interface_id: TARS_INTERFACE keyword */ -#line 342 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 342 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { StringGrammarPtr ident = StringGrammarPtr::dynamicCast(yyvsp[0]); g_parse->error("keyword `" + ident->v + "' cannot be used as interface name"); @@ -1723,21 +1723,21 @@ yyparse (void) break; case 35: /* interface_exports: interface_export ';' interface_exports */ -#line 353 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 353 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 1730 "tars.tab.cpp" break; case 36: /* interface_exports: error ';' interface_exports */ -#line 356 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 356 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 1737 "tars.tab.cpp" break; case 37: /* interface_exports: interface_export */ -#line 359 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 359 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { g_parse->error("`;' missing after definition"); } @@ -1745,14 +1745,14 @@ yyparse (void) break; case 38: /* interface_exports: %empty */ -#line 363 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 363 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 1752 "tars.tab.cpp" break; case 40: /* operation: operation_preamble parameters ')' */ -#line 377 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 377 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { if(yyvsp[-2]) { @@ -1768,7 +1768,7 @@ yyparse (void) break; case 41: /* operation_preamble: return_type TARS_OP */ -#line 394 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 394 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { TypePtr returnType = TypePtr::dynamicCast(yyvsp[-1]); StringGrammarPtr ident = StringGrammarPtr::dynamicCast(yyvsp[0]); @@ -1796,7 +1796,7 @@ yyparse (void) break; case 43: /* return_type: TARS_VOID */ -#line 424 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 424 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { yyval = 0; } @@ -1804,14 +1804,14 @@ yyparse (void) break; case 44: /* parameters: %empty */ -#line 434 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 434 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 1811 "tars.tab.cpp" break; case 45: /* parameters: type_id */ -#line 437 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 437 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { TypeIdPtr tsp = TypeIdPtr::dynamicCast(yyvsp[0]); @@ -1826,7 +1826,7 @@ yyparse (void) break; case 46: /* parameters: parameters ',' type_id */ -#line 448 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 448 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { TypeIdPtr tsp = TypeIdPtr::dynamicCast(yyvsp[0]); @@ -1841,7 +1841,7 @@ yyparse (void) break; case 47: /* parameters: out_qualifier type_id */ -#line 459 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 459 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { BoolGrammarPtr isOutParam = BoolGrammarPtr::dynamicCast(yyvsp[-1]); TypeIdPtr tsp = TypeIdPtr::dynamicCast(yyvsp[0]); @@ -1857,7 +1857,7 @@ yyparse (void) break; case 48: /* parameters: parameters ',' out_qualifier type_id */ -#line 471 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 471 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { BoolGrammarPtr isOutParam = BoolGrammarPtr::dynamicCast(yyvsp[-1]); TypeIdPtr tsp = TypeIdPtr::dynamicCast(yyvsp[0]); @@ -1873,7 +1873,7 @@ yyparse (void) break; case 49: /* parameters: routekey_qualifier type_id */ -#line 483 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 483 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { BoolGrammarPtr isRouteKeyParam = BoolGrammarPtr::dynamicCast(yyvsp[-1]); TypeIdPtr tsp = TypeIdPtr::dynamicCast(yyvsp[0]); @@ -1889,7 +1889,7 @@ yyparse (void) break; case 50: /* parameters: parameters ',' routekey_qualifier type_id */ -#line 495 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 495 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { BoolGrammarPtr isRouteKeyParam = BoolGrammarPtr::dynamicCast(yyvsp[-1]); TypeIdPtr tsp = TypeIdPtr::dynamicCast(yyvsp[0]); @@ -1905,7 +1905,7 @@ yyparse (void) break; case 51: /* parameters: out_qualifier */ -#line 507 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 507 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { g_parse->error("'out' must be defined with a type"); } @@ -1913,7 +1913,7 @@ yyparse (void) break; case 52: /* parameters: routekey_qualifier */ -#line 511 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 511 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { g_parse->error("'routekey' must be defined with a type"); } @@ -1921,7 +1921,7 @@ yyparse (void) break; case 53: /* routekey_qualifier: TARS_ROUTE_KEY */ -#line 520 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 520 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { BoolGrammarPtr routekey = new BoolGrammar; routekey->v = true; @@ -1931,7 +1931,7 @@ yyparse (void) break; case 54: /* out_qualifier: TARS_OUT */ -#line 531 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 531 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { BoolGrammarPtr out = new BoolGrammar; out->v = true; @@ -1941,7 +1941,7 @@ yyparse (void) break; case 55: /* @7: %empty */ -#line 542 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 542 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { StringGrammarPtr ident = StringGrammarPtr::dynamicCast(yyvsp[0]); NamespacePtr np = NamespacePtr::dynamicCast(g_parse->currentContainer()); @@ -1967,7 +1967,7 @@ yyparse (void) break; case 56: /* struct_def: struct_id @7 '{' struct_exports '}' */ -#line 564 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 564 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { if(yyvsp[-3]) { @@ -1986,7 +1986,7 @@ yyparse (void) break; case 57: /* struct_id: TARS_STRUCT TARS_IDENTIFIER */ -#line 584 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 584 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { yyval = yyvsp[0]; } @@ -1994,7 +1994,7 @@ yyparse (void) break; case 58: /* struct_id: TARS_STRUCT keyword */ -#line 588 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 588 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { StringGrammarPtr ident = StringGrammarPtr::dynamicCast(yyvsp[0]); @@ -2004,7 +2004,7 @@ yyparse (void) break; case 59: /* struct_id: TARS_STRUCT error */ -#line 594 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 594 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { g_parse->error("abstract declarator '' used as declaration"); } @@ -2012,7 +2012,7 @@ yyparse (void) break; case 60: /* struct_exports: data_member ';' struct_exports */ -#line 603 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 603 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } @@ -2020,7 +2020,7 @@ yyparse (void) break; case 61: /* struct_exports: data_member */ -#line 607 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 607 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { g_parse->error("';' missing after definition"); } @@ -2028,14 +2028,14 @@ yyparse (void) break; case 62: /* struct_exports: %empty */ -#line 611 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 611 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2035 "tars.tab.cpp" break; case 63: /* data_member: struct_type_id */ -#line 621 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 621 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { yyval = GrammarBasePtr::dynamicCast(yyvsp[0]); } @@ -2043,7 +2043,7 @@ yyparse (void) break; case 64: /* struct_type_id: TARS_CONST_INTEGER TARS_REQUIRE type_id */ -#line 630 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 630 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { StructPtr np = StructPtr::dynamicCast(g_parse->currentContainer()); if(np) @@ -2065,7 +2065,7 @@ yyparse (void) break; case 65: /* struct_type_id: TARS_CONST_INTEGER TARS_REQUIRE type_id '=' const_initializer */ -#line 648 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 648 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { StructPtr np = StructPtr::dynamicCast(g_parse->currentContainer()); if(np) @@ -2091,7 +2091,7 @@ yyparse (void) break; case 66: /* struct_type_id: TARS_CONST_INTEGER TARS_OPTIONAL type_id '=' const_initializer */ -#line 670 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 670 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { StructPtr np = StructPtr::dynamicCast(g_parse->currentContainer()); if(np) @@ -2117,7 +2117,7 @@ yyparse (void) break; case 67: /* struct_type_id: TARS_CONST_INTEGER TARS_OPTIONAL type_id */ -#line 692 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 692 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { StructPtr np = StructPtr::dynamicCast(g_parse->currentContainer()); if(np) @@ -2138,7 +2138,7 @@ yyparse (void) break; case 68: /* struct_type_id: TARS_REQUIRE type_id */ -#line 709 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 709 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { g_parse->error("struct member need 'tag'"); } @@ -2146,7 +2146,7 @@ yyparse (void) break; case 69: /* struct_type_id: TARS_OPTIONAL type_id */ -#line 713 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 713 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { g_parse->error("struct member need 'tag'"); } @@ -2154,7 +2154,7 @@ yyparse (void) break; case 70: /* struct_type_id: TARS_CONST_INTEGER type_id */ -#line 717 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 717 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { g_parse->error("struct member need 'require' or 'optional'"); } @@ -2162,7 +2162,7 @@ yyparse (void) break; case 71: /* struct_type_id: type_id */ -#line 721 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 721 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { g_parse->error("struct member need 'tag' or 'require' or 'optional'"); } @@ -2170,7 +2170,7 @@ yyparse (void) break; case 72: /* const_initializer: TARS_CONST_INTEGER */ -#line 730 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 730 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { IntergerGrammarPtr intVal = IntergerGrammarPtr::dynamicCast(yyvsp[0]); ostringstream sstr; @@ -2184,7 +2184,7 @@ yyparse (void) break; case 73: /* const_initializer: TARS_CONST_FLOAT */ -#line 740 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 740 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { FloatGrammarPtr floatVal = FloatGrammarPtr::dynamicCast(yyvsp[0]); ostringstream sstr; @@ -2198,7 +2198,7 @@ yyparse (void) break; case 74: /* const_initializer: TARS_STRING_LITERAL */ -#line 750 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 750 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { StringGrammarPtr ident = StringGrammarPtr::dynamicCast(yyvsp[0]); ConstGrammarPtr c = new ConstGrammar(); @@ -2210,7 +2210,7 @@ yyparse (void) break; case 75: /* const_initializer: TARS_FALSE */ -#line 758 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 758 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { StringGrammarPtr ident = StringGrammarPtr::dynamicCast(yyvsp[0]); ConstGrammarPtr c = new ConstGrammar(); @@ -2222,7 +2222,7 @@ yyparse (void) break; case 76: /* const_initializer: TARS_TRUE */ -#line 766 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 766 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { StringGrammarPtr ident = StringGrammarPtr::dynamicCast(yyvsp[0]); ConstGrammarPtr c = new ConstGrammar(); @@ -2234,7 +2234,7 @@ yyparse (void) break; case 77: /* const_initializer: TARS_IDENTIFIER */ -#line 774 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 774 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { StringGrammarPtr ident = StringGrammarPtr::dynamicCast(yyvsp[0]); @@ -2251,7 +2251,7 @@ yyparse (void) break; case 78: /* const_initializer: scoped_name TARS_SCOPE_DELIMITER TARS_IDENTIFIER */ -#line 787 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 787 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { StringGrammarPtr scoped = StringGrammarPtr::dynamicCast(yyvsp[-2]); @@ -2270,7 +2270,7 @@ yyparse (void) break; case 79: /* const_def: TARS_CONST type_id '=' const_initializer */ -#line 807 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 807 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { NamespacePtr np = NamespacePtr::dynamicCast(g_parse->currentContainer()); if(!np) @@ -2287,7 +2287,7 @@ yyparse (void) break; case 80: /* type_id: type TARS_IDENTIFIER */ -#line 825 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 825 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { TypePtr type = TypePtr::dynamicCast(yyvsp[-1]); StringGrammarPtr ident = StringGrammarPtr::dynamicCast(yyvsp[0]); @@ -2300,7 +2300,7 @@ yyparse (void) break; case 81: /* type_id: type TARS_IDENTIFIER '[' TARS_CONST_INTEGER ']' */ -#line 834 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 834 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { TypePtr type = g_parse->createVector(TypePtr::dynamicCast(yyvsp[-4])); IntergerGrammarPtr iPtrSize = IntergerGrammarPtr::dynamicCast(yyvsp[-1]); @@ -2314,7 +2314,7 @@ yyparse (void) break; case 82: /* type_id: type '*' TARS_IDENTIFIER */ -#line 844 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 844 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { TypePtr type = g_parse->createVector(TypePtr::dynamicCast(yyvsp[-2])); //IntergerGrammarPtr iPtrSize = IntergerGrammarPtr::dynamicCast($4); @@ -2328,7 +2328,7 @@ yyparse (void) break; case 83: /* type_id: type TARS_IDENTIFIER ':' TARS_CONST_INTEGER */ -#line 854 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 854 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { TypePtr type = TypePtr::dynamicCast(yyvsp[-3]); StringGrammarPtr ident = StringGrammarPtr::dynamicCast(yyvsp[-2]); @@ -2341,7 +2341,7 @@ yyparse (void) break; case 84: /* type_id: type keyword */ -#line 863 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 863 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { StringGrammarPtr ident = StringGrammarPtr::dynamicCast(yyvsp[0]); g_parse->error("keyword `" + ident->v + "' cannot be used as data member name"); @@ -2350,7 +2350,7 @@ yyparse (void) break; case 85: /* type_id: type */ -#line 868 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 868 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { g_parse->error("missing data member name"); } @@ -2358,7 +2358,7 @@ yyparse (void) break; case 86: /* type_id: error */ -#line 872 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 872 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { g_parse->error("unkown type"); } @@ -2366,7 +2366,7 @@ yyparse (void) break; case 87: /* type: type_no ':' TARS_CONST_INTEGER */ -#line 881 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 881 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { TypePtr type = TypePtr::dynamicCast(yyvsp[-2]); @@ -2379,7 +2379,7 @@ yyparse (void) break; case 88: /* type: type_no */ -#line 890 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 890 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { yyval = yyvsp[0]; } @@ -2387,7 +2387,7 @@ yyparse (void) break; case 89: /* type: type_no ':' error */ -#line 894 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 894 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { g_parse->error("array missing size"); } @@ -2395,7 +2395,7 @@ yyparse (void) break; case 90: /* type_no: TARS_BOOL */ -#line 903 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 903 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { yyval = g_parse->createBuiltin(Builtin::KindBool); } @@ -2403,7 +2403,7 @@ yyparse (void) break; case 91: /* type_no: TARS_BYTE */ -#line 907 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 907 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { yyval = g_parse->createBuiltin(Builtin::KindByte); } @@ -2411,7 +2411,7 @@ yyparse (void) break; case 92: /* type_no: TARS_UNSIGNED TARS_BYTE */ -#line 911 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 911 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { yyval = g_parse->createBuiltin(Builtin::KindShort,true); } @@ -2419,7 +2419,7 @@ yyparse (void) break; case 93: /* type_no: TARS_SHORT */ -#line 915 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 915 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { yyval = g_parse->createBuiltin(Builtin::KindShort); } @@ -2427,7 +2427,7 @@ yyparse (void) break; case 94: /* type_no: TARS_UNSIGNED TARS_SHORT */ -#line 919 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 919 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { yyval = g_parse->createBuiltin(Builtin::KindInt,true); } @@ -2435,7 +2435,7 @@ yyparse (void) break; case 95: /* type_no: TARS_INT */ -#line 923 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 923 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { yyval = g_parse->createBuiltin(Builtin::KindInt); } @@ -2443,7 +2443,7 @@ yyparse (void) break; case 96: /* type_no: TARS_UNSIGNED TARS_INT */ -#line 927 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 927 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { yyval = g_parse->createBuiltin(Builtin::KindLong,true); } @@ -2451,7 +2451,7 @@ yyparse (void) break; case 97: /* type_no: TARS_LONG */ -#line 931 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 931 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { yyval = g_parse->createBuiltin(Builtin::KindLong); } @@ -2459,7 +2459,7 @@ yyparse (void) break; case 98: /* type_no: TARS_FLOAT */ -#line 935 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 935 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { yyval = g_parse->createBuiltin(Builtin::KindFloat); } @@ -2467,7 +2467,7 @@ yyparse (void) break; case 99: /* type_no: TARS_DOUBLE */ -#line 939 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 939 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { yyval = g_parse->createBuiltin(Builtin::KindDouble); } @@ -2475,7 +2475,7 @@ yyparse (void) break; case 100: /* type_no: TARS_STRING */ -#line 943 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 943 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { yyval = g_parse->createBuiltin(Builtin::KindString); } @@ -2483,7 +2483,7 @@ yyparse (void) break; case 101: /* type_no: vector */ -#line 947 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 947 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { yyval = GrammarBasePtr::dynamicCast(yyvsp[0]); } @@ -2491,7 +2491,7 @@ yyparse (void) break; case 102: /* type_no: map */ -#line 951 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 951 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { yyval = GrammarBasePtr::dynamicCast(yyvsp[0]); } @@ -2499,7 +2499,7 @@ yyparse (void) break; case 103: /* type_no: scoped_name */ -#line 955 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 955 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { StringGrammarPtr ident = StringGrammarPtr::dynamicCast(yyvsp[0]); TypePtr sp = g_parse->findUserType(ident->v); @@ -2516,7 +2516,7 @@ yyparse (void) break; case 104: /* vector: TARS_VECTOR '<' type '>' */ -#line 973 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 973 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { yyval = GrammarBasePtr::dynamicCast(g_parse->createVector(TypePtr::dynamicCast(yyvsp[-1]))); } @@ -2524,7 +2524,7 @@ yyparse (void) break; case 105: /* vector: TARS_VECTOR '<' error */ -#line 977 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 977 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { g_parse->error("vector error"); } @@ -2532,7 +2532,7 @@ yyparse (void) break; case 106: /* vector: TARS_VECTOR '<' type error */ -#line 981 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 981 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { g_parse->error("vector missing '>'"); } @@ -2540,7 +2540,7 @@ yyparse (void) break; case 107: /* vector: TARS_VECTOR error */ -#line 985 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 985 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { g_parse->error("vector missing type"); } @@ -2548,7 +2548,7 @@ yyparse (void) break; case 108: /* map: TARS_MAP '<' type ',' type '>' */ -#line 994 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 994 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { yyval = GrammarBasePtr::dynamicCast(g_parse->createMap(TypePtr::dynamicCast(yyvsp[-3]), TypePtr::dynamicCast(yyvsp[-1]))); } @@ -2556,7 +2556,7 @@ yyparse (void) break; case 109: /* map: TARS_MAP '<' error */ -#line 998 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 998 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { g_parse->error("map error"); } @@ -2564,14 +2564,14 @@ yyparse (void) break; case 110: /* scoped_name: TARS_IDENTIFIER */ -#line 1007 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1007 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2571 "tars.tab.cpp" break; case 111: /* scoped_name: TARS_SCOPE_DELIMITER TARS_IDENTIFIER */ -#line 1010 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1010 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { StringGrammarPtr ident = StringGrammarPtr::dynamicCast(yyvsp[0]); ident->v = "::" + ident->v; @@ -2581,7 +2581,7 @@ yyparse (void) break; case 112: /* scoped_name: scoped_name TARS_SCOPE_DELIMITER TARS_IDENTIFIER */ -#line 1016 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1016 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { StringGrammarPtr scoped = StringGrammarPtr::dynamicCast(yyvsp[-2]); StringGrammarPtr ident = StringGrammarPtr::dynamicCast(yyvsp[0]); @@ -2593,175 +2593,175 @@ yyparse (void) break; case 113: /* keyword: TARS_STRUCT */ -#line 1029 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1029 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2600 "tars.tab.cpp" break; case 114: /* keyword: TARS_VOID */ -#line 1032 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1032 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2607 "tars.tab.cpp" break; case 115: /* keyword: TARS_BOOL */ -#line 1035 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1035 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2614 "tars.tab.cpp" break; case 116: /* keyword: TARS_BYTE */ -#line 1038 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1038 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2621 "tars.tab.cpp" break; case 117: /* keyword: TARS_SHORT */ -#line 1041 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1041 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2628 "tars.tab.cpp" break; case 118: /* keyword: TARS_INT */ -#line 1044 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1044 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2635 "tars.tab.cpp" break; case 119: /* keyword: TARS_FLOAT */ -#line 1047 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1047 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2642 "tars.tab.cpp" break; case 120: /* keyword: TARS_DOUBLE */ -#line 1050 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1050 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2649 "tars.tab.cpp" break; case 121: /* keyword: TARS_STRING */ -#line 1053 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1053 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2656 "tars.tab.cpp" break; case 122: /* keyword: TARS_VECTOR */ -#line 1056 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1056 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2663 "tars.tab.cpp" break; case 123: /* keyword: TARS_KEY */ -#line 1059 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1059 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2670 "tars.tab.cpp" break; case 124: /* keyword: TARS_MAP */ -#line 1062 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1062 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2677 "tars.tab.cpp" break; case 125: /* keyword: TARS_NAMESPACE */ -#line 1065 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1065 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2684 "tars.tab.cpp" break; case 126: /* keyword: TARS_INTERFACE */ -#line 1068 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1068 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2691 "tars.tab.cpp" break; case 127: /* keyword: TARS_OUT */ -#line 1071 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1071 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2698 "tars.tab.cpp" break; case 128: /* keyword: TARS_REQUIRE */ -#line 1074 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1074 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2705 "tars.tab.cpp" break; case 129: /* keyword: TARS_OPTIONAL */ -#line 1077 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1077 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2712 "tars.tab.cpp" break; case 130: /* keyword: TARS_CONST_INTEGER */ -#line 1080 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1080 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2719 "tars.tab.cpp" break; case 131: /* keyword: TARS_CONST_FLOAT */ -#line 1083 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1083 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2726 "tars.tab.cpp" break; case 132: /* keyword: TARS_FALSE */ -#line 1086 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1086 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2733 "tars.tab.cpp" break; case 133: /* keyword: TARS_TRUE */ -#line 1089 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1089 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2740 "tars.tab.cpp" break; case 134: /* keyword: TARS_STRING_LITERAL */ -#line 1092 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1092 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2747 "tars.tab.cpp" break; case 135: /* keyword: TARS_CONST */ -#line 1095 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1095 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2754 "tars.tab.cpp" break; case 136: /* keyword: TARS_ENUM */ -#line 1098 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1098 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2761 "tars.tab.cpp" break; case 137: /* keyword: TARS_UNSIGNED */ -#line 1101 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1101 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" { } #line 2768 "tars.tab.cpp" @@ -2962,7 +2962,7 @@ yyparse (void) return yyresult; } -#line 1105 "/Volumes/MyData/centos/Tars/framework/tarscpp/tools/tarsgrammar/tars.y" +#line 1105 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" diff --git a/unit-test/rpc/test_async_rpc.cpp b/unit-test/rpc/test_async_rpc.cpp index 208986fb..8478a5c3 100755 --- a/unit-test/rpc/test_async_rpc.cpp +++ b/unit-test/rpc/test_async_rpc.cpp @@ -3,6 +3,8 @@ TEST_F(HelloTest, rpcASyncGlobalCommunicator) { + cout << TC_Thread::CURRENT_THREADID() << endl; + shared_ptr c = getCommunicator(); transGlobalCommunicator([&](Communicator *comm){ diff --git a/util/src/tc_thread.cpp b/util/src/tc_thread.cpp index c6c43f7a..8ac8d54a 100644 --- a/util/src/tc_thread.cpp +++ b/util/src/tc_thread.cpp @@ -249,14 +249,14 @@ bool TC_Thread::isAlive() const return _running; } - uint64_t TC_Thread::CURRENT_THREADID() +uint64_t TC_Thread::CURRENT_THREADID() { static thread_local uint64_t threadId = 0; if(threadId == 0 ) { std::stringstream ss; ss << std::this_thread::get_id(); - threadId = TC_Common::strto(ss.str().c_str()); + threadId = std::strtoll(ss.str().c_str(), NULL, 0); } return threadId; }