mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-17 16:59:34 -06:00
Preparing for release.
This commit is contained in:
@@ -161,7 +161,7 @@ optionsOfCommand co = case co of
|
||||
CShowTerm -> flags "printer"
|
||||
CSystemCommand _ -> none
|
||||
|
||||
CPrintGrammar -> both "utf8" "printer"
|
||||
CPrintGrammar -> both "utf8" "printer lang"
|
||||
CPrintMultiGrammar -> opts "utf8"
|
||||
|
||||
CHelp _ -> opts "all"
|
||||
|
||||
@@ -9,6 +9,8 @@ import API
|
||||
import CommandL
|
||||
import ArchEdit
|
||||
|
||||
import List
|
||||
|
||||
-- AR 20/4/2000 -- 12/11/2001
|
||||
|
||||
editSession :: Options -> ShellState -> IO ()
|
||||
@@ -26,10 +28,10 @@ translateSession :: Options -> ShellState -> IO ()
|
||||
translateSession opts st = do
|
||||
let grs = allStateGrammars st
|
||||
cat = firstCatOpts opts (firstStateGrammar st)
|
||||
trans s = unlines $
|
||||
trans s = unlines $
|
||||
if oElem showLang opts then
|
||||
[l +++ ":" +++ s | (l,s) <- zip (map (prIdent . cncId) grs)
|
||||
(translateBetweenAll grs cat s)]
|
||||
sort $ [l +++ ":" +++ s | (l,s) <- zip (map (prIdent . cncId) grs)
|
||||
(translateBetweenAll grs cat s)]
|
||||
else translateBetweenAll grs cat s
|
||||
translateLoop opts trans
|
||||
|
||||
|
||||
Reference in New Issue
Block a user