BNFC3-3.0: A compiler front-end generator.
Safe HaskellNone
LanguageHaskell2010

BNFC.Backend.Haskell.Utilities.Utils

Synopsis

Documentation

data Token Source #

Token data type for lexer and parser specification generation.

Instances

Instances details
Show Token Source # 
Instance details

Defined in BNFC.Backend.Haskell.Utilities.Utils

Parameterization by TokenText.

catToVarName :: Cat -> String Source #

Make a variable name for a category.

indexVars :: [Item' String1] -> [(String, Integer)] Source #

Turn (non-terminal) items into indexed variables.

mkDir :: Bool -> Maybe String -> String -> String -> String Source #

Make directory of generated files.

mkFilePath :: Bool -> Maybe String -> String -> String -> String -> FilePath Source #

Relative filepath where to write generated components.

mkModule :: Bool -> Maybe String -> String -> String -> String Source #

Make module name of generated files.