Hello,
I'm beginning to program in Haskell and I'm using GHC 2.02.
Do you would be able to detect errors in the code following and, eventually,
write me the code corrected ?
main = do fileTran <- openFile "dfatran.dat" ReadWriteMode
t <- hGetContents fileTran
putStr "String to recognize :"
st <- getLine
tr <- updatetran (transflist (words t)) (grammar 1) (epsClosure "S"
(grammar 1) ((length (lines (grammar 1))) - 1)) st
putStr (msgstring tr)
fileTran <- openFile "dfatran.dat" WriteMode
hPutStr fileTran (flattran tr)
putStr "End program\n"
Thank you in advance,
Francesco Arrigo