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

  • 1 value
  • PackageBNFC-2.9.5
  • Exports1
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceCFtoAntlr4Lexer.hs
valuecf2AntlrLex :: String -> CF -> (Doc, KeywordEnv)
#

Creates a lexer grammar. Since antlr token identifiers must start with an uppercase symbol, I prepend Surrogate_id_SYMB_ to the identifier. This introduces risks of clashes if somebody uses the same identifier for user defined tokens. This is not handled. returns the environment because the parser uses it.