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

  • 11 types
  • 38 values
  • PackageBNFC-2.9.5
  • Exports50
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceLex.x
patternpattern TS :: String -> Int -> Tok
#

Smart constructor for Tok for the sake of backwards compatibility.

datadata TokSymbol
#

Keyword or symbol tokens have a unique ID.

Constructors

Instances3Eq, Ord, Show
  • Eq TokSymbolDefined in BNFC-2.9.5 · BNFC.Lex

    Keyword/symbol equality is determined by the unique ID.

  • Ord TokSymbolDefined in BNFC-2.9.5 · BNFC.Lex

    Keyword/symbol ordering is determined by the unique ID.

  • Show TokSymbolDefined in BNFC-2.9.5 · BNFC.Lex
datadata BTree
#

Finite map from text to token organized as binary search tree.

Constructors

Instances1Show
valueresWords :: BTree
#

The keywords and symbols of the language organized as binary search tree.

datadata Posn
#

Constructors

Instances3Eq, Ord, Show
  • Eq PosnDefined in BNFC-2.9.5 · BNFC.Lex
  • Ord PosnDefined in BNFC-2.9.5 · BNFC.Lex
  • Show PosnDefined in BNFC-2.9.5 · BNFC.Lex
valueutf8Encode :: Char -> [Word8]
#

Encode a Haskell String to a list of Word8 values, in UTF8 format.