Copyright | (c) Dominik Dietrich Ewaryst Schulz DFKI Bremen 2010 |
---|---|
License | GPLv2 or higher, see LICENSE.txt |
Maintainer | Ewaryst.Schulz@dfki.de |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe |
Pretty printing the abstract syntax of CSL.
Synopsis
- printExpression :: ExpressionPrinter m => EXPRESSION -> m Doc
- printCMD :: ExpressionPrinter m => CMD -> m Doc
- printAssDefinition :: ExpressionPrinter m => AssDefinition -> m Doc
- printConstantName :: ConstantName -> Doc
- class Monad m => ExpressionPrinter m where
- getOINM :: m OpInfoNameMap
- printConstant :: ConstantName -> m Doc
- printOpname :: OPNAME -> m Doc
- prefixMode :: m Bool
- printArgs :: [Doc] -> m Doc
- printArgPattern :: String -> m Doc
- printInterval :: Double -> Double -> m Doc
- printRational :: APFloat -> m Doc
Documentation
printExpression :: ExpressionPrinter m => EXPRESSION -> m Doc Source #
printAssDefinition :: ExpressionPrinter m => AssDefinition -> m Doc Source #
printConstantName :: ConstantName -> Doc Source #
The default ConstantName printer
class Monad m => ExpressionPrinter m where Source #
A monad for printing of constants. This turns the pretty printing facility
more flexible w.r.t. the output of ConstantName
.
Nothing
getOINM :: m OpInfoNameMap Source #
printConstant :: ConstantName -> m Doc Source #
printOpname :: OPNAME -> m Doc Source #
prefixMode :: m Bool Source #
printArgs :: [Doc] -> m Doc Source #
printArgPattern :: String -> m Doc Source #
printInterval :: Double -> Double -> m Doc Source #
printRational :: APFloat -> m Doc Source #
Instances
ExpressionPrinter [] Source # | |
Defined in CSL.Print_AS getOINM :: [OpInfoNameMap] Source # printConstant :: ConstantName -> [Doc] Source # printOpname :: OPNAME -> [Doc] Source # prefixMode :: [Bool] Source # printArgs :: [Doc] -> [Doc] Source # printArgPattern :: String -> [Doc] Source # printInterval :: Double -> Double -> [Doc] Source # printRational :: APFloat -> [Doc] Source # | |
ExpressionPrinter (Reader OpInfoNameMap) Source # | An |
Defined in CSL.Print_AS getOINM :: Reader OpInfoNameMap OpInfoNameMap Source # printConstant :: ConstantName -> Reader OpInfoNameMap Doc Source # printOpname :: OPNAME -> Reader OpInfoNameMap Doc Source # prefixMode :: Reader OpInfoNameMap Bool Source # printArgs :: [Doc] -> Reader OpInfoNameMap Doc Source # printArgPattern :: String -> Reader OpInfoNameMap Doc Source # printInterval :: Double -> Double -> Reader OpInfoNameMap Doc Source # printRational :: APFloat -> Reader OpInfoNameMap Doc Source # |