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

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

?? insqypsr.c

?? clips源代碼
?? C
?? 第 1 頁 / 共 2 頁
字號:
   /*******************************************************/   /*      "C" Language Integrated Production System      */   /*                                                     */   /*               CLIPS Version 6.24  06/05/06          */   /*                                                     */   /*          INSTANCE-SET QUERIES PARSER MODULE         */   /*******************************************************//*************************************************************//* Purpose: Instance_set Queries Parsing Routines            *//*                                                           *//* Principal Programmer(s):                                  *//*      Brian L. Donnell                                     *//*                                                           *//* Contributing Programmer(s):                               *//*                                                           *//*                                                           *//* Revision History:                                         *//*      6.23: Changed name of variable exp to theExp         *//*            because of Unix compiler warnings of shadowed  *//*            definitions.                                   *//*                                                           *//*      6.24: Renamed BOOLEAN macro type to intBool.         *//*                                                           *//*************************************************************//* =========================================   *****************************************               EXTERNAL DEFINITIONS   =========================================   ***************************************** */#include "setup.h"#if INSTANCE_SET_QUERIES && (! RUN_TIME)#include <string.h>#include "classcom.h"#include "envrnmnt.h"#include "exprnpsr.h"#include "extnfunc.h"#include "insquery.h"#include "prcdrpsr.h"#include "prntutil.h"#include "router.h"#include "scanner.h"#include "strngrtr.h"#define _INSQYPSR_SOURCE_#include "insqypsr.h"/* =========================================   *****************************************                   CONSTANTS   =========================================   ***************************************** */#define INSTANCE_SLOT_REF ':'/* =========================================   *****************************************      INTERNALLY VISIBLE FUNCTION HEADERS   =========================================   ***************************************** */static EXPRESSION *ParseQueryRestrictions(void *,EXPRESSION *,char *,struct token *);static intBool ReplaceClassNameWithReference(void *,EXPRESSION *);static int ParseQueryTestExpression(void *,EXPRESSION *,char *);static int ParseQueryActionExpression(void *,EXPRESSION *,char *,EXPRESSION *,struct token *);static void ReplaceInstanceVariables(void *,EXPRESSION *,EXPRESSION *,int,int);static void ReplaceSlotReference(void *,EXPRESSION *,EXPRESSION *,                                 struct FunctionDefinition *,int);static int IsQueryFunction(EXPRESSION *);/* =========================================   *****************************************          EXTERNALLY VISIBLE FUNCTIONS   =========================================   ***************************************** *//***********************************************************************  NAME         : ParseQueryNoAction  DESCRIPTION  : Parses the following functions :                   (any-instancep)                   (find-first-instance)                   (find-all-instances)  INPUTS       : 1) The address of the top node of the query function                 2) The logical name of the input  RETURNS      : The completed expression chain, or NULL on errors  SIDE EFFECTS : The expression chain is extended, or the "top" node                 is deleted on errors  NOTES        : H/L Syntax :                 (<function> <query-block>)                 <query-block>  :== (<instance-var>+) <query-expression>                 <instance-var> :== (<var-name> <class-name>+)                 Parses into following form :                 <query-function>                      |                      V                 <query-expression>  ->                 <class-1a> -> <class-1b> -> (QDS) ->                 <class-2a> -> <class-2b> -> (QDS) -> ... ***********************************************************************/globle EXPRESSION *ParseQueryNoAction(  void *theEnv,  EXPRESSION *top,  char *readSource)  {   EXPRESSION *insQuerySetVars;   struct token queryInputToken;   insQuerySetVars = ParseQueryRestrictions(theEnv,top,readSource,&queryInputToken);   if (insQuerySetVars == NULL)     return(NULL);   IncrementIndentDepth(theEnv,3);   PPCRAndIndent(theEnv);   if (ParseQueryTestExpression(theEnv,top,readSource) == FALSE)     {      DecrementIndentDepth(theEnv,3);      ReturnExpression(theEnv,insQuerySetVars);      return(NULL);     }   DecrementIndentDepth(theEnv,3);   GetToken(theEnv,readSource,&queryInputToken);   if (GetType(queryInputToken) != RPAREN)     {      SyntaxErrorMessage(theEnv,"instance-set query function");      ReturnExpression(theEnv,top);      ReturnExpression(theEnv,insQuerySetVars);      return(NULL);     }   ReplaceInstanceVariables(theEnv,insQuerySetVars,top->argList,TRUE,0);   ReturnExpression(theEnv,insQuerySetVars);   return(top);  }/***********************************************************************  NAME         : ParseQueryAction  DESCRIPTION  : Parses the following functions :                   (do-for-instance)                   (do-for-all-instances)                   (delayed-do-for-all-instances)  INPUTS       : 1) The address of the top node of the query function                 2) The logical name of the input  RETURNS      : The completed expression chain, or NULL on errors  SIDE EFFECTS : The expression chain is extended, or the "top" node                 is deleted on errors  NOTES        : H/L Syntax :                 (<function> <query-block> <query-action>)                 <query-block>  :== (<instance-var>+) <query-expression>                 <instance-var> :== (<var-name> <class-name>+)                 Parses into following form :                 <query-function>                      |                      V                 <query-expression> -> <query-action>  ->                 <class-1a> -> <class-1b> -> (QDS) ->                 <class-2a> -> <class-2b> -> (QDS) -> ... ***********************************************************************/globle EXPRESSION *ParseQueryAction(  void *theEnv,  EXPRESSION *top,  char *readSource)  {   EXPRESSION *insQuerySetVars;   struct token queryInputToken;   insQuerySetVars = ParseQueryRestrictions(theEnv,top,readSource,&queryInputToken);   if (insQuerySetVars == NULL)     return(NULL);   IncrementIndentDepth(theEnv,3);   PPCRAndIndent(theEnv);   if (ParseQueryTestExpression(theEnv,top,readSource) == FALSE)     {      DecrementIndentDepth(theEnv,3);      ReturnExpression(theEnv,insQuerySetVars);      return(NULL);     }   PPCRAndIndent(theEnv);   if (ParseQueryActionExpression(theEnv,top,readSource,insQuerySetVars,&queryInputToken) == FALSE)     {      DecrementIndentDepth(theEnv,3);      ReturnExpression(theEnv,insQuerySetVars);      return(NULL);     }   DecrementIndentDepth(theEnv,3);      if (GetType(queryInputToken) != RPAREN)     {      SyntaxErrorMessage(theEnv,"instance-set query function");      ReturnExpression(theEnv,top);      ReturnExpression(theEnv,insQuerySetVars);      return(NULL);     }   ReplaceInstanceVariables(theEnv,insQuerySetVars,top->argList,TRUE,0);   ReplaceInstanceVariables(theEnv,insQuerySetVars,top->argList->nextArg,FALSE,0);   ReturnExpression(theEnv,insQuerySetVars);   return(top);  }/* =========================================   *****************************************          INTERNALLY VISIBLE FUNCTIONS   =========================================   ***************************************** *//***************************************************************  NAME         : ParseQueryRestrictions  DESCRIPTION  : Parses the class restrictions for a query  INPUTS       : 1) The top node of the query expression                 2) The logical name of the input                 3) Caller's token buffer  RETURNS      : The instance-variable expressions  SIDE EFFECTS : Entire query expression deleted on errors                 Nodes allocated for restrictions and instance                   variable expressions                 Class restrictions attached to query-expression                   as arguments  NOTES        : Expects top != NULL ***************************************************************/static EXPRESSION *ParseQueryRestrictions(  void *theEnv,  EXPRESSION *top,  char *readSource,  struct token *queryInputToken)  {   EXPRESSION *insQuerySetVars = NULL,*lastInsQuerySetVars = NULL,              *classExp = NULL,*lastClassExp,              *tmp,*lastOne = NULL;   int error = FALSE;   SavePPBuffer(theEnv," ");   GetToken(theEnv,readSource,queryInputToken);   if (queryInputToken->type != LPAREN)     goto ParseQueryRestrictionsError1;   GetToken(theEnv,readSource,queryInputToken);   if (queryInputToken->type != LPAREN)     goto ParseQueryRestrictionsError1;   while (queryInputToken->type == LPAREN)     {      GetToken(theEnv,readSource,queryInputToken);      if (queryInputToken->type != SF_VARIABLE)        goto ParseQueryRestrictionsError1;      tmp = insQuerySetVars;      while (tmp != NULL)        {         if (tmp->value == queryInputToken->value)           {            PrintErrorID(theEnv,"INSQYPSR",1,FALSE);            EnvPrintRouter(theEnv,WERROR,"Duplicate instance member variable name in function ");            EnvPrintRouter(theEnv,WERROR,ValueToString(ExpressionFunctionCallName(top)));            EnvPrintRouter(theEnv,WERROR,".\n");            goto ParseQueryRestrictionsError2;           }         tmp = tmp->nextArg;        }      tmp = GenConstant(theEnv,SF_VARIABLE,queryInputToken->value);      if (insQuerySetVars == NULL)        insQuerySetVars = tmp;      else        lastInsQuerySetVars->nextArg = tmp;      lastInsQuerySetVars = tmp;      SavePPBuffer(theEnv," ");      classExp = ArgumentParse(theEnv,readSource,&error);      if (error)        goto ParseQueryRestrictionsError2;      if (classExp == NULL)        goto ParseQueryRestrictionsError1;      if (ReplaceClassNameWithReference(theEnv,classExp) == FALSE)        goto ParseQueryRestrictionsError2;      lastClassExp = classExp;      SavePPBuffer(theEnv," ");      while ((tmp = ArgumentParse(theEnv,readSource,&error)) != NULL)        {         if (ReplaceClassNameWithReference(theEnv,tmp) == FALSE)           goto ParseQueryRestrictionsError2;         lastClassExp->nextArg = tmp;         lastClassExp = tmp;         SavePPBuffer(theEnv," ");        }      if (error)        goto ParseQueryRestrictionsError2;      PPBackup(theEnv);      PPBackup(theEnv);      SavePPBuffer(theEnv,")");      tmp = GenConstant(theEnv,SYMBOL,(void *) InstanceQueryData(theEnv)->QUERY_DELIMETER_SYMBOL);      lastClassExp->nextArg = tmp;      lastClassExp = tmp;      if (top->argList == NULL)        top->argList = classExp;      else        lastOne->nextArg = classExp;      lastOne = lastClassExp;      classExp = NULL;      SavePPBuffer(theEnv," ");      GetToken(theEnv,readSource,queryInputToken);     }   if (queryInputToken->type != RPAREN)     goto ParseQueryRestrictionsError1;   PPBackup(theEnv);   PPBackup(theEnv);   SavePPBuffer(theEnv,")");   return(insQuerySetVars);ParseQueryRestrictionsError1:   SyntaxErrorMessage(theEnv,"instance-set query function");ParseQueryRestrictionsError2:   ReturnExpression(theEnv,classExp);   ReturnExpression(theEnv,top);   ReturnExpression(theEnv,insQuerySetVars);   return(NULL);  }/***************************************************  NAME         : ReplaceClassNameWithReference  DESCRIPTION  : In parsing an instance-set query,                 this function replaces a constant                 class name with an actual pointer                 to the class  INPUTS       : The expression  RETURNS      : TRUE if all OK, FALSE                 if class cannot be found  SIDE EFFECTS : The expression type and value are                 modified if class is found  NOTES        : Searches current and imported                 modules for reference

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美第一区第二区| 亚洲永久精品大片| 一区二区三区免费网站| 美女一区二区三区| av电影在线不卡| 日韩一本二本av| 亚洲综合久久久久| 丁香一区二区三区| 日韩一级二级三级精品视频| 一区二区三区**美女毛片| 国产专区综合网| 91.xcao| 一区二区三区欧美日韩| 国产成都精品91一区二区三| 日韩欧美国产一区二区在线播放| 亚洲一区二区三区视频在线播放 | 欧美电影免费观看高清完整版在线| 国产精品不卡一区二区三区| 国内不卡的二区三区中文字幕 | 97精品视频在线观看自产线路二| 欧美大白屁股肥臀xxxxxx| 亚洲第一福利视频在线| 色婷婷精品大在线视频| 最新不卡av在线| 国产精品白丝jk黑袜喷水| 精品成人在线观看| 麻豆成人综合网| 日韩午夜av电影| 欧美a级理论片| 91精品国产欧美一区二区| 亚洲第四色夜色| 欧美麻豆精品久久久久久| 性欧美大战久久久久久久久| 欧美色网站导航| 亚洲国产视频a| 91久久国产综合久久| 一区二区欧美国产| 欧洲日韩一区二区三区| 亚洲精品乱码久久久久久久久 | 久久青草国产手机看片福利盒子| 老司机午夜精品99久久| 久久综合狠狠综合| 国产在线看一区| 国产视频一区在线观看| 99视频精品全部免费在线| 亚洲欧洲制服丝袜| 欧美性感一类影片在线播放| 午夜国产不卡在线观看视频| 制服丝袜中文字幕亚洲| 精品亚洲成av人在线观看| 国产喂奶挤奶一区二区三区| 成人动漫视频在线| 亚洲一区二区综合| 欧美一区二区三区在线视频| 精品一二三四区| 国产精品女同一区二区三区| 色婷婷综合久色| 丝袜a∨在线一区二区三区不卡| 日韩欧美国产系列| 风间由美性色一区二区三区| 樱桃视频在线观看一区| 日韩视频免费直播| 国产福利电影一区二区三区| 一区二区三区中文字幕精品精品| 欧美一区二区日韩一区二区| 成人一区在线观看| 亚洲午夜精品在线| 久久午夜免费电影| 99这里只有精品| 免费亚洲电影在线| 成人免费在线播放视频| 51久久夜色精品国产麻豆| 国产福利91精品一区二区三区| 亚洲一区二区3| 久久亚洲一区二区三区四区| 色哟哟国产精品免费观看| 老司机精品视频导航| 亚洲欧洲无码一区二区三区| 日韩视频免费观看高清完整版在线观看 | 日韩欧美亚洲国产精品字幕久久久| 大桥未久av一区二区三区中文| 偷偷要91色婷婷| 欧美激情中文字幕| 日韩精品一区二区三区视频| 一本色道a无线码一区v| 国产成人欧美日韩在线电影| 天天亚洲美女在线视频| 亚洲精品中文字幕乱码三区| 欧美精品一区二区三区视频| 欧美乱妇23p| 成人av午夜影院| 伦理电影国产精品| 亚洲国产精品影院| 亚洲欧美一区二区在线观看| 久久一区二区三区国产精品| 日韩欧美中文字幕制服| 欧美伊人久久久久久午夜久久久久| 成人一区在线观看| 国产露脸91国语对白| 日本女人一区二区三区| 午夜精品免费在线| 亚洲一区二区视频在线观看| 最新国产精品久久精品| 国产婷婷一区二区| 精品国产91亚洲一区二区三区婷婷| 欧美日韩色一区| 欧美在线你懂得| 色综合久久88色综合天天免费| av福利精品导航| voyeur盗摄精品| 成人av综合一区| 成人高清伦理免费影院在线观看| 东方aⅴ免费观看久久av| 国产suv精品一区二区883| 国产一区二区三区日韩| 国产综合色视频| 国产一区二区0| 国产成人综合亚洲91猫咪| 国产精品一二三四区| 国产福利视频一区二区三区| 成人黄动漫网站免费app| 成人免费高清视频| 91小视频在线免费看| 色综合久久久久| 欧美日韩一级片在线观看| 337p亚洲精品色噜噜| 欧美精品一区男女天堂| 久久久久国产一区二区三区四区| 日本一区二区免费在线观看视频| 欧美国产一区在线| 亚洲精品视频在线观看免费 | 麻豆成人av在线| 加勒比av一区二区| 成人午夜伦理影院| 色婷婷国产精品久久包臀| 在线观看亚洲一区| 欧美一区二区三区白人| 欧美国产激情一区二区三区蜜月| 亚洲欧美一区二区视频| 丝瓜av网站精品一区二区| 国产综合色视频| 99国内精品久久| 欧美日本一区二区三区| 欧美不卡视频一区| 国产精品美女久久久久久2018| 亚洲精品日韩综合观看成人91| 天天综合天天做天天综合| 激情偷乱视频一区二区三区| aaa欧美日韩| 欧美一级精品大片| 国产精品免费av| 视频一区二区中文字幕| 国产精品一级片| 欧美三区免费完整视频在线观看| 精品久久久久久久久久久久久久久久久 | 日韩成人一区二区三区在线观看| 国产精品一区在线观看乱码 | 91丨九色丨蝌蚪丨老版| 69堂成人精品免费视频| 中文字幕欧美区| 日韩成人免费在线| 成人一区二区三区视频在线观看| 欧美精品 国产精品| 国产日韩高清在线| 天堂va蜜桃一区二区三区漫画版| 成人免费av资源| 777久久久精品| 亚洲欧洲一区二区在线播放| 黄页视频在线91| 欧美日韩不卡在线| 日韩毛片视频在线看| 国内久久精品视频| 欧美日韩国产另类一区| 国产精品不卡一区二区三区| 国产在线观看免费一区| 欧美日韩视频第一区| 亚洲另类春色国产| 成人99免费视频| 精品欧美一区二区在线观看| 天堂影院一区二区| 在线观看免费视频综合| 中文字幕第一区| 极品少妇一区二区| 欧美人伦禁忌dvd放荡欲情| 亚洲少妇屁股交4| 国产999精品久久久久久绿帽| 日韩欧美一二三四区| 日韩精品乱码免费| 欧美精品日韩一本| 亚洲国产精品自拍| 欧美专区日韩专区| 亚洲色欲色欲www| 99精品视频一区二区| 国产精品久久久久久久久快鸭 | 欧美激情一区不卡| 国产一区二区福利视频| 精品国产乱码久久久久久久久 | 成人免费视频网站在线观看| 久久久久久久久久久电影| 黄网站免费久久|