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

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

?? tmpltpsr.c

?? clips源代碼
?? C
?? 第 1 頁 / 共 2 頁
字號:
   /*******************************************************/   /*      "C" Language Integrated Production System      */   /*                                                     */   /*             CLIPS Version 6.23  01/31/05            */   /*                                                     */   /*              DEFTEMPLATE PARSER MODULE              */   /*******************************************************//*************************************************************//* Purpose: Parses the deftemplate construct.                *//*                                                           *//* Principal Programmer(s):                                  *//*      Gary D. Riley                                        *//*                                                           *//* Contributing Programmer(s):                               *//*                                                           *//* Revision History:                                         *//*      6.23: Added support for templates maintaining their  *//*            own list of facts.                             *//*                                                           *//*************************************************************/#define _TMPLTPSR_SOURCE_#include "setup.h"#if DEFTEMPLATE_CONSTRUCT#include <stdio.h>#define _STDIO_INCLUDED_#include <string.h>#include "constant.h"#include "memalloc.h"#include "symbol.h"#include "scanner.h"#include "exprnpsr.h"#include "router.h"#include "constrct.h"#include "envrnmnt.h"#include "factmngr.h"#include "cstrnchk.h"#include "cstrnpsr.h"#include "cstrcpsr.h"#if BLOAD || BLOAD_AND_BSAVE#include "bload.h"#endif#include "default.h"#include "pattern.h"#include "watch.h"#include "cstrnutl.h"#include "tmpltdef.h"#include "tmpltbsc.h"#include "tmpltpsr.h"/***************************************//* LOCAL INTERNAL FUNCTION DEFINITIONS *//***************************************/#if (! RUN_TIME) && (! BLOAD_ONLY)   static struct templateSlot    *SlotDeclarations(void *,char *,struct token *);   static struct templateSlot    *ParseSlot(void *,char *,struct token *,struct templateSlot *);   static struct templateSlot    *DefinedSlots(void *,char *,SYMBOL_HN *,int,struct token *);#endif/*******************************************************//* ParseDeftemplate: Parses the deftemplate construct. *//*******************************************************/globle int ParseDeftemplate(  void *theEnv,  char *readSource)  {#if (MAC_MCW || IBM_MCW) && (RUN_TIME || BLOAD_ONLY)#pragma unused(readSource)#endif#if (! RUN_TIME) && (! BLOAD_ONLY)   SYMBOL_HN *deftemplateName;   struct deftemplate *newDeftemplate;   struct templateSlot *slots;   struct token inputToken;   /*================================================*/   /* Initialize pretty print and error information. */   /*================================================*/   DeftemplateData(theEnv)->DeftemplateError = FALSE;   SetPPBufferStatus(theEnv,ON);   FlushPPBuffer(theEnv);   SavePPBuffer(theEnv,"(deftemplate ");   /*==============================================================*/   /* Deftemplates can not be added when a binary image is loaded. */   /*==============================================================*/#if BLOAD || BLOAD_AND_BSAVE   if ((Bloaded(theEnv) == TRUE) && (! ConstructData(theEnv)->CheckSyntaxMode))     {      CannotLoadWithBloadMessage(theEnv,"deftemplate");      return(TRUE);     }#endif   /*=======================================================*/   /* Parse the name and comment fields of the deftemplate. */   /*=======================================================*/#if DEBUGGING_FUNCTIONS   DeftemplateData(theEnv)->DeletedTemplateDebugFlags = 0;#endif   deftemplateName = GetConstructNameAndComment(theEnv,readSource,&inputToken,"deftemplate",                                                EnvFindDeftemplate,EnvUndeftemplate,"%",                                                TRUE,TRUE,TRUE);   if (deftemplateName == NULL) return(TRUE);   if (ReservedPatternSymbol(theEnv,ValueToString(deftemplateName),"deftemplate"))     {      ReservedPatternSymbolErrorMsg(theEnv,ValueToString(deftemplateName),"a deftemplate name");      return(TRUE);     }   /*===========================================*/   /* Parse the slot fields of the deftemplate. */   /*===========================================*/   slots = SlotDeclarations(theEnv,readSource,&inputToken);   if (DeftemplateData(theEnv)->DeftemplateError == TRUE) return(TRUE);   /*==============================================*/   /* If we're only checking syntax, don't add the */   /* successfully parsed deftemplate to the KB.   */   /*==============================================*/   if (ConstructData(theEnv)->CheckSyntaxMode)     {      ReturnSlots(theEnv,slots);      return(FALSE);     }   /*=====================================*/   /* Create a new deftemplate structure. */   /*=====================================*/   newDeftemplate = get_struct(theEnv,deftemplate);   newDeftemplate->header.name =  deftemplateName;   newDeftemplate->header.next = NULL;   newDeftemplate->header.usrData = NULL;   newDeftemplate->slotList = slots;   newDeftemplate->implied = FALSE;   newDeftemplate->numberOfSlots = 0;   newDeftemplate->busyCount = 0;   newDeftemplate->watch = 0;   newDeftemplate->inScope = TRUE;   newDeftemplate->patternNetwork = NULL;   newDeftemplate->factList = NULL;   newDeftemplate->lastFact = NULL;   newDeftemplate->header.whichModule = (struct defmoduleItemHeader *)                                        GetModuleItem(theEnv,NULL,DeftemplateData(theEnv)->DeftemplateModuleIndex);   /*================================*/   /* Determine the number of slots. */   /*================================*/   while (slots != NULL)     {      newDeftemplate->numberOfSlots++;      slots = slots->next;     }   /*====================================*/   /* Store pretty print representation. */   /*====================================*/   if (EnvGetConserveMemory(theEnv) == TRUE)     { newDeftemplate->header.ppForm = NULL; }   else     { newDeftemplate->header.ppForm = CopyPPBuffer(theEnv); }   /*=======================================================================*/   /* If a template is redefined, then we want to restore its watch status. */   /*=======================================================================*/#if DEBUGGING_FUNCTIONS   if ((BitwiseTest(DeftemplateData(theEnv)->DeletedTemplateDebugFlags,0)) || EnvGetWatchItem(theEnv,"facts"))     { EnvSetDeftemplateWatch(theEnv,ON,(void *) newDeftemplate); }#endif   /*==============================================*/   /* Add deftemplate to the list of deftemplates. */   /*==============================================*/   AddConstructToModule(&newDeftemplate->header);   InstallDeftemplate(theEnv,newDeftemplate);#else#if MAC_MCW || IBM_MCW || MAC_XCD#pragma unused(theEnv)#endif#endif   return(FALSE);  }#if (! RUN_TIME) && (! BLOAD_ONLY)/**************************************************************//* InstallDeftemplate: Increments all occurrences in the hash *//*   table of symbols found in an deftemplate and adds it to  *//*   the hash table.                                          *//**************************************************************/globle void InstallDeftemplate(  void *theEnv,  struct deftemplate *theDeftemplate)  {   struct templateSlot *slotPtr;   struct expr *tempExpr;   IncrementSymbolCount(theDeftemplate->header.name);   for (slotPtr = theDeftemplate->slotList;        slotPtr != NULL;        slotPtr = slotPtr->next)     {      IncrementSymbolCount(slotPtr->slotName);      tempExpr = AddHashedExpression(theEnv,slotPtr->defaultList);      ReturnExpression(theEnv,slotPtr->defaultList);      slotPtr->defaultList = tempExpr;      slotPtr->constraints = AddConstraint(theEnv,slotPtr->constraints);     }  }/********************************************************************//* SlotDeclarations: Parses the slot declarations of a deftemplate. *//********************************************************************/static struct templateSlot *SlotDeclarations(  void *theEnv,  char *readSource,  struct token *inputToken)  {   struct templateSlot *newSlot, *slotList = NULL, *lastSlot = NULL;   struct templateSlot *multiSlot = NULL;   while (inputToken->type != RPAREN)     {      /*====================================================*/      /* Slots begin with a '(' followed by a slot keyword. */      /*====================================================*/      if (inputToken->type != LPAREN)        {         SyntaxErrorMessage(theEnv,"deftemplate");         ReturnSlots(theEnv,slotList);         ReturnSlots(theEnv,multiSlot);         DeftemplateData(theEnv)->DeftemplateError = TRUE;         return(NULL);        }      GetToken(theEnv,readSource,inputToken);      if (inputToken->type != SYMBOL)        {         SyntaxErrorMessage(theEnv,"deftemplate");         ReturnSlots(theEnv,slotList);         ReturnSlots(theEnv,multiSlot);         DeftemplateData(theEnv)->DeftemplateError = TRUE;         return(NULL);        }      /*=================*/      /* Parse the slot. */      /*=================*/      newSlot = ParseSlot(theEnv,readSource,inputToken,slotList);      if (DeftemplateData(theEnv)->DeftemplateError == TRUE)        {         ReturnSlots(theEnv,newSlot);         ReturnSlots(theEnv,slotList);         ReturnSlots(theEnv,multiSlot);         return(NULL);        }      /*===========================================*/      /* Attach the new slot to the list of slots. */      /*===========================================*/      if (newSlot != NULL)        {         if (lastSlot == NULL)           { slotList = newSlot; }         else           { lastSlot->next = newSlot; }         lastSlot = newSlot;        }      /*================================*/      /* Check for closing parenthesis. */      /*================================*/      GetToken(theEnv,readSource,inputToken);      if (inputToken->type != RPAREN)        {         PPBackup(theEnv);         SavePPBuffer(theEnv,"\n   ");         SavePPBuffer(theEnv,inputToken->printForm);        }

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
午夜在线成人av| 欧美伦理电影网| 亚洲成av人影院在线观看网| 日韩欧美色电影| 欧美日韩久久不卡| av高清久久久| 国产久卡久卡久卡久卡视频精品| 久久久国产综合精品女国产盗摄| 99视频一区二区| 精品无人区卡一卡二卡三乱码免费卡 | 国产精品久久久久久久久快鸭 | 在线观看一区二区精品视频| 91在线云播放| 色诱视频网站一区| 久久9热精品视频| 亚洲久草在线视频| 亚洲妇熟xx妇色黄| 欧美高清在线精品一区| 欧美剧情片在线观看| av不卡在线观看| 国产盗摄女厕一区二区三区| 蜜桃视频在线观看一区| 天堂在线一区二区| 午夜免费欧美电影| 欧美一级高清片| 91麻豆自制传媒国产之光| 91麻豆免费观看| 欧美日韩三级在线| 欧美一区二区大片| 久久久噜噜噜久久人人看 | 欧美极品少妇xxxxⅹ高跟鞋| 欧美激情在线看| 亚洲综合视频网| 日韩精品欧美精品| 国产揄拍国内精品对白| 国产.欧美.日韩| 在线观看av不卡| 欧美不卡一区二区| 中文字幕一区二区三区在线不卡 | 欧美精品一区二区精品网| 国产亚洲欧美日韩在线一区| 亚洲欧美电影一区二区| 日韩二区三区在线观看| 黄网站免费久久| 91啪九色porn原创视频在线观看| 欧美人与性动xxxx| 国产亚洲自拍一区| 亚洲综合久久久久| 精品一区精品二区高清| 99re在线精品| 欧美一级二级在线观看| 国产精品美女久久久久av爽李琼| 亚洲综合久久久久| 国产盗摄一区二区| 欧美精三区欧美精三区| 国产精品久久久久久久久晋中| 亚洲超碰精品一区二区| 国产成人精品网址| 91精品国产入口在线| 国产精品成人午夜| 色婷婷综合久久| 2021中文字幕一区亚洲| 毛片av一区二区三区| 国产精品亚洲视频| 欧美日韩一区中文字幕| 国产精品久久国产精麻豆99网站| 日本中文一区二区三区| 色婷婷久久综合| 中文字幕+乱码+中文字幕一区| 亚洲va韩国va欧美va精品| 色欧美日韩亚洲| 日韩视频一区二区三区在线播放 | 精品精品欲导航| 亚洲乱码国产乱码精品精98午夜 | 蜜臀久久久久久久| 色吧成人激情小说| 久久精品这里都是精品| 亚洲自拍偷拍av| 不卡的电影网站| 2020国产精品自拍| 三级影片在线观看欧美日韩一区二区| 成人在线视频一区二区| 日韩女优视频免费观看| 亚洲国产欧美日韩另类综合| 白白色 亚洲乱淫| 久久免费看少妇高潮| 蜜乳av一区二区三区| 欧美午夜电影一区| **网站欧美大片在线观看| 国产一区二区成人久久免费影院| 欧美日韩的一区二区| 一区二区三区在线视频观看58| 国产98色在线|日韩| 精品国产免费一区二区三区香蕉| 日本伊人午夜精品| 91精品国模一区二区三区| 亚洲国产一区二区三区青草影视| 91亚洲午夜精品久久久久久| 国产精品久久久久久久久久久免费看| 国产一二三精品| 精品国产a毛片| 久久成人免费网站| 欧美不卡在线视频| 免费在线看一区| 欧美一二三四在线| 日韩av一区二区三区| 91麻豆精品国产自产在线| 香蕉加勒比综合久久| 欧美军同video69gay| 天天综合天天综合色| 欧美精品乱码久久久久久按摩| 亚洲aⅴ怡春院| 欧美日韩黄色一区二区| 视频一区二区国产| 欧美一区二区在线免费观看| 日本成人在线网站| 日韩欧美国产电影| 精品中文字幕一区二区| 2021久久国产精品不只是精品| 国产黄色成人av| 国产欧美日韩另类一区| 94-欧美-setu| 亚洲午夜视频在线观看| 777色狠狠一区二区三区| 美女在线一区二区| 2023国产精品视频| 成人18精品视频| 一区二区三区在线观看欧美| 欧美年轻男男videosbes| 久久精品免费观看| 日本一区二区三区电影| 日本道免费精品一区二区三区| 亚洲午夜久久久久| 欧美一卡2卡3卡4卡| 国内精品视频666| 中文一区二区在线观看| 91国偷自产一区二区使用方法| 亚洲.国产.中文慕字在线| 日韩欧美黄色影院| 播五月开心婷婷综合| 亚洲成人精品一区| 精品国产伦一区二区三区观看方式| 成人久久18免费网站麻豆| 亚洲国产va精品久久久不卡综合| 日韩欧美一级二级三级| 波多野结衣中文一区| 亚洲成精国产精品女| 久久精品人人爽人人爽| 欧美视频中文一区二区三区在线观看| 青青草伊人久久| 成人欧美一区二区三区黑人麻豆 | 欧美性色欧美a在线播放| 另类小说色综合网站| 中文字幕制服丝袜成人av| 欧美日本在线一区| 丁香六月久久综合狠狠色| 性做久久久久久| 国产欧美日韩精品一区| 丝袜亚洲另类欧美| 国产精品亚洲午夜一区二区三区| 久久久九九九九| 亚洲欧洲美洲综合色网| 国产成人亚洲综合色影视 | 理论电影国产精品| 欧美激情一区三区| 欧美性色黄大片| 国产成人精品亚洲日本在线桃色| 欧美日韩另类一区| 欧美日韩中文另类| 精品欧美一区二区在线观看| 一区二区三区日本| 亚洲午夜在线观看视频在线| 麻豆精品新av中文字幕| www.欧美色图| 91精品国产欧美一区二区18| 国产精品狼人久久影院观看方式| 五月激情六月综合| 韩国三级在线一区| 91精品国产免费| 夜夜揉揉日日人人青青一国产精品| 日韩精品一区二区在线| 在线观看日韩av先锋影音电影院| 成人中文字幕电影| 极品少妇xxxx精品少妇| 天堂影院一区二区| 亚洲男人的天堂在线观看| 久久精品视频一区| 欧美电视剧在线看免费| 欧美日韩在线直播| 91麻豆免费观看| 成人aaaa免费全部观看| 国产精品一区二区在线播放 | 丝袜亚洲另类欧美| 亚洲黄网站在线观看| 中文子幕无线码一区tr | 九色综合国产一区二区三区| 午夜精品久久久久久久99樱桃| 一区二区欧美在线观看| 中文字幕中文字幕中文字幕亚洲无线 | 国产日韩在线不卡|