Show
Ignore:
Timestamp:
05.01.2009 15:46:06 (11 months ago)
Author:
csliam
Message:

Large commit - improved static analysis of cspcasl and translation of cspcasl to isabelle

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/CspCASL/Print_CspCASL.hs

    r10428 r11215  
    2424import CspCASL.CspCASL_Keywords 
    2525 
    26 instance Pretty CspCASLSentence where 
    27     pretty _ = empty 
     26import qualified Data.Set as S 
     27 
    2828 
    2929instance Pretty CspBasicSpec where 
     
    145145         alpar_close <+> (glue pr q) 
    146146        ) 
     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 
     152instance Pretty CommType where 
     153    pretty (CommTypeSort s) = pretty s 
     154    pretty (CommTypeChan (TypedChanName c s)) =  parens (sepByCommas [pretty c, pretty s]) 
     155 
    147156 
    148157-- glue and prec_comp decide whether the child in the parse tree needs