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.Backend.Java.Utils

  • 5 values
  • PackageBNFC-2.9.5
  • Exports5
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceUtils.hs
valuegetRuleName :: String -> String
#

Append an underscore if there is a clash with a java or ANTLR keyword. E.g. Grammar clashes with ANTLR keyword "grammar" since we sometimes need the upper and sometimes the lower case version of Grammar in the generated parser.