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

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

?? 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);        }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲电影在线播放| 91成人在线免费观看| 亚洲成人黄色影院| 国产精品拍天天在线| 精品国产三级电影在线观看| 免费成人在线网站| 亚洲午夜国产一区99re久久| 最好看的中文字幕久久| 综合久久久久综合| 亚洲精品伦理在线| 亚洲动漫第一页| 日韩国产精品91| 欧美aaa在线| 国精产品一区一区三区mba桃花 | 粉嫩av一区二区三区粉嫩| 国产福利电影一区二区三区| 丰满放荡岳乱妇91ww| 99久久精品免费看国产免费软件| 91美女片黄在线观看91美女| 99久久777色| 欧美性大战久久久久久久| 欧美日韩精品专区| 欧美成人一区二区三区片免费 | 91麻豆精品国产91久久久久久 | 亚洲国产精品高清| 亚洲人精品午夜| 亚洲国产欧美一区二区三区丁香婷| 亚洲主播在线播放| 捆绑紧缚一区二区三区视频| 国产传媒日韩欧美成人| 色综合天天狠狠| 91精品国产91久久综合桃花 | 亚洲美女精品一区| 日韩和的一区二区| 国产原创一区二区三区| av电影在线观看一区| 欧美日韩一卡二卡| 久久久精品天堂| 亚洲综合在线免费观看| 蜜桃av一区二区在线观看| 成人午夜短视频| 欧美日韩精品欧美日韩精品一| 精品国产1区2区3区| 亚洲人成精品久久久久久| 日韩福利视频导航| 国产成人午夜视频| 欧美日韩免费在线视频| 精品国产1区二区| 一区二区三区自拍| 麻豆精品在线视频| 99精品久久只有精品| 欧美一级午夜免费电影| 国产精品美女久久久久久久久| 亚洲妇女屁股眼交7| 国产一区二区成人久久免费影院| 日本韩国欧美国产| 国产日韩欧美制服另类| 亚洲sss视频在线视频| 成人永久aaa| 日韩一区二区三区四区五区六区| 国产精品久久久久久久第一福利| 欧美a级一区二区| 色婷婷久久综合| 久久久久久免费| 日本中文字幕一区二区视频 | 欧美mv日韩mv国产网站app| 1024亚洲合集| 黑人巨大精品欧美一区| 欧美午夜精品久久久久久超碰| 国产亚洲精品bt天堂精选| 日本欧美肥老太交大片| 91美女蜜桃在线| 欧美激情综合在线| 看电视剧不卡顿的网站| 欧美日韩你懂得| 亚洲狼人国产精品| 成人污视频在线观看| 精品国产乱码久久久久久久| 一区二区三区不卡视频在线观看| 丁香婷婷综合网| 久久免费视频色| 看电视剧不卡顿的网站| 在线播放日韩导航| 亚洲成av人影院| 日本韩国欧美在线| 亚洲欧美日韩一区二区三区在线观看 | 国产精品久久久久aaaa| 精品在线一区二区| 91麻豆精品国产91久久久久久 | 在线精品观看国产| 国产精品国产精品国产专区不片 | 欧美一区二区成人| 日韩国产欧美在线观看| 欧美日韩一区二区电影| 一区二区三区四区视频精品免费 | 国产成人综合视频| 精品少妇一区二区三区日产乱码 | 天天做天天摸天天爽国产一区| 一本大道av伊人久久综合| 国产精品第四页| 粉嫩一区二区三区在线看| 久久精品免费在线观看| 国产成人综合精品三级| 国产午夜精品久久久久久免费视 | 黄色精品一二区| 欧美精品一区二区三区一线天视频 | 亚洲男女一区二区三区| 97精品国产97久久久久久久久久久久| 国产精品嫩草99a| 91小视频在线免费看| 亚洲色图.com| 欧美在线三级电影| 亚洲国产精品欧美一二99| 欧美久久一区二区| 日韩成人免费看| 欧美成人官网二区| 国产一区二区女| 欧美韩国日本一区| 色综合色狠狠综合色| 亚洲成a人片在线不卡一二三区| 欧美日韩一区二区不卡| 麻豆精品视频在线观看视频| 久久影院午夜论| 99re6这里只有精品视频在线观看| 最新国产成人在线观看| 欧美视频自拍偷拍| 六月丁香婷婷色狠狠久久| 26uuu另类欧美| av在线不卡电影| 亚洲18女电影在线观看| 精品少妇一区二区三区视频免付费 | 99久久精品免费精品国产| 一区二区视频免费在线观看| 欧美精品日韩精品| 国产精品一二三四五| 亚洲免费视频成人| 日韩一区二区三区在线| 丁香天五香天堂综合| 亚洲靠逼com| 日韩亚洲欧美中文三级| 丁香激情综合五月| 亚洲成人黄色影院| 久久久蜜桃精品| 欧洲人成人精品| 久久99精品久久久久久国产越南| 国产精品无人区| 91麻豆精品国产91久久久使用方法 | 成人免费视频国产在线观看| 亚洲男人的天堂在线aⅴ视频| 欧美一级高清片| 成人激情开心网| 日韩 欧美一区二区三区| 国产精品伦理在线| 4438x成人网最大色成网站| 成人丝袜视频网| 日本免费新一区视频| 亚洲国产精品av| 欧美一区二区美女| 91色porny在线视频| 激情综合亚洲精品| 亚洲国产综合人成综合网站| 精品国产精品网麻豆系列| 在线影院国内精品| 极品少妇一区二区三区精品视频| 亚洲欧美日韩成人高清在线一区| 日韩三区在线观看| 色综合婷婷久久| 国产福利一区二区| 日韩国产欧美三级| 亚洲精品久久7777| 欧美国产日韩在线观看| 欧美一区二区三区电影| 色一情一乱一乱一91av| 国产精品白丝av| 麻豆免费看一区二区三区| 一区二区三区四区激情| 中文字幕中文字幕一区二区 | 日韩高清欧美激情| 一区二区三区四区高清精品免费观看 | 欧洲精品一区二区三区在线观看| 国产成人精品一区二区三区四区 | 日韩免费观看高清完整版在线观看 | 欧美特级限制片免费在线观看| 国产成人自拍网| 另类成人小视频在线| 亚洲午夜私人影院| 国产精品视频观看| 国产亚洲制服色| 欧美精品一区二区三区高清aⅴ| 欧美精品九九99久久| 欧美色图天堂网| 色偷偷久久一区二区三区| 国产suv精品一区二区6| 国产一区二区三区免费看| 蜜乳av一区二区| 日本视频免费一区| 视频一区视频二区中文| 午夜精品一区二区三区三上悠亚| 一区二区三区视频在线看| 亚洲欧美电影一区二区|