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

BNFC.Backend.Agda.InitState

Synopsis

Documentation

processASTRulesAgda :: [String] -> [(Type, [(Label, ([Type], (Integer, ARHS)))])] -> [(Type, [(Label, [Type])])] Source #

toAgdaRules :: (Type, [(Label, ([Type], (Integer, ARHS)))]) -> (Type, [(Label, [Type])]) Source #

filterRules :: [String] -> [(Type, [(Label, [Type])])] -> [(Type, [(Label, [Type])])] Source #

filterLabelsAgdaAST :: [String] -> [(Label, [Type])] -> [(Label, [Type])] Source #

Filter Labels that will be printed in the Agda AST datatypes.