adding lisp-interpreter
Meson Build and Deploy / build (push) Failing after 29s

This commit is contained in:
Arthur Barraux
2025-09-24 10:58:09 +02:00
parent ab482df604
commit d8fc7d2d67
57 changed files with 30702 additions and 5 deletions
+24
View File
@@ -0,0 +1,24 @@
#include <stdlib.h>
#include <time.h>
#include <string.h>
#define LISP_IMPLEMENTATION
#include "lisp.h"
int main(int argc, const char* argv[])
{
LispContext ctx = lisp_init();
LispError error;
Lisp data = lisp_read_file(stdin, &error, ctx);
if (error != LISP_ERROR_NONE)
{
fprintf(stderr, "error: %s\n", lisp_error_string(error));
}
data = lisp_collect(data, ctx);
lisp_printf(stdout, data);
lisp_shutdown(ctx);
return 0;
}