Moved repl's tools into their own file

This commit is contained in:
2022-10-03 20:18:06 +01:00
parent 99bcffe77c
commit 8072beb007
3 changed files with 158 additions and 131 deletions

14
repl/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);