feat: implement M1 Ferro frontend

This commit is contained in:
2026-08-16 07:10:53 +09:00
parent 990068f424
commit 005056a5ea
32 changed files with 986 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
#ifndef FE_DIAG_H
#define FE_DIAG_H
#include <stdio.h>
typedef struct FeLoc {
const char *file;
unsigned long line;
unsigned long col;
} FeLoc;
typedef struct FeDiags {
unsigned long errors;
unsigned long warnings;
} FeDiags;
void fe_diag_error(FeDiags *d, FeLoc loc, const char *msg);
void fe_diag_errorf(FeDiags *d, FeLoc loc, const char *msg, const char *arg);
void fe_diag_note(FeLoc loc, const char *msg);
#endif