clafer-0.3.7: clafer compiles Clafer models to other formats, such as Alloy, XML, HTML, Dot.

Safe HaskellNone
LanguageHaskell2010

Language.Clafer.Generator.Alloy

Description

Generates Alloy4.1 or 4.2 code for a Clafer model

Synopsis

Documentation

data Concat Source

representation of strings in chunks (for line/column numbering)

Constructors

CString String 
Concat 

Fields

srcPos :: IrTrace
 
nodes :: [Concat]
 

Instances

data IrTrace Source

Constructors

IrPExp 

Fields

pUid :: String
 
LowerCard 

Fields

pUid :: String
 
isGroup :: Bool
 
UpperCard 

Fields

pUid :: String
 
isGroup :: Bool
 
ExactCard 

Fields

pUid :: String
 
isGroup :: Bool
 
NoTrace 

Instances

genModule :: ClaferArgs -> (IModule, GEnv) -> [(UID, Integer)] -> (Result, [(Span, IrTrace)]) Source

Alloy code generation 07th Mayo 2012 Rafael Olaechea Added Logic to print a goal block in case there is at least one goal.

brArg :: (a -> Concat) -> a -> Concat Source

data AlloyEnv Source

Constructors

AlloyEnv 

Fields

lineCol :: (LineNo, ColNo)
 
mapping :: [(Span, IrTrace)]
 

Instances