X-Git-Url: https://pd.if.org/git/?p=lice;a=blobdiff_plain;f=init.h;fp=init.h;h=c44b8ade4d015e1227d04926dc4e6652eb54f23a;hp=0000000000000000000000000000000000000000;hb=d41dc131c73a91d200dbffab3a7786f6b2b51489;hpb=c9d92e71ffc96475abe19bd7dc7512df89b4f44d diff --git a/init.h b/init.h new file mode 100644 index 0000000..c44b8ad --- /dev/null +++ b/init.h @@ -0,0 +1,27 @@ +#ifndef LICE_INIT_HDR +#define LICE_INIT_HDR +#include "ast.h" +#include "util.h" + +/* + * Function: init_entry + * The core entry point to initializer parsing. + * + * Parameters: + * type - Base type of the current initializer + * + * Returns: + * A list containing all the initialization nodes for the initializer + * + * Remarks: + * Deals with all forms of initialization, lists, aggregates, including + * designated versions for user defined unions, structures, arrays and + * enumerations. + * + * Will raise compiler error if syntax or lexical error in initializer + * resulting in a NULL, or partially filled list of ast initializer + * nodes. + */ +list_t *init_entry(data_type_t *type); + +#endif