32b8066b7e8860e8520e9f1b6644ca156a60c36b
[clean-tests.git] / gengen / Data / GenType / CParser.dcl
1 definition module Data.GenType.CParser
2
3 from Data.Either import :: Either
4 from Data.GenType import :: Type
5
6 /**
7 * Generate a single parser for a type.
8 * This does not terminate for a recursive type
9 */
10 flatParser :: Type -> Either String ([String], [String])
11
12 /**
13 * generate parsers for the types grouped by strongly connected components
14 */
15 parsers :: [[Type]] -> Either String [String]