tlex-th: TemplateHaskell plugin for Tlex

[ library, parsing ] [ Propose Tags ]

Tlex is haskell libraries and toolchains for generating lexical analyzer. See also: https://github.com/mizunashi-mana/tlex


[Skip to Readme]

Flags

Manual Flags

NameDescriptionDefault
develop

Turn on some options for development

Disabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0.0, 0.2.0.0, 0.2.0.1, 0.3.0.0, 0.4.0.0, 0.4.1.0, 0.4.2.0
Change log CHANGELOG.md
Dependencies array (>=0.5.3 && <1), base (>=4.12.0 && <5), containers (>=0.6.0 && <1), enummapset (>=0.7.1 && <1), ghc-prim (>=0.8.0 && <1), template-haskell (>=2.17.0 && <3), tlex (>=0.4.0 && <0.6), tlex-core (>=0.4.0 && <0.5) [details]
License (Apache-2.0 OR MPL-2.0)
Copyright (c) 2021 Mizunashi Mana
Author Mizunashi Mana
Maintainer contact@mizunashi.work
Category Parsing
Home page https://github.com/mizunashi-mana/tlex
Bug tracker https://github.com/mizunashi-mana/tlex/issues
Source repo head: git clone https://github.com/mizunashi-mana/tlex.git
Uploaded by mizunashi_mana at 2023-11-02T06:59:40Z
Distributions NixOS:0.4.2.0
Downloads 544 total (13 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2023-11-02 [all 1 reports]

Readme for tlex-th-0.4.2.0

[back to package description]

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