Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- class OCamlParserName a where
- ocamlParserName :: a -> String
- fixType :: Cat -> String
- fixTypeQual :: String -> Cat -> String
- fixTypeUpper :: Cat -> String
- reservedOCaml :: [String]
- sanitizeOcaml :: String -> String
- reservedOCamlLex :: [String]
- ocamlTokenName :: String -> String
- mkTuple :: [String] -> String
- insertBar :: [String] -> [String]
- mutualDefs :: [String] -> [String]
- mkEsc :: String -> String
Documentation
class OCamlParserName a where Source #
Name of the parser generator.
ocamlParserName :: a -> String Source #
Instances
OCamlParserName OCamlParser Source # | |
Defined in BNFC.Backend.OCaml.OCamlUtil ocamlParserName :: OCamlParser -> String Source # | |
OCamlParserName SharedOptions Source # | |
Defined in BNFC.Backend.OCaml.OCamlUtil |
fixTypeUpper :: Cat -> String Source #
reservedOCaml :: [String] Source #
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.
mutualDefs :: [String] -> [String] Source #