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

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

?? factrhs.c

?? clips源代碼
?? C
?? 第 1 頁 / 共 2 頁
字號:
   /*******************************************************/   /*      "C" Language Integrated Production System      */   /*                                                     */   /*             CLIPS Version 6.21  06/15/03            */   /*                                                     */   /*            FACT RHS PATTERN PARSER MODULE           */   /*******************************************************//*************************************************************//* Purpose: Provides a number of routines for parsing fact   *//*   patterns typically found on the RHS of a rule (such as  *//*   the assert command). Also contains some functions for   *//*   parsing RHS slot values (used by functions such as      *//*   assert, modify, and duplicate).                         *//*                                                           *//* Principal Programmer(s):                                  *//*      Gary D. Riley                                        *//*                                                           *//* Contributing Programmer(s):                               *//*      Chris Culbert                                        *//*      Brian L. Donnell                                     *//*                                                           *//* Revision History:                                         *//*                                                           *//*************************************************************/#define _FACTRHS_SOURCE_#include <stdio.h>#define _STDIO_INCLUDED_#include <string.h>#include "setup.h"#if DEFTEMPLATE_CONSTRUCT#include "constant.h"#include "envrnmnt.h"#include "extnfunc.h"#include "modulutl.h"#include "modulpsr.h"#include "pattern.h"#include "prntutil.h"#include "cstrcpsr.h"#if BLOAD_AND_BSAVE || BLOAD || BLOAD_ONLY#include "bload.h"#endif#include "tmpltpsr.h"#include "tmpltrhs.h"#include "tmpltutl.h"#include "exprnpsr.h"#include "strngrtr.h"#include "router.h"#include "factrhs.h"/***************************************//* LOCAL INTERNAL FUNCTION DEFINITIONS *//***************************************/#if RUN_TIME || BLOAD_ONLY || BLOAD || BLOAD_AND_BSAVE   static void                       NoSuchTemplateError(void *,char *);#endif#if (! RUN_TIME)/**********************************************************************//* BuildRHSAssert: Parses zero or more RHS fact patterns (the format  *//*   which is used by the assert command and the deffacts construct). *//*   Each of the RHS patterns is attached to an assert command and if *//*   there is more than one assert command, then a progn command is   *//*   wrapped around all of the assert commands.                       *//**********************************************************************/globle struct expr *BuildRHSAssert(  void *theEnv,  char *logicalName,  struct token *theToken,  int *error,  int atLeastOne,  int readFirstParen,  char *whereParsed)  {   struct expr *lastOne, *nextOne, *assertList, *stub;   *error = FALSE;   /*===============================================================*/   /* If the first parenthesis of the RHS fact pattern has not been */   /* read yet, then get the next token. If a right parenthesis is  */   /* encountered then exit (however, set the error return value if */   /* at least one fact was expected).                              */   /*===============================================================*/   if (readFirstParen == FALSE)     {      if (theToken->type == RPAREN)        {         if (atLeastOne)           {            *error = TRUE;            SyntaxErrorMessage(theEnv,whereParsed);           }         return(NULL);        }     }   /*================================================*/   /* Parse the facts until no more are encountered. */   /*================================================*/   lastOne = assertList = NULL;   while ((nextOne = GetRHSPattern(theEnv,logicalName,theToken,                                   error,FALSE,readFirstParen,                                   TRUE,RPAREN)) != NULL)     {      PPCRAndIndent(theEnv);      stub = GenConstant(theEnv,FCALL,(void *) FindFunction(theEnv,"assert"));      stub->argList = nextOne;      nextOne = stub;      if (lastOne == NULL)        { assertList = nextOne; }      else        { lastOne->nextArg = nextOne; }      lastOne = nextOne;      readFirstParen = TRUE;     }   /*======================================================*/   /* If an error was detected while parsing, then return. */   /*======================================================*/   if (*error)     {      ReturnExpression(theEnv,assertList);      return(NULL);     }   /*======================================*/   /* Fix the pretty print representation. */   /*======================================*/   if (theToken->type == RPAREN)     {      PPBackup(theEnv);      PPBackup(theEnv);      SavePPBuffer(theEnv,")");     }   /*==============================================================*/   /* If no facts are being asserted then return NULL. In addition */   /* if at least one fact was required, then signal an error.     */   /*==============================================================*/   if (assertList == NULL)     {      if (atLeastOne)        {         *error = TRUE;         SyntaxErrorMessage(theEnv,whereParsed);        }      return(NULL);     }   /*===============================================*/   /* If more than one fact is being asserted, then */   /* wrap the assert commands within a progn call. */   /*===============================================*/   if (assertList->nextArg != NULL)     {      stub = GenConstant(theEnv,FCALL,(void *) FindFunction(theEnv,"progn"));      stub->argList = assertList;      assertList = stub;     }   /*==========================================================*/   /* Return the expression for asserting the specified facts. */   /*==========================================================*/   return(assertList);  }#endif/***************************************************************//* GetRHSPattern: Parses a single RHS fact pattern. The return *//*   value is the fact just parsed (or NULL if the delimiter   *//*   for no more facts is the first token parsed). If an error *//*   occurs, then the error flag passed as an argument is set. *//***************************************************************/globle struct expr *GetRHSPattern(  void *theEnv,  char *readSource,  struct token *tempToken,  int *error,  int constantsOnly,  int readFirstParen,  int checkFirstParen,  int endType)  {   struct expr *lastOne = NULL;   struct expr *nextOne, *firstOne, *argHead = NULL;   int printError, count;   struct deftemplate *theDeftemplate;   struct symbolHashNode *templateName;   /*=================================================*/   /* Get the opening parenthesis of the RHS pattern. */   /*=================================================*/   *error = FALSE;   if (readFirstParen) GetToken(theEnv,readSource,tempToken);   if (checkFirstParen)     {      if (tempToken->type == endType) return(NULL);      if (tempToken->type != LPAREN)        {         SyntaxErrorMessage(theEnv,"RHS patterns");         *error = TRUE;         return(NULL);        }     }   /*======================================================*/   /* The first field of an asserted fact must be a symbol */   /* (but not = or : which have special significance).    */   /*======================================================*/   GetToken(theEnv,readSource,tempToken);   if (tempToken->type != SYMBOL)     {      SyntaxErrorMessage(theEnv,"first field of a RHS pattern");      *error = TRUE;      return(NULL);     }   else if ((strcmp(ValueToString(tempToken->value),"=") == 0) ||            (strcmp(ValueToString(tempToken->value),":") == 0))     {      SyntaxErrorMessage(theEnv,"first field of a RHS pattern");      *error = TRUE;      return(NULL);     }   /*=========================================================*/   /* Check to see if the relation name is a reserved symbol. */   /*=========================================================*/   templateName = (struct symbolHashNode *) tempToken->value;   if (ReservedPatternSymbol(theEnv,ValueToString(templateName),NULL))     {      ReservedPatternSymbolErrorMsg(theEnv,ValueToString(templateName),"a relation name");      *error = TRUE;      return(NULL);     }   /*============================================================*/   /* A module separator in the name is illegal in this context. */   /*============================================================*/   if (FindModuleSeparator(ValueToString(templateName)))     {      IllegalModuleSpecifierMessage(theEnv);      *error = TRUE;      return(NULL);     }   /*=============================================================*/   /* Determine if there is an associated deftemplate. If so, let */   /* the deftemplate parsing functions parse the RHS pattern and */   /* then return the fact pattern that was parsed.               */   /*=============================================================*/   theDeftemplate = (struct deftemplate *)                    FindImportedConstruct(theEnv,"deftemplate",NULL,ValueToString(templateName),                                          &count,TRUE,NULL);   if (count > 1)     {      AmbiguousReferenceErrorMessage(theEnv,"deftemplate",ValueToString(templateName));      *error = TRUE;      return(NULL);     }   /*======================================================*/   /* If no deftemplate exists with the specified relation */   /* name, then create an implied deftemplate.            */   /*======================================================*/   if (theDeftemplate == NULL)#if (! BLOAD_ONLY) && (! RUN_TIME)     {#if BLOAD || BLOAD_AND_BSAVE      if ((Bloaded(theEnv)) && (! ConstructData(theEnv)->CheckSyntaxMode))        {         NoSuchTemplateError(theEnv,ValueToString(templateName));         *error = TRUE;         return(NULL);        }#endif#if DEFMODULE_CONSTRUCT      if (FindImportExportConflict(theEnv,"deftemplate",((struct defmodule *) EnvGetCurrentModule(theEnv)),ValueToString(templateName)))        {         ImportExportConflictMessage(theEnv,"implied deftemplate",ValueToString(templateName),NULL,NULL);         *error = TRUE;         return(NULL);        }#endif      if (! ConstructData(theEnv)->CheckSyntaxMode)

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲影视在线观看| 国产激情一区二区三区桃花岛亚洲| 色老头久久综合| 91伊人久久大香线蕉| 99九九99九九九视频精品| 在线精品国精品国产尤物884a| 在线亚洲一区观看| 欧美国产一区二区| 国产精品久久久久9999吃药| 亚洲乱码中文字幕综合| 日韩在线a电影| 国产一区二区三区电影在线观看 | 日韩免费看网站| 精品免费99久久| 中文字幕一区二区在线播放 | www.66久久| 欧美日韩极品在线观看一区| 日韩精品中文字幕在线不卡尤物| 亚洲欧美偷拍卡通变态| 日本中文字幕一区二区视频| 国产精品影视天天线| 欧洲一区二区三区在线| 综合久久给合久久狠狠狠97色| 亚洲第一久久影院| 成人自拍视频在线| 欧美高清www午色夜在线视频| 久久精品在线免费观看| 一区二区三区日韩欧美精品| 激情欧美日韩一区二区| 91成人网在线| 亚洲自拍欧美精品| 欧美挠脚心视频网站| 五月综合激情网| 91麻豆精东视频| 亚洲自拍偷拍图区| 欧美精品日韩综合在线| 麻豆91精品视频| 欧美主播一区二区三区| 午夜电影网亚洲视频| 日韩一区二区在线看片| 亚洲精品成人悠悠色影视| 欧美午夜理伦三级在线观看| 中文字幕一区二| 日本高清免费不卡视频| 日本中文字幕一区二区有限公司| 日韩一级免费观看| 国产九色sp调教91| 亚洲黄色免费网站| 在线综合亚洲欧美在线视频| 一区二区三区成人| 欧美军同video69gay| 欧美aaaaa成人免费观看视频| 91黄色在线观看| 日韩精品福利网| 久久久高清一区二区三区| 日本亚洲三级在线| 久久亚洲免费视频| 国产精品一区二区在线看| 日韩一区在线看| 欧美夫妻性生活| 大尺度一区二区| 午夜日韩在线观看| 国产农村妇女精品| 成人免费毛片片v| 午夜精品久久久久久久久久| 久久老女人爱爱| 欧美图区在线视频| 粉嫩在线一区二区三区视频| 日本一区二区三级电影在线观看 | 国产大陆亚洲精品国产| 亚洲欧洲日韩av| 91精品视频网| 色综合天天综合网国产成人综合天 | 在线不卡的av| 国产成人自拍高清视频在线免费播放| 亚洲人123区| 亚洲精品一区二区三区福利 | 日本午夜精品视频在线观看| 国产精品毛片久久久久久久| 成人国产电影网| 中文字幕一区二区三区在线不卡| 欧美日韩精品欧美日韩精品一| 国产成人免费在线观看不卡| 亚瑟在线精品视频| 亚洲免费视频中文字幕| 久久久www免费人成精品| 678五月天丁香亚洲综合网| 91丝袜高跟美女视频| 国产精品一区在线观看你懂的| 五月激情六月综合| 依依成人精品视频| 中文字幕五月欧美| 国产精品色呦呦| 2023国产精品视频| 日韩精品专区在线影院重磅| 欧美精品第1页| 精品视频一区二区三区免费| 精品在线免费观看| 最好看的中文字幕久久| 国产欧美日韩卡一| 久久久www成人免费毛片麻豆 | 国产主播一区二区| 麻豆精品一区二区三区| 日韩国产欧美在线观看| 日韩黄色免费电影| 日韩1区2区日韩1区2区| 日韩av中文字幕一区二区三区| 亚洲制服丝袜av| 亚洲国产aⅴ成人精品无吗| 久久久久久亚洲综合| 欧美精品一区二区三区蜜桃 | 亚洲精品国产品国语在线app| 亚洲天堂成人网| 亚洲女与黑人做爰| 一区二区三区欧美日韩| 亚洲综合激情小说| 日精品一区二区三区| 日韩国产欧美视频| 狠狠色丁香九九婷婷综合五月| 久久激情五月激情| 亚洲动漫第一页| 日本不卡一区二区三区高清视频| 天天操天天综合网| 久久精品国产亚洲高清剧情介绍| 久久精品国产第一区二区三区| 捆绑变态av一区二区三区| 国内不卡的二区三区中文字幕 | 欧美日韩中文国产| 在线播放国产精品二区一二区四区| 欧美日产国产精品| 欧美成人精品1314www| 国产欧美一区二区精品性色| 1000部国产精品成人观看| 亚洲综合在线观看视频| 日韩av电影免费观看高清完整版在线观看| 日本亚洲天堂网| 成人v精品蜜桃久久一区| 在线观看av一区| 精品久久久久久亚洲综合网| 国产精品女主播av| 香蕉加勒比综合久久| 国产精品88av| 欧美视频第二页| 久久在线观看免费| 一级日本不卡的影视| 精品在线一区二区| 色天使久久综合网天天| 91麻豆国产福利在线观看| 欧美精品丝袜久久久中文字幕| 久久夜色精品一区| 亚洲国产精品一区二区久久 | 日韩免费视频线观看| 国产精品久久二区二区| 婷婷综合在线观看| 福利一区在线观看| 欧美一区二区播放| 日韩精品一区二区三区蜜臀| 国产精品你懂的| 九色综合国产一区二区三区| 欧美在线免费视屏| 国产精品你懂的在线欣赏| 久久99国内精品| 欧美日韩中字一区| 国产精品理伦片| 国产一区二区三区在线观看免费| 色婷婷久久久亚洲一区二区三区| 精品国产不卡一区二区三区| 亚洲国产三级在线| 91色视频在线| 亚洲国产精品二十页| 看电视剧不卡顿的网站| 欧美日韩一区二区三区高清| 国产精品不卡一区| 国产suv一区二区三区88区| 欧美一级日韩一级| 亚洲大片在线观看| 在线观看亚洲一区| 国产精品久久久久久久裸模| 国产精品亚洲第一| 久久久久久久性| 精品一区二区三区日韩| 日韩三级中文字幕| 日韩电影在线一区| 欧美喷潮久久久xxxxx| 亚洲大片免费看| 欧美视频中文字幕| 亚洲国产裸拍裸体视频在线观看乱了| www.视频一区| 国产精品短视频| av亚洲精华国产精华| 亚洲欧美在线另类| 色av成人天堂桃色av| 亚洲精品菠萝久久久久久久| www.一区二区| 亚洲欧美国产高清| 在线亚洲人成电影网站色www| 亚洲另类在线视频| 欧美三日本三级三级在线播放| 一区二区不卡在线播放| 欧美日韩中文国产|