⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 coach_lang_par.cc

📁 在LINUX下运行的仿真机器人服务器源代码
💻 CC
📖 第 1 页 / 共 4 页
字号:
    break;}case 83:#line 495 "coach_lang_par.yy"{ BUILDER.setVer( 8 ); ;    break;}case 84:#line 498 "coach_lang_par.yy"{ BUILDER.buildCondUNum( rcss::clang::UNum( yyvsp[-2].getStr() ) );             BUILDER.setVer( 8 ); ;    break;}case 85:#line 502 "coach_lang_par.yy"{ BUILDER.buildCondUNum( rcss::clang::UNum( yyvsp[-2].getStr() ) );             BUILDER.setVer( 8 ); ;    break;}case 86:#line 506 "coach_lang_par.yy"{;    break;}case 87:#line 507 "coach_lang_par.yy"{;    break;}case 88:#line 508 "coach_lang_par.yy"{;    break;}case 89:#line 509 "coach_lang_par.yy"{;    break;}case 90:#line 513 "coach_lang_par.yy"{ BUILDER.buildCondTime( yyvsp[0].getInt(),                                       yyvsp[-1].getCompOp() ); ;    break;}case 91:#line 516 "coach_lang_par.yy"{ BUILDER.buildCondTime( yyvsp[-2].getInt(),                                   yyvsp[-1].getCompOp().swap() ); ;    break;}case 92:#line 521 "coach_lang_par.yy"{ BUILDER.buildCondOppGoal( yyvsp[0].getInt(),                                       yyvsp[-1].getCompOp() ); ;    break;}case 93:#line 524 "coach_lang_par.yy"{ BUILDER.buildCondOppGoal( yyvsp[-2].getInt(),                                   yyvsp[-1].getCompOp().swap() ); ;    break;}case 94:#line 529 "coach_lang_par.yy"{ BUILDER.buildCondOurGoal( yyvsp[0].getInt(),                                       yyvsp[-1].getCompOp() ); ;    break;}case 95:#line 532 "coach_lang_par.yy"{ BUILDER.buildCondOurGoal( yyvsp[-2].getInt(),                                   yyvsp[-1].getCompOp().swap() ); ;    break;}case 96:#line 537 "coach_lang_par.yy"{ BUILDER.buildCondGoalDiff( yyvsp[0].getInt(),                                       yyvsp[-1].getCompOp() ); ;    break;}case 97:#line 540 "coach_lang_par.yy"{ BUILDER.buildCondGoalDiff( yyvsp[-2].getInt(),                                   yyvsp[-1].getCompOp().swap() ); ;    break;}case 104:#line 549 "coach_lang_par.yy"{ BUILDER.buildAddToCondList(); ;    break;}case 105:#line 551 "coach_lang_par.yy"{ BUILDER.buildCreateCondList(); ;    break;}case 106:#line 555 "coach_lang_par.yy"{ BUILDER.buildRegNull(); ;    break;}case 107:#line 558 "coach_lang_par.yy"{ BUILDER.buildRegQuad();           BUILDER.setVer( 7 ); ;    break;}case 108:#line 562 "coach_lang_par.yy"{ BUILDER.buildRegArc( yyvsp[-4].getDoub(),                                            yyvsp[-3].getDoub(),                                            yyvsp[-2].getDoub(),                                            yyvsp[-1].getDoub() ); ;    break;}case 109:#line 568 "coach_lang_par.yy"{ BUILDER.buildRegUnion(); ;    break;}case 110:#line 570 "coach_lang_par.yy"{ BUILDER.buildRegNamed( rcss::stripQuotes( yyvsp[0].getStr() ) ); ;    break;}case 111:#line 572 "coach_lang_par.yy"{ BUILDER.buildRegPoint(); ;    break;}case 112:#line 575 "coach_lang_par.yy"{ BUILDER.buildRegTri();           BUILDER.setVer( 8 );  ;    break;}case 113:#line 579 "coach_lang_par.yy"{ BUILDER.buildRegRec();           BUILDER.setVer( 8 );  ;    break;}case 116:#line 589 "coach_lang_par.yy"{ BUILDER.buildPointSimple( yyvsp[-2].getDoub(),                                                 yyvsp[-1].getDoub() ); ;    break;}case 117:#line 592 "coach_lang_par.yy"{ BUILDER.buildPointRel( yyvsp[-3].getDoub(),                                             yyvsp[-2].getDoub() ); ;    break;}case 118:#line 595 "coach_lang_par.yy"{ BUILDER.buildPointBall(); ;    break;}case 119:#line 598 "coach_lang_par.yy"{ BUILDER.buildPointPlayer( yyvsp[-2].getBool(),                     rcss::clang::UNum( ( rcss::clang::UNum::unum_t )yyvsp[-1].getInt() ) ); ;    break;}case 120:#line 602 "coach_lang_par.yy"{ BUILDER.buildPointPlayer( yyvsp[-2].getBool(),                                                rcss::clang::UNum( yyvsp[-1].getStr() ) );          BUILDER.setVer( 8 ); ;    break;}case 121:#line 607 "coach_lang_par.yy"{ BUILDER.buildPointPlayer( yyvsp[-2].getBool(),                                                rcss::clang::UNum( yyvsp[-1].getStr() ) );          BUILDER.setVer( 8 ); ;    break;}case 122:#line 610 "coach_lang_par.yy"{;    break;}case 123:#line 614 "coach_lang_par.yy"{ BUILDER.buildPointArith( yyvsp[-1].getArithOp() );                BUILDER.setVer( 8 ); ;    break;}case 124:#line 617 "coach_lang_par.yy"{ BUILDER.buildPointArith( yyvsp[-1].getArithOp() );                BUILDER.setVer( 8 ); ;    break;}case 125:#line 620 "coach_lang_par.yy"{ BUILDER.buildPointArith( yyvsp[-1].getArithOp() );                BUILDER.setVer( 8 ); ;    break;}case 126:#line 623 "coach_lang_par.yy"{ BUILDER.buildPointArith( yyvsp[-1].getArithOp() );                BUILDER.setVer( 8 ); ;    break;}case 127:#line 625 "coach_lang_par.yy"{;    break;}case 128:#line 629 "coach_lang_par.yy"{ yyval = (double)yyvsp[0].getInt(); ;    break;}case 129:#line 631 "coach_lang_par.yy"{ yyval = yyvsp[0]; ;    break;}case 130:#line 635 "coach_lang_par.yy"{ BUILDER.buildUNumSet(); ;    break;}case 133:#line 643 "coach_lang_par.yy"{ BUILDER.buildUNum(             rcss::clang::UNum( ( rcss::clang::UNum::unum_t )yyvsp[0].getInt() ) ); ;    break;}case 134:#line 646 "coach_lang_par.yy"{      BUILDER.buildUNum( rcss::clang::UNum( yyvsp[0].getStr() ) );               BUILDER.setVer( 8 );            ;    break;}case 135:#line 651 "coach_lang_par.yy"{     BUILDER.buildUNum( rcss::clang::UNum( yyvsp[0].getStr() ) );              BUILDER.setVer( 8 );            ;    break;}case 137:#line 661 "coach_lang_par.yy"{ BUILDER.buildBallMoveToken( yyvsp[0].getBMT() ); ;    break;}case 138:#line 663 "coach_lang_par.yy"{ BUILDER.buildBallMoveToken( yyvsp[0].getBMT() ); ;    break;}}   /* the action file gets copied in in place of this dollarsign */#line 543 "/usr/share/bison.simple"  yyvsp -= yylen;  yyssp -= yylen;#ifdef YYLSP_NEEDED  yylsp -= yylen;#endif#if YYDEBUG != 0  if (yydebug)    {      short *ssp1 = yyss - 1;      fprintf (stderr, "state stack now");      while (ssp1 != yyssp)	fprintf (stderr, " %d", *++ssp1);      fprintf (stderr, "\n");    }#endif  *++yyvsp = yyval;#ifdef YYLSP_NEEDED  yylsp++;  if (yylen == 0)    {      yylsp->first_line = yylloc.first_line;      yylsp->first_column = yylloc.first_column;      yylsp->last_line = (yylsp-1)->last_line;      yylsp->last_column = (yylsp-1)->last_column;      yylsp->text = 0;    }  else    {      yylsp->last_line = (yylsp+yylen-1)->last_line;      yylsp->last_column = (yylsp+yylen-1)->last_column;    }#endif  /* Now "shift" the result of the reduction.     Determine what state that goes to,     based on the state we popped back to     and the rule number reduced by.  */  yyn = yyr1[yyn];  yystate = yypgoto[yyn - YYNTBASE] + *yyssp;  if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp)    yystate = yytable[yystate];  else    yystate = yydefgoto[yyn - YYNTBASE];  goto yynewstate;yyerrlab:   /* here on detecting error */  if (! yyerrstatus)    /* If not already recovering from an error, report this error.  */    {      ++yynerrs;#ifdef YYERROR_VERBOSE      yyn = yypact[yystate];      if (yyn > YYFLAG && yyn < YYLAST)	{	  int size = 0;	  char *msg;	  int x, count;	  count = 0;	  /* Start X at -yyn if nec to avoid negative indexes in yycheck.  */	  for (x = (yyn < 0 ? -yyn : 0);	       x < (sizeof(yytname) / sizeof(char *)); x++)	    if (yycheck[x + yyn] == x)	      size += strlen(yytname[x]) + 15, count++;	  msg = (char *) malloc(size + 15);	  if (msg != 0)	    {	      strcpy(msg, "parse error");	      if (count < 5)		{		  count = 0;		  for (x = (yyn < 0 ? -yyn : 0);		       x < (sizeof(yytname) / sizeof(char *)); x++)		    if (yycheck[x + yyn] == x)		      {			strcat(msg, count == 0 ? ", expecting `" : " or `");			strcat(msg, yytname[x]);			strcat(msg, "'");			count++;		      }		}	      yyerror(msg);	      free(msg);	    }	  else	    yyerror ("parse error; also virtual memory exceeded");	}      else#endif /* YYERROR_VERBOSE */	yyerror("parse error");    }  goto yyerrlab1;yyerrlab1:   /* here on error raised explicitly by an action */  if (yyerrstatus == 3)    {      /* if just tried and failed to reuse lookahead token after an error, discard it.  */      /* return failure if at end of input */      if (yychar == YYEOF)	YYABORT;#if YYDEBUG != 0      if (yydebug)	fprintf(stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1]);#endif      yychar = YYEMPTY;    }  /* Else will try to reuse lookahead token     after shifting the error token.  */  yyerrstatus = 3;		/* Each real token shifted decrements this */  goto yyerrhandle;yyerrdefault:  /* current state does not do anything special for the error token. */#if 0  /* This is wrong; only states that explicitly want error tokens     should shift them.  */  yyn = yydefact[yystate];  /* If its default is to accept any token, ok.  Otherwise pop it.*/  if (yyn) goto yydefault;#endifyyerrpop:   /* pop the current state because it cannot handle the error token */  if (yyssp == yyss) YYABORT;  yyvsp--;  yystate = *--yyssp;#ifdef YYLSP_NEEDED  yylsp--;#endif#if YYDEBUG != 0  if (yydebug)    {      short *ssp1 = yyss - 1;      fprintf (stderr, "Error: state stack now");      while (ssp1 != yyssp)	fprintf (stderr, " %d", *++ssp1);      fprintf (stderr, "\n");    }#endifyyerrhandle:  yyn = yypact[yystate];  if (yyn == YYFLAG)    goto yyerrdefault;  yyn += YYTERROR;  if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR)    goto yyerrdefault;  yyn = yytable[yyn];  if (yyn < 0)    {      if (yyn == YYFLAG)	goto yyerrpop;      yyn = -yyn;      goto yyreduce;    }  else if (yyn == 0)    goto yyerrpop;  if (yyn == YYFINAL)    YYACCEPT;#if YYDEBUG != 0  if (yydebug)    fprintf(stderr, "Shifting error token, ");#endif  *++yyvsp = yylval;#ifdef YYLSP_NEEDED  *++yylsp = yylloc;#endif  yystate = yyn;  goto yynewstate; yyacceptlab:  /* YYACCEPT comes here.  */  if (yyfree_stacks)    {      free (yyss);      free (yyvs);#ifdef YYLSP_NEEDED      free (yyls);#endif    }  return 0; yyabortlab:  /* YYABORT comes here.  */  if (yyfree_stacks)    {      free (yyss);      free (yyvs);#ifdef YYLSP_NEEDED      free (yyls);#endif    }  return 1;}#line 666 "coach_lang_par.yy"extern "C" void parse(){  // dumby function use to make the library easy to find with autoconf}void yyerror (const char*){/*   std::cerr << s << std::endl;*/  //do nothing}int yyerror (char* s){	yyerror ( (const char*)s );	return 0;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -