Moved compilation functions into repl_tools

This commit is contained in:
2022-10-07 08:49:36 +01:00
parent e1c39447c2
commit ecaf554b9a
6 changed files with 159 additions and 225 deletions

14
core/repl_tools.h Normal file
View File

@@ -0,0 +1,14 @@
#pragma once
#include "common.h"
char* readFile(char* path, size_t* fileSize);
void writeFile(char* path, unsigned char* bytes, size_t size);
unsigned char* compileString(char* source, size_t* size);
void runBinary(unsigned char* tb, size_t size);
void runBinaryFile(char* fname);
void runSource(char* source);
void runSourceFile(char* fname);