wip: working on analyzer

- Feat: now symbols table store node on PUT
- Feat: call analyzer with callee resolving and arguments validate
- Feat: identifier analyzer
- Feat: analyzer utils (types compat, tok-to-type, type-to-string)
This commit is contained in:
samsonium
2026-10-26 20:47:24 +03:00
parent 4904f40037
commit 62ae05b4cd
11 changed files with 474 additions and 15 deletions
+4 -2
View File
@@ -2,6 +2,7 @@
#define FZL_SYMTABLE_H
#include <common/fzl_types.h>
#include <compiler/fzl_parser.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
@@ -19,6 +20,7 @@ typedef struct
{
char *name;
fzl_type_t type;
fzl_node_t *node;
size_t ip;
char *classname;
@@ -37,8 +39,8 @@ typedef struct
fzl_symtable_t *fzl_mksymt();
// Put new entry into symtable
fzl_symtable_res_t fzl_symt_put(fzl_symtable_t *symt, char *name,
fzl_type_t type, uint64_t ip);
fzl_symtable_res_t fzl_symt_put(fzl_symtable_t *symt, fzl_node_t *node,
char *name, fzl_type_t type, uint64_t ip);
// Assign class name to object type
fzl_symtable_res_t fzl_symt_setobjclass(fzl_symtable_t *symt, char *name,