From a393c1a246bb946e53f26b7b91a173c2ba1a0fa7 Mon Sep 17 00:00:00 2001 From: krasimir Date: Tue, 22 Mar 2016 13:13:35 +0000 Subject: fix the handling of separators in BNFC which are not nonempty --- src/compiler/GF/Compiler.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compiler/GF/Compiler.hs') 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 -- cgit v1.2.3