1
0
forked from GitHub/gf-core

sorted the list of funs and cats in GrammatToPGF to get the predef categories in proper place and get gr, ai, gt work properly

This commit is contained in:
aarne
2012-01-14 17:06:54 +00:00
parent b6297cc7d7
commit 8936c6d38e

View File

@@ -52,10 +52,10 @@ mkCanon2pgf opts gr am = do
flags = Map.fromList [(mkCId f,C.LStr x) | (f,x) <- optionsPGF aflags]
funs = Map.fromAscList [(i2i f, (mkType [] ty, mkArrity ma, mkDef pty, 0)) |
funs = Map.fromList [(i2i f, (mkType [] ty, mkArrity ma, mkDef pty, 0)) |
((m,f),AbsFun (Just (L _ ty)) ma pty _) <- adefs]
cats = Map.fromAscList [(i2i c, (snd (mkContext [] cont),catfuns c)) |
cats = Map.fromList [(i2i c, (snd (mkContext [] cont),catfuns c)) |
((m,c),AbsCat (Just (L _ cont))) <- adefs]
catfuns cat =