1
0
forked from GitHub/gf-core

when we print the bracketed string it is useful to print the attached metavariables as well

This commit is contained in:
krasimir
2010-10-25 12:21:12 +00:00
parent 2aea03a614
commit aa6b07afdb

View File

@@ -169,7 +169,7 @@ showBracketedString :: BracketedString -> String
showBracketedString = render . ppBracketedString
ppBracketedString (Leaf t) = text t
ppBracketedString (Bracket cat fcat index _ bss) = parens (ppCId cat <+> hsep (map ppBracketedString bss))
ppBracketedString (Bracket cat fid index _ bss) = parens (ppCId cat <> colon <> int fid <+> hsep (map ppBracketedString bss))
-- | The length of the bracketed string in number of tokens.
lengthBracketedString :: BracketedString -> Int