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

BNFC.Backend.OCaml.OCamlUtil

Synopsis

Documentation

class OCamlParserName a where Source #

Name of the parser generator.

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