ref: move analyzer fn defs into compiler/iternals

This commit is contained in:
samsonium
2026-10-28 23:24:17 +03:00
parent bbdaa4a9b9
commit 62b0030e4a
24 changed files with 102 additions and 28 deletions
+5
View File
@@ -2,6 +2,7 @@
#include <compiler/fzl_analyzer.h>
#include <compiler/fzl_parser.h>
#include <compiler/fzl_token.h>
#include <compiler/internals/analyzer.h>
#include <stddef.h>
#include <stdlib.h>
@@ -14,6 +15,10 @@ 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_FMT_STRING:
res = analyze_strfmt(analyzer, node);
break;
case FZL_NODETYPE_ASSIGN:
res = analyze_assign(analyzer, node);
break;