Description
TemplateHaskell plugin for Tlex.
Description
Tlex is haskell libraries and toolchains for generating lexical analyzer. See also: https://github.com/mizunashi-mana/tlex
README.md
Tlex Plugin: Template Haskell
See also https://hackage.haskell.org/package/tlex
Usage
This plugin outputs from Scanner
these APIs:
-- aliases of arguments of @buildTHScanner@
type TlexStartState :: Type
type TlexSemanticAction :: Type
type TlexCodeUnit :: Type
-- lexing API
tlexScan :: TlexContext s TlexCodeUnit m => TlexStartState -> m (TlexResult s TlexSemanticAction)
-- runner fields
thTlexInitial :: Int -> Int
thTlexTrans :: Int -> Int -> Int
thTlexAccept :: Int -> Maybe TlexSemanticAction