diff options
| author | krasimir <krasimir@chalmers.se> | 2016-03-22 13:13:35 +0000 |
|---|---|---|
| committer | krasimir <krasimir@chalmers.se> | 2016-03-22 13:13:35 +0000 |
| commit | a393c1a246bb946e53f26b7b91a173c2ba1a0fa7 (patch) | |
| tree | 54dbc9eff02cda48568821d53061a01d3f4944dd /src/compiler/GF/Compiler.hs | |
| parent | ce7072085947f4981c8d6d49b571e3cf5683fbb6 (diff) | |
fix the handling of separators in BNFC which are not nonempty
Diffstat (limited to 'src/compiler/GF/Compiler.hs')
| -rw-r--r-- | src/compiler/GF/Compiler.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/GF/Compiler.hs b/src/compiler/GF/Compiler.hs index a057f074f..7fbaed9e4 100644 --- a/src/compiler/GF/Compiler.hs +++ b/src/compiler/GF/Compiler.hs @@ -91,7 +91,7 @@ compileCFFiles opts fs = do startCat <- case rules of (Rule cat _ _ : _) -> return cat _ -> fail "empty CFG" - let pgf = cf2pgf (last fs) (uniqueFuns (mkCFG startCat Set.empty rules)) + let pgf = cf2pgf (last fs) (mkCFG startCat Set.empty rules) unless (flag optStopAfterPhase opts == Compile) $ do probs <- liftIO (maybe (return . defaultProbabilities) readProbabilitiesFromFile (flag optProbsFile opts) pgf) let pgf' = setProbabilities probs $ if flag optOptimizePGF opts then optimizePGF pgf else pgf |
