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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? 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. */

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一级片免费看| 成人午夜在线免费| 久久精品欧美日韩精品| 在线免费亚洲电影| 国模套图日韩精品一区二区| 一区二区三区在线视频免费观看 | 欧美一区二区三区四区视频| 国产成人精品影视| 免费在线观看一区| 亚洲精品中文在线影院| 国产亚洲一区二区三区在线观看| 在线观看区一区二| youjizz国产精品| 久久99精品国产麻豆婷婷洗澡| 亚洲与欧洲av电影| 中文字幕中文乱码欧美一区二区| 日韩视频免费观看高清完整版| 在线影视一区二区三区| 高清不卡一区二区在线| 久久国产精品99久久人人澡| 亚洲国产综合91精品麻豆| 国产精品福利一区二区| 久久精品人人做人人爽人人| 欧美哺乳videos| 欧美体内she精高潮| 色综合天天综合狠狠| 国产精品自拍毛片| 男人的天堂亚洲一区| 午夜精品123| 亚洲成人1区2区| 玉足女爽爽91| 亚洲欧美国产三级| 亚洲天天做日日做天天谢日日欢 | 国产精品人人做人人爽人人添| 日韩你懂的在线播放| 欧美日韩aaa| 欧美日韩视频不卡| 欧美日韩一区在线| 欧美日韩一区二区欧美激情| 日本丶国产丶欧美色综合| 色综合欧美在线| 中文字幕在线一区免费| 国产日韩欧美在线一区| 国产日韩精品一区二区三区在线| 2021中文字幕一区亚洲| 国产亚洲精品bt天堂精选| 国产亲近乱来精品视频| 欧美国产精品一区二区三区| 国产日韩欧美激情| 国产精品久久久久一区二区三区| 中文字幕 久热精品 视频在线| 国产精品女主播在线观看| 欧美韩日一区二区三区四区| 亚洲视频免费在线观看| 一区二区三区欧美激情| 亚洲高清免费一级二级三级| 亚洲一本大道在线| 日韩国产精品91| 久久99精品国产麻豆婷婷| 国产成人小视频| 一本色道久久综合亚洲精品按摩| 欧美亚洲愉拍一区二区| 6080日韩午夜伦伦午夜伦| 欧美tickling网站挠脚心| 久久久久久久久久看片| 国产精品久久久久三级| 亚洲综合偷拍欧美一区色| 日韩高清不卡一区二区三区| 精品一区二区三区在线视频| 国产98色在线|日韩| 91久久精品网| 精品少妇一区二区三区日产乱码| 久久久久国产精品人| 亚洲欧美一区二区三区国产精品| 亚洲成av人片一区二区梦乃| 欧美一级xxx| 欧美电影免费观看高清完整版在线观看 | 欧美视频一区在线观看| 91免费观看视频| 欧美日韩黄视频| 欧美成人a视频| 日韩视频免费直播| 日韩视频在线一区二区| 国产精品视频yy9299一区| 亚洲宅男天堂在线观看无病毒| 奇米影视一区二区三区小说| 风间由美一区二区三区在线观看| 色综合久久久网| 日韩欧美不卡一区| 亚洲图片欧美激情| 九一九一国产精品| 色天使久久综合网天天| 欧美一区二区三区四区久久| 国产精品久久久久影院老司| 欧美aa在线视频| 色综合色狠狠综合色| 26uuu亚洲综合色欧美| 一区二区视频在线| 国产一区二区在线视频| 欧美日韩亚洲综合一区二区三区| 久久久久久久久99精品| 日本vs亚洲vs韩国一区三区二区| 成人教育av在线| 精品人伦一区二区色婷婷| 夜夜嗨av一区二区三区中文字幕| 国产专区欧美精品| 欧美挠脚心视频网站| 一区二区中文视频| 国产一区二区三区在线观看精品| 色94色欧美sute亚洲线路一久| 久久欧美一区二区| 免费观看日韩av| 欧美日韩高清一区二区| 亚洲视频电影在线| 成人在线视频首页| 久久一二三国产| 青青草97国产精品免费观看| 欧美性极品少妇| 综合久久久久久久| 成人免费观看男女羞羞视频| 精品久久久久久亚洲综合网| 偷拍日韩校园综合在线| 色域天天综合网| 国产精品福利一区| 成人午夜av在线| 成人av在线网站| 亚洲地区一二三色| 日本成人在线看| 国产精品国产馆在线真实露脸| 人人精品人人爱| 91精品国产综合久久久久久漫画| 日韩黄色免费电影| 国产欧美日本一区视频| 99视频精品在线| 亚洲国产精品欧美一二99| 91精品国产综合久久久蜜臀图片| 日本美女一区二区| 日本欧美在线观看| 国产欧美视频在线观看| 久久国产乱子精品免费女| 欧美成人一区二区三区 | 蜜臀国产一区二区三区在线播放| 精品1区2区3区| 午夜天堂影视香蕉久久| 精品视频一区二区不卡| 性做久久久久久| 欧美一区二区三区不卡| 蜜臀av亚洲一区中文字幕| 欧美xxxxxxxxx| 国产高清成人在线| 国产精品天美传媒| 一本一道波多野结衣一区二区| 亚洲激情五月婷婷| 欧美日本一区二区三区四区| 日韩成人一级大片| 精品成人在线观看| 国产成人精品一区二区三区四区| 亚洲国产精品成人综合| 一本色道久久加勒比精品| 亚洲高清免费视频| 欧美va亚洲va| av电影天堂一区二区在线观看| 亚洲色图在线播放| 欧美日韩成人一区二区| 久久成人久久爱| 国产精品素人视频| 色94色欧美sute亚洲13| 免费精品99久久国产综合精品| 亚洲精品一区二区在线观看| 精品少妇一区二区三区| 国产99精品国产| 亚洲高清免费在线| 久久久久国色av免费看影院| 色综合久久综合中文综合网| 五月天中文字幕一区二区| 久久综合九色综合97_久久久| caoporm超碰国产精品| 亚瑟在线精品视频| 久久九九影视网| 欧美三级欧美一级| 国产精品一品视频| 亚洲一二三四久久| 久久夜色精品一区| 欧美视频一二三区| 国产精品亚洲午夜一区二区三区 | 婷婷开心激情综合| 国产精品视频观看| 欧美一区二区三区不卡| 91丝袜美女网| 久久精品av麻豆的观看方式| 亚洲欧美电影一区二区| www国产亚洲精品久久麻豆| 欧洲亚洲国产日韩| 国产经典欧美精品| 奇米影视一区二区三区| 中文字幕一区二区视频| 精品国产欧美一区二区| 欧美亚一区二区| 成人动漫中文字幕| 久久国产尿小便嘘嘘|