From 418856d9bfe23944528ba3d41710be0dbfab8d27 Mon Sep 17 00:00:00 2001 From: krasimir Date: Sun, 19 Oct 2008 14:21:58 +0000 Subject: move the literal category names to PGF.Macros --- src/GF/Compile/GeneratePMCFG.hs | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/GF/Compile') diff --git a/src/GF/Compile/GeneratePMCFG.hs b/src/GF/Compile/GeneratePMCFG.hs index 619e5088b..a20496d70 100644 --- a/src/GF/Compile/GeneratePMCFG.hs +++ b/src/GF/Compile/GeneratePMCFG.hs @@ -217,16 +217,10 @@ emptyGrammarEnv cnc_defs lincats = let (last_id,catSet) = Map.mapAccumWithKey computeCatRange 0 lincats in GrammarEnv last_id (IntMap.singleton 0 catSet) Map.empty Map.empty Map.empty IntMap.empty where - cidString = mkCId "String" - cidInt = mkCId "Int" - cidFloat = mkCId "Float" - cidVar = mkCId "_Var" - computeCatRange index cat ctype | cat == cidString = (index, (fcatString,fcatString,[])) | cat == cidInt = (index, (fcatInt, fcatInt, [])) | cat == cidFloat = (index, (fcatFloat, fcatFloat, [])) - | cat == cidVar = (index, (fcatVar, fcatVar, [])) | otherwise = (index+size,(index,index+size-1,poly)) where (size,poly) = getMultipliers 1 [] ctype -- cgit v1.2.3