| 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"cxx . . $ `<file>/Kernel/dumpLisp.h`/ |
| 21 | |
| 22 | void dumpLispcxx . . $ dumpLisp# :: startOpcxx . . $ dumpLisp#startOp(7be172353191b2e5). ( diOpcxx . . $ diOp# Op ) |
| 23 | { |
| 24 | if ( Op == diAndcxx . . $ diAnd. || Op == diOrcxx . . $ diOr. ) |
| 25 | incIndentcxx . . $ dumpInterface#incIndent(49f6e7a06ebc5aa8).(); |
| 26 | |
| 27 | ocxx . . $ dumpInterface#o. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "("; |
| 28 | |
| 29 | switch (Op) |
| 30 | { |
| 31 | case diErrorOpcxx . . $ diErrorOp.: |
| 32 | default: |
| 33 | fpp_unreachablecxx . . $ `Kernel/fpp_assert.h:49:9`!(); |
| 34 | // concept expressions |
| 35 | case diNotcxx . . $ diNot.: |
| 36 | ocxx . . $ dumpInterface#o. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "not"; |
| 37 | break; |
| 38 | case diAndcxx . . $ diAnd.: |
| 39 | ocxx . . $ dumpInterface#o. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "and"; |
| 40 | break; |
| 41 | case diOrcxx . . $ diOr.: |
| 42 | ocxx . . $ dumpInterface#o. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "or"; |
| 43 | break; |
| 44 | case diExistscxx . . $ diExists.: |
| 45 | ocxx . . $ dumpInterface#o. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "some"; |
| 46 | break; |
| 47 | case diForallcxx . . $ diForall.: |
| 48 | ocxx . . $ dumpInterface#o. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "all"; |
| 49 | break; |
| 50 | case diGEcxx . . $ diGE.: |
| 51 | ocxx . . $ dumpInterface#o. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "atleast"; |
| 52 | break; |
| 53 | case diLEcxx . . $ diLE.: |
| 54 | ocxx . . $ dumpInterface#o. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "atmost"; |
| 55 | break; |
| 56 | } |
| 57 | |
| 58 | contOpcxx . . $ dumpLisp#contOp(7be172353191b2e5).(Op); |
| 59 | } |
| 60 | |
| 61 | void dumpLispcxx . . $ dumpLisp# :: startAxcxx . . $ dumpLisp#startAx(125b68beff83e054). ( diAxcxx . . $ diAx# Ax ) |
| 62 | { |
| 63 | ocxx . . $ dumpInterface#o. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "("; |
| 64 | |
| 65 | switch (Ax) |
| 66 | { |
| 67 | case diErrorAxcxx . . $ diErrorAx.: |
| 68 | default: |
| 69 | fpp_unreachablecxx . . $ `Kernel/fpp_assert.h:49:9`!(); |
| 70 | // concept axioms |
| 71 | case diDefineCcxx . . $ diDefineC.: |
| 72 | ocxx . . $ dumpInterface#o. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "defprimconcept"; |
| 73 | break; |
| 74 | case diImpliesCcxx . . $ diImpliesC.: |
| 75 | ocxx . . $ dumpInterface#o. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "implies_c"; |
| 76 | break; |
| 77 | case diEqualsCcxx . . $ diEqualsC.: |
| 78 | ocxx . . $ dumpInterface#o. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "equal_c"; |
| 79 | break; |
| 80 | // role axioms |
| 81 | case diDefineRcxx . . $ diDefineR.: |
| 82 | ocxx . . $ dumpInterface#o. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "defprimrole"; |
| 83 | break; |
| 84 | case diTransitiveRcxx . . $ diTransitiveR.: |
| 85 | ocxx . . $ dumpInterface#o. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "transitive"; |
| 86 | break; |
| 87 | case diFunctionalRcxx . . $ diFunctionalR.: |
| 88 | ocxx . . $ dumpInterface#o. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "functional"; |
| 89 | break; |
| 90 | case diImpliesRcxx . . $ diImpliesR.: |
| 91 | ocxx . . $ dumpInterface#o. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "implies_r"; |
| 92 | break; |
| 93 | case diEqualsRcxx . . $ diEqualsR.: |
| 94 | ocxx . . $ dumpInterface#o. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "equal_r"; |
| 95 | break; |
| 96 | case diDomainRcxx . . $ diDomainR.: |
| 97 | ocxx . . $ dumpInterface#o. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "domain"; |
| 98 | break; |
| 99 | case diRangeRcxx . . $ diRangeR.: |
| 100 | ocxx . . $ dumpInterface#o. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "range"; |
| 101 | break; |
| 102 | }; |
| 103 | |
| 104 | contAxcxx . . $ dumpLisp#contAx(125b68beff83e054).(Ax); |
| 105 | } |