updated makefile. Now the noja interpreter is build as a library and then linked to the cli

This commit is contained in:
cozis
2022-08-11 17:57:56 +02:00
parent f8cd57da43
commit c3d4479e97
104 changed files with 96 additions and 43 deletions
+1 -1
View File
@@ -32,7 +32,7 @@
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "libnoja/noja.h"
#include "../noja/noja.h"
static const char usage[] =
"Usage patterns:\n"
View File
+8
View File
@@ -0,0 +1,8 @@
typedef struct NOJA_Executable NOJA_Executable;
char *NOJA_disassemble(NOJA_Executable *exe);
NOJA_Executable *NOJA_assembleString(const char *str);
NOJA_Executable *NOJA_assembleFile(const char *file);
NOJA_Executable *NOJA_compileString(const char *str);
NOJA_Executable *NOJA_compileFile(const char *file);
bool NOJA_compareExecutables(NOJA_Executable *exe1, NOJA_Executable *exe2);