From 40ca80bfedbceadfde9a93cd9dc291fe1d4e509f Mon Sep 17 00:00:00 2001 From: jarodruan Date: Wed, 19 Feb 2020 16:04:43 +0800 Subject: [PATCH] fix windows vector is empty, &buff[0] will crash --- examples/HttpDemo/HttpServer/HttpImp.cpp | 2 +- .../PushDemo/PushClient/TestRecvThread.cpp | 4 +- servant/libservant/ServantHandle.cpp | 2 +- servant/script/http_demo/DemoServantImp.cpp | 2 +- servant/tup/Tars.h | 4 +- tools/tarsparse/tars.lex.cpp | 36 +-- tools/tarsparse/tars.tab.cpp | 266 +++++++++--------- 7 files changed, 157 insertions(+), 159 deletions(-) diff --git a/examples/HttpDemo/HttpServer/HttpImp.cpp b/examples/HttpDemo/HttpServer/HttpImp.cpp index f4f3922..ef4e53b 100644 --- a/examples/HttpDemo/HttpServer/HttpImp.cpp +++ b/examples/HttpDemo/HttpServer/HttpImp.cpp @@ -38,7 +38,7 @@ int HttpImp::doRequest(TarsCurrentPtr current, vector &buffer) TC_HttpRequest request; vector v = current->getRequestBuffer(); string sBuf; - sBuf.assign(&v[0],v.size()); + sBuf.assign(v.data(),v.size()); request.decode(sBuf); TC_HttpResponse rsp; diff --git a/examples/PushDemo/PushClient/TestRecvThread.cpp b/examples/PushDemo/PushClient/TestRecvThread.cpp index 8d7f434..dd35a75 100755 --- a/examples/PushDemo/PushClient/TestRecvThread.cpp +++ b/examples/PushDemo/PushClient/TestRecvThread.cpp @@ -90,14 +90,14 @@ int TestPushCallBack::onDispatch(ReqMessagePtr msg) if(msg->request.sFuncName == "printResult") { string sRet; - sRet.assign(&(msg->response->sBuffer[0]), msg->response->sBuffer.size()); + sRet.assign(msg->response->sBuffer.data(), msg->response->sBuffer.size()); printResult(msg->request.iRequestId, sRet); return 0; } else if(msg->response->iRequestId == 0) { string sRet; - sRet.assign(&(msg->response->sBuffer[0]), msg->response->sBuffer.size()); + sRet.assign(msg->response->sBuffer.data(), msg->response->sBuffer.size()); printPushInfo(sRet); return 0; } diff --git a/servant/libservant/ServantHandle.cpp b/servant/libservant/ServantHandle.cpp index 07b68a7..a5b5bb2 100644 --- a/servant/libservant/ServantHandle.cpp +++ b/servant/libservant/ServantHandle.cpp @@ -923,7 +923,7 @@ void ServantHandle::handleNoTarsProtocol(const TarsCurrentPtr ¤t) if (current->isResponse()) { - current->sendResponse((const char*)(&buffer[0]), buffer.size()); + current->sendResponse((const char*)buffer.data(), buffer.size()); } } diff --git a/servant/script/http_demo/DemoServantImp.cpp b/servant/script/http_demo/DemoServantImp.cpp index f06b1c1..0ac5668 100644 --- a/servant/script/http_demo/DemoServantImp.cpp +++ b/servant/script/http_demo/DemoServantImp.cpp @@ -25,7 +25,7 @@ int DemoServantImp::doRequest(TarsCurrentPtr current, vector &buffer) // parse request header vector v = current->getRequestBuffer(); string sBuf; - sBuf.assign(&v[0], v.size()); + sBuf.assign(v.data(), v.size()); req.decode(sBuf); int ret = doRequest(req, rsp); diff --git a/servant/tup/Tars.h b/servant/tup/Tars.h index 9ff0953..75d2f64 100755 --- a/servant/tup/Tars.h +++ b/servant/tup/Tars.h @@ -783,10 +783,8 @@ namespace tars #ifndef GEN_PYTHON_MASK //内存分配器 _reserve = [](BufferWriterString &os, size_t len) { - // os._buffer.reserve(len); os._buffer.resize(len); - // cout << "_reserve:" << len << endl; - return os._buffer.data(); + return (char*)os._buffer.data(); } ; #endif } diff --git a/tools/tarsparse/tars.lex.cpp b/tools/tarsparse/tars.lex.cpp index 36dbbf3..49e0636 100644 --- a/tools/tarsparse/tars.lex.cpp +++ b/tools/tarsparse/tars.lex.cpp @@ -513,7 +513,7 @@ int yy_flex_debug = 0; #define YY_MORE_ADJ 0 #define YY_RESTORE_YY_MORE_OFFSET char *yytext; -#line 1 "/Users/jarod/centos/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. * @@ -529,7 +529,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 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.l" +#line 20 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.l" #include #include #include @@ -742,7 +742,7 @@ YY_DECL register char *yy_cp, *yy_bp; register int yy_act; -#line 67 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.l" +#line 67 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.l" #line 749 "tars.lex.cpp" @@ -840,12 +840,12 @@ do_action: /* This label is used only to access EOF actions. */ case 1: YY_RULE_SETUP -#line 69 "/Users/jarod/centos/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 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.l" +#line 71 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.l" { if ( include_file_stack_ptr >= MAX_INCLUDE_DEPTH ) { @@ -878,7 +878,7 @@ YY_RULE_SETUP YY_BREAK case YY_STATE_EOF(INITIAL): case YY_STATE_EOF(INCL): -#line 101 "/Users/jarod/centos/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 ) @@ -897,14 +897,14 @@ case YY_STATE_EOF(INCL): YY_BREAK case 3: YY_RULE_SETUP -#line 117 "/Users/jarod/centos/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 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.l" +#line 121 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.l" { // C++ comment bool e = false; @@ -925,7 +925,7 @@ YY_RULE_SETUP YY_BREAK case 5: YY_RULE_SETUP -#line 139 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.l" +#line 139 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.l" { // C comment bool e = false; @@ -976,7 +976,7 @@ YY_RULE_SETUP YY_BREAK case 6: YY_RULE_SETUP -#line 187 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.l" +#line 187 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.l" { StringGrammarPtr ident = new StringGrammar; ident->v = yytext; @@ -987,7 +987,7 @@ YY_RULE_SETUP case 7: /* rule 7 can match eol */ YY_RULE_SETUP -#line 194 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.l" +#line 194 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.l" { StringGrammarPtr ident = new StringGrammar; ident->v = yytext; @@ -1000,7 +1000,7 @@ YY_RULE_SETUP YY_BREAK case 8: YY_RULE_SETUP -#line 204 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.l" +#line 204 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.l" { StringGrammarPtr str = new StringGrammar; bool e = false; @@ -1115,7 +1115,7 @@ YY_RULE_SETUP YY_BREAK case 9: YY_RULE_SETUP -#line 316 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.l" +#line 316 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.l" { errno = 0; IntergerGrammarPtr ptr = new IntergerGrammar; @@ -1140,7 +1140,7 @@ YY_RULE_SETUP YY_BREAK case 10: YY_RULE_SETUP -#line 338 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.l" +#line 338 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.l" { errno = 0; FloatGrammarPtr ptr = new FloatGrammar; @@ -1175,7 +1175,7 @@ YY_RULE_SETUP case 11: /* rule 11 can match eol */ YY_RULE_SETUP -#line 369 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.l" +#line 369 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.l" { if(yytext[0] == '\n') { @@ -1185,7 +1185,7 @@ YY_RULE_SETUP YY_BREAK case 12: YY_RULE_SETUP -#line 376 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.l" +#line 376 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.l" { if(yytext[0] < 32 || yytext[0] > 126) { @@ -1204,7 +1204,7 @@ YY_RULE_SETUP YY_BREAK case 13: YY_RULE_SETUP -#line 392 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.l" +#line 392 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.l" ECHO; YY_BREAK #line 1211 "tars.lex.cpp" @@ -2214,7 +2214,7 @@ void yyfree (void * ptr ) #define YYTABLES_NAME "yytables" -#line 392 "/Users/jarod/centos/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 64378e0..411c4e1 100644 --- a/tools/tarsparse/tars.tab.cpp +++ b/tools/tarsparse/tars.tab.cpp @@ -65,7 +65,7 @@ /* First part of user prologue. */ -#line 17 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:338 */ +#line 17 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:338 */ #include #include @@ -1457,14 +1457,14 @@ yyreduce: switch (yyn) { case 3: -#line 75 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 75 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { } #line 1464 "tars.tab.cpp" /* yacc.c:1660 */ break; case 5: -#line 79 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 79 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { yyerrok; } @@ -1472,7 +1472,7 @@ yyreduce: break; case 7: -#line 84 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 84 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { g_parse->error("`;' missing after definition"); } @@ -1480,14 +1480,14 @@ yyreduce: break; case 8: -#line 88 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 88 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { } #line 1487 "tars.tab.cpp" /* yacc.c:1660 */ break; case 9: -#line 96 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 96 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { assert((yyvsp[0]) == 0 || NamespacePtr::dynamicCast((yyvsp[0]))); } @@ -1495,7 +1495,7 @@ yyreduce: break; case 10: -#line 100 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 100 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { assert((yyvsp[0]) == 0 || InterfacePtr::dynamicCast((yyvsp[0]))); } @@ -1503,7 +1503,7 @@ yyreduce: break; case 11: -#line 104 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 104 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { assert((yyvsp[0]) == 0 || StructPtr::dynamicCast((yyvsp[0]))); } @@ -1511,14 +1511,14 @@ yyreduce: break; case 12: -#line 108 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 108 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { } #line 1518 "tars.tab.cpp" /* yacc.c:1660 */ break; case 13: -#line 111 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 111 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { assert((yyvsp[0]) == 0 || EnumPtr::dynamicCast((yyvsp[0]))); } @@ -1526,7 +1526,7 @@ yyreduce: break; case 14: -#line 115 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 115 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { assert((yyvsp[0]) == 0 || ConstPtr::dynamicCast((yyvsp[0]))); } @@ -1534,7 +1534,7 @@ yyreduce: break; case 15: -#line 124 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 124 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { (yyval) = (yyvsp[0]); } @@ -1542,7 +1542,7 @@ yyreduce: break; case 16: -#line 128 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 128 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { if((yyvsp[-2])) { @@ -1560,7 +1560,7 @@ yyreduce: break; case 17: -#line 147 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 147 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { NamespacePtr c = NamespacePtr::dynamicCast(g_parse->currentContainer()); if(!c) @@ -1577,7 +1577,7 @@ yyreduce: break; case 18: -#line 160 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 160 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { StringGrammarPtr ident = StringGrammarPtr::dynamicCast((yyvsp[0])); g_parse->error("keyword `" + ident->v + "' cannot be used as enumeration name"); @@ -1587,7 +1587,7 @@ yyreduce: break; case 19: -#line 171 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 171 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { (yyval) = (yyvsp[-1]); } @@ -1595,14 +1595,14 @@ yyreduce: break; case 20: -#line 175 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 175 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { } #line 1602 "tars.tab.cpp" /* yacc.c:1660 */ break; case 21: -#line 183 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 183 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { TypePtr type = TypePtr::dynamicCast(g_parse->createBuiltin(Builtin::KindLong)); StringGrammarPtr ident = StringGrammarPtr::dynamicCast((yyvsp[0])); @@ -1617,7 +1617,7 @@ yyreduce: break; case 22: -#line 194 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 194 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { StringGrammarPtr ident = StringGrammarPtr::dynamicCast((yyvsp[0])); g_parse->error("keyword `" + ident->v + "' cannot be used as enumerator"); @@ -1626,7 +1626,7 @@ yyreduce: break; case 23: -#line 199 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 199 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { TypePtr type = TypePtr::dynamicCast(g_parse->createBuiltin(Builtin::KindLong)); StringGrammarPtr ident = StringGrammarPtr::dynamicCast((yyvsp[-2])); @@ -1643,14 +1643,14 @@ yyreduce: break; case 24: -#line 212 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 212 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { } #line 1650 "tars.tab.cpp" /* yacc.c:1660 */ break; case 25: -#line 220 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 220 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { StringGrammarPtr ident = StringGrammarPtr::dynamicCast((yyvsp[0])); ContainerPtr c = g_parse->currentContainer(); @@ -1669,7 +1669,7 @@ yyreduce: break; case 26: -#line 235 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 235 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { if((yyvsp[-3])) { @@ -1685,7 +1685,7 @@ yyreduce: break; case 27: -#line 253 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 253 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { StringGrammarPtr ident = StringGrammarPtr::dynamicCast((yyvsp[-1])); StructPtr sp = StructPtr::dynamicCast(g_parse->findUserType(ident->v)); @@ -1700,14 +1700,14 @@ yyreduce: break; case 28: -#line 264 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 264 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { } #line 1707 "tars.tab.cpp" /* yacc.c:1660 */ break; case 29: -#line 272 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 272 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { StringGrammarPtr ident = StringGrammarPtr::dynamicCast((yyvsp[0])); StructPtr np = g_parse->getKeyStruct(); @@ -1724,7 +1724,7 @@ yyreduce: break; case 30: -#line 285 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 285 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { StringGrammarPtr ident = StringGrammarPtr::dynamicCast((yyvsp[0])); StructPtr np = g_parse->getKeyStruct(); @@ -1741,7 +1741,7 @@ yyreduce: break; case 31: -#line 304 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 304 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { StringGrammarPtr ident = StringGrammarPtr::dynamicCast((yyvsp[0])); @@ -1762,7 +1762,7 @@ yyreduce: break; case 32: -#line 321 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 321 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { if((yyvsp[-3])) { @@ -1778,7 +1778,7 @@ yyreduce: break; case 33: -#line 338 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 338 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { (yyval) = (yyvsp[0]); } @@ -1786,7 +1786,7 @@ yyreduce: break; case 34: -#line 342 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 342 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { StringGrammarPtr ident = StringGrammarPtr::dynamicCast((yyvsp[0])); g_parse->error("keyword `" + ident->v + "' cannot be used as interface name"); @@ -1796,21 +1796,21 @@ yyreduce: break; case 35: -#line 353 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 353 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { } #line 1803 "tars.tab.cpp" /* yacc.c:1660 */ break; case 36: -#line 356 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 356 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { } #line 1810 "tars.tab.cpp" /* yacc.c:1660 */ break; case 37: -#line 359 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 359 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { g_parse->error("`;' missing after definition"); } @@ -1818,14 +1818,14 @@ yyreduce: break; case 38: -#line 363 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 363 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { } #line 1825 "tars.tab.cpp" /* yacc.c:1660 */ break; case 40: -#line 377 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 377 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { if((yyvsp[-2])) { @@ -1841,7 +1841,7 @@ yyreduce: break; case 41: -#line 394 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 394 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { TypePtr returnType = TypePtr::dynamicCast((yyvsp[-1])); StringGrammarPtr ident = StringGrammarPtr::dynamicCast((yyvsp[0])); @@ -1869,7 +1869,7 @@ yyreduce: break; case 43: -#line 424 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 424 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { (yyval) = 0; } @@ -1877,14 +1877,14 @@ yyreduce: break; case 44: -#line 434 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 434 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { } #line 1884 "tars.tab.cpp" /* yacc.c:1660 */ break; case 45: -#line 437 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 437 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { TypeIdPtr tsp = TypeIdPtr::dynamicCast((yyvsp[0])); @@ -1899,7 +1899,7 @@ yyreduce: break; case 46: -#line 448 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 448 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { TypeIdPtr tsp = TypeIdPtr::dynamicCast((yyvsp[0])); @@ -1914,7 +1914,7 @@ yyreduce: break; case 47: -#line 459 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 459 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { BoolGrammarPtr isOutParam = BoolGrammarPtr::dynamicCast((yyvsp[-1])); TypeIdPtr tsp = TypeIdPtr::dynamicCast((yyvsp[0])); @@ -1930,7 +1930,7 @@ yyreduce: break; case 48: -#line 471 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 471 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { BoolGrammarPtr isOutParam = BoolGrammarPtr::dynamicCast((yyvsp[-1])); TypeIdPtr tsp = TypeIdPtr::dynamicCast((yyvsp[0])); @@ -1946,7 +1946,7 @@ yyreduce: break; case 49: -#line 483 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 483 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { BoolGrammarPtr isRouteKeyParam = BoolGrammarPtr::dynamicCast((yyvsp[-1])); TypeIdPtr tsp = TypeIdPtr::dynamicCast((yyvsp[0])); @@ -1962,7 +1962,7 @@ yyreduce: break; case 50: -#line 495 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 495 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { BoolGrammarPtr isRouteKeyParam = BoolGrammarPtr::dynamicCast((yyvsp[-1])); TypeIdPtr tsp = TypeIdPtr::dynamicCast((yyvsp[0])); @@ -1978,7 +1978,7 @@ yyreduce: break; case 51: -#line 507 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 507 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { g_parse->error("'out' must be defined with a type"); } @@ -1986,7 +1986,7 @@ yyreduce: break; case 52: -#line 511 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 511 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { g_parse->error("'routekey' must be defined with a type"); } @@ -1994,7 +1994,7 @@ yyreduce: break; case 53: -#line 520 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 520 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { BoolGrammarPtr routekey = new BoolGrammar; routekey->v = true; @@ -2004,7 +2004,7 @@ yyreduce: break; case 54: -#line 531 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 531 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { BoolGrammarPtr out = new BoolGrammar; out->v = true; @@ -2014,7 +2014,7 @@ yyreduce: break; case 55: -#line 542 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 542 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { StringGrammarPtr ident = StringGrammarPtr::dynamicCast((yyvsp[0])); NamespacePtr np = NamespacePtr::dynamicCast(g_parse->currentContainer()); @@ -2040,7 +2040,7 @@ yyreduce: break; case 56: -#line 564 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 564 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { if((yyvsp[-3])) { @@ -2059,7 +2059,7 @@ yyreduce: break; case 57: -#line 584 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 584 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { (yyval) = (yyvsp[0]); } @@ -2067,7 +2067,7 @@ yyreduce: break; case 58: -#line 588 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 588 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { StringGrammarPtr ident = StringGrammarPtr::dynamicCast((yyvsp[0])); @@ -2077,7 +2077,7 @@ yyreduce: break; case 59: -#line 594 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 594 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { g_parse->error("abstract declarator '' used as declaration"); } @@ -2085,7 +2085,7 @@ yyreduce: break; case 60: -#line 603 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 603 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { } @@ -2093,7 +2093,7 @@ yyreduce: break; case 61: -#line 607 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 607 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { g_parse->error("';' missing after definition"); } @@ -2101,14 +2101,14 @@ yyreduce: break; case 62: -#line 611 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 611 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { } #line 2108 "tars.tab.cpp" /* yacc.c:1660 */ break; case 63: -#line 621 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 621 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { (yyval) = GrammarBasePtr::dynamicCast((yyvsp[0])); } @@ -2116,7 +2116,7 @@ yyreduce: break; case 64: -#line 630 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 630 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { StructPtr np = StructPtr::dynamicCast(g_parse->currentContainer()); if(np) @@ -2138,7 +2138,7 @@ yyreduce: break; case 65: -#line 648 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 648 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { StructPtr np = StructPtr::dynamicCast(g_parse->currentContainer()); if(np) @@ -2164,7 +2164,7 @@ yyreduce: break; case 66: -#line 670 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 670 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { StructPtr np = StructPtr::dynamicCast(g_parse->currentContainer()); if(np) @@ -2190,7 +2190,7 @@ yyreduce: break; case 67: -#line 692 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 692 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { StructPtr np = StructPtr::dynamicCast(g_parse->currentContainer()); if(np) @@ -2211,7 +2211,7 @@ yyreduce: break; case 68: -#line 709 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 709 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { g_parse->error("struct member need 'tag'"); } @@ -2219,7 +2219,7 @@ yyreduce: break; case 69: -#line 713 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 713 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { g_parse->error("struct member need 'tag'"); } @@ -2227,7 +2227,7 @@ yyreduce: break; case 70: -#line 717 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 717 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { g_parse->error("struct member need 'require' or 'optional'"); } @@ -2235,7 +2235,7 @@ yyreduce: break; case 71: -#line 721 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 721 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { g_parse->error("struct member need 'tag' or 'require' or 'optional'"); } @@ -2243,7 +2243,7 @@ yyreduce: break; case 72: -#line 730 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 730 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { IntergerGrammarPtr intVal = IntergerGrammarPtr::dynamicCast((yyvsp[0])); ostringstream sstr; @@ -2257,7 +2257,7 @@ yyreduce: break; case 73: -#line 740 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 740 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { FloatGrammarPtr floatVal = FloatGrammarPtr::dynamicCast((yyvsp[0])); ostringstream sstr; @@ -2271,7 +2271,7 @@ yyreduce: break; case 74: -#line 750 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 750 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { StringGrammarPtr ident = StringGrammarPtr::dynamicCast((yyvsp[0])); ConstGrammarPtr c = new ConstGrammar(); @@ -2283,7 +2283,7 @@ yyreduce: break; case 75: -#line 758 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 758 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { StringGrammarPtr ident = StringGrammarPtr::dynamicCast((yyvsp[0])); ConstGrammarPtr c = new ConstGrammar(); @@ -2295,7 +2295,7 @@ yyreduce: break; case 76: -#line 766 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 766 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { StringGrammarPtr ident = StringGrammarPtr::dynamicCast((yyvsp[0])); ConstGrammarPtr c = new ConstGrammar(); @@ -2307,7 +2307,7 @@ yyreduce: break; case 77: -#line 774 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 774 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { StringGrammarPtr ident = StringGrammarPtr::dynamicCast((yyvsp[0])); @@ -2324,7 +2324,7 @@ yyreduce: break; case 78: -#line 787 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 787 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { StringGrammarPtr scoped = StringGrammarPtr::dynamicCast((yyvsp[-2])); @@ -2343,7 +2343,7 @@ yyreduce: break; case 79: -#line 807 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 807 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { NamespacePtr np = NamespacePtr::dynamicCast(g_parse->currentContainer()); if(!np) @@ -2360,7 +2360,7 @@ yyreduce: break; case 80: -#line 825 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 825 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { TypePtr type = TypePtr::dynamicCast((yyvsp[-1])); StringGrammarPtr ident = StringGrammarPtr::dynamicCast((yyvsp[0])); @@ -2373,7 +2373,7 @@ yyreduce: break; case 81: -#line 834 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 834 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { TypePtr type = g_parse->createVector(TypePtr::dynamicCast((yyvsp[-4]))); IntergerGrammarPtr iPtrSize = IntergerGrammarPtr::dynamicCast((yyvsp[-1])); @@ -2387,7 +2387,7 @@ yyreduce: break; case 82: -#line 844 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 844 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { TypePtr type = g_parse->createVector(TypePtr::dynamicCast((yyvsp[-2]))); //IntergerGrammarPtr iPtrSize = IntergerGrammarPtr::dynamicCast($4); @@ -2401,7 +2401,7 @@ yyreduce: break; case 83: -#line 854 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 854 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { TypePtr type = TypePtr::dynamicCast((yyvsp[-3])); StringGrammarPtr ident = StringGrammarPtr::dynamicCast((yyvsp[-2])); @@ -2414,7 +2414,7 @@ yyreduce: break; case 84: -#line 863 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 863 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { StringGrammarPtr ident = StringGrammarPtr::dynamicCast((yyvsp[0])); g_parse->error("keyword `" + ident->v + "' cannot be used as data member name"); @@ -2423,7 +2423,7 @@ yyreduce: break; case 85: -#line 868 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 868 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { g_parse->error("missing data member name"); } @@ -2431,7 +2431,7 @@ yyreduce: break; case 86: -#line 872 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 872 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { g_parse->error("unkown type"); } @@ -2439,7 +2439,7 @@ yyreduce: break; case 87: -#line 881 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 881 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { TypePtr type = TypePtr::dynamicCast((yyvsp[-2])); @@ -2452,7 +2452,7 @@ yyreduce: break; case 88: -#line 890 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 890 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { (yyval) = (yyvsp[0]); } @@ -2460,7 +2460,7 @@ yyreduce: break; case 89: -#line 894 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 894 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { g_parse->error("array missing size"); } @@ -2468,7 +2468,7 @@ yyreduce: break; case 90: -#line 903 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 903 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { (yyval) = g_parse->createBuiltin(Builtin::KindBool); } @@ -2476,7 +2476,7 @@ yyreduce: break; case 91: -#line 907 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 907 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { (yyval) = g_parse->createBuiltin(Builtin::KindByte); } @@ -2484,7 +2484,7 @@ yyreduce: break; case 92: -#line 911 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 911 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { (yyval) = g_parse->createBuiltin(Builtin::KindShort,true); } @@ -2492,7 +2492,7 @@ yyreduce: break; case 93: -#line 915 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 915 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { (yyval) = g_parse->createBuiltin(Builtin::KindShort); } @@ -2500,7 +2500,7 @@ yyreduce: break; case 94: -#line 919 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 919 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { (yyval) = g_parse->createBuiltin(Builtin::KindInt,true); } @@ -2508,7 +2508,7 @@ yyreduce: break; case 95: -#line 923 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 923 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { (yyval) = g_parse->createBuiltin(Builtin::KindInt); } @@ -2516,7 +2516,7 @@ yyreduce: break; case 96: -#line 927 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 927 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { (yyval) = g_parse->createBuiltin(Builtin::KindLong,true); } @@ -2524,7 +2524,7 @@ yyreduce: break; case 97: -#line 931 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 931 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { (yyval) = g_parse->createBuiltin(Builtin::KindLong); } @@ -2532,7 +2532,7 @@ yyreduce: break; case 98: -#line 935 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 935 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { (yyval) = g_parse->createBuiltin(Builtin::KindFloat); } @@ -2540,7 +2540,7 @@ yyreduce: break; case 99: -#line 939 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 939 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { (yyval) = g_parse->createBuiltin(Builtin::KindDouble); } @@ -2548,7 +2548,7 @@ yyreduce: break; case 100: -#line 943 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 943 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { (yyval) = g_parse->createBuiltin(Builtin::KindString); } @@ -2556,7 +2556,7 @@ yyreduce: break; case 101: -#line 947 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 947 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { (yyval) = GrammarBasePtr::dynamicCast((yyvsp[0])); } @@ -2564,7 +2564,7 @@ yyreduce: break; case 102: -#line 951 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 951 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { (yyval) = GrammarBasePtr::dynamicCast((yyvsp[0])); } @@ -2572,7 +2572,7 @@ yyreduce: break; case 103: -#line 955 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 955 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { StringGrammarPtr ident = StringGrammarPtr::dynamicCast((yyvsp[0])); TypePtr sp = g_parse->findUserType(ident->v); @@ -2589,7 +2589,7 @@ yyreduce: break; case 104: -#line 973 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 973 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { (yyval) = GrammarBasePtr::dynamicCast(g_parse->createVector(TypePtr::dynamicCast((yyvsp[-1])))); } @@ -2597,7 +2597,7 @@ yyreduce: break; case 105: -#line 977 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 977 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { g_parse->error("vector error"); } @@ -2605,7 +2605,7 @@ yyreduce: break; case 106: -#line 981 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 981 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { g_parse->error("vector missing '>'"); } @@ -2613,7 +2613,7 @@ yyreduce: break; case 107: -#line 985 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 985 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { g_parse->error("vector missing type"); } @@ -2621,7 +2621,7 @@ yyreduce: break; case 108: -#line 994 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 994 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { (yyval) = GrammarBasePtr::dynamicCast(g_parse->createMap(TypePtr::dynamicCast((yyvsp[-3])), TypePtr::dynamicCast((yyvsp[-1])))); } @@ -2629,7 +2629,7 @@ yyreduce: break; case 109: -#line 998 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 998 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { g_parse->error("map error"); } @@ -2637,14 +2637,14 @@ yyreduce: break; case 110: -#line 1007 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 1007 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { } #line 2644 "tars.tab.cpp" /* yacc.c:1660 */ break; case 111: -#line 1010 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 1010 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { StringGrammarPtr ident = StringGrammarPtr::dynamicCast((yyvsp[0])); ident->v = "::" + ident->v; @@ -2654,7 +2654,7 @@ yyreduce: break; case 112: -#line 1016 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 1016 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { StringGrammarPtr scoped = StringGrammarPtr::dynamicCast((yyvsp[-2])); StringGrammarPtr ident = StringGrammarPtr::dynamicCast((yyvsp[0])); @@ -2666,175 +2666,175 @@ yyreduce: break; case 113: -#line 1029 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 1029 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { } #line 2673 "tars.tab.cpp" /* yacc.c:1660 */ break; case 114: -#line 1032 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 1032 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { } #line 2680 "tars.tab.cpp" /* yacc.c:1660 */ break; case 115: -#line 1035 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 1035 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { } #line 2687 "tars.tab.cpp" /* yacc.c:1660 */ break; case 116: -#line 1038 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 1038 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { } #line 2694 "tars.tab.cpp" /* yacc.c:1660 */ break; case 117: -#line 1041 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 1041 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { } #line 2701 "tars.tab.cpp" /* yacc.c:1660 */ break; case 118: -#line 1044 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 1044 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { } #line 2708 "tars.tab.cpp" /* yacc.c:1660 */ break; case 119: -#line 1047 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 1047 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { } #line 2715 "tars.tab.cpp" /* yacc.c:1660 */ break; case 120: -#line 1050 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 1050 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { } #line 2722 "tars.tab.cpp" /* yacc.c:1660 */ break; case 121: -#line 1053 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 1053 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { } #line 2729 "tars.tab.cpp" /* yacc.c:1660 */ break; case 122: -#line 1056 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 1056 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { } #line 2736 "tars.tab.cpp" /* yacc.c:1660 */ break; case 123: -#line 1059 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 1059 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { } #line 2743 "tars.tab.cpp" /* yacc.c:1660 */ break; case 124: -#line 1062 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 1062 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { } #line 2750 "tars.tab.cpp" /* yacc.c:1660 */ break; case 125: -#line 1065 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 1065 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { } #line 2757 "tars.tab.cpp" /* yacc.c:1660 */ break; case 126: -#line 1068 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 1068 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { } #line 2764 "tars.tab.cpp" /* yacc.c:1660 */ break; case 127: -#line 1071 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 1071 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { } #line 2771 "tars.tab.cpp" /* yacc.c:1660 */ break; case 128: -#line 1074 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 1074 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { } #line 2778 "tars.tab.cpp" /* yacc.c:1660 */ break; case 129: -#line 1077 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 1077 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { } #line 2785 "tars.tab.cpp" /* yacc.c:1660 */ break; case 130: -#line 1080 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 1080 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { } #line 2792 "tars.tab.cpp" /* yacc.c:1660 */ break; case 131: -#line 1083 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 1083 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { } #line 2799 "tars.tab.cpp" /* yacc.c:1660 */ break; case 132: -#line 1086 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 1086 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { } #line 2806 "tars.tab.cpp" /* yacc.c:1660 */ break; case 133: -#line 1089 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 1089 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { } #line 2813 "tars.tab.cpp" /* yacc.c:1660 */ break; case 134: -#line 1092 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 1092 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { } #line 2820 "tars.tab.cpp" /* yacc.c:1660 */ break; case 135: -#line 1095 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 1095 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { } #line 2827 "tars.tab.cpp" /* yacc.c:1660 */ break; case 136: -#line 1098 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 1098 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { } #line 2834 "tars.tab.cpp" /* yacc.c:1660 */ break; case 137: -#line 1101 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ +#line 1101 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1660 */ { } #line 2841 "tars.tab.cpp" /* yacc.c:1660 */ @@ -3068,7 +3068,7 @@ yyreturn: #endif return yyresult; } -#line 1105 "/Users/jarod/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1903 */ +#line 1105 "/Volumes/MyData/centos/TarsCpp/tools/tarsgrammar/tars.y" /* yacc.c:1903 */