HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

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.