HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

ModuleBNFC-2.9.5Haskell2010

BNFC.Regex

Tools to manipulate regular expressions.

  • 2 values
  • PackageBNFC-2.9.5
  • Exports2
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceRegex.hs
valuenullable :: Reg -> Bool
#

Check if a regular expression is nullable (accepts the empty string)

valuesimpReg :: Reg -> Reg
#

Simplification of regular expression, mostly for the purpose of simplifying character alternatives (character classes).

This may help lexer backends, since often lexer generators have a limited syntax for character classes.