feat: implement AST walker
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
#ifndef FZL_BUILTINS_H
|
||||
#define FZL_BUILTINS_H
|
||||
|
||||
typedef enum
|
||||
{
|
||||
FZL_BUILTIN_PRINTLINE // Print message in arg with newline at end
|
||||
} fzl_builtin_t;
|
||||
|
||||
#endif // FZL_BUILTINS_H
|
||||
@@ -0,0 +1,12 @@
|
||||
#ifndef FZL_OPCODES_H
|
||||
#define FZL_OPCODES_H
|
||||
|
||||
// Available opcodes
|
||||
typedef enum
|
||||
{
|
||||
FZL_OPCODE_LOADCONST, // Load const into T (temp) reg
|
||||
FZL_OPCODE_PUSHARG, // Push argument from T into args stack
|
||||
FZL_OPCODE_CALL_BUILTIN // Call builtin function
|
||||
} fzl_opcode_t;
|
||||
|
||||
#endif // FZL_OPCODES_H
|
||||
Reference in New Issue
Block a user