| Copyright | Jeremy Hull 2013 |
|---|---|
| License | BSD3 |
| Maintainer | Jeremy Hull <sourdrums@gmail.com> |
| Stability | experimental |
| Portability | unknown |
| Safe Haskell | None |
| Language | Haskell98 |
Text.Karver.Types
Description
Base types used throughout Karver.
Documentation
When dealing with the syntax of karver, we first translate the given
Text into Tokens for easier manipulation. Each Token type is
a representation of a certain type of data.
Constructors
| LiteralTok Text | Literal token. This is the default |
| IdentityTok Text | Identity token. This is for a regular variable with no sign of it being an object or list. eg. {{ ident }} |
| ObjectTok Text Text | Object token. This is similar to |
| ListTok Text Int | List token. This is also similar to the |
| ConditionTok Text Text Text | If statement token. The first |
| LoopTok Text Text Text | For loop token. The first |
| IncludeTok Text | Include token. The |
Fairly basic work around for using different types inside a HashMap.
The Value type also make it possible for List to contain more than
one type.