diff options
| author | krasimir <krasimir@chalmers.se> | 2010-03-18 19:34:30 +0000 |
|---|---|---|
| committer | krasimir <krasimir@chalmers.se> | 2010-03-18 19:34:30 +0000 |
| commit | f870c4d80f9e1b55a18c54f8119e5ed11f9d14e1 (patch) | |
| tree | 0aaf19f5156e6f62f9f8f41732432a49aa1c64fc /src/compiler/GF/Grammar/Printer.hs | |
| parent | d91999dec0bcdbed95fe3977d89f38157389852a (diff) | |
syntax for inaccessible patterns in GF
Diffstat (limited to 'src/compiler/GF/Grammar/Printer.hs')
| -rw-r--r-- | src/compiler/GF/Grammar/Printer.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/GF/Grammar/Printer.hs b/src/compiler/GF/Grammar/Printer.hs index b3b6bbf77..12f574b52 100644 --- a/src/compiler/GF/Grammar/Printer.hs +++ b/src/compiler/GF/Grammar/Printer.hs @@ -208,6 +208,7 @@ ppPatt q d (PFloat f) = double f ppPatt q d (PString s) = str s
ppPatt q d (PR xs) = braces (hsep (punctuate semi [ppLabel l <+> equals <+> ppPatt q 0 e | (l,e) <- xs]))
ppPatt q d (PImplArg p) = braces (ppPatt q 0 p)
+ppPatt q d (PTilde t) = char '~' <> ppTerm q 6 t
ppValue :: TermPrintQual -> Int -> Val -> Doc
ppValue q d (VGen i x) = ppIdent x <> text "{-" <> int i <> text "-}" ---- latter part for debugging
|
