feat(furas): introduce global variables

This commit is contained in:
2026-08-14 13:58:29 +02:00
parent a685ecf226
commit c841427eff
4 changed files with 44 additions and 11 deletions
+9 -6
View File
@@ -23,12 +23,13 @@ struct token {
Colon, /**< `:` */
// Keywords
Func, /**< `func` keyword for defining functions. */
Type, /**< `type` keyword for defining types. */
Native, /**< `native` keyword for native functions. :v: */
Import, /**< `import` keyword for importing functions and types. */
Public, /**< `public` access specifier. */
Private, /**< `private` access specifier. */
Func, /**< `func` keyword for defining functions. */
Type, /**< `type` keyword for defining types. */
Native, /**< `native` keyword for native functions. :v: */
Import, /**< `import` keyword for importing functions and types. */
Public, /**< `public` access specifier. */
Private, /**< `private` access specifier. */
Allocate, /**< `allocate` keyword for global variables. */
// Instructions
Push,
@@ -56,6 +57,8 @@ struct token {
Lenof,
Load,
Store,
LoadGlobal,
StoreGlobal,
Call,
Jmp,
Jnz,