Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
What4.Serialize.SETokens
Description
Definition of the S-Expression tokens used to (de)serialize What4 expressions.
Synopsis
- data Atom
- string :: Some StringInfoRepr -> Text -> SExpr
- ident :: Text -> SExpr
- int :: Integer -> SExpr
- nat :: Natural -> SExpr
- bitvec :: Natural -> Integer -> SExpr
- bool :: Bool -> SExpr
- real :: Rational -> SExpr
- float :: FloatPrecisionRepr fpp -> BigFloat -> SExpr
- string' :: Some StringInfoRepr -> String -> SExpr
- ident' :: String -> SExpr
- printAtom :: Atom -> Text
- printSExpr :: Seq String -> SExpr -> Text
- parseSExpr :: Text -> Either String SExpr
Documentation
Constructors
AId Text | An identifier. |
AStr (Some StringInfoRepr) Text | A prefix followed by a string literal (.e.g, AStr "u" "Hello World" is serialize as `#u"Hello World"`). |
AInt Integer | Integer (i.e., unbounded) literal. |
ANat Natural | Natural (i.e., unbounded) literal |
AReal Rational | Real (i.e., unbounded) literal. |
AFloat (Some FloatPrecisionRepr) BigFloat | A floating point literal (with precision) |
ABV Int Integer | Bitvector, width and then value. |
ABool Bool | Boolean literal. |
float :: FloatPrecisionRepr fpp -> BigFloat -> SExpr Source #
Lift a float