copilot-0.22: A stream DSL for writing embedded C.

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.