HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

ModuleBNFC-2.9.6.3Haskell2010

BNFC.GetCF

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

  • 4 values
  • PackageBNFC-2.9.6.3
  • Exports4
  • 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"