wip: working on dynamic linking
- Feat: add analyzers for: - external functions - reference - structures - type definitions - Feat: add new nodes to debug print (ast)
This commit is contained in:
@@ -15,6 +15,26 @@ fzl_an_res_t analyze_common(fzl_analyzer_t *analyzer, fzl_node_t *node)
|
||||
fzl_an_res_t res = {.error = false, .type = FZL_TYPE_NULL, .classname = NULL};
|
||||
switch (node->type)
|
||||
{
|
||||
case FZL_NODETYPE_REFERENCE:
|
||||
res = analyze_ref(analyzer, node);
|
||||
break;
|
||||
|
||||
case FZL_NODETYPE_STRUCT:
|
||||
res = analyze_struct(analyzer, node);
|
||||
break;
|
||||
|
||||
case FZL_NODETYPE_ALIAS:
|
||||
res.type = an_toktotype(node->token);
|
||||
break;
|
||||
|
||||
case FZL_NODETYPE_HANDLE:
|
||||
res.type = FZL_TYPE_HANDLE;
|
||||
break;
|
||||
|
||||
case FZL_NODETYPE_TYPEDEF:
|
||||
res = analyze_typedef(analyzer, node);
|
||||
break;
|
||||
|
||||
case FZL_NODETYPE_FMT_STRING:
|
||||
res = analyze_strfmt(analyzer, node);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user