BNFC-2.9.3: 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 

sanitizeOcaml :: String -> String Source #

Avoid clashes with keywords.

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!?