From ce7072085947f4981c8d6d49b571e3cf5683fbb6 Mon Sep 17 00:00:00 2001 From: krasimir Date: Tue, 22 Mar 2016 10:28:15 +0000 Subject: CFGtoPGF is now extended to support context-free grammars with primitive parameters --- src/compiler/GF/Command/Importing.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/compiler/GF/Command') diff --git a/src/compiler/GF/Command/Importing.hs b/src/compiler/GF/Command/Importing.hs index f3d93d87b..f4e51e3e7 100644 --- a/src/compiler/GF/Command/Importing.hs +++ b/src/compiler/GF/Command/Importing.hs @@ -54,8 +54,8 @@ importCF opts files get convert = impCF impCF = do rules <- fmap (convert . concat) $ mapM (get opts) files startCat <- case rules of - (CFRule cat _ _ : _) -> return cat - _ -> fail "empty CFG" + (Rule cat _ _ : _) -> return cat + _ -> fail "empty CFG" let pgf = cf2pgf (last files) (uniqueFuns (mkCFG startCat Set.empty rules)) probs <- maybe (return . defaultProbabilities) readProbabilitiesFromFile (flag optProbsFile opts) pgf return $ setProbabilities probs -- cgit v1.2.3