idk why i made this lmao

This commit is contained in:
2023-12-04 19:33:10 -05:00
commit 080cbc9fb0
4 changed files with 45 additions and 0 deletions

14
compiler/hell.l Normal file
View File

@@ -0,0 +1,14 @@
%%
"func" { printf("int"); }
local { printf("static"); }
"import" { printf("#include"); }
"str" { printf("char"); }
/* Library declarations */
"hell:std.ioutils" { printf("<stdio.h>"); }
"hell:std.ioutils.writeln" { printf("printf"); }
"hell:std.ioutils.readln" { printf("scanf"); }