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.GetCF

Check LBNF input file and turn it into the CF internal representation.

  • 3 values
  • PackageBNFC-2.9.5
  • Exports3
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceGetCF.hs
valuetransItem :: Item -> [Either Cat String]
#

Translate a rule item (terminal or non terminal) It also sanitizes the terminals a bit by skipping empty terminals or splitting multiwords terminals. This means that the following rule

 Foo. S ::= "foo bar" ""

is equivalent to

 Foo. S ::= "foo" "bar"