View Source Unifex.CodeGenerator behaviour (Unifex v1.2.1)
Behaviour for code generation.
Summary
Functions
Generates boilerplate code using generator implementation from Unifex.CodeGenerators
.
Types
Callbacks
@callback generate_header(specs :: Unifex.Specs.t()) :: code_t()
@callback generate_source(specs :: Unifex.Specs.t()) :: code_t()
@callback identification_constant() :: String.t()
@callback interface_io_name() :: String.t()
Functions
@spec bundlex_interface(Bundlex.Project.native_interface()) :: Unifex.Specs.interface_t()
@spec generate_code(Unifex.Specs.t()) :: [generated_code_t()]
Generates boilerplate code using generator implementation from Unifex.CodeGenerators
.
@spec interface_generator(Unifex.Specs.interface_t()) :: t()