Safe Haskell | None |
---|---|
Language | Haskell2010 |
Utilies for Haskell state initialitation.
Synopsis
- getTokens :: LBNF -> [Token]
- processFunctions :: Functions -> [(LabelName, Function)]
- processParserRules :: ParserRules -> [(Cat, Map RHS RuleLabel)]
- processRules :: ASTRulesAP -> [(Type, [(Label, ([Type], (Integer, ARHS)))])]
- sortTokens :: TokenDefs -> [(CatName, TokenDef)]
Documentation
processFunctions :: Functions -> [(LabelName, Function)] Source #
Sort functions (define pragma) and avoid reserved words.
processParserRules :: ParserRules -> [(Cat, Map RHS RuleLabel)] Source #
Sort parser rules and avoid reserved words.
processRules :: ASTRulesAP -> [(Type, [(Label, ([Type], (Integer, ARHS)))])] Source #
Process AST rules to generate Abstract Syntax and Printer.