Changeset 11215 for trunk/CspCASL/Print_CspCASL.hs
- Timestamp:
- 05.01.2009 15:46:06 (11 months ago)
- Files:
-
- 1 modified
-
trunk/CspCASL/Print_CspCASL.hs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/CspCASL/Print_CspCASL.hs
r10428 r11215 24 24 import CspCASL.CspCASL_Keywords 25 25 26 i nstance Pretty CspCASLSentence where27 pretty _ = empty 26 import qualified Data.Set as S 27 28 28 29 29 instance Pretty CspBasicSpec where … … 145 145 alpar_close <+> (glue pr q) 146 146 ) 147 FQProcess p commAlpha _ -> 148 let commAlphaList = S.toList commAlpha 149 prettyComms cs = sepByCommas (map pretty cs) 150 in brackets(pretty p) <> text "_" <> braces (prettyComms commAlphaList) 151 152 instance Pretty CommType where 153 pretty (CommTypeSort s) = pretty s 154 pretty (CommTypeChan (TypedChanName c s)) = parens (sepByCommas [pretty c, pretty s]) 155 147 156 148 157 -- glue and prec_comp decide whether the child in the parse tree needs