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

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

?? rulepsr.c

?? clips源代碼
?? C
?? 第 1 頁 / 共 3 頁
字號:
   /*******************************************************/   /*      "C" Language Integrated Production System      */   /*                                                     */   /*             CLIPS Version 6.30  10/19/06            */   /*                                                     */   /*                 RULE PARSING MODULE                 */   /*******************************************************//*************************************************************//* Purpose:  Parses a defrule construct.                     *//*                                                           *//* Principal Programmer(s):                                  *//*      Gary D. Riley                                        *//*                                                           *//* Contributing Programmer(s):                               *//*                                                           *//* Revision History:                                         *//*                                                           *//*      6.24: Removed DYNAMIC_SALIENCE, INCREMENTAL_RESET,   *//*            and LOGICAL_DEPENDENCIES compilation flags.    *//*                                                           *//*      6.30: Added support for hashed alpha memories.       *//*                                                           *//*************************************************************/#define _RULEPSR_SOURCE_#include "setup.h"#if DEFRULE_CONSTRUCT#include <stdio.h>#define _STDIO_INCLUDED_#include <string.h>#include "analysis.h"#include "constant.h"#include "constrct.h"#include "cstrcpsr.h"#include "cstrnchk.h"#include "cstrnops.h"#include "engine.h"#include "envrnmnt.h"#include "exprnpsr.h"#include "incrrset.h"#include "memalloc.h"#include "pattern.h"#include "prccode.h"#include "prcdrpsr.h"#include "router.h"#include "rulebld.h"#include "rulebsc.h"#include "rulecstr.h"#include "ruledef.h"#include "ruledlt.h"#include "rulelhs.h"#include "scanner.h"#include "symbol.h"#include "watch.h"#include "lgcldpnd.h"#if DEFTEMPLATE_CONSTRUCT#include "tmpltfun.h"#endif#if BLOAD || BLOAD_ONLY || BLOAD_AND_BSAVE#include "bload.h"#endif#include "rulepsr.h"/***************************************//* LOCAL INTERNAL FUNCTION DEFINITIONS *//***************************************/#if (! RUN_TIME) && (! BLOAD_ONLY)   static struct expr            *ParseRuleRHS(void *,char *);   static int                     ReplaceRHSVariable(void *,struct expr *,void *);   static struct defrule         *ProcessRuleLHS(void *,struct lhsParseNode *,struct expr *,SYMBOL_HN *,int *);   static struct defrule         *CreateNewDisjunct(void *,SYMBOL_HN *,int,struct expr *,                                                    int,unsigned,struct joinNode *);   static int                     RuleComplexity(void *,struct lhsParseNode *);   static int                     ExpressionComplexity(void *,struct expr *);   static int                     LogicalAnalysis(void *,struct lhsParseNode *);   static void                    AddToDefruleList(struct defrule *);#if DEVELOPER && DEBUGGING_FUNCTIONS   static void                    DumpRuleAnalysis(void *,struct lhsParseNode *);#endif#endif/****************************************************//* ParseDefrule: Coordinates all actions necessary  *//*   for the parsing and creation of a defrule into *//*   the current environment.                       *//****************************************************/globle int ParseDefrule(  void *theEnv,  char *readSource)  {#if (MAC_MCW || IBM_MCW) && (RUN_TIME || BLOAD_ONLY)#pragma unused(theEnv,readSource)#endif#if (! RUN_TIME) && (! BLOAD_ONLY)   SYMBOL_HN *ruleName;   struct lhsParseNode *theLHS;   struct expr *actions;   struct token theToken;   struct defrule *topDisjunct, *tempPtr;   struct defruleModule *theModuleItem;   int error;   /*================================================*/   /* Flush the buffer which stores the pretty print */   /* representation for a rule.  Add the already    */   /* parsed keyword defrule to this buffer.         */   /*================================================*/   SetPPBufferStatus(theEnv,ON);   FlushPPBuffer(theEnv);   SavePPBuffer(theEnv,"(defrule ");   /*=========================================================*/   /* Rules cannot be loaded when a binary load is in effect. */   /*=========================================================*/#if BLOAD || BLOAD_ONLY || BLOAD_AND_BSAVE   if ((Bloaded(theEnv) == TRUE) && (! ConstructData(theEnv)->CheckSyntaxMode))     {      CannotLoadWithBloadMessage(theEnv,"defrule");      return(TRUE);     }#endif   /*================================================*/   /* Parse the name and comment fields of the rule, */   /* deleting the rule if it already exists.        */   /*================================================*/#if DEBUGGING_FUNCTIONS   DefruleData(theEnv)->DeletedRuleDebugFlags = 0;#endif   ruleName = GetConstructNameAndComment(theEnv,readSource,&theToken,"defrule",                                         EnvFindDefrule,EnvUndefrule,"*",FALSE,                                         TRUE,TRUE);   if (ruleName == NULL) return(TRUE);   /*============================*/   /* Parse the LHS of the rule. */   /*============================*/   theLHS = ParseRuleLHS(theEnv,readSource,&theToken,ValueToString(ruleName),&error);   if (error)     {      ReturnPackedExpression(theEnv,PatternData(theEnv)->SalienceExpression);      PatternData(theEnv)->SalienceExpression = NULL;      return(TRUE);     }   /*============================*/   /* Parse the RHS of the rule. */   /*============================*/   ClearParsedBindNames(theEnv);   ExpressionData(theEnv)->ReturnContext = TRUE;   actions = ParseRuleRHS(theEnv,readSource);   if (actions == NULL)     {      ReturnPackedExpression(theEnv,PatternData(theEnv)->SalienceExpression);      PatternData(theEnv)->SalienceExpression = NULL;      ReturnLHSParseNodes(theEnv,theLHS);      return(TRUE);     }   /*=======================*/   /* Process the rule LHS. */   /*=======================*/   topDisjunct = ProcessRuleLHS(theEnv,theLHS,actions,ruleName,&error);   ReturnExpression(theEnv,actions);   ClearParsedBindNames(theEnv);   ReturnLHSParseNodes(theEnv,theLHS);   if (error)     {      ReturnPackedExpression(theEnv,PatternData(theEnv)->SalienceExpression);      PatternData(theEnv)->SalienceExpression = NULL;      return(TRUE);     }   /*==============================================*/   /* If we're only checking syntax, don't add the */   /* successfully parsed defrule to the KB.       */   /*==============================================*/   if (ConstructData(theEnv)->CheckSyntaxMode)     {      ReturnPackedExpression(theEnv,PatternData(theEnv)->SalienceExpression);      PatternData(theEnv)->SalienceExpression = NULL;      return(FALSE);     }   PatternData(theEnv)->SalienceExpression = NULL;   /*======================================*/   /* Save the nice printout of the rules. */   /*======================================*/   SavePPBuffer(theEnv,"\n");   if (EnvGetConserveMemory(theEnv) == TRUE)     { topDisjunct->header.ppForm = NULL; }   else     { topDisjunct->header.ppForm = CopyPPBuffer(theEnv); }   /*=======================================*/   /* Store a pointer to the rule's module. */   /*=======================================*/   theModuleItem = (struct defruleModule *)                   GetModuleItem(theEnv,NULL,FindModuleItem(theEnv,"defrule")->moduleIndex);   for (tempPtr = topDisjunct; tempPtr != NULL; tempPtr = tempPtr->disjunct)     { tempPtr->header.whichModule = (struct defmoduleItemHeader *) theModuleItem; }   /*===============================================*/   /* Rule completely parsed. Add to list of rules. */   /*===============================================*/   AddToDefruleList(topDisjunct);   /*========================================================================*/   /* If a rule is redefined, then we want to restore its breakpoint status. */   /*========================================================================*/#if DEBUGGING_FUNCTIONS   if (BitwiseTest(DefruleData(theEnv)->DeletedRuleDebugFlags,0))     { EnvSetBreak(theEnv,topDisjunct); }   if (BitwiseTest(DefruleData(theEnv)->DeletedRuleDebugFlags,1) || EnvGetWatchItem(theEnv,"activations"))     { EnvSetDefruleWatchActivations(theEnv,ON,(void *) topDisjunct); }   if (BitwiseTest(DefruleData(theEnv)->DeletedRuleDebugFlags,2) || EnvGetWatchItem(theEnv,"rules"))     { EnvSetDefruleWatchFirings(theEnv,ON,(void *) topDisjunct); }#endif   /*================================*/   /* Perform the incremental reset. */   /*================================*/   IncrementalReset(theEnv,topDisjunct);   /*=============================================*/   /* Return FALSE to indicate no errors occured. */   /*=============================================*/#endif   return(FALSE);  }#if (! RUN_TIME) && (! BLOAD_ONLY)/**************************************************************//* ProcessRuleLHS: Processes each of the disjuncts of a rule. *//**************************************************************/static struct defrule *ProcessRuleLHS(  void *theEnv,  struct lhsParseNode *theLHS,  struct expr *actions,  SYMBOL_HN *ruleName,  int *error)  {   struct lhsParseNode *tempNode = NULL;   struct defrule *topDisjunct = NULL, *currentDisjunct, *lastDisjunct = NULL;   struct expr *newActions, *packPtr;   int logicalJoin;   int localVarCnt;   int complexity;   struct joinNode *lastJoin;   intBool emptyLHS;   /*================================================*/   /* Initially set the parsing error flag to FALSE. */   /*================================================*/   *error = FALSE;   /*===========================================================*/   /* The top level of the construct representing the LHS of a  */   /* rule is assumed to be an OR.  If the implied OR is at the */   /* top level of the pattern construct, then remove it.       */   /*===========================================================*/   if (theLHS == NULL)     { emptyLHS = TRUE; }   else     {      emptyLHS = FALSE;      if (theLHS->type == OR_CE) theLHS = theLHS->right;     }    /*=========================================*/   /* Loop through each disjunct of the rule. */   /*=========================================*/   localVarCnt = CountParsedBindNames(theEnv);      while ((theLHS != NULL) || (emptyLHS == TRUE))     {      /*===================================*/      /* Analyze the LHS of this disjunct. */      /*===================================*/      if (emptyLHS)        { tempNode = NULL; }      else        {         if (theLHS->type == AND_CE) tempNode = theLHS->right;         else if (theLHS->type == PATTERN_CE) tempNode = theLHS;        }      if (VariableAnalysis(theEnv,tempNode))        {         *error = TRUE;         ReturnDefrule(theEnv,topDisjunct);         return(NULL);        }      /*=========================================*/      /* Perform entity dependent post analysis. */      /*=========================================*/      if (PostPatternAnalysis(theEnv,tempNode))        {         *error = TRUE;         ReturnDefrule(theEnv,topDisjunct);         return(NULL);        }      /*========================================================*/      /* Print out developer information if it's being watched. */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产精品一区二区久久 | 蜜臀久久久久久久| 午夜视频久久久久久| 天天色 色综合| 国产精品123区| 色呦呦日韩精品| 欧美日韩一卡二卡| 日韩欧美一二三区| 日本一区二区三区高清不卡| 一区二区在线免费观看| 久久精品国产一区二区三| 国产一区二区三区久久久| 色综合天天视频在线观看| 91麻豆精品国产无毒不卡在线观看 | 日韩一区二区免费视频| 1区2区3区欧美| 国产自产视频一区二区三区| 97精品国产露脸对白| 欧美精品久久99| 国产精品国产三级国产普通话99| 亚洲国产美女搞黄色| 国产91在线观看丝袜| 欧美一级黄色大片| 亚洲欧美aⅴ...| 国产精品一级二级三级| 欧美片网站yy| 亚洲激情中文1区| 国产一级精品在线| 日韩欧美电影在线| 三级亚洲高清视频| 欧美午夜片在线观看| 中文字幕一区二区三区不卡 | 99精品在线免费| 欧美经典一区二区| 激情欧美一区二区三区在线观看| 欧美亚洲日本国产| 樱花草国产18久久久久| 99热99精品| 亚洲女人小视频在线观看| 国产成人av一区二区三区在线观看| 日韩午夜精品视频| 天堂va蜜桃一区二区三区漫画版| 欧洲精品中文字幕| 亚洲自拍都市欧美小说| 欧美在线啊v一区| 一片黄亚洲嫩模| 日本道精品一区二区三区| 亚洲亚洲精品在线观看| 欧美日韩中文一区| 三级在线观看一区二区| 欧美一级理论片| 国产成人精品网址| 国产精品国产三级国产有无不卡| 成人激情校园春色| 亚洲色图在线播放| 欧美人动与zoxxxx乱| 精品一区二区三区在线观看国产| 国产亚洲综合在线| 91视频国产观看| 日韩黄色小视频| 日本一区二区动态图| 欧美吞精做爰啪啪高潮| 麻豆精品蜜桃视频网站| 亚洲国产激情av| 欧美三级资源在线| 久久国产精品99久久久久久老狼| 欧美国产综合一区二区| 欧美日韩精品三区| 国产99久久久久| 日韩高清中文字幕一区| 国产精品免费av| 日韩一区二区在线观看| 91丨九色丨蝌蚪富婆spa| 日韩国产欧美一区二区三区| 国产精品福利影院| 精品国产1区二区| 在线成人午夜影院| 91在线一区二区| 国产成人综合亚洲网站| 亚洲一区二区在线播放相泽| 久久久精品tv| 91麻豆精品国产91久久久更新时间| 成人教育av在线| 国产一区二区伦理| 三级亚洲高清视频| 亚洲成人免费看| 最新中文字幕一区二区三区| 久久美女艺术照精彩视频福利播放| 欧美视频一区在线观看| 色欧美片视频在线观看| 懂色av一区二区三区蜜臀| 国产又粗又猛又爽又黄91精品| 婷婷丁香久久五月婷婷| 亚洲黄色性网站| 亚洲日本护士毛茸茸| 亚洲欧美偷拍卡通变态| 悠悠色在线精品| 亚洲韩国精品一区| 香蕉影视欧美成人| 婷婷开心久久网| 麻豆精品一区二区综合av| 日韩电影在线免费观看| 美女视频第一区二区三区免费观看网站 | 国产夫妻精品视频| 成人不卡免费av| 日本精品视频一区二区| 欧美区一区二区三区| 日韩欧美中文字幕一区| 精品福利二区三区| 国产精品久久久久久福利一牛影视| 中文字幕中文字幕一区| 亚洲电影一区二区三区| 日本不卡一二三区黄网| 国产精品亚洲午夜一区二区三区| 成人av电影在线播放| 欧美男女性生活在线直播观看| 欧美一区二区三区不卡| 日本一区二区免费在线观看视频| 又紧又大又爽精品一区二区| 日日摸夜夜添夜夜添精品视频| 蜜臀av性久久久久蜜臀aⅴ流畅 | 国产精品色哟哟| 亚洲精品中文在线| 毛片不卡一区二区| 成人黄色777网| 欧美丰满美乳xxx高潮www| 精品国产污网站| 欧美日韩亚洲综合一区二区三区| 26uuu国产日韩综合| 国产精品久久久久久久久久久免费看| 亚洲人成网站影音先锋播放| 亚洲不卡在线观看| 免费av网站大全久久| 色网站国产精品| 精品日韩一区二区三区| 国产精品高潮呻吟| 久久av老司机精品网站导航| 色噜噜狠狠成人中文综合| 精品精品国产高清一毛片一天堂| 国产日韩欧美亚洲| 日韩电影免费在线看| 99热精品国产| 欧美一区二区三区公司| **欧美大码日韩| 日本vs亚洲vs韩国一区三区| 色综合咪咪久久| 国产欧美日韩精品一区| 日本不卡一区二区三区高清视频| 99久久久无码国产精品| 久久免费精品国产久精品久久久久| 一区二区成人在线视频| 成人av高清在线| 国产日韩v精品一区二区| 激情小说欧美图片| 日韩亚洲欧美在线观看| 亚洲高清不卡在线观看| 在线精品视频小说1| 亚洲精品videosex极品| 在线看国产日韩| 一区二区三区免费网站| 91热门视频在线观看| 一区二区三区欧美在线观看| 91免费看`日韩一区二区| 亚洲欧洲成人av每日更新| 99热这里都是精品| 性做久久久久久| 91精品国产入口| 秋霞影院一区二区| 欧美日韩成人综合| 国产一区二区三区在线观看精品| 亚洲精品一区二区三区影院| 另类小说一区二区三区| 欧美成人艳星乳罩| 国产成人av电影在线播放| 国产女人aaa级久久久级| 成人激情av网| 一区二区三区产品免费精品久久75| 欧美丝袜第三区| 精品亚洲porn| 最新高清无码专区| 91麻豆精品国产91| 国产精品综合在线视频| 国产精品福利一区二区| 正在播放亚洲一区| 国产91露脸合集magnet| 国产精品乱人伦| 91麻豆免费视频| 精品在线一区二区三区| 亚洲女同一区二区| 日韩女优视频免费观看| 91一区二区在线| 久久99精品国产| 亚洲黄网站在线观看| 中文字幕精品一区二区精品绿巨人| 欧美探花视频资源| 懂色av一区二区三区蜜臀| 亚洲成av人片一区二区梦乃| 国产精品久久久久久久岛一牛影视| 91精品国产色综合久久不卡电影 | 亚洲一区二区三区四区中文字幕|