Portability | non-portable (imports ATerm.AbstractSyntax) |
---|---|
Stability | provisional |
Maintainer | Christian.Maeder@dfki.de |
convert ATermTable
s (created by ATerm.Conversion.toATermTable
) from
String
s and to SDoc
s as shared (TAF format) or unshared (AT format).
Indices (following hash marks) are base64 encoded.
- 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 -> ATermTableSource
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.
writing out shared ATerms (use these functions for serialization)
writeSharedATermFile :: FilePath -> ATermTable -> IO ()Source
writing out unshared ATerms (just for compatibility purposes)
writeATerm :: ATermTable -> StringSource
writeATermFile :: FilePath -> ATermTable -> IO ()Source