unionGFCC, to put together GFCC grs with same abstract

This commit is contained in:
aarne
2007-11-05 13:48:51 +00:00
parent fe49c9f1bf
commit 5315d8851d
4 changed files with 26 additions and 3 deletions

View File

@@ -77,7 +77,8 @@ startCat :: MultiGrammar -> Category
file2grammar f = do
gfcc <- file2gfcc f
let fcfgs = convertGrammar gfcc
return (MultiGrammar gfcc [(lang, buildFCFPInfo fcfg) | (CId lang,fcfg) <- fcfgs])
return (MultiGrammar gfcc
[(lang, buildFCFPInfo fcfg) | (CId lang,fcfg) <- fcfgs])
file2gfcc f =
readFileIf f >>= err (error) (return . mkGFCC) . pGrammar . myLexer