readfiles

This commit is contained in:
aarne
2004-06-10 14:34:07 +00:00
parent f07087647e
commit 3522b2a3cd
5 changed files with 22 additions and 11 deletions

View File

@@ -200,10 +200,12 @@ optLinearizeTree opts0 gr t = case getOptVal opts transferFun of
| oElem showRecord opts = liftM prt . linearizeNoMark g c
| oElem tableLin opts = liftM (unlines . map untok . prLinTable) .
allLinTables g c
| otherwise = return . untok . linTree2string mk g c
| oElem showAll opts = return . unlines . linTree2strings mk g c
| otherwise = return . unlines . optIntOrOne . linTree2strings mk g c
g = grammar gr
c = cncId gr
untok = customOrDefault opts useUntokenizer customUntokenizer gr
optIntOrOne = take $ optIntOrN opts flagNumber 1
{- ----
untoksl . lin where