Debian Codegraph @

FaCT++.Python/lib/Kernel/dumpLisp.cpp

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 #include "dumpLisp.h"
21
22 void dumpLisp :: startOp ( diOp Op )
23 {
24 if ( Op == diAnd || Op == diOr )
25 incIndent();
26
27 o << "(";
28
29 switch (Op)
30 {
31 case diErrorOp:
32 default:
33 fpp_unreachable();
34 // concept expressions
35 case diNot:
36 o << "not";
37 break;
38 case diAnd:
39 o << "and";
40 break;
41 case diOr:
42 o << "or";
43 break;
44 case diExists:
45 o << "some";
46 break;
47 case diForall:
48 o << "all";
49 break;
50 case diGE:
51 o << "atleast";
52 break;
53 case diLE:
54 o << "atmost";
55 break;
56 }
57
58 contOp(Op);
59 }
60
61 void dumpLisp :: startAx ( diAx Ax )
62 {
63 o << "(";
64
65 switch (Ax)
66 {
67 case diErrorAx:
68 default:
69 fpp_unreachable();
70 // concept axioms
71 case diDefineC:
72 o << "defprimconcept";
73 break;
74 case diImpliesC:
75 o << "implies_c";
76 break;
77 case diEqualsC:
78 o << "equal_c";
79 break;
80 // role axioms
81 case diDefineR:
82 o << "defprimrole";
83 break;
84 case diTransitiveR:
85 o << "transitive";
86 break;
87 case diFunctionalR:
88 o << "functional";
89 break;
90 case diImpliesR:
91 o << "implies_r";
92 break;
93 case diEqualsR:
94 o << "equal_r";
95 break;
96 case diDomainR:
97 o << "domain";
98 break;
99 case diRangeR:
100 o << "range";
101 break;
102 };
103
104 contAx(Ax);
105 }