mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 11:42:49 -06:00
fixed unlexer
This commit is contained in:
@@ -205,7 +205,7 @@ optLinearizeTree opts0 gr t = case getOptVal opts transferFun of
|
|||||||
allLinTables g c
|
allLinTables g c
|
||||||
| oElem showAll opts = liftM (unlines . map untok . prLinTable False) .
|
| oElem showAll opts = liftM (unlines . map untok . prLinTable False) .
|
||||||
allLinTables g c
|
allLinTables g c
|
||||||
| otherwise = return . unlines . optIntOrOne . linTree2strings mk g c
|
| otherwise = return . unlines . map untok . optIntOrOne . linTree2strings mk g c
|
||||||
g = grammar gr
|
g = grammar gr
|
||||||
c = cncId gr
|
c = cncId gr
|
||||||
untok = customOrDefault opts useUntokenizer customUntokenizer gr
|
untok = customOrDefault opts useUntokenizer customUntokenizer gr
|
||||||
|
|||||||
@@ -303,6 +303,7 @@ customUntokenizer =
|
|||||||
,(strCI "codelit", const $ formatAsCodeLit)
|
,(strCI "codelit", const $ formatAsCodeLit)
|
||||||
,(strCI "concat", const $ concat . words)
|
,(strCI "concat", const $ concat . words)
|
||||||
,(strCI "glue", const $ performBinds)
|
,(strCI "glue", const $ performBinds)
|
||||||
|
,(strCI "reverse", const $ reverse)
|
||||||
,(strCI "bind", const $ performBinds) -- backward compat
|
,(strCI "bind", const $ performBinds) -- backward compat
|
||||||
-- add your own untokenizers here
|
-- add your own untokenizers here
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user