| 1 | /* This file is part of the FaCT++ DL reasoner |
| 2 | Copyright (C) 2003-2015 Dmitry Tsarkov and The University of Manchester |
| 3 | Copyright (C) 2015-2017 Dmitry Tsarkov |
| 4 | |
| 5 | This library is free software; you can redistribute it and/or |
| 6 | modify it under the terms of the GNU Lesser General Public |
| 7 | License as published by the Free Software Foundation; either |
| 8 | version 2.1 of the License, or (at your option) any later version. |
| 9 | |
| 10 | This library is distributed in the hope that it will be useful, |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | Lesser General Public License for more details. |
| 14 | |
| 15 | You should have received a copy of the GNU Lesser General Public |
| 16 | License along with this library; if not, write to the Free Software |
| 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 18 | */ |
| 19 | |
| 20 | //------------------------------------------------------------------------- |
| 21 | // |
| 22 | // Grammar for FaCT++ |
| 23 | // |
| 24 | //------------------------------------------------------------------------- |
| 25 | #ifndef LISPGRAMMAR_H |
| 26 | #define LISPGRAMMAR_Hcxx . . $ `FaCT++/lispgrammar.h:26:9`! |
| 27 | |
| 28 | // constants for symbols |
| 29 | enum LispTokencxx . . $ LispToken# { |
| 30 | BAD_LEXcxx . . $ BAD_LEX. = 50, |
| 31 | |
| 32 | UNUSEDcxx . . $ UNUSED., // never used one |
| 33 | |
| 34 | LEXEOFcxx . . $ LEXEOF., |
| 35 | |
| 36 | // symbols |
| 37 | LBRACKcxx . . $ LBRACK., |
| 38 | RBRACKcxx . . $ RBRACK., |
| 39 | L_ANDcxx . . $ L_AND., |
| 40 | L_ORcxx . . $ L_OR., |
| 41 | L_NOTcxx . . $ L_NOT., |
| 42 | L_INVcxx . . $ L_INV., |
| 43 | L_RCOMPOSITIONcxx . . $ L_RCOMPOSITION., // role composition |
| 44 | L_PROJINTOcxx . . $ L_PROJINTO., // role projection into |
| 45 | L_PROJFROMcxx . . $ L_PROJFROM., // role projection from |
| 46 | |
| 47 | L_TOPcxx . . $ L_TOP., |
| 48 | L_BOTTOMcxx . . $ L_BOTTOM., |
| 49 | L_EXISTScxx . . $ L_EXISTS., |
| 50 | L_FORALLcxx . . $ L_FORALL., |
| 51 | L_GEcxx . . $ L_GE., |
| 52 | // ATLEAST = GE, |
| 53 | L_LEcxx . . $ L_LE., |
| 54 | // ATMOST = LE, |
| 55 | |
| 56 | // common metasymbols |
| 57 | IDcxx . . $ ID., // should NOT appear in KB -- use *NAME instead |
| 58 | NUMcxx . . $ NUM., |
| 59 | L_DATAEXPRcxx . . $ L_DATAEXPR., // any data expression: data value, [constrained] datatype |
| 60 | |
| 61 | // FaCT commands |
| 62 | // definitions |
| 63 | PCONCEPTcxx . . $ PCONCEPT., |
| 64 | PROLEcxx . . $ PROLE., |
| 65 | PATTRcxx . . $ PATTR., |
| 66 | CONCEPTcxx . . $ CONCEPT., |
| 67 | DATAROLEcxx . . $ DATAROLE., |
| 68 | |
| 69 | // FaCT++ commands for internal DataTypes |
| 70 | NUMBERcxx . . $ NUMBER., |
| 71 | STRINGcxx . . $ STRING., |
| 72 | REALcxx . . $ REAL., |
| 73 | BOOLcxx . . $ BOOL., |
| 74 | |
| 75 | // datatype operations command names -- used only as an external commands |
| 76 | DTGTcxx . . $ DTGT., |
| 77 | DTLTcxx . . $ DTLT., |
| 78 | DTGEcxx . . $ DTGE., |
| 79 | DTLEcxx . . $ DTLE., |
| 80 | DONEOFcxx . . $ DONEOF., |
| 81 | |
| 82 | // general commands |
| 83 | SUBSUMEScxx . . $ SUBSUMES., |
| 84 | DISJOINTcxx . . $ DISJOINT., |
| 85 | EQUAL_Ccxx . . $ EQUAL_C., |
| 86 | |
| 87 | // new for roles |
| 88 | INVERSEcxx . . $ INVERSE., |
| 89 | EQUAL_Rcxx . . $ EQUAL_R., |
| 90 | IMPLIES_Rcxx . . $ IMPLIES_R., |
| 91 | DISJOINT_Rcxx . . $ DISJOINT_R., |
| 92 | FUNCTIONALcxx . . $ FUNCTIONAL., |
| 93 | TRANSITIVEcxx . . $ TRANSITIVE., |
| 94 | REFLEXIVEcxx . . $ REFLEXIVE., |
| 95 | IRREFLEXIVEcxx . . $ IRREFLEXIVE., |
| 96 | SYMMETRICcxx . . $ SYMMETRIC., |
| 97 | ASYMMETRICcxx . . $ ASYMMETRIC., |
| 98 | ROLERANGEcxx . . $ ROLERANGE., |
| 99 | ROLEDOMAINcxx . . $ ROLEDOMAIN., |
| 100 | |
| 101 | // new for individuals |
| 102 | DEFINDIVIDUALcxx . . $ DEFINDIVIDUAL., |
| 103 | INSTANCEcxx . . $ INSTANCE., |
| 104 | RELATEDcxx . . $ RELATED., |
| 105 | ONEOFcxx . . $ ONEOF., |
| 106 | SAMEcxx . . $ SAME., |
| 107 | DIFFERENTcxx . . $ DIFFERENT., |
| 108 | VALUEOFcxx . . $ VALUEOF., |
| 109 | |
| 110 | // fairness constraints |
| 111 | FAIRNESScxx . . $ FAIRNESS., |
| 112 | }; |
| 113 | |
| 114 | #endif |