亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? rulepsr.c

?? clips源代碼
?? C
?? 第 1 頁 / 共 3 頁
字號:
      /*========================================================*/#if DEVELOPER && DEBUGGING_FUNCTIONS      if (EnvGetWatchItem(theEnv,"rule-analysis"))        { DumpRuleAnalysis(theEnv,tempNode); }#endif      /*========================================*/      /* Check to see that logical CEs are used */      /* appropriately in the LHS of the rule.  */      /*========================================*/      if ((logicalJoin = LogicalAnalysis(theEnv,tempNode)) < 0)        {         *error = TRUE;         ReturnDefrule(theEnv,topDisjunct);         return(NULL);        }      /*======================================================*/      /* Check to see if there are any RHS constraint errors. */      /*======================================================*/      if (CheckRHSForConstraintErrors(theEnv,actions,tempNode))        {         *error = TRUE;         ReturnDefrule(theEnv,topDisjunct);         return(NULL);        }      /*=================================================*/      /* Replace variable references in the RHS with the */      /* appropriate variable retrieval functions.       */      /*=================================================*/      newActions = CopyExpression(theEnv,actions);      if (ReplaceProcVars(theEnv,"RHS of defrule",newActions,NULL,NULL,                          ReplaceRHSVariable,(void *) tempNode))        {         *error = TRUE;         ReturnDefrule(theEnv,topDisjunct);         ReturnExpression(theEnv,newActions);         return(NULL);        }      /*==================================*/      /* We're finished for this disjunct */      /* if we're only checking syntax.   */      /*==================================*/      if (ConstructData(theEnv)->CheckSyntaxMode)        {         ReturnExpression(theEnv,newActions);         if (emptyLHS)           { emptyLHS = FALSE; }         else           { theLHS = theLHS->bottom; }         continue;        }      /*=================================*/      /* Install the disjunct's actions. */      /*=================================*/      ExpressionInstall(theEnv,newActions);      packPtr = PackExpression(theEnv,newActions);      ReturnExpression(theEnv,newActions);      /*===============================================================*/      /* Create the pattern and join data structures for the new rule. */      /*===============================================================*/      lastJoin = ConstructJoins(theEnv,logicalJoin,tempNode,1);      /*===================================================================*/      /* Determine the rule's complexity for use with conflict resolution. */      /*===================================================================*/      complexity = RuleComplexity(theEnv,tempNode);      /*=====================================================*/      /* Create the defrule data structure for this disjunct */      /* and put it in the list of disjuncts for this rule.  */      /*=====================================================*/      currentDisjunct = CreateNewDisjunct(theEnv,ruleName,localVarCnt,packPtr,complexity,                                          (unsigned) logicalJoin,lastJoin);      /*============================================================*/      /* Place the disjunct in the list of disjuncts for this rule. */      /* If the disjunct is the first disjunct, then increment the  */      /* reference counts for the dynamic salience (the expression  */      /* for the dynamic salience is only stored with the first     */      /* disjuncts and the other disjuncts refer back to the first  */      /* disjunct for their dynamic salience value.                 */      /*============================================================*/      if (topDisjunct == NULL)        {         topDisjunct = currentDisjunct;         ExpressionInstall(theEnv,topDisjunct->dynamicSalience);        }      else lastDisjunct->disjunct = currentDisjunct;      /*===========================================*/      /* Move on to the next disjunct of the rule. */      /*===========================================*/      lastDisjunct = currentDisjunct;            if (emptyLHS)        { emptyLHS = FALSE; }      else        { theLHS = theLHS->bottom; }     }   return(topDisjunct);  }/************************************************************************//* CreateNewDisjunct: Creates and initializes a defrule data structure. *//************************************************************************/static struct defrule *CreateNewDisjunct(  void *theEnv,  SYMBOL_HN *ruleName,  int localVarCnt,  struct expr *theActions,  int complexity,  unsigned logicalJoin,  struct joinNode *lastJoin)  {   struct joinNode *tempJoin;   struct defrule *newDisjunct;   /*===================================================*/   /* Create and initialize the defrule data structure. */   /*===================================================*/   newDisjunct = get_struct(theEnv,defrule);   newDisjunct->header.ppForm = NULL;   newDisjunct->header.next = NULL;   newDisjunct->header.usrData = NULL;   newDisjunct->logicalJoin = NULL;   newDisjunct->disjunct = NULL;   newDisjunct->header.name = ruleName;   IncrementSymbolCount(newDisjunct->header.name);   newDisjunct->actions = theActions;   newDisjunct->salience = PatternData(theEnv)->GlobalSalience;   newDisjunct->afterBreakpoint = 0;   newDisjunct->watchActivation = 0;   newDisjunct->watchFiring = 0;   newDisjunct->executing = 0;   newDisjunct->complexity = complexity;   newDisjunct->autoFocus = PatternData(theEnv)->GlobalAutoFocus;   newDisjunct->dynamicSalience = PatternData(theEnv)->SalienceExpression;   newDisjunct->localVarCnt = localVarCnt;   /*=====================================*/   /* Add a pointer to the rule's module. */   /*=====================================*/   newDisjunct->header.whichModule =      (struct defmoduleItemHeader *)      GetModuleItem(theEnv,NULL,FindModuleItem(theEnv,"defrule")->moduleIndex);   /*============================================================*/   /* Attach the rule's last join to the defrule data structure. */   /*============================================================*/   lastJoin->ruleToActivate = newDisjunct;   newDisjunct->lastJoin = lastJoin;   /*=================================================*/   /* Determine the rule's logical join if it exists. */   /*=================================================*/   tempJoin = lastJoin;   while (tempJoin != NULL)     {      if (tempJoin->depth == logicalJoin)        {         newDisjunct->logicalJoin = tempJoin;         tempJoin->logicalJoin = TRUE;        }      tempJoin = tempJoin->lastLevel;     }   /*==================================================*/   /* Return the newly created defrule data structure. */   /*==================================================*/   return(newDisjunct);  }/****************************************************************//* ReplaceExpressionVariables: Replaces all symbolic references *//*   to variables (local and global) found in an expression on  *//*   the RHS of a rule with expressions containing function     *//*   calls to retrieve the variable's value. Makes the final    *//*   modifications necessary for handling the modify and        *//*   duplicate commands.                                        *//****************************************************************/static int ReplaceRHSVariable(  void *theEnv,  struct expr *list,  void *VtheLHS)  {   struct lhsParseNode *theVariable;   /*=======================================*/   /* Handle modify and duplicate commands. */   /*=======================================*/#if DEFTEMPLATE_CONSTRUCT   if (list->type == FCALL)     {      if (list->value == (void *) FindFunction(theEnv,"modify"))        {         if (UpdateModifyDuplicate(theEnv,list,"modify",VtheLHS) == FALSE)           return(-1);        }      else if (list->value == (void *) FindFunction(theEnv,"duplicate"))        {         if (UpdateModifyDuplicate(theEnv,list,"duplicate",VtheLHS) == FALSE)           return(-1);        }      return(0);     }#endif   if ((list->type != SF_VARIABLE) && (list->type != MF_VARIABLE))     { return(FALSE); }   /*===============================================================*/   /* Check to see if the variable is bound on the LHS of the rule. */   /*===============================================================*/   theVariable = FindVariable((SYMBOL_HN *) list->value,(struct lhsParseNode *) VtheLHS);   if (theVariable == NULL) return(FALSE);   /*================================================*/   /* Replace the variable reference with a function */   /* call to retrieve the variable.                 */   /*================================================*/   if (theVariable->patternType != NULL)     { (*theVariable->patternType->replaceGetJNValueFunction)(theEnv,list,theVariable,LHS); }   else     { return(FALSE); }   /*=================================================================*/   /* Return TRUE to indicate the variable was successfully replaced. */   /*=================================================================*/   return(TRUE);  }/*******************************************************//* ParseRuleRHS: Coordinates all the actions necessary *//*   for parsing the RHS of a rule.                    *//*******************************************************/static struct expr *ParseRuleRHS(  void *theEnv,  char *readSource)  {   struct expr *actions;   struct token theToken;   /*=========================================================*/   /* Process the actions on the right hand side of the rule. */   /*=========================================================*/   SavePPBuffer(theEnv,"\n   ");   SetIndentDepth(theEnv,3);   actions = GroupActions(theEnv,readSource,&theToken,TRUE,NULL,FALSE);   if (actions == NULL) return(NULL);   /*=============================*/   /* Reformat the closing token. */   /*=============================*/   PPBackup(theEnv);   PPBackup(theEnv);   SavePPBuffer(theEnv,theToken.printForm);   /*======================================================*/   /* Check for the closing right parenthesis of the rule. */   /*======================================================*/   if (theToken.type != RPAREN)     {      SyntaxErrorMessage(theEnv,"defrule");      ReturnExpression(theEnv,actions);      return(NULL);     }   /*========================*/   /* Return the rule's RHS. */   /*========================*/   return(actions);  }/************************************************************//* RuleComplexity: Returns the complexity of a rule for use *//*   by the LEX and MEA conflict resolution strategies.     *//************************************************************/static int RuleComplexity(  void *theEnv,  struct lhsParseNode *theLHS)  {   struct lhsParseNode *thePattern, *tempPattern;   int complexity = 0;   while (theLHS != NULL)     {      complexity += 1; /* Add 1 for each pattern. */      complexity += ExpressionComplexity(theEnv,theLHS->networkTest);      thePattern = theLHS->right;      while (thePattern != NULL)        {         if (thePattern->multifieldSlot)           {            tempPattern = thePattern->bottom;            while (tempPattern != NULL)              {               complexity += ExpressionComplexity(theEnv,tempPattern->networkTest);               tempPattern = tempPattern->right;              }           }         else           { complexity += ExpressionComplexity(theEnv,thePattern->networkTest); }         thePattern = thePattern->right;        }      theLHS = theLHS->bottom;     }   return(complexity);  }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99久久精品国产观看| 久久久美女毛片| 2020国产精品久久精品美国| 国产精品电影一区二区| 日本v片在线高清不卡在线观看| www.久久精品| 久久久久国产成人精品亚洲午夜| 亚洲国产成人91porn| hitomi一区二区三区精品| www国产精品av| 精品在线你懂的| 777久久久精品| 午夜在线电影亚洲一区| 99国内精品久久| 亚洲国产岛国毛片在线| 激情国产一区二区| 欧美一级黄色大片| 丝袜亚洲另类丝袜在线| 在线视频你懂得一区二区三区| 国产精品国产三级国产| 国产福利91精品一区| 久久婷婷国产综合精品青草 | 亚洲视频在线一区观看| 国产一区二区影院| 26uuu亚洲婷婷狠狠天堂| 另类综合日韩欧美亚洲| 欧美一区二区日韩一区二区| 亚洲国产成人91porn| 在线精品视频小说1| 亚洲欧美色一区| 色国产综合视频| 一区二区在线观看免费| 一本久久精品一区二区| 亚洲女人的天堂| 欧美性猛交xxxx黑人交| 偷拍一区二区三区| 日韩一区二区免费在线观看| 午夜精品久久久久久久蜜桃app| 欧美日韩二区三区| 美女www一区二区| 久久久国产精品午夜一区ai换脸| 韩国精品在线观看| 国产精品麻豆欧美日韩ww| 成人国产精品免费观看视频| 中文字幕一区二区三区四区不卡| 99久久国产免费看| 一区二区三区自拍| 制服视频三区第一页精品| 久久国产麻豆精品| 国产精品嫩草影院com| 在线观看一区二区精品视频| 天天操天天色综合| 亚洲色图视频网站| 欧美午夜片在线看| 美女任你摸久久| 中文字幕乱码久久午夜不卡| 91丨porny丨国产入口| 香港成人在线视频| 久久久久久久av麻豆果冻| 91麻豆国产自产在线观看| 亚洲国产美国国产综合一区二区| 欧美大胆一级视频| 色网综合在线观看| 黄色日韩网站视频| 亚洲一区在线观看网站| 精品精品国产高清a毛片牛牛| 成人晚上爱看视频| 午夜精品久久久久久久久久久| 久久综合久色欧美综合狠狠| 色哟哟一区二区三区| 久久精品国产秦先生| 日韩毛片一二三区| 日韩免费观看高清完整版| 成人动漫在线一区| 蜜臀久久99精品久久久久宅男| 亚洲日本丝袜连裤袜办公室| 日韩欧美123| 欧美在线观看视频在线| 国产高清久久久| 奇米影视一区二区三区小说| 综合中文字幕亚洲| 久久亚洲私人国产精品va媚药| 91成人在线观看喷潮| 国v精品久久久网| 裸体健美xxxx欧美裸体表演| 亚洲综合色视频| 国产精品成人免费| 国产午夜精品一区二区| 久久久一区二区三区| 欧美一二区视频| 欧美四级电影网| 色综合久久久网| 99久久久久免费精品国产| 韩国三级在线一区| 秋霞电影网一区二区| 午夜精品久久久久久不卡8050| 国产精品久久久久久久久免费樱桃| 日韩欧美亚洲国产精品字幕久久久 | 午夜精品免费在线观看| 一区二区三区视频在线看| 国产精品狼人久久影院观看方式| 精品久久久久久无| 日韩午夜电影在线观看| 欧美一区二区三区爱爱| 欧美日韩成人综合在线一区二区| 色8久久精品久久久久久蜜| 97久久精品人人爽人人爽蜜臀| 国产一区二区三区在线观看免费视频| 三级亚洲高清视频| 日韩精品一级中文字幕精品视频免费观看 | 欧美三级电影一区| 日本韩国精品一区二区在线观看| 丁香婷婷综合五月| jlzzjlzz亚洲女人18| 成人精品免费看| 国产成a人无v码亚洲福利| 国产成人免费在线观看不卡| 国产一区二区三区电影在线观看 | 日韩成人一区二区| 青娱乐精品视频在线| 国产寡妇亲子伦一区二区| 久久国产精品99久久人人澡| 久久99国产乱子伦精品免费| 久久精品国产亚洲a| 国产精品一区二区你懂的| 国产精品 欧美精品| 不卡一卡二卡三乱码免费网站| 99re免费视频精品全部| 99精品久久免费看蜜臀剧情介绍| 色先锋资源久久综合| 在线电影欧美成精品| 精品久久久久久久久久久院品网 | 日韩欧美国产一区在线观看| 日韩美女天天操| 欧美韩国一区二区| 亚洲国产中文字幕| 激情综合一区二区三区| 不卡区在线中文字幕| 欧美日韩一区久久| 久久久国产精品午夜一区ai换脸| 亚洲欧洲国产专区| 琪琪一区二区三区| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 激情综合色综合久久| 91在线码无精品| 欧美一区二区视频在线观看2022| 亚洲精品一区二区三区四区高清| 国产精品美女久久久久aⅴ国产馆 国产精品美女久久久久av爽李琼 国产精品美女久久久久高潮 | 日本不卡视频在线观看| 国产一区二区三区av电影| 91理论电影在线观看| 日韩欧美一级二级三级久久久| 国产精品免费av| 日韩黄色小视频| 欧美人与z0zoxxxx视频| 久久久www成人免费毛片麻豆 | 欧洲中文字幕精品| wwwwww.欧美系列| 亚洲综合视频在线| 国产精品一区二区x88av| 欧美四级电影网| 国产精品久久毛片av大全日韩| 三级在线观看一区二区| 91玉足脚交白嫩脚丫在线播放| 日韩午夜激情视频| 一区二区三区免费在线观看| 国产精品中文字幕一区二区三区| 欧美视频一区二区三区四区| 国产色产综合色产在线视频| 午夜精品免费在线| 一本到高清视频免费精品| 久久久久久久av麻豆果冻| 日本欧美加勒比视频| 欧美又粗又大又爽| 中文字幕中文字幕在线一区 | 久久99国产精品尤物| 欧美在线观看18| 亚洲人成7777| 丁香亚洲综合激情啪啪综合| 精品国产a毛片| 六月婷婷色综合| 91精品国产品国语在线不卡| 一区二区国产视频| 91污在线观看| 中文字幕 久热精品 视频在线 | 中文字幕亚洲一区二区av在线| 激情小说亚洲一区| 日韩精品一区二区三区老鸭窝| 日韩在线播放一区二区| 欧美日本国产一区| 亚洲123区在线观看| 欧美色老头old∨ideo| 亚洲激情六月丁香| 91国产精品成人| 亚洲一区二区精品视频| 欧美日韩国产不卡| 香蕉久久一区二区不卡无毒影院| 欧美午夜精品一区二区三区 | 国产成人综合视频| 国产精品三级av|