| Copyright | (c) Klaus Luettich C.Maeder Uni Bremen 2002-2005 |
|---|---|
| License | GPLv2 or higher, see LICENSE.txt |
| Maintainer | Christian.Maeder@dfki.de |
| Stability | provisional |
| Portability | non-portable (imports ATerm.AbstractSyntax) |
| Safe Haskell | None |
| Language | Haskell98 |
ATerm.ReadWrite
Contents
Description
convert ATermTables (created by toATermTable) from
Strings and to SDocs as shared (TAF format) or unshared (AT format).
Indices (following hash marks) are base64 encoded.
Synopsis
- readATerm :: String -> ATermTable
- readATermFile :: FilePath -> IO ATermTable
- writeSharedATerm :: ATermTable -> String
- writeSharedATermFile :: FilePath -> ATermTable -> IO ()
- writeATerm :: ATermTable -> String
- writeATermFile :: FilePath -> ATermTable -> IO ()
- writeSharedATermSDoc :: ATermTable -> SDoc
- writeATermSDoc :: ATermTable -> SDoc
read shared or unshared ATerms
readATerm :: String -> ATermTable Source #
create an ATerm table from an input string. Shared or unshared ATerms can be read. A string for shared ATerms usually starts with an exclamation mark and contains many hash marks indicating references. Unshared ATerms are plain constructor terms.
readATermFile :: FilePath -> IO ATermTable Source #
writing out shared ATerms (use these functions for serialization)
writeSharedATerm :: ATermTable -> String Source #
writeSharedATermFile :: FilePath -> ATermTable -> IO () Source #
writing out unshared ATerms (just for compatibility purposes)
writeATerm :: ATermTable -> String Source #
writeATermFile :: FilePath -> ATermTable -> IO () Source #
support different renderings via SDoc
writeATermSDoc :: ATermTable -> SDoc Source #