1
0
forked from GitHub/gf-core

auxiliaries for making the synopsis with multilingual examples

This commit is contained in:
aarne
2010-12-11 20:47:53 +00:00
parent da670babaa
commit bbb79126b8
5 changed files with 196 additions and 25 deletions

View File

@@ -1,9 +1,9 @@
-- make a script for computing examples
-- usage: runghc MkExx.hs <koe.txt >koe.gfs
-- then: gf -retain -s ../alltenses/TryRon.gfo <koe.gfs
-- called automatically by 'make exx'
main = interact (unlines . concatMap mkScript . lines)
main = interact (unlines . concatMap mkScript . takeWhile (/="--.") . lines)
mkScript l = case l of
' ':_ ->
@@ -12,7 +12,8 @@ mkScript l = case l of
'-':_ -> []
_ -> [
add $ psq l,
add $ "cc -one " ++ l
add $ "cc -one " ++ l,
add $ psq "*"
]
add = ('\n':)