GOOL.Drasil.LanguageRenderer.SwiftRenderer
Contents
Description
The logic to render Swift code is contained in this module
newtype SwiftCode a Source #
Constructors
Fields
Defined in GOOL.Drasil.LanguageRenderer.SwiftRenderer
Methods
pure :: a -> SwiftCode a #
(<*>) :: SwiftCode (a -> b) -> SwiftCode a -> SwiftCode b #
liftA2 :: (a -> b -> c) -> SwiftCode a -> SwiftCode b -> SwiftCode c #
(*>) :: SwiftCode a -> SwiftCode b -> SwiftCode b #
(<*) :: SwiftCode a -> SwiftCode b -> SwiftCode a #
fmap :: (a -> b) -> SwiftCode a -> SwiftCode b #
(<$) :: a -> SwiftCode b -> SwiftCode a #
(>>=) :: SwiftCode a -> (a -> SwiftCode b) -> SwiftCode b #
(>>) :: SwiftCode a -> SwiftCode b -> SwiftCode b #
return :: a -> SwiftCode a #
pointerArg :: SValue SwiftCode -> SValue SwiftCode Source #
(&-=) :: SVariable SwiftCode -> SValue SwiftCode -> MSStatement SwiftCode Source #
(&+=) :: SVariable SwiftCode -> SValue SwiftCode -> MSStatement SwiftCode Source #
(&++) :: SVariable SwiftCode -> MSStatement SwiftCode Source #
(&--) :: SVariable SwiftCode -> MSStatement SwiftCode Source #
assign :: SVariable SwiftCode -> SValue SwiftCode -> MSStatement SwiftCode Source #
Associated Types
type Block SwiftCode Source #
block :: [MSStatement SwiftCode] -> MSBlock SwiftCode Source #
type Body SwiftCode Source #
body :: [MSBlock SwiftCode] -> MSBody SwiftCode Source #
addComments :: Label -> MSBody SwiftCode -> MSBody SwiftCode Source #
(?!) :: SValue SwiftCode -> SValue SwiftCode Source #
(?&&) :: SValue SwiftCode -> SValue SwiftCode -> SValue SwiftCode Source #
(?||) :: SValue SwiftCode -> SValue SwiftCode -> SValue SwiftCode Source #
type Class SwiftCode Source #
buildClass :: Maybe Label -> [CSStateVar SwiftCode] -> [SMethod SwiftCode] -> SClass SwiftCode Source #
extraClass :: Label -> Maybe Label -> [CSStateVar SwiftCode] -> [SMethod SwiftCode] -> SClass SwiftCode Source #
implementingClass :: Label -> [Label] -> [CSStateVar SwiftCode] -> [SMethod SwiftCode] -> SClass SwiftCode Source #
docClass :: String -> SClass SwiftCode -> SClass SwiftCode Source #
arg :: Integer -> SValue SwiftCode Source #
argsList :: SValue SwiftCode Source #
argExists :: Integer -> SValue SwiftCode Source #
comment :: Comment -> MSStatement SwiftCode Source #
(?<) :: SValue SwiftCode -> SValue SwiftCode -> SValue SwiftCode Source #
(?<=) :: SValue SwiftCode -> SValue SwiftCode -> SValue SwiftCode Source #
(?>) :: SValue SwiftCode -> SValue SwiftCode -> SValue SwiftCode Source #
(?>=) :: SValue SwiftCode -> SValue SwiftCode -> SValue SwiftCode Source #
(?==) :: SValue SwiftCode -> SValue SwiftCode -> SValue SwiftCode Source #
(?!=) :: SValue SwiftCode -> SValue SwiftCode -> SValue SwiftCode Source #
break :: MSStatement SwiftCode Source #
continue :: MSStatement SwiftCode Source #
returnStmt :: SValue SwiftCode -> MSStatement SwiftCode Source #
throw :: Label -> MSStatement SwiftCode Source #
ifCond :: [(SValue SwiftCode, MSBody SwiftCode)] -> MSBody SwiftCode -> MSStatement SwiftCode Source #
switch :: SValue SwiftCode -> [(SValue SwiftCode, MSBody SwiftCode)] -> MSBody SwiftCode -> MSStatement SwiftCode Source #
ifExists :: SValue SwiftCode -> MSBody SwiftCode -> MSBody SwiftCode -> MSStatement SwiftCode Source #
for :: MSStatement SwiftCode -> SValue SwiftCode -> MSStatement SwiftCode -> MSBody SwiftCode -> MSStatement SwiftCode Source #
forRange :: SVariable SwiftCode -> SValue SwiftCode -> SValue SwiftCode -> SValue SwiftCode -> MSBody SwiftCode -> MSStatement SwiftCode Source #
forEach :: SVariable SwiftCode -> SValue SwiftCode -> MSBody SwiftCode -> MSStatement SwiftCode Source #
while :: SValue SwiftCode -> MSBody SwiftCode -> MSStatement SwiftCode Source #
tryCatch :: MSBody SwiftCode -> MSBody SwiftCode -> MSStatement SwiftCode Source #
varDec :: SVariable SwiftCode -> MSStatement SwiftCode Source #
varDecDef :: SVariable SwiftCode -> SValue SwiftCode -> MSStatement SwiftCode Source #
listDec :: Integer -> SVariable SwiftCode -> MSStatement SwiftCode Source #
listDecDef :: SVariable SwiftCode -> [SValue SwiftCode] -> MSStatement SwiftCode Source #
arrayDec :: Integer -> SVariable SwiftCode -> MSStatement SwiftCode Source #
arrayDecDef :: SVariable SwiftCode -> [SValue SwiftCode] -> MSStatement SwiftCode Source #
objDecDef :: SVariable SwiftCode -> SValue SwiftCode -> MSStatement SwiftCode Source #
objDecNew :: SVariable SwiftCode -> [SValue SwiftCode] -> MSStatement SwiftCode Source #
extObjDecNew :: Library -> SVariable SwiftCode -> [SValue SwiftCode] -> MSStatement SwiftCode Source #
constDecDef :: SVariable SwiftCode -> SValue SwiftCode -> MSStatement SwiftCode Source #
funcDecDef :: SVariable SwiftCode -> [SVariable SwiftCode] -> MSBody SwiftCode -> MSStatement SwiftCode Source #
type File SwiftCode Source #
fileDoc :: FSModule SwiftCode -> SFile SwiftCode Source #
docMod :: String -> [String] -> String -> SFile SwiftCode -> SFile SwiftCode Source #
inOutCall :: InOutCall SwiftCode Source #
selfInOutCall :: InOutCall SwiftCode Source #
extInOutCall :: Library -> InOutCall SwiftCode Source #
type Function SwiftCode Source #
func :: Label -> VSType SwiftCode -> [SValue SwiftCode] -> VSFunction SwiftCode Source #
objAccess :: SValue SwiftCode -> VSFunction SwiftCode -> SValue SwiftCode Source #
get :: SValue SwiftCode -> SVariable SwiftCode -> SValue SwiftCode Source #
set :: SValue SwiftCode -> SVariable SwiftCode -> SValue SwiftCode -> SValue SwiftCode Source #
print :: SValue SwiftCode -> MSStatement SwiftCode Source #
printLn :: SValue SwiftCode -> MSStatement SwiftCode Source #
printStr :: String -> MSStatement SwiftCode Source #
printStrLn :: String -> MSStatement SwiftCode Source #
printFile :: SValue SwiftCode -> SValue SwiftCode -> MSStatement SwiftCode Source #
printFileLn :: SValue SwiftCode -> SValue SwiftCode -> MSStatement SwiftCode Source #
printFileStr :: SValue SwiftCode -> String -> MSStatement SwiftCode Source #
printFileStrLn :: SValue SwiftCode -> String -> MSStatement SwiftCode Source #
getInput :: SVariable SwiftCode -> MSStatement SwiftCode Source #
discardInput :: MSStatement SwiftCode Source #
getFileInput :: SValue SwiftCode -> SVariable SwiftCode -> MSStatement SwiftCode Source #
discardFileInput :: SValue SwiftCode -> MSStatement SwiftCode Source #
openFileR :: SVariable SwiftCode -> SValue SwiftCode -> MSStatement SwiftCode Source #
openFileW :: SVariable SwiftCode -> SValue SwiftCode -> MSStatement SwiftCode Source #
openFileA :: SVariable SwiftCode -> SValue SwiftCode -> MSStatement SwiftCode Source #
closeFile :: SValue SwiftCode -> MSStatement SwiftCode Source #
getFileInputLine :: SValue SwiftCode -> SVariable SwiftCode -> MSStatement SwiftCode Source #
discardFileLine :: SValue SwiftCode -> MSStatement SwiftCode Source #
getFileInputAll :: SValue SwiftCode -> SVariable SwiftCode -> MSStatement SwiftCode Source #
listSlice' :: Maybe (SValue SwiftCode) -> Maybe (SValue SwiftCode) -> Maybe (SValue SwiftCode) -> SVariable SwiftCode -> SValue SwiftCode -> MSBlock SwiftCode Source #
objMethodCallMixedArgs' :: Label -> VSType SwiftCode -> SValue SwiftCode -> [SValue SwiftCode] -> NamedArgs SwiftCode -> SValue SwiftCode Source #
listSize :: SValue SwiftCode -> SValue SwiftCode Source #
listAdd :: SValue SwiftCode -> SValue SwiftCode -> SValue SwiftCode -> SValue SwiftCode Source #
listAppend :: SValue SwiftCode -> SValue SwiftCode -> SValue SwiftCode Source #
listAccess :: SValue SwiftCode -> SValue SwiftCode -> SValue SwiftCode Source #
listSet :: SValue SwiftCode -> SValue SwiftCode -> SValue SwiftCode -> SValue SwiftCode Source #
indexOf :: SValue SwiftCode -> SValue SwiftCode -> SValue SwiftCode Source #
litTrue :: SValue SwiftCode Source #
litFalse :: SValue SwiftCode Source #
litChar :: Char -> SValue SwiftCode Source #
litDouble :: Double -> SValue SwiftCode Source #
litFloat :: Float -> SValue SwiftCode Source #
litInt :: Integer -> SValue SwiftCode Source #
litString :: String -> SValue SwiftCode Source #
litArray :: VSType SwiftCode -> [SValue SwiftCode] -> SValue SwiftCode Source #
litList :: VSType SwiftCode -> [SValue SwiftCode] -> SValue SwiftCode Source #
pi :: SValue SwiftCode Source #
type Method SwiftCode Source #
method :: Label -> SwiftCode (Scope SwiftCode) -> SwiftCode (Permanence SwiftCode) -> VSType SwiftCode -> [MSParameter SwiftCode] -> MSBody SwiftCode -> SMethod SwiftCode Source #
getMethod :: SVariable SwiftCode -> SMethod SwiftCode Source #
setMethod :: SVariable SwiftCode -> SMethod SwiftCode Source #
constructor :: [MSParameter SwiftCode] -> Initializers SwiftCode -> MSBody SwiftCode -> SMethod SwiftCode Source #
docMain :: MSBody SwiftCode -> SMethod SwiftCode Source #
function :: Label -> SwiftCode (Scope SwiftCode) -> VSType SwiftCode -> [MSParameter SwiftCode] -> MSBody SwiftCode -> SMethod SwiftCode Source #
mainFunction :: MSBody SwiftCode -> SMethod SwiftCode Source #
docFunc :: String -> [String] -> Maybe String -> SMethod SwiftCode -> SMethod SwiftCode Source #
inOutMethod :: Label -> SwiftCode (Scope SwiftCode) -> SwiftCode (Permanence SwiftCode) -> InOutFunc SwiftCode Source #
docInOutMethod :: Label -> SwiftCode (Scope SwiftCode) -> SwiftCode (Permanence SwiftCode) -> DocInOutFunc SwiftCode Source #
inOutFunc :: Label -> SwiftCode (Scope SwiftCode) -> InOutFunc SwiftCode Source #
docInOutFunc :: Label -> SwiftCode (Scope SwiftCode) -> DocInOutFunc SwiftCode Source #
type Module SwiftCode Source #
buildModule :: Label -> [Label] -> [SMethod SwiftCode] -> [SClass SwiftCode] -> FSModule SwiftCode Source #
(#~) :: SValue SwiftCode -> SValue SwiftCode Source #
(#/^) :: SValue SwiftCode -> SValue SwiftCode Source #
(#|) :: SValue SwiftCode -> SValue SwiftCode Source #
(#+) :: SValue SwiftCode -> SValue SwiftCode -> SValue SwiftCode Source #
(#-) :: SValue SwiftCode -> SValue SwiftCode -> SValue SwiftCode Source #
(#*) :: SValue SwiftCode -> SValue SwiftCode -> SValue SwiftCode Source #
(#/) :: SValue SwiftCode -> SValue SwiftCode -> SValue SwiftCode Source #
(#%) :: SValue SwiftCode -> SValue SwiftCode -> SValue SwiftCode Source #
(#^) :: SValue SwiftCode -> SValue SwiftCode -> SValue SwiftCode Source #
log :: SValue SwiftCode -> SValue SwiftCode Source #
ln :: SValue SwiftCode -> SValue SwiftCode Source #
exp :: SValue SwiftCode -> SValue SwiftCode Source #
sin :: SValue SwiftCode -> SValue SwiftCode Source #
cos :: SValue SwiftCode -> SValue SwiftCode Source #
tan :: SValue SwiftCode -> SValue SwiftCode Source #
csc :: SValue SwiftCode -> SValue SwiftCode Source #
sec :: SValue SwiftCode -> SValue SwiftCode Source #
cot :: SValue SwiftCode -> SValue SwiftCode Source #
arcsin :: SValue SwiftCode -> SValue SwiftCode Source #
arccos :: SValue SwiftCode -> SValue SwiftCode Source #
arctan :: SValue SwiftCode -> SValue SwiftCode Source #
floor :: SValue SwiftCode -> SValue SwiftCode Source #
ceil :: SValue SwiftCode -> SValue SwiftCode Source #
notifyObservers :: VSFunction SwiftCode -> VSType SwiftCode -> MSStatement SwiftCode Source #
type Parameter SwiftCode Source #
param :: SVariable SwiftCode -> MSParameter SwiftCode Source #
pointerParam :: SVariable SwiftCode -> MSParameter SwiftCode Source #
type Permanence SwiftCode Source #
static :: SwiftCode (Permanence SwiftCode) Source #
dynamic :: SwiftCode (Permanence SwiftCode) Source #
type Program SwiftCode Source #
prog :: Label -> Label -> [SFile SwiftCode] -> GSProgram SwiftCode Source #
type Scope SwiftCode Source #
private :: SwiftCode (Scope SwiftCode) Source #
public :: SwiftCode (Scope SwiftCode) Source #
checkState :: Label -> [(SValue SwiftCode, MSBody SwiftCode)] -> MSBody SwiftCode -> MSStatement SwiftCode Source #
type StateVar SwiftCode Source #
stateVar :: SwiftCode (Scope SwiftCode) -> SwiftCode (Permanence SwiftCode) -> SVariable SwiftCode -> CSStateVar SwiftCode Source #
stateVarDef :: SwiftCode (Scope SwiftCode) -> SwiftCode (Permanence SwiftCode) -> SVariable SwiftCode -> SValue SwiftCode -> CSStateVar SwiftCode Source #
constVar :: SwiftCode (Scope SwiftCode) -> SVariable SwiftCode -> SValue SwiftCode -> CSStateVar SwiftCode Source #
type Statement SwiftCode Source #
valStmt :: SValue SwiftCode -> MSStatement SwiftCode Source #
multi :: [MSStatement SwiftCode] -> MSStatement SwiftCode Source #
runStrategy :: Label -> [(Label, MSBody SwiftCode)] -> Maybe (SValue SwiftCode) -> Maybe (SVariable SwiftCode) -> MSBlock SwiftCode Source #
stringSplit :: Char -> SVariable SwiftCode -> SValue SwiftCode -> MSStatement SwiftCode Source #
stringListVals :: [SVariable SwiftCode] -> SValue SwiftCode -> MSStatement SwiftCode Source #
stringListLists :: [SVariable SwiftCode] -> SValue SwiftCode -> MSStatement SwiftCode Source #
thunkAssign :: SVariable SwiftCode -> VSThunk SwiftCode -> MSStatement SwiftCode Source #
type Thunk SwiftCode Source #
getType :: SwiftCode (Type SwiftCode) -> CodeType Source #
getTypeString :: SwiftCode (Type SwiftCode) -> String Source #
type Type SwiftCode Source #
bool :: VSType SwiftCode Source #
int :: VSType SwiftCode Source #
float :: VSType SwiftCode Source #
double :: VSType SwiftCode Source #
char :: VSType SwiftCode Source #
string :: VSType SwiftCode Source #
infile :: VSType SwiftCode Source #
outfile :: VSType SwiftCode Source #
listType :: VSType SwiftCode -> VSType SwiftCode Source #
arrayType :: VSType SwiftCode -> VSType SwiftCode Source #
listInnerType :: VSType SwiftCode -> VSType SwiftCode Source #
obj :: ClassName -> VSType SwiftCode Source #
funcType :: [VSType SwiftCode] -> VSType SwiftCode -> VSType SwiftCode Source #
void :: VSType SwiftCode Source #
inlineIf :: SValue SwiftCode -> SValue SwiftCode -> SValue SwiftCode -> SValue SwiftCode Source #
funcAppMixedArgs :: MixedCall SwiftCode Source #
selfFuncAppMixedArgs :: MixedCall SwiftCode Source #
extFuncAppMixedArgs :: Library -> MixedCall SwiftCode Source #
libFuncAppMixedArgs :: Library -> MixedCall SwiftCode Source #
newObjMixedArgs :: MixedCtorCall SwiftCode Source #
extNewObjMixedArgs :: Library -> MixedCtorCall SwiftCode Source #
libNewObjMixedArgs :: Library -> MixedCtorCall SwiftCode Source #
lambda :: [SVariable SwiftCode] -> SValue SwiftCode -> SValue SwiftCode Source #
notNull :: SValue SwiftCode -> SValue SwiftCode Source #
type Value SwiftCode Source #
valueType :: SwiftCode (Value SwiftCode) -> SwiftCode (Type SwiftCode) Source #
variableName :: SwiftCode (Variable SwiftCode) -> String Source #
variableType :: SwiftCode (Variable SwiftCode) -> SwiftCode (Type SwiftCode) Source #
type Variable SwiftCode Source #
var :: Label -> VSType SwiftCode -> SVariable SwiftCode Source #
staticVar :: Label -> VSType SwiftCode -> SVariable SwiftCode Source #
constant :: Label -> VSType SwiftCode -> SVariable SwiftCode Source #
extVar :: Library -> Label -> VSType SwiftCode -> SVariable SwiftCode Source #
self :: SVariable SwiftCode Source #
classVar :: VSType SwiftCode -> SVariable SwiftCode -> SVariable SwiftCode Source #
extClassVar :: VSType SwiftCode -> SVariable SwiftCode -> SVariable SwiftCode Source #
objVar :: SVariable SwiftCode -> SVariable SwiftCode -> SVariable SwiftCode Source #
objVarSelf :: SVariable SwiftCode -> SVariable SwiftCode Source #
arrayElem :: Integer -> SVariable SwiftCode -> SVariable SwiftCode Source #
valueOf :: SVariable SwiftCode -> SValue SwiftCode Source #
vecDec :: Integer -> SVariable SwiftCode -> MSStatement SwiftCode Source #
vecDecDef :: SVariable SwiftCode -> [SValue SwiftCode] -> MSStatement SwiftCode Source #
vecScale :: SValue SwiftCode -> VSThunk SwiftCode -> VSThunk SwiftCode Source #
vecAdd :: VSThunk SwiftCode -> VSThunk SwiftCode -> VSThunk SwiftCode Source #
vecIndex :: SValue SwiftCode -> VSThunk SwiftCode -> SValue SwiftCode Source #
vecDot :: VSThunk SwiftCode -> VSThunk SwiftCode -> VSThunk SwiftCode Source #
vecThunk :: SVariable SwiftCode -> VSThunk SwiftCode Source #
vecType :: VSType SwiftCode -> VSType SwiftCode Source #
type BinaryOp SwiftCode Source #
equalOp :: VSBinOp SwiftCode Source #
notEqualOp :: VSBinOp SwiftCode Source #
greaterOp :: VSBinOp SwiftCode Source #
greaterEqualOp :: VSBinOp SwiftCode Source #
lessOp :: VSBinOp SwiftCode Source #
lessEqualOp :: VSBinOp SwiftCode Source #
plusOp :: VSBinOp SwiftCode Source #
minusOp :: VSBinOp SwiftCode Source #
multOp :: VSBinOp SwiftCode Source #
divideOp :: VSBinOp SwiftCode Source #
powerOp :: VSBinOp SwiftCode Source #
moduloOp :: VSBinOp SwiftCode Source #
andOp :: VSBinOp SwiftCode Source #
orOp :: VSBinOp SwiftCode Source #
blockComment' :: SwiftCode (BlockComment SwiftCode) -> Doc Source #
type BlockComment SwiftCode Source #
blockComment :: [String] -> SwiftCode (BlockComment SwiftCode) Source #
docComment :: State a [String] -> State a (SwiftCode (BlockComment SwiftCode)) Source #
block :: SwiftCode (Block SwiftCode) -> Doc Source #
body :: SwiftCode (Body SwiftCode) -> Doc Source #
class' :: SwiftCode (Class SwiftCode) -> Doc Source #
functionType :: SwiftCode (Function SwiftCode) -> SwiftCode (Type SwiftCode) Source #
function :: SwiftCode (Function SwiftCode) -> Doc Source #
import' :: SwiftCode (Import SwiftCode) -> Doc Source #
type Import SwiftCode Source #
langImport :: Label -> SwiftCode (Import SwiftCode) Source #
modImport :: Label -> SwiftCode (Import SwiftCode) Source #
multiAssign :: [SVariable SwiftCode] -> [SValue SwiftCode] -> MSStatement SwiftCode Source #
multiReturn :: [SValue SwiftCode] -> MSStatement SwiftCode Source #
getFunc :: SVariable SwiftCode -> VSFunction SwiftCode Source #
setFunc :: VSType SwiftCode -> SVariable SwiftCode -> SValue SwiftCode -> VSFunction SwiftCode Source #
printSt :: Bool -> Maybe (SValue SwiftCode) -> SValue SwiftCode -> SValue SwiftCode -> MSStatement SwiftCode Source #
listSizeFunc :: VSFunction SwiftCode Source #
listAddFunc :: SValue SwiftCode -> SValue SwiftCode -> SValue SwiftCode -> VSFunction SwiftCode Source #
listAppendFunc :: SValue SwiftCode -> VSFunction SwiftCode Source #
listAccessFunc :: VSType SwiftCode -> SValue SwiftCode -> VSFunction SwiftCode Source #
listSetFunc :: SValue SwiftCode -> SValue SwiftCode -> SValue SwiftCode -> VSFunction SwiftCode Source #
type' :: SwiftCode (Type SwiftCode) -> Doc Source #
variableBind :: SwiftCode (Variable SwiftCode) -> Binding Source #
variable :: SwiftCode (Variable SwiftCode) -> Doc Source #
method :: SwiftCode (Method SwiftCode) -> Doc Source #
type MethodType SwiftCode Source #
mType :: VSType SwiftCode -> MSMthdType SwiftCode Source #
construct :: Label -> MSMthdType SwiftCode Source #
module' :: SwiftCode (Module SwiftCode) -> Doc Source #
uOp :: SwiftCode (UnaryOp SwiftCode) -> Doc Source #
bOp :: SwiftCode (BinaryOp SwiftCode) -> Doc Source #
uOpPrec :: SwiftCode (UnaryOp SwiftCode) -> Int Source #
bOpPrec :: SwiftCode (BinaryOp SwiftCode) -> Int Source #
parameterName :: SwiftCode (Parameter SwiftCode) -> Label Source #
parameterType :: SwiftCode (Parameter SwiftCode) -> SwiftCode (Type SwiftCode) Source #
parameter :: SwiftCode (Parameter SwiftCode) -> Doc Source #
perm :: SwiftCode (Permanence SwiftCode) -> Doc Source #
binding :: SwiftCode (Permanence SwiftCode) -> Binding Source #
multiBlock :: [MSBlock SwiftCode] -> MSBlock SwiftCode Source #
multiBody :: [MSBody SwiftCode] -> MSBody SwiftCode Source #
intClass :: Label -> SwiftCode (Scope SwiftCode) -> SwiftCode ParentSpec -> [CSStateVar SwiftCode] -> [SMethod SwiftCode] -> SClass SwiftCode Source #
inherit :: Maybe Label -> SwiftCode ParentSpec Source #
implements :: [Label] -> SwiftCode ParentSpec Source #
commentedClass :: CS (SwiftCode (BlockComment SwiftCode)) -> SClass SwiftCode -> SClass SwiftCode Source #
top :: SwiftCode (Module SwiftCode) -> SwiftCode (Block SwiftCode) Source #
bottom :: SwiftCode (Block SwiftCode) Source #
commentedMod :: SFile SwiftCode -> FS (SwiftCode (BlockComment SwiftCode)) -> SFile SwiftCode Source #
fileFromData :: FilePath -> FSModule SwiftCode -> SFile SwiftCode Source #
funcFromData :: Doc -> VSType SwiftCode -> VSFunction SwiftCode Source #
intMethod :: Bool -> Label -> SwiftCode (Scope SwiftCode) -> SwiftCode (Permanence SwiftCode) -> MSMthdType SwiftCode -> [MSParameter SwiftCode] -> MSBody SwiftCode -> SMethod SwiftCode Source #
intFunc :: Bool -> Label -> SwiftCode (Scope SwiftCode) -> SwiftCode (Permanence SwiftCode) -> MSMthdType SwiftCode -> [MSParameter SwiftCode] -> MSBody SwiftCode -> SMethod SwiftCode Source #
commentedFunc :: MS (SwiftCode (BlockComment SwiftCode)) -> SMethod SwiftCode -> SMethod SwiftCode Source #
destructor :: [CSStateVar SwiftCode] -> SMethod SwiftCode Source #
mthdFromData :: ScopeTag -> Doc -> SMethod SwiftCode Source #
modFromData :: String -> FS Doc -> FSModule SwiftCode Source #
updateModuleDoc :: (Doc -> Doc) -> SwiftCode (Module SwiftCode) -> SwiftCode (Module SwiftCode) Source #
paramFromData :: SVariable SwiftCode -> Doc -> MSParameter SwiftCode Source #
scopeFromData :: ScopeTag -> Doc -> SwiftCode (Scope SwiftCode) Source #
stmt :: MSStatement SwiftCode -> MSStatement SwiftCode Source #
loopStmt :: MSStatement SwiftCode -> MSStatement SwiftCode Source #
emptyStmt :: MSStatement SwiftCode Source #
stmtFromData :: Doc -> Terminator -> MSStatement SwiftCode Source #
multiType :: [VSType SwiftCode] -> VSType SwiftCode Source #
typeFromData :: CodeType -> String -> Doc -> VSType SwiftCode Source #
inputFunc :: SValue SwiftCode Source #
printFunc :: SValue SwiftCode Source #
printLnFunc :: SValue SwiftCode Source #
printFileFunc :: SValue SwiftCode -> SValue SwiftCode Source #
printFileLnFunc :: SValue SwiftCode -> SValue SwiftCode Source #
cast :: VSType SwiftCode -> SValue SwiftCode -> SValue SwiftCode Source #
call :: Maybe Library -> Maybe Doc -> MixedCall SwiftCode Source #
valFromData :: Maybe Int -> VSType SwiftCode -> Doc -> SValue SwiftCode Source #
varFromData :: Binding -> String -> VSType SwiftCode -> Doc -> SVariable SwiftCode Source #
scope :: SwiftCode (Scope SwiftCode) -> Doc Source #
stateVar :: SwiftCode (StateVar SwiftCode) -> Doc Source #
statement :: SwiftCode (Statement SwiftCode) -> Doc Source #
statementTerm :: SwiftCode (Statement SwiftCode) -> Terminator Source #
type UnaryOp SwiftCode Source #
notOp :: VSUnOp SwiftCode Source #
negateOp :: VSUnOp SwiftCode Source #
sqrtOp :: VSUnOp SwiftCode Source #
absOp :: VSUnOp SwiftCode Source #
logOp :: VSUnOp SwiftCode Source #
lnOp :: VSUnOp SwiftCode Source #
expOp :: VSUnOp SwiftCode Source #
sinOp :: VSUnOp SwiftCode Source #
cosOp :: VSUnOp SwiftCode Source #
tanOp :: VSUnOp SwiftCode Source #
asinOp :: VSUnOp SwiftCode Source #
acosOp :: VSUnOp SwiftCode Source #
atanOp :: VSUnOp SwiftCode Source #
floorOp :: VSUnOp SwiftCode Source #
ceilOp :: VSUnOp SwiftCode Source #
valuePrec :: SwiftCode (Value SwiftCode) -> Maybe Int Source #
value :: SwiftCode (Value SwiftCode) -> Doc Source #
(==) :: SwiftCode a -> SwiftCode a -> Bool #
(/=) :: SwiftCode a -> SwiftCode a -> Bool #
swiftName :: String Source #
swiftVersion :: String Source #