Functions are successfully called, read more

Return keyword is not yet implemented.

Functions are untested.

See #163
This commit is contained in:
2025-02-17 14:05:07 +11:00
parent 76d89fe0ad
commit 02dfc996b4
12 changed files with 193 additions and 27 deletions

View File

@@ -9,12 +9,12 @@ typedef enum Toy_FunctionType {
TOY_FUNCTION_NATIVE,
} Toy_FunctionType;
typedef union Toy_FunctionModule {
typedef struct Toy_FunctionModule {
Toy_FunctionType type;
Toy_Module module;
} Toy_FunctionModule;
typedef union Toy_FunctionNative {
typedef struct Toy_FunctionNative {
Toy_FunctionType type;
void* native; //TODO: replace with the native function pointer
} Toy_FunctionNative;