diff options
| author | aarne <aarne@cs.chalmers.se> | 2006-09-17 14:57:46 +0000 |
|---|---|---|
| committer | aarne <aarne@cs.chalmers.se> | 2006-09-17 14:57:46 +0000 |
| commit | 1242b8cc91f2ba3b9860cf34b36d0a5bbcea1b1a (patch) | |
| tree | 9ff97a1330b86f180f0e6beedcacd699fe4f428a /src/GF/Canon/CanonToGFCC.hs | |
| parent | 35f81967eab677ed4a8f58fef27f4945f684ee8b (diff) | |
predef types in gfcc
Diffstat (limited to 'src/GF/Canon/CanonToGFCC.hs')
| -rw-r--r-- | src/GF/Canon/CanonToGFCC.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/GF/Canon/CanonToGFCC.hs b/src/GF/Canon/CanonToGFCC.hs index bfcae3cf3..f7fc3f18f 100644 --- a/src/GF/Canon/CanonToGFCC.hs +++ b/src/GF/Canon/CanonToGFCC.hs @@ -177,7 +177,9 @@ paramValues cgr = (labels,untyps,typs) where jments = [(m,j) | (m,mo) <- M.allModMod cgr, j <- tree2list $ M.jments mo] typs = Map.fromList [(ci,Map.fromList (zip vs [0..])) | (ci,vs) <- params] untyps = Map.fromList $ concatMap Map.toList [typ | (_,typ) <- Map.toList typs] - lincats = [(cat,ls) | (_,(cat,CncCat (RecType ls) _ _)) <- jments] + lincats = + [(IC cat,[Lbg (L (IC "s")) TStr]) | cat <- ["Int", "Float", "String"]] ++ + [(cat,ls) | (_,(cat,CncCat (RecType ls) _ _)) <- jments] labels = Map.fromList $ concat [((cat,[lab]),(typ,i)): [((cat,[lab2,lab]),(ty,j)) | |
