diff options
| author | hallgren <hallgren@chalmers.se> | 2012-12-11 15:37:41 +0000 |
|---|---|---|
| committer | hallgren <hallgren@chalmers.se> | 2012-12-11 15:37:41 +0000 |
| commit | 5e091d2e3dc428daa1d4b0d8df6e7b613adc22a9 (patch) | |
| tree | 5c2c62eabdeab22d443cca85b9d7b48aec436c19 /src/compiler/GF/Compile/CheckGrammar.hs | |
| parent | 2623925e67b240f289b7ca507dd9c1ae194a93ce (diff) | |
partial evaluator work
* Evaluate operators once, not every time they are looked up
* Remember the list of parameter values instead of recomputing it from the
pattern type every time a table selection is made.
* Quick fix for partial application of some predefined functions.
Diffstat (limited to 'src/compiler/GF/Compile/CheckGrammar.hs')
| -rw-r--r-- | src/compiler/GF/Compile/CheckGrammar.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/GF/Compile/CheckGrammar.hs b/src/compiler/GF/Compile/CheckGrammar.hs index 50af38add..c628b7c83 100644 --- a/src/compiler/GF/Compile/CheckGrammar.hs +++ b/src/compiler/GF/Compile/CheckGrammar.hs @@ -218,7 +218,7 @@ checkInfo opts sgr (m,mo) c info = do (Just (L loct ty), Just (L locd de)) -> do ty' <- chIn loct "operation" $ (if False --flag optNewComp opts - then CN.checkLType gr ty typeType >>= return . CN.normalForm gr . fst + then CN.checkLType gr ty typeType >>= return . CN.normalForm (CN.resourceValues gr) . fst -- !! else checkLType gr [] ty typeType >>= computeLType gr [] . fst) (de',_) <- chIn locd "operation" $ (if False -- flag optNewComp opts |
