mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-27 03:38:55 -06:00
strip empty phrases in bracketedLinearize
This commit is contained in:
@@ -990,7 +990,9 @@ withBracketLinFuncs ref exn f =
|
|||||||
|
|
||||||
end_phrase ref _ c_cat c_fid c_lindex c_fun = do
|
end_phrase ref _ c_cat c_fid c_lindex c_fun = do
|
||||||
(bs':stack,bs) <- readIORef ref
|
(bs':stack,bs) <- readIORef ref
|
||||||
cat <- peekUtf8CString c_cat
|
if null bs
|
||||||
|
then writeIORef ref (stack, bs')
|
||||||
|
else do cat <- peekUtf8CString c_cat
|
||||||
let fid = fromIntegral c_fid
|
let fid = fromIntegral c_fid
|
||||||
let lindex = fromIntegral c_lindex
|
let lindex = fromIntegral c_lindex
|
||||||
fun <- peekUtf8CString c_fun
|
fun <- peekUtf8CString c_fun
|
||||||
|
|||||||
Reference in New Issue
Block a user