Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Token
- printTokenName :: Token -> String
- tokenTextImport :: TokenText -> Doc ()
- tokenTextType :: TokenText -> Doc ()
- tokenTextPack :: TokenText -> String -> String
- tokenTextPackParens :: TokenText -> String -> Doc ()
- tokenTextUnpack :: TokenText -> String -> Doc ()
- catToVarName :: Cat -> String
- indexVars :: [Item' String1] -> [(String, Integer)]
- printArgs :: ARHS -> [Doc ()]
- posType :: String
- posConstr :: String
- noPosConstr :: String
- mkDir :: Bool -> Maybe String -> String -> String -> String
- mkFilePath :: Bool -> Maybe String -> String -> String -> String -> FilePath
- mkModule :: Bool -> Maybe String -> String -> String -> String
Documentation
Token data type for lexer and parser specification generation.
printTokenName :: Token -> String Source #
Parameterization by TokenText
.
tokenTextImport :: TokenText -> Doc () Source #
tokenTextType :: TokenText -> Doc () Source #
catToVarName :: Cat -> String Source #
Make a variable name for a category.
indexVars :: [Item' String1] -> [(String, Integer)] Source #
Turn (non-terminal) items into indexed variables.
noPosConstr :: String Source #
mkDir :: Bool -> Maybe String -> String -> String -> String Source #
Make directory of generated files.