Debian Codegraph @

FaCT++/lispgrammar.h

raw symbols SCIP
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_H
27
28 // constants for symbols
29 enum LispToken {
30 BAD_LEX = 50,
31
32 UNUSED, // never used one
33
34 LEXEOF,
35
36 // symbols
37 LBRACK,
38 RBRACK,
39 L_AND,
40 L_OR,
41 L_NOT,
42 L_INV,
43 L_RCOMPOSITION, // role composition
44 L_PROJINTO, // role projection into
45 L_PROJFROM, // role projection from
46
47 L_TOP,
48 L_BOTTOM,
49 L_EXISTS,
50 L_FORALL,
51 L_GE,
52 // ATLEAST = GE,
53 L_LE,
54 // ATMOST = LE,
55
56 // common metasymbols
57 ID, // should NOT appear in KB -- use *NAME instead
58 NUM,
59 L_DATAEXPR, // any data expression: data value, [constrained] datatype
60
61 // FaCT commands
62 // definitions
63 PCONCEPT,
64 PROLE,
65 PATTR,
66 CONCEPT,
67 DATAROLE,
68
69 // FaCT++ commands for internal DataTypes
70 NUMBER,
71 STRING,
72 REAL,
73 BOOL,
74
75 // datatype operations command names -- used only as an external commands
76 DTGT,
77 DTLT,
78 DTGE,
79 DTLE,
80 DONEOF,
81
82 // general commands
83 SUBSUMES,
84 DISJOINT,
85 EQUAL_C,
86
87 // new for roles
88 INVERSE,
89 EQUAL_R,
90 IMPLIES_R,
91 DISJOINT_R,
92 FUNCTIONAL,
93 TRANSITIVE,
94 REFLEXIVE,
95 IRREFLEXIVE,
96 SYMMETRIC,
97 ASYMMETRIC,
98 ROLERANGE,
99 ROLEDOMAIN,
100
101 // new for individuals
102 DEFINDIVIDUAL,
103 INSTANCE,
104 RELATED,
105 ONEOF,
106 SAME,
107 DIFFERENT,
108 VALUEOF,
109
110 // fairness constraints
111 FAIRNESS,
112 };
113
114 #endif