Copyright | (c) Soeren Schulze, Uni Bremen 2012 |
---|---|
License | GPLv2 or higher, see LICENSE.txt |
Maintainer | s.schulze@uni-bremen.de |
Stability | provisional |
Portability | portable |
Safe Haskell | Safe-Inferred |
Pretty Printer for KIF. Partially based on "pretty" instances in AS_CommonLogic.
Note that the output does not perfectly match the input, as CommonLogic does
not have the concept of "free variables" (as opposed to variables bound by a
quantifier). Thus, any free variables are converted into constants and lose
their ?
prefix. When CommonLogic code is emitted as KIF, the comments in
commented sentences and terms get lost, and modules are inlined.
Documentation
printBasicSpec :: BASIC_SPEC -> Doc
printBasicItems :: BASIC_ITEMS -> Doc
printTextMeta :: TEXT_META -> Doc
printPhrase :: PHRASE -> Doc
printQuant :: QUANT -> Doc
printAndOr :: AndOr -> Doc
printImplEq :: ImplEq -> Doc
printSentence :: Set String -> SENTENCE -> Doc
printBoolSent :: Set String -> BOOL_SENT -> Doc
printRowVar :: Token -> Doc
printTermSeq :: Set String -> TERM_SEQ -> Doc
printNameOrSeqMark :: Set String -> NAME_OR_SEQMARK -> Doc