summaryrefslogtreecommitdiff
path: root/src/GF/API.hs
diff options
context:
space:
mode:
authoraarne <unknown>2004-08-15 21:02:10 +0000
committeraarne <unknown>2004-08-15 21:02:10 +0000
commitc96162ba8b228e0e2db0202c4ee155103537488a (patch)
tree5407a7e20c138ace5606e63aa891eba46c1bbf62 /src/GF/API.hs
parentf65d08638bb0cded9b4c74d810696e920fcebb65 (diff)
experiments with unlexer
Diffstat (limited to 'src/GF/API.hs')
-rw-r--r--src/GF/API.hs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/GF/API.hs b/src/GF/API.hs
index 2d23da0f6..5a55f5b1f 100644
--- a/src/GF/API.hs
+++ b/src/GF/API.hs
@@ -26,6 +26,7 @@ import CMacros
import Transfer
import qualified Generate as Gen
+import Text (untokWithXML)
import Option
import Custom
import ShellState
@@ -208,7 +209,10 @@ optLinearizeTree opts0 gr t = case getOptVal opts transferFun of
| otherwise = return . unlines . map untok . optIntOrOne . linTree2strings mk g c
g = grammar gr
c = cncId gr
- untok = customOrDefault opts useUntokenizer customUntokenizer gr
+ untok = if False ---- oElem (markLin markOptXML) opts
+ then untokWithXML unt
+ else unt
+ unt = customOrDefault opts useUntokenizer customUntokenizer gr
optIntOrOne = take $ optIntOrN opts flagNumber 1
{- ----