copilot-0.21: A lazy-list language for generating constant-time and constant-space C programs. Uses Atom as a backend.

Language.Copilot.AdHocC

Description

Helper functions for writing free-form C code.

Synopsis

Documentation

varDecl :: Type -> [String] -> StringSource

Takes a type and a list of variable names and declares them.

includeBracket :: String -> StringSource

Add an include of a library

includeQuote :: String -> StringSource

Add an include of a header file

printfNewline :: String -> [String] -> StringSource

printf, with and without a newline (nl) character.