diff options
| author | krasimir <krasimir@chalmers.se> | 2008-10-15 08:38:34 +0000 |
|---|---|---|
| committer | krasimir <krasimir@chalmers.se> | 2008-10-15 08:38:34 +0000 |
| commit | e36d70d483be19ed3c72a91c8440084d276e1244 (patch) | |
| tree | a4b9a13e9314777cb3566c3dd6f07495c213eea4 /src/GF | |
| parent | 4fa3eb87cd31aede8707ec9e2a32ef7c1405c739 (diff) | |
threat category _Var as a literal category
Diffstat (limited to 'src/GF')
| -rw-r--r-- | src/GF/Compile/GeneratePMCFG.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/GF/Compile/GeneratePMCFG.hs b/src/GF/Compile/GeneratePMCFG.hs index 20ba80e2e..e05ef5afa 100644 --- a/src/GF/Compile/GeneratePMCFG.hs +++ b/src/GF/Compile/GeneratePMCFG.hs @@ -268,11 +268,13 @@ emptyFRulesEnv cnc_defs lincats = 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 |
