#ifndef __obcl_h #define __obcl_h #include #include #include typedef enum CLNodeType { CL_ID, CL_NUM, CL_STR, CL_LIST, CL_BLOCK, CL_LISTBLOCK } CLNodeType; typedef struct CLNode { CLNodeType type; union { struct { gchar *id; GList *list; GList *block; } lb; double num; gchar *str; } u; } CLNode; GList *cl_parse(gchar *file); GList *cl_parse_fh(FILE *file); void cl_tree_free(GList *tree); void cl_tree_print(GList *tree, int depth); void cl_tree_process(GList *tree); #endif /* __obcl_h */