Function awint_macro_internals::code_gen
source · [−]pub fn code_gen(
input: &str,
specified_initialization: bool,
construct_fn: &str,
inlawi: bool,
return_source: bool
) -> Result<String, String>
Expand description
Code generation for concatenations of components macros. input
is the
string input to the macro. specified_initialization
is true if source has
a specified default state, and fillers can be used in the source.
construct_fn
is the construction function used (e.x. “zero”, “umax”, etc,
“zero” should be used by default). inlawi
is if an InlAwi
should be the
return type. return_souce
is if the value of the source should be
returned.
Errors
If one of the many error conditions described by the awint_macros
documentation occurs, then this will return a string representation of that
error.