Safe Haskell | Safe-Inferred |
---|
Calculates yield sizes using rewriting functions.
- type YieldAnalysisAlgorithm a = a -> [ParserInfo] -> ParserInfo
- determineYieldSize1 :: YieldAnalysisAlgorithm Dim1
- determineYieldSize2 :: YieldAnalysisAlgorithm Dim2
- combineYields :: [YieldSize] -> YieldSize
- type YieldSize = (Int, Maybe Int)
- type YieldSizeMap = Map (Int, Int) YieldSize
- buildYieldSizeMap :: [ParserInfo] -> YieldSizeMap
Documentation
type YieldAnalysisAlgorithm a = a -> [ParserInfo] -> ParserInfoSource
combineYields :: [YieldSize] -> YieldSizeSource