BNFC-2.9.0: A compiler front-end generator.
Safe HaskellNone
LanguageHaskell2010

BNFC.Backend.OCaml.OCamlUtil

Synopsis

Documentation

fixTypeQual Source #

Arguments

:: String

Module name (or empty string for no qualification).

-> Cat 
-> String 

reservedOCamlLex :: [String] Source #

Keywords of ocamllex.

ocamlTokenName :: String -> String Source #

Heuristics to produce name for ocamllex token definition that does not clash with the ocamllex keywords.

mkEsc :: String -> String Source #

Escape " and @@. TODO: escape unprintable characters!?