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

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

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

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产wwwccc36天堂| 欧美成人午夜电影| 国产精品丝袜黑色高跟| 懂色av噜噜一区二区三区av| 久久女同精品一区二区| 国产精品影音先锋| 国产精品理论片在线观看| 成人免费视频caoporn| 中文字幕在线不卡视频| 色哟哟国产精品| 午夜久久久影院| 日韩精品中文字幕一区 | 精品久久久久久久人人人人传媒| 蜜乳av一区二区| 欧美成人一区二区三区片免费 | 欧美激情一区二区在线| 成年人午夜久久久| 亚洲国产精品精华液网站| 3d动漫精品啪啪一区二区竹菊| 日韩国产精品大片| 久久久无码精品亚洲日韩按摩| 懂色av一区二区在线播放| 国产精品日韩精品欧美在线| 色激情天天射综合网| 天天影视色香欲综合网老头| 26uuu精品一区二区| 白白色 亚洲乱淫| 午夜激情久久久| 国产欧美日韩视频一区二区| 色综合久久天天| 日本午夜一本久久久综合| 中文字幕亚洲精品在线观看| 欧美日本免费一区二区三区| 国产在线视视频有精品| 综合久久给合久久狠狠狠97色| 91精品国产综合久久精品图片| 国产一区二区三区四区五区美女| 亚洲激情图片qvod| 久久精品一级爱片| 欧美色视频在线| 高清日韩电视剧大全免费| 亚洲午夜精品17c| 欧美国产精品一区| 日韩一区二区三区电影在线观看 | 一区二区三区在线观看网站| 欧美mv日韩mv国产网站app| 99精品久久只有精品| 毛片av一区二区三区| 亚洲免费观看高清完整版在线观看 | 中文字幕巨乱亚洲| 91精品国产91热久久久做人人| 福利电影一区二区| 国产专区欧美精品| 性做久久久久久久久| 亚洲同性同志一二三专区| 日韩精品一区二区三区三区免费| 色一情一乱一乱一91av| 国产宾馆实践打屁股91| 日本成人中文字幕| 亚洲一区在线观看免费| 中文字幕中文字幕在线一区| 精品久久人人做人人爱| 7777精品伊人久久久大香线蕉完整版 | 欧美中文字幕一区二区三区| 国产高清不卡二三区| 久久精品国产第一区二区三区| 亚洲大片精品永久免费| 亚洲自拍另类综合| 亚洲精品乱码久久久久久久久 | 亚洲精品一区二区在线观看| 欧美日韩另类一区| 欧美性猛交xxxxxx富婆| 91美女片黄在线观看91美女| www.欧美.com| 91九色02白丝porn| 色婷婷激情综合| 91福利社在线观看| 91国偷自产一区二区开放时间| 91在线丨porny丨国产| 成人永久免费视频| 国产一区二区三区久久久| 美女高潮久久久| 久久久国产一区二区三区四区小说| 欧美不卡一区二区| 欧美理论电影在线| 91久久精品一区二区三| 91美女片黄在线| 国产剧情一区二区三区| 国产suv精品一区二区三区| 久久精品噜噜噜成人av农村| 天天做天天摸天天爽国产一区| 樱桃视频在线观看一区| 亚洲欧美日韩中文字幕一区二区三区| 国产午夜精品福利| 国产欧美日韩一区二区三区在线观看| 欧美日韩的一区二区| 日韩欧美专区在线| 欧美一区二区大片| 制服丝袜亚洲色图| 日韩一区和二区| 日韩一区二区三区视频| 日韩欧美一区中文| 日韩免费看网站| 日韩欧美精品三级| 精品国产91亚洲一区二区三区婷婷| 日韩片之四级片| ww久久中文字幕| 久久精品视频一区| 国产精品国产自产拍高清av王其| 26uuu精品一区二区在线观看| 国产精品不卡在线观看| 亚洲最大色网站| 五月天亚洲精品| 免费av成人在线| 国产米奇在线777精品观看| 国产电影一区二区三区| 99久久精品一区| 精品视频一区三区九区| 欧美性受极品xxxx喷水| 精品国产欧美一区二区| 中文字幕久久午夜不卡| 亚洲综合在线第一页| 日韩影视精彩在线| 国产自产2019最新不卡| 91色视频在线| 色婷婷久久久综合中文字幕 | 欧美一区二区在线视频| 欧美精品一区在线观看| 亚洲欧美日韩中文字幕一区二区三区| 五月激情综合色| 精久久久久久久久久久| 成人av片在线观看| 欧美日韩大陆一区二区| 久久先锋影音av| 亚洲日本在线a| 亚洲成av人片在www色猫咪| 国产激情精品久久久第一区二区 | 国产毛片一区二区| 色综合久久久久综合99| 欧美一区二区美女| 中文字幕制服丝袜成人av| 香蕉av福利精品导航| 国产精品911| 欧洲一区二区三区在线| 国产精品麻豆欧美日韩ww| 午夜精品久久久久久久| 成人高清av在线| 日韩欧美不卡一区| 亚洲欧美另类小说视频| 精品制服美女久久| 69堂国产成人免费视频| 综合在线观看色| 国产福利一区二区三区视频在线 | 亚洲视频免费在线观看| 麻豆91免费观看| 在线免费观看不卡av| 久久久久久久综合日本| 天堂成人免费av电影一区| 国产69精品一区二区亚洲孕妇| 日韩视频免费直播| 亚洲地区一二三色| 日本道色综合久久| 国产精品入口麻豆原神| 成人动漫一区二区在线| 欧美一级黄色录像| 亚洲视频免费观看| 日本韩国欧美一区二区三区| 中国av一区二区三区| 国产精品影视网| 欧美电影免费提供在线观看| 亚洲第一精品在线| 色综合一区二区| 一区二区视频在线| 91丨porny丨国产入口| 国产精品伦一区二区三级视频| 麻豆一区二区在线| 日韩欧美在线观看一区二区三区| 亚洲美女在线国产| 欧美图区在线视频| 一区二区三区四区不卡在线 | 国内成+人亚洲+欧美+综合在线 | 一区二区三区国产精品| 91一区在线观看| 综合久久给合久久狠狠狠97色| 国产91精品欧美| 亚洲男女毛片无遮挡| 91丝袜美女网| 亚洲伦理在线免费看| 色偷偷久久一区二区三区| 综合分类小说区另类春色亚洲小说欧美| 丁香五精品蜜臀久久久久99网站| 久久精品亚洲一区二区三区浴池| 国产精品亚洲第一| 亚洲图片你懂的| 欧美日韩一区二区三区在线看| 日韩和欧美一区二区三区| 欧美一区二区三区人| 激情深爱一区二区| 国产精品色在线| 欧美精品精品一区|