| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Axel.Parse.AST
Synopsis
- data Expression
- toAxel :: Expression -> String
- gensymCounter :: IORef Int
- gensym :: IO Expression
- class ToExpressionList a where
Documentation
data Expression Source #
Constructors
| LiteralChar Char | |
| LiteralInt Int | |
| LiteralString String | |
| SExpression [Expression] | |
| Symbol String |
Instances
toAxel :: Expression -> String Source #
gensymCounter :: IORef Int Source #
gensym :: IO Expression Source #
class ToExpressionList a where Source #
This allows splice-unquoting of both `[Expression]`s and SExpressions, without requiring special syntax for each.
Minimal complete definition
Methods
toExpressionList :: a -> [Expression] Source #
Instances
| ToExpressionList Expression Source # | Because we do not have a way to statically ensure an |
Defined in Axel.Parse.AST Methods toExpressionList :: Expression -> [Expression] Source # | |
| ToExpressionList [Expression] Source # | |
Defined in Axel.Parse.AST Methods toExpressionList :: [Expression] -> [Expression] Source # | |