From 9e7b914c3c5384feed3981acae89afaa7402e92b Mon Sep 17 00:00:00 2001 From: krasimir Date: Fri, 30 Apr 2010 20:18:26 +0000 Subject: for backward compatibility we have the old parse function again. the old functionality is exposed by parse_ --- src/compiler/GF/Compile/ExampleBased.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compiler/GF/Compile/ExampleBased.hs') diff --git a/src/compiler/GF/Compile/ExampleBased.hs b/src/compiler/GF/Compile/ExampleBased.hs index f197722ba..5c56c0ce5 100644 --- a/src/compiler/GF/Compile/ExampleBased.hs +++ b/src/compiler/GF/Compile/ExampleBased.hs @@ -41,7 +41,7 @@ convertFile conf src file = do convEx (cat,ex) = do appn "(" let typ = maybe (error "no valid cat") id $ readType cat - ws <- case fst (parse pgf lang typ ex) of + ws <- case fst (parse_ pgf lang typ ex) of ParseFailed _ -> do let ws = morphoMissing morpho (words ex) appv ("WARNING: cannot parse example " ++ ex) -- cgit v1.2.3