cstrnpsr.h

来自「NASA 开发使用的一个专家系统」· C头文件 代码 · 共 88 行

H
88
字号
   /*******************************************************/   /*      "C" Language Integrated Production System      */   /*                                                     */   /*             CLIPS Version 6.05  04/09/97            */   /*                                                     */   /*             CONSTRAINT PARSER HEADER FILE           */   /*******************************************************//*************************************************************//* Purpose: Provides functions for parsing constraint        *//*   declarations.                                           *//*                                                           *//* Principal Programmer(s):                                  *//*      Gary D. Riley                                        *//*                                                           *//* Contributing Programmer(s):                               *//*                                                           *//* Revision History:                                         *//*                                                           *//*************************************************************/#ifndef _H_cstrnpsr#define _H_cstrnpsr#ifndef _H_constrnt#include "constrnt.h"#endif#ifdef LOCALE#undef LOCALE#endif#ifdef _CSTRNPSR_SOURCE_#define LOCALE#else#define LOCALE extern#endifstruct constraintParseRecord  {     unsigned int type : 1;   unsigned int range : 1;   unsigned int allowedSymbols : 1;   unsigned int allowedStrings : 1;   unsigned int allowedLexemes : 1;   unsigned int allowedFloats : 1;   unsigned int allowedIntegers : 1;   unsigned int allowedNumbers : 1;   unsigned int allowedValues : 1;   unsigned int allowedInstanceNames : 1;   unsigned int cardinality : 1;  };  typedef struct constraintParseRecord CONSTRAINT_PARSE_RECORD;#if ANSI_COMPILER     LOCALE BOOLEAN                        CheckConstraintParseConflicts(CONSTRAINT_RECORD *);   LOCALE VOID                           AttributeConflictErrorMessage(char *,char *);#if (! RUN_TIME) && (! BLOAD_ONLY)   LOCALE VOID                           InitializeConstraintParseRecord(CONSTRAINT_PARSE_RECORD *);   LOCALE BOOLEAN                        StandardConstraint(char *);   LOCALE BOOLEAN                        ParseStandardConstraint(char *,char *,                                                                 CONSTRAINT_RECORD *,                                                                 CONSTRAINT_PARSE_RECORD *,                                                                 int);   LOCALE VOID                           OverlayConstraint(CONSTRAINT_PARSE_RECORD *,                                                           CONSTRAINT_RECORD *,CONSTRAINT_RECORD *);     LOCALE VOID                           OverlayConstraintParseRecord(CONSTRAINT_PARSE_RECORD *,                                                                      CONSTRAINT_PARSE_RECORD *);#endif#else   LOCALE BOOLEAN                        CheckConstraintParseConflicts();   LOCALE VOID                           AttributeConflictErrorMessage();#if (! RUN_TIME) && (! BLOAD_ONLY)   LOCALE VOID                           InitializeConstraintParseRecord();   LOCALE BOOLEAN                        StandardConstraint();   LOCALE BOOLEAN                        ParseStandardConstraint();   LOCALE VOID                           OverlayConstraint();     LOCALE VOID                           OverlayConstraintParseRecord();#endif#endif #endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?