About

Metadata

  • Last updated , by mizunashi_mana
  • License (Apache-2.0 OR MPL-2.0)
  • Categories Parsers
  • Maintained by: contact@mizunashi.work

  • Lottery factor: 0

Links

Installation

This package uses the Custom cabal build type

Package Flags

Use the -f option with cabal commands to enable flags

    develop (off by default)

    Turn on some options for development

Readme

Tlex Plugin: Template Haskell

Hackage

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