feat: implement math in vm

This commit is contained in:
samsonium
2026-10-11 03:12:35 +03:00
parent 4577b541c3
commit 8696d5bfe7
4 changed files with 126 additions and 8 deletions
+7 -1
View File
@@ -8,7 +8,8 @@
// Constant types
typedef enum
{
FZL_CONSTTYPE_STRING
FZL_CONSTTYPE_STRING,
FZL_CONSTTYPE_NUMBER
} fzl_consttype_t;
// Constant descriptor
@@ -23,6 +24,11 @@ typedef struct
const char *chars;
size_t length;
} string;
struct
{
uint64_t value;
} num;
} as;
} fzl_const_t;