mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-11 13:59:31 -06:00
Introduced output of stripped format gfcm.
This commit is contained in:
@@ -51,6 +51,7 @@ pCommand ws = case ws of
|
||||
"i" : f : [] -> aUnit (CImport f)
|
||||
"rl" : l : [] -> aUnit (CRemoveLanguage (language l))
|
||||
"e" : [] -> aUnit CEmptyState
|
||||
"s" : [] -> aUnit CStripState
|
||||
"tg" : f : [] -> aUnit (CTransformGrammar f)
|
||||
"cl" : f : [] -> aUnit (CConvertLatex f)
|
||||
|
||||
|
||||
@@ -26,7 +26,11 @@ translateSession :: Options -> ShellState -> IO ()
|
||||
translateSession opts st = do
|
||||
let grs = allStateGrammars st
|
||||
cat = firstCatOpts opts (firstStateGrammar st)
|
||||
trans = unlines . translateBetweenAll grs cat
|
||||
trans s = unlines $
|
||||
if oElem showLang opts then
|
||||
[l +++ ":" +++ s | (l,s) <- zip (map (prIdent . cncId) grs)
|
||||
(translateBetweenAll grs cat s)]
|
||||
else translateBetweenAll grs cat s
|
||||
translateLoop opts trans
|
||||
|
||||
translateLoop opts trans = do
|
||||
|
||||
Reference in New Issue
Block a user