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 | |
| parent | fe045070cf4333cee0e634db5c877493d1b16030 (diff) | |
terms from rf
Diffstat (limited to 'src')
| -rw-r--r-- | src/GF/Shell.hs | 6 | ||||
| -rw-r--r-- | src/GF/Shell/ShellCommands.hs | 1 |
2 files changed, 6 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 diff --git a/src/GF/Shell/ShellCommands.hs b/src/GF/Shell/ShellCommands.hs index b4c28ca2e..236718918 100644 --- a/src/GF/Shell/ShellCommands.hs +++ b/src/GF/Shell/ShellCommands.hs @@ -30,6 +30,7 @@ data Command = | CGenerateRandom | CGenerateTrees | CPutTerm + | CReadTerm | CWrapTerm I.Ident | CMorphoAnalyse | CTestTokenizer |
