mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-10 05:29:30 -06:00
Introduced output of stripped format gfcm.
This commit is contained in:
@@ -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