Copyright | (c) Edward Kmett 2017 |
---|---|
License | BSD2 |
Maintainer | Edward Kmett <ekmett@gmail.com> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
- data Token
- = Token !Delta !Text
- | TokenName !Delta !Name
- | TokenKeyword !Delta !Keyword
- | TokenInteger !Delta !Integer
- | TokenDouble !Delta !Double
- | TokenString !Delta !Text
- | TokenChar !Delta !Char
- | TokenNested !(Located Pair) !(Cat Token)
- | TokenMismatch !(Located Pair) !(Located Pair) !(Cat Token)
- | TokenUnmatchedOpening !(Located Pair)
- | TokenUnmatchedClosing !(Located Pair)
- | TokenLexicalError !Delta String
- data Pair
- data LayoutMode
- data Keyword
- keywords :: Set String
- startingKeywords :: Set String
- layoutKeywords :: Set String
- nested :: Located Pair -> Cat Token -> Token
- mismatch :: Located Pair -> Located Pair -> Cat Token -> Token
- unmatchedOpening :: Located Pair -> Token
- unmatchedClosing :: Located Pair -> Token
- lexicalError :: Delta -> String -> Token
Documentation
Token !Delta !Text | |
TokenName !Delta !Name | |
TokenKeyword !Delta !Keyword | |
TokenInteger !Delta !Integer | |
TokenDouble !Delta !Double | |
TokenString !Delta !Text | |
TokenChar !Delta !Char | |
TokenNested !(Located Pair) !(Cat Token) | |
TokenMismatch !(Located Pair) !(Located Pair) !(Cat Token) | |
TokenUnmatchedOpening !(Located Pair) | |
TokenUnmatchedClosing !(Located Pair) | |
TokenLexicalError !Delta String |
data LayoutMode Source #
Eq LayoutMode Source # | |
Ord LayoutMode Source # | |
Read LayoutMode Source # | |
Show LayoutMode Source # | |
Default LayoutMode Source # | |
startingKeywords :: Set String Source #
these are keywords that are only valid at the start of a top level statement
layoutKeywords :: Set String Source #
These are keywords that introduce layout