first commit of the recode

70% of the code was re-writter from scratch
This commit is contained in:
2024-01-18 16:01:04 +01:00
commit a97fde9f86
19 changed files with 1710 additions and 0 deletions

12
tests/interpreter.c Normal file
View File

@@ -0,0 +1,12 @@
#include "../include/pasm.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
int main(int argc, char **argv) {
if (argc != 2 || strcmp(argv[1], "-h") == 0) {
fprintf(stderr, "Usage : %s filename\n", argv[0]);
return 1;
}
return pasm_run_script(argv[1], 0, 0, stderr);
}