Packaged toy as a dll

This commit is contained in:
2022-09-11 07:56:06 +01:00
parent 5b420e0799
commit 95ba865cab
14 changed files with 136 additions and 43 deletions

View File

@@ -1,5 +1,6 @@
#pragma once
#include "common.h"
#include "literal.h"
#include "opcodes.h"
#include "token_types.h"
@@ -153,7 +154,8 @@ union _node {
NodeIndex index;
};
void freeNode(Node* node);
TOY_API void freeNode(Node* node);
void emitNodeLiteral(Node** nodeHandle, Literal literal);
void emitNodeUnary(Node** nodeHandle, Opcode opcode, Node* child);
void emitNodeBinary(Node** nodeHandle, Node* rhs, Opcode opcode); //handled node becomes lhs