diff options
| author | aarne <unknown> | 2004-09-15 11:37:45 +0000 |
|---|---|---|
| committer | aarne <unknown> | 2004-09-15 11:37:45 +0000 |
| commit | 7697b222d0b7053e4b955a6ab9ba2ad0d6c9c512 (patch) | |
| tree | 229b33f7d5f5613f45bb70ea7493bd2f0ba3ae46 /src/GF/Shell.hs | |
| parent | fe045070cf4333cee0e634db5c877493d1b16030 (diff) | |
terms from rf
Diffstat (limited to 'src/GF/Shell.hs')
| -rw-r--r-- | src/GF/Shell.hs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/GF/Shell.hs b/src/GF/Shell.hs index 294160a82..1b8a8520d 100644 --- a/src/GF/Shell.hs +++ b/src/GF/Shell.hs @@ -133,6 +133,7 @@ execC co@(comm, opts0) sa@((st,(h,_)),a) = checkOptions st co >> case comm of let a' = case a of ASTrm _ -> s2t a + AString _ -> s2t a _ -> a case a' of ATrms (trm:_) -> case tree2exp trm of @@ -152,6 +153,7 @@ execC co@(comm, opts0) sa@((st,(h,_)),a) = checkOptions st co >> case comm of let a' = case a of ASTrm _ -> s2t a + AString _ -> s2t a _ -> a mt = case a' of ATrms (tr:_) -> Just tr @@ -159,7 +161,8 @@ execC co@(comm, opts0) sa@((st,(h,_)),a) = checkOptions st co >> case comm of returnArg (ATrms $ generateTrees opts gro mt) sa - CPutTerm -> changeArg (opTT2CommandArg (optTermCommand opts gro) . s2t) sa + CPutTerm -> changeArg (opTT2CommandArg (optTermCommand opts gro) . s2t) sa + ---- CWrapTerm f -> changeArg (opTT2CommandArg (return . wrapByFun opts gro f)) sa CMorphoAnalyse -> changeArg (AString . morphoAnalyse opts gro . prCommandArg) sa CTestTokenizer -> changeArg (AString . optTokenizer opts gro . prCommandArg) sa @@ -240,6 +243,7 @@ execC co@(comm, opts0) sa@((st,(h,_)),a) = checkOptions st co >> case comm of s2t a = case a of ASTrm s -> err AError (ATrms . return) $ string2treeErr gro s + AString s -> err AError (ATrms . return) $ string2treeErr gro s _ -> a warnDiscont os = err putStrLn id $ do |
