Add minimal examples

This commit is contained in:
2025-08-06 00:23:10 +02:00
parent 500dcb7594
commit ea9d19b777
7 changed files with 221 additions and 3 deletions
+8 -2
View File
@@ -4,9 +4,15 @@
#include "WL.h"
int main(void)
int main(int argc, char **argv)
{
FILE *f = fopen("main.wl", "rb");
if (argc < 2) {
printf("Missing file path\n");
return -1;
}
char *file = argv[1];
FILE *f = fopen(file, "rb");
if (f == NULL)
return -1;