1
0
forked from GitHub/gf-rgl

simple problem tracing

This commit is contained in:
aarne
2005-11-24 09:25:39 +00:00
parent 2700fc1360
commit a2ef232f2f
63 changed files with 8926 additions and 1 deletions

View File

@@ -1,22 +0,0 @@
mkEd file = do
let out = "new.tmp"
writeFile out ""
ss <- readFile file >>= return . lines
mapM_ (\s -> appendFile out (addIng s) >> appendFile out "\n") ss
addEd line = case words line of
c@('V':_):ar:p:b:v:sc:_ -> unwords $ [c,ar,p,b,v,b,past (init v) ++ "\"",sc]
_ -> line
where
past v = case last v of
'e' -> v ++ "d"
'y' -> init v ++ "ied"
_ -> v ++ "ed"
addIng line = case words line of
c@('V':_):ar:p:b:v:_:ed:sc:_ -> unwords $ [c,ar,p,b,v,b,ed,b,ing (init v) ++ "\"",sc]
_ -> line
where
ing v = case last v of
'e' -> init v ++ "ing"
_ -> v ++ "ing"