forked from GitHub/gf-core
in PGF.Printer special output format for SymLit
This commit is contained in:
@@ -77,7 +77,7 @@ ppPrintName (id,name) =
|
|||||||
ppCId id <+> text ":=" <+> ppStrs [name]
|
ppCId id <+> text ":=" <+> ppStrs [name]
|
||||||
|
|
||||||
ppSymbol (SymCat d r) = char '<' <> int d <> comma <> int r <> char '>'
|
ppSymbol (SymCat d r) = char '<' <> int d <> comma <> int r <> char '>'
|
||||||
ppSymbol (SymLit d r) = char '<' <> int d <> comma <> int r <> char '>'
|
ppSymbol (SymLit d r) = char '{' <> int d <> comma <> int r <> char '}'
|
||||||
ppSymbol (SymKS ts) = ppStrs ts
|
ppSymbol (SymKS ts) = ppStrs ts
|
||||||
ppSymbol (SymKP ts alts) = text "pre" <+> braces (hsep (punctuate semi (ppStrs ts : map ppAlt alts)))
|
ppSymbol (SymKP ts alts) = text "pre" <+> braces (hsep (punctuate semi (ppStrs ts : map ppAlt alts)))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user