diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2016-01-12 00:02:10 +0000 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2016-01-12 00:02:10 +0000 |
commit | c9554b25d4ad99ceec1bef7bd60b1df82ef5ce8a (patch) | |
tree | 2701c86c9d75b2cbfae81b92c07949fc1c86fc07 /bbcode/src/Text/BBCode.hs | |
parent | 650feae1e8c267981f224e1de31ff4729a526afd (diff) | |
download | thermoprint-c9554b25d4ad99ceec1bef7bd60b1df82ef5ce8a.tar thermoprint-c9554b25d4ad99ceec1bef7bd60b1df82ef5ce8a.tar.gz thermoprint-c9554b25d4ad99ceec1bef7bd60b1df82ef5ce8a.tar.bz2 thermoprint-c9554b25d4ad99ceec1bef7bd60b1df82ef5ce8a.tar.xz thermoprint-c9554b25d4ad99ceec1bef7bd60b1df82ef5ce8a.zip |
BBCode lexer
Diffstat (limited to 'bbcode/src/Text/BBCode.hs')
-rw-r--r-- | bbcode/src/Text/BBCode.hs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bbcode/src/Text/BBCode.hs b/bbcode/src/Text/BBCode.hs index 455decb..7a328a8 100644 --- a/bbcode/src/Text/BBCode.hs +++ b/bbcode/src/Text/BBCode.hs | |||
@@ -1,4 +1,14 @@ | |||
1 | {-# LANGUAGE OverloadedStrings #-} | ||
2 | |||
1 | module Text.BBCode | 3 | module Text.BBCode |
2 | ( | 4 | ( |
3 | ) where | 5 | ) where |
4 | 6 | ||
7 | import Data.Attoparsec.Text | ||
8 | |||
9 | import Data.Text (Text) | ||
10 | import qualified Data.Text as T (singleton, head, tail) | ||
11 | |||
12 | import Control.Applicative | ||
13 | |||
14 | import Text.BBCode.Lexer (BBToken(..), token) | ||