Hets - the Heterogeneous Tool Set
Copyright(c) Rene Wagner Rainer Grabbe Uni Bremen 2005-2006
LicenseGPLv2 or higher, see LICENSE.txt
MaintainerChristian.Maeder@dfki.de
Stabilityprovisional
Portabilityunknown
Safe HaskellNone

SoftFOL.PrintTPTP

Description

Pretty printing for SoftFOL signatures in TPTP syntax. Refer to http://www.cs.miami.edu/~tptp/TPTP/SyntaxBNF.html for the TPTP syntax documentation.

Synopsis

Documentation

class PrintTPTP a where Source #

This type class allows pretty printing in TPTP syntax of instantiated data types

Methods

printTPTP :: a -> Doc Source #

Instances

Instances details
PrintTPTP SPSettingBody Source # 
Instance details

Defined in SoftFOL.PrintTPTP

PrintTPTP SPSetting Source # 
Instance details

Defined in SoftFOL.PrintTPTP

PrintTPTP SPLogState Source #

Creates a Doc from an SPLogState.

Instance details

Defined in SoftFOL.PrintTPTP

PrintTPTP SPDescription Source #

Creates a Doc from a SoftFOL description.

Instance details

Defined in SoftFOL.PrintTPTP

PrintTPTP SPSymbol Source #

Creates a Doc from a SoftFOL Symbol.

Instance details

Defined in SoftFOL.PrintTPTP

PrintTPTP SPQuantSym Source #

Creates a Doc from a SoftFOL Quantifier Symbol.

Instance details

Defined in SoftFOL.PrintTPTP

PrintTPTP SPTerm Source #

Creates a Doc from a SoftFOL Term.

Instance details

Defined in SoftFOL.PrintTPTP

Methods

printTPTP :: SPTerm -> Doc Source #

PrintTPTP SPOriginType Source #

Creates a Doc from a SoftFOL Origin Type.

Instance details

Defined in SoftFOL.PrintTPTP

PrintTPTP SPFormulaList Source #

Creates a Doc from a SoftFOL Formula List.

Instance details

Defined in SoftFOL.PrintTPTP

PrintTPTP SPDeclaration Source #

Creates a Doc from a SoftFOL Declaration. A subsort declaration will be rewritten as a special SPQuantTerm.

Instance details

Defined in SoftFOL.PrintTPTP

PrintTPTP SPLogicalPart Source #

Creates a Doc from a SoftFOL Logical Part.

Instance details

Defined in SoftFOL.PrintTPTP

PrintTPTP SPProblem Source #

Creates a Doc from a SoftFOL Problem.

Instance details

Defined in SoftFOL.PrintTPTP

PrintTPTP Sign Source # 
Instance details

Defined in SoftFOL.PrintTPTP

Methods

printTPTP :: Sign -> Doc Source #

separator :: String Source #

Helper function. Generates a separating comment line.

printFormula :: SPOriginType -> SPFormula -> Doc Source #

Creates a Doc from a SoftFOL Formula. Needed since SPFormula is just a 'type SPFormula = Named SPTerm' and thus instanciating PrintTPTP is not possible.

printTermList :: SPSymbol -> [SPTerm] -> Doc Source #

Creates a Doc from a list of SoftFOL Terms connected by a SoftFOL Symbol.

printCommaSeparated :: [SPTerm] -> Doc Source #

Helper function. Generates a comma separated list of SoftFOL Terms as a Doc.

spCommentText :: String -> String -> Doc Source #

Helper function. Creates a formatted comment output for a description field. On left side will be displayed the field's name, on right side its content.

Orphan instances

Pretty TPTP Source # 
Instance details

Methods

pretty :: TPTP -> Doc Source #

pretties :: [TPTP] -> Doc Source #