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/Command/Importing.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compiler/GF/Command') diff --git a/src/compiler/GF/Command/Importing.hs b/src/compiler/GF/Command/Importing.hs index f4e51e3e7..59f84e409 100644 --- a/src/compiler/GF/Command/Importing.hs +++ b/src/compiler/GF/Command/Importing.hs @@ -56,7 +56,7 @@ importCF opts files get convert = impCF startCat <- case rules of (Rule cat _ _ : _) -> return cat _ -> fail "empty CFG" - let pgf = cf2pgf (last files) (uniqueFuns (mkCFG startCat Set.empty rules)) + let pgf = cf2pgf (last files) (mkCFG startCat Set.empty rules) probs <- maybe (return . defaultProbabilities) readProbabilitiesFromFile (flag optProbsFile opts) pgf return $ setProbabilities probs $ if flag optOptimizePGF opts then optimizePGF pgf else pgf -- cgit v1.2.3