mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-30 14:52:51 -06:00
when we print the bracketed string it is useful to print the attached metavariables as well
This commit is contained in:
@@ -169,7 +169,7 @@ showBracketedString :: BracketedString -> String
|
|||||||
showBracketedString = render . ppBracketedString
|
showBracketedString = render . ppBracketedString
|
||||||
|
|
||||||
ppBracketedString (Leaf t) = text t
|
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.
|
-- | The length of the bracketed string in number of tokens.
|
||||||
lengthBracketedString :: BracketedString -> Int
|
lengthBracketedString :: BracketedString -> Int
|
||||||
|
|||||||
Reference in New Issue
Block a user