diff options
| author | krasimir <krasimir@chalmers.se> | 2010-04-30 20:18:26 +0000 |
|---|---|---|
| committer | krasimir <krasimir@chalmers.se> | 2010-04-30 20:18:26 +0000 |
| commit | 9e7b914c3c5384feed3981acae89afaa7402e92b (patch) | |
| tree | 1b1e1e1132cbfb752b38d2b9675583c7c7067092 /src/compiler/GF/Compile/ExampleBased.hs | |
| parent | 1c590e41f4a1e94e050980a6b161e4385a9e7cfa (diff) | |
for backward compatibility we have the old parse function again. the old functionality is exposed by parse_
Diffstat (limited to 'src/compiler/GF/Compile/ExampleBased.hs')
| -rw-r--r-- | src/compiler/GF/Compile/ExampleBased.hs | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
